optimized-react-component-library-xyz123 0.30.4 → 0.30.5
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 +21 -14
- package/dist/index.d.ts +21 -14
- package/dist/index.js +307 -292
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +351 -335
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +394 -375
- package/src/css/questions.css +23 -24
- package/src/css/styles.css +47 -68
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;
|
|
@@ -181,17 +191,6 @@ interface SingleCheckboxProps {
|
|
|
181
191
|
|
|
182
192
|
declare const SingleCheckbox: FC<SingleCheckboxProps>;
|
|
183
193
|
|
|
184
|
-
interface InfoTextStandardProps {
|
|
185
|
-
infoText: string;
|
|
186
|
-
selectedValue?: string;
|
|
187
|
-
activatedLanguage?: string;
|
|
188
|
-
questionId: string;
|
|
189
|
-
connectedToSelect?: boolean;
|
|
190
|
-
hideStepperButtons?: boolean;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
declare const InfoTextStandard: FC<InfoTextStandardProps>;
|
|
194
|
-
|
|
195
194
|
/**
|
|
196
195
|
* Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
|
|
197
196
|
*
|
|
@@ -669,7 +668,7 @@ declare const useCookieConsent: ({ cookieName, choiceKey, expiryYears, onConsent
|
|
|
669
668
|
};
|
|
670
669
|
|
|
671
670
|
interface QuestionRendererProps {
|
|
672
|
-
question:
|
|
671
|
+
question: any;
|
|
673
672
|
handleQuestionInputChange: (question: any, event: React$1.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
674
673
|
activatedLanguage?: string;
|
|
675
674
|
showPreview?: boolean;
|
|
@@ -739,6 +738,7 @@ interface CookieBannerProps {
|
|
|
739
738
|
onClose?: () => void;
|
|
740
739
|
acceptCookies: () => void;
|
|
741
740
|
rejectCookies: () => void;
|
|
741
|
+
activatedLanguage?: string;
|
|
742
742
|
}
|
|
743
743
|
|
|
744
744
|
declare const CookieBanner: React$1.FC<CookieBannerProps>;
|
|
@@ -764,7 +764,10 @@ interface ModalProps {
|
|
|
764
764
|
|
|
765
765
|
declare const Modal: FC<ModalProps>;
|
|
766
766
|
|
|
767
|
-
|
|
767
|
+
type SkipLinkProps = {
|
|
768
|
+
activatedLanguage?: string;
|
|
769
|
+
};
|
|
770
|
+
declare const SkipLink: FC<SkipLinkProps>;
|
|
768
771
|
|
|
769
772
|
interface PrincipleOfPublicityProps {
|
|
770
773
|
activatedLanguage?: string;
|
|
@@ -790,6 +793,7 @@ interface StartApplicationButtonProps {
|
|
|
790
793
|
onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
791
794
|
label?: string;
|
|
792
795
|
className?: string;
|
|
796
|
+
activatedLanguage?: string;
|
|
793
797
|
}
|
|
794
798
|
/**
|
|
795
799
|
* En standardiserad knapp för att starta e-tjänsten.
|
|
@@ -797,6 +801,7 @@ interface StartApplicationButtonProps {
|
|
|
797
801
|
* @param {Function} onClick - Funktion som körs när användaren klickar på knappen.
|
|
798
802
|
* @param {string} label - Text som visas på knappen.
|
|
799
803
|
* @param {string} className - Extra CSS-klasser för knappen.
|
|
804
|
+
* @param {string} activatedLanguage - Aktiverat språk.
|
|
800
805
|
*/
|
|
801
806
|
declare const StartApplicationButton: React$1.FC<StartApplicationButtonProps>;
|
|
802
807
|
|
|
@@ -857,14 +862,16 @@ declare const ValidationErrorSummaryList: React$1.FC<ValidationErrorSummaryListP
|
|
|
857
862
|
|
|
858
863
|
interface FormStatusMessagesProps {
|
|
859
864
|
formStatus: string;
|
|
865
|
+
activatedLanguage?: string;
|
|
860
866
|
}
|
|
861
867
|
/**
|
|
862
868
|
* Visar ett error-meddelande om formuläret misslyckas att skicka in, dvs. status är
|
|
863
869
|
* failed. Läser upp att formuläret laddas för skärmläsare när status är loading.
|
|
864
870
|
*
|
|
865
871
|
* @param {string} formStatus Nuvarande status för formuläret.
|
|
872
|
+
* @param {string} [activatedLanguage='sv'] Den aktiverade språkkoden (default är svenska).
|
|
866
873
|
*
|
|
867
874
|
*/
|
|
868
875
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
869
876
|
|
|
870
|
-
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,
|
|
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;
|
|
@@ -181,17 +191,6 @@ interface SingleCheckboxProps {
|
|
|
181
191
|
|
|
182
192
|
declare const SingleCheckbox: FC<SingleCheckboxProps>;
|
|
183
193
|
|
|
184
|
-
interface InfoTextStandardProps {
|
|
185
|
-
infoText: string;
|
|
186
|
-
selectedValue?: string;
|
|
187
|
-
activatedLanguage?: string;
|
|
188
|
-
questionId: string;
|
|
189
|
-
connectedToSelect?: boolean;
|
|
190
|
-
hideStepperButtons?: boolean;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
declare const InfoTextStandard: FC<InfoTextStandardProps>;
|
|
194
|
-
|
|
195
194
|
/**
|
|
196
195
|
* Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
|
|
197
196
|
*
|
|
@@ -669,7 +668,7 @@ declare const useCookieConsent: ({ cookieName, choiceKey, expiryYears, onConsent
|
|
|
669
668
|
};
|
|
670
669
|
|
|
671
670
|
interface QuestionRendererProps {
|
|
672
|
-
question:
|
|
671
|
+
question: any;
|
|
673
672
|
handleQuestionInputChange: (question: any, event: React$1.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
674
673
|
activatedLanguage?: string;
|
|
675
674
|
showPreview?: boolean;
|
|
@@ -739,6 +738,7 @@ interface CookieBannerProps {
|
|
|
739
738
|
onClose?: () => void;
|
|
740
739
|
acceptCookies: () => void;
|
|
741
740
|
rejectCookies: () => void;
|
|
741
|
+
activatedLanguage?: string;
|
|
742
742
|
}
|
|
743
743
|
|
|
744
744
|
declare const CookieBanner: React$1.FC<CookieBannerProps>;
|
|
@@ -764,7 +764,10 @@ interface ModalProps {
|
|
|
764
764
|
|
|
765
765
|
declare const Modal: FC<ModalProps>;
|
|
766
766
|
|
|
767
|
-
|
|
767
|
+
type SkipLinkProps = {
|
|
768
|
+
activatedLanguage?: string;
|
|
769
|
+
};
|
|
770
|
+
declare const SkipLink: FC<SkipLinkProps>;
|
|
768
771
|
|
|
769
772
|
interface PrincipleOfPublicityProps {
|
|
770
773
|
activatedLanguage?: string;
|
|
@@ -790,6 +793,7 @@ interface StartApplicationButtonProps {
|
|
|
790
793
|
onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
791
794
|
label?: string;
|
|
792
795
|
className?: string;
|
|
796
|
+
activatedLanguage?: string;
|
|
793
797
|
}
|
|
794
798
|
/**
|
|
795
799
|
* En standardiserad knapp för att starta e-tjänsten.
|
|
@@ -797,6 +801,7 @@ interface StartApplicationButtonProps {
|
|
|
797
801
|
* @param {Function} onClick - Funktion som körs när användaren klickar på knappen.
|
|
798
802
|
* @param {string} label - Text som visas på knappen.
|
|
799
803
|
* @param {string} className - Extra CSS-klasser för knappen.
|
|
804
|
+
* @param {string} activatedLanguage - Aktiverat språk.
|
|
800
805
|
*/
|
|
801
806
|
declare const StartApplicationButton: React$1.FC<StartApplicationButtonProps>;
|
|
802
807
|
|
|
@@ -857,14 +862,16 @@ declare const ValidationErrorSummaryList: React$1.FC<ValidationErrorSummaryListP
|
|
|
857
862
|
|
|
858
863
|
interface FormStatusMessagesProps {
|
|
859
864
|
formStatus: string;
|
|
865
|
+
activatedLanguage?: string;
|
|
860
866
|
}
|
|
861
867
|
/**
|
|
862
868
|
* Visar ett error-meddelande om formuläret misslyckas att skicka in, dvs. status är
|
|
863
869
|
* failed. Läser upp att formuläret laddas för skärmläsare när status är loading.
|
|
864
870
|
*
|
|
865
871
|
* @param {string} formStatus Nuvarande status för formuläret.
|
|
872
|
+
* @param {string} [activatedLanguage='sv'] Den aktiverade språkkoden (default är svenska).
|
|
866
873
|
*
|
|
867
874
|
*/
|
|
868
875
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
869
876
|
|
|
870
|
-
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,
|
|
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 };
|