optimized-react-component-library-xyz123 0.28.7 → 0.28.8
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 +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +299 -255
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +299 -255
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +14 -0
- package/src/css/questions.css +9 -1
package/dist/index.d.mts
CHANGED
|
@@ -113,6 +113,16 @@ interface IStepQuestionData {
|
|
|
113
113
|
}[];
|
|
114
114
|
}[];
|
|
115
115
|
}
|
|
116
|
+
interface IAppSettingsCookies {
|
|
117
|
+
useCookies: boolean;
|
|
118
|
+
cookieName: string;
|
|
119
|
+
cookieChoiseKey: string;
|
|
120
|
+
}
|
|
121
|
+
interface IAppSettings {
|
|
122
|
+
appUsesLanguage: boolean;
|
|
123
|
+
appUsesNavigation: boolean;
|
|
124
|
+
appCookies?: IAppSettingsCookies;
|
|
125
|
+
}
|
|
116
126
|
|
|
117
127
|
interface RadioProps {
|
|
118
128
|
question: IQuestion;
|
|
@@ -728,6 +738,7 @@ interface CookieBannerProps {
|
|
|
728
738
|
onClose?: () => void;
|
|
729
739
|
acceptCookies: () => void;
|
|
730
740
|
rejectCookies: () => void;
|
|
741
|
+
activatedLanguage?: string;
|
|
731
742
|
}
|
|
732
743
|
|
|
733
744
|
declare const CookieBanner: React$1.FC<CookieBannerProps>;
|
|
@@ -753,7 +764,10 @@ interface ModalProps {
|
|
|
753
764
|
|
|
754
765
|
declare const Modal: FC<ModalProps>;
|
|
755
766
|
|
|
756
|
-
|
|
767
|
+
type SkipLinkProps = {
|
|
768
|
+
activatedLanguage?: string;
|
|
769
|
+
};
|
|
770
|
+
declare const SkipLink: FC<SkipLinkProps>;
|
|
757
771
|
|
|
758
772
|
interface PrincipleOfPublicityProps {
|
|
759
773
|
activatedLanguage?: string;
|
|
@@ -779,6 +793,7 @@ interface StartApplicationButtonProps {
|
|
|
779
793
|
onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
780
794
|
label?: string;
|
|
781
795
|
className?: string;
|
|
796
|
+
activatedLanguage?: string;
|
|
782
797
|
}
|
|
783
798
|
/**
|
|
784
799
|
* En standardiserad knapp för att starta e-tjänsten.
|
|
@@ -786,6 +801,7 @@ interface StartApplicationButtonProps {
|
|
|
786
801
|
* @param {Function} onClick - Funktion som körs när användaren klickar på knappen.
|
|
787
802
|
* @param {string} label - Text som visas på knappen.
|
|
788
803
|
* @param {string} className - Extra CSS-klasser för knappen.
|
|
804
|
+
* @param {string} activatedLanguage - Aktiverat språk.
|
|
789
805
|
*/
|
|
790
806
|
declare const StartApplicationButton: React$1.FC<StartApplicationButtonProps>;
|
|
791
807
|
|
|
@@ -846,14 +862,16 @@ declare const ValidationErrorSummaryList: React$1.FC<ValidationErrorSummaryListP
|
|
|
846
862
|
|
|
847
863
|
interface FormStatusMessagesProps {
|
|
848
864
|
formStatus: string;
|
|
865
|
+
activatedLanguage?: string;
|
|
849
866
|
}
|
|
850
867
|
/**
|
|
851
868
|
* Visar ett error-meddelande om formuläret misslyckas att skicka in, dvs. status är
|
|
852
869
|
* failed. Läser upp att formuläret laddas för skärmläsare när status är loading.
|
|
853
870
|
*
|
|
854
871
|
* @param {string} formStatus Nuvarande status för formuläret.
|
|
872
|
+
* @param {string} [activatedLanguage='sv'] Den aktiverade språkkoden (default är svenska).
|
|
855
873
|
*
|
|
856
874
|
*/
|
|
857
875
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
858
876
|
|
|
859
|
-
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 };
|
|
877
|
+
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
|
@@ -113,6 +113,16 @@ interface IStepQuestionData {
|
|
|
113
113
|
}[];
|
|
114
114
|
}[];
|
|
115
115
|
}
|
|
116
|
+
interface IAppSettingsCookies {
|
|
117
|
+
useCookies: boolean;
|
|
118
|
+
cookieName: string;
|
|
119
|
+
cookieChoiseKey: string;
|
|
120
|
+
}
|
|
121
|
+
interface IAppSettings {
|
|
122
|
+
appUsesLanguage: boolean;
|
|
123
|
+
appUsesNavigation: boolean;
|
|
124
|
+
appCookies?: IAppSettingsCookies;
|
|
125
|
+
}
|
|
116
126
|
|
|
117
127
|
interface RadioProps {
|
|
118
128
|
question: IQuestion;
|
|
@@ -728,6 +738,7 @@ interface CookieBannerProps {
|
|
|
728
738
|
onClose?: () => void;
|
|
729
739
|
acceptCookies: () => void;
|
|
730
740
|
rejectCookies: () => void;
|
|
741
|
+
activatedLanguage?: string;
|
|
731
742
|
}
|
|
732
743
|
|
|
733
744
|
declare const CookieBanner: React$1.FC<CookieBannerProps>;
|
|
@@ -753,7 +764,10 @@ interface ModalProps {
|
|
|
753
764
|
|
|
754
765
|
declare const Modal: FC<ModalProps>;
|
|
755
766
|
|
|
756
|
-
|
|
767
|
+
type SkipLinkProps = {
|
|
768
|
+
activatedLanguage?: string;
|
|
769
|
+
};
|
|
770
|
+
declare const SkipLink: FC<SkipLinkProps>;
|
|
757
771
|
|
|
758
772
|
interface PrincipleOfPublicityProps {
|
|
759
773
|
activatedLanguage?: string;
|
|
@@ -779,6 +793,7 @@ interface StartApplicationButtonProps {
|
|
|
779
793
|
onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
780
794
|
label?: string;
|
|
781
795
|
className?: string;
|
|
796
|
+
activatedLanguage?: string;
|
|
782
797
|
}
|
|
783
798
|
/**
|
|
784
799
|
* En standardiserad knapp för att starta e-tjänsten.
|
|
@@ -786,6 +801,7 @@ interface StartApplicationButtonProps {
|
|
|
786
801
|
* @param {Function} onClick - Funktion som körs när användaren klickar på knappen.
|
|
787
802
|
* @param {string} label - Text som visas på knappen.
|
|
788
803
|
* @param {string} className - Extra CSS-klasser för knappen.
|
|
804
|
+
* @param {string} activatedLanguage - Aktiverat språk.
|
|
789
805
|
*/
|
|
790
806
|
declare const StartApplicationButton: React$1.FC<StartApplicationButtonProps>;
|
|
791
807
|
|
|
@@ -846,14 +862,16 @@ declare const ValidationErrorSummaryList: React$1.FC<ValidationErrorSummaryListP
|
|
|
846
862
|
|
|
847
863
|
interface FormStatusMessagesProps {
|
|
848
864
|
formStatus: string;
|
|
865
|
+
activatedLanguage?: string;
|
|
849
866
|
}
|
|
850
867
|
/**
|
|
851
868
|
* Visar ett error-meddelande om formuläret misslyckas att skicka in, dvs. status är
|
|
852
869
|
* failed. Läser upp att formuläret laddas för skärmläsare när status är loading.
|
|
853
870
|
*
|
|
854
871
|
* @param {string} formStatus Nuvarande status för formuläret.
|
|
872
|
+
* @param {string} [activatedLanguage='sv'] Den aktiverade språkkoden (default är svenska).
|
|
855
873
|
*
|
|
856
874
|
*/
|
|
857
875
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
858
876
|
|
|
859
|
-
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 };
|
|
877
|
+
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 };
|