optimized-react-component-library-xyz123 2.2.12 → 2.3.0
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 -3
- package/dist/index.d.ts +20 -3
- package/dist/index.js +446 -378
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +433 -367
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/styles.css +33 -7
package/dist/index.d.mts
CHANGED
|
@@ -8,6 +8,7 @@ interface IApplicationContent {
|
|
|
8
8
|
headline?: string;
|
|
9
9
|
body?: string;
|
|
10
10
|
linksForMoreInfo?: Array<IPTSLink>;
|
|
11
|
+
alertInText?: string;
|
|
11
12
|
pageTitle?: string;
|
|
12
13
|
textblocks?: Array<ITextBlock>;
|
|
13
14
|
textAboveStartButton?: string;
|
|
@@ -28,6 +29,7 @@ interface ITextBlock {
|
|
|
28
29
|
headline?: string;
|
|
29
30
|
body?: string;
|
|
30
31
|
linksForMoreInfo?: Array<IPTSLink>;
|
|
32
|
+
alertInText?: string;
|
|
31
33
|
pageTitle?: string;
|
|
32
34
|
textAboveStartButton?: string;
|
|
33
35
|
}
|
|
@@ -46,7 +48,7 @@ interface IOption {
|
|
|
46
48
|
interface IPTSLink {
|
|
47
49
|
title: string;
|
|
48
50
|
url: string;
|
|
49
|
-
ariaLabel
|
|
51
|
+
ariaLabel?: string;
|
|
50
52
|
}
|
|
51
53
|
interface IStepObject {
|
|
52
54
|
step: number;
|
|
@@ -90,6 +92,7 @@ interface IQuestion {
|
|
|
90
92
|
questionGroupType?: string;
|
|
91
93
|
dependsOnOtherQuestion?: Array<any>;
|
|
92
94
|
questionExtraAttribute?: IQuestionExtraAttribute;
|
|
95
|
+
infoOnly?: ITextBlock;
|
|
93
96
|
languageSupport: Array<any>;
|
|
94
97
|
}
|
|
95
98
|
interface IQuestionExtraAttribute {
|
|
@@ -137,7 +140,6 @@ interface IAppSettings {
|
|
|
137
140
|
appUsesNavigation: boolean;
|
|
138
141
|
appCookies?: IAppSettingsCookies;
|
|
139
142
|
appUsesPreview?: boolean;
|
|
140
|
-
appUsesAsterisk?: boolean;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
interface RadioProps {
|
|
@@ -207,6 +209,15 @@ interface SingleCheckboxProps {
|
|
|
207
209
|
|
|
208
210
|
declare const SingleCheckbox: FC<SingleCheckboxProps>;
|
|
209
211
|
|
|
212
|
+
interface InfoOnlyProps {
|
|
213
|
+
question: IQuestion;
|
|
214
|
+
handleQuestionInputChange: any;
|
|
215
|
+
showPreview?: boolean;
|
|
216
|
+
activatedLanguage?: string;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare const InputInfoOnly: FC<InfoOnlyProps>;
|
|
220
|
+
|
|
210
221
|
/**
|
|
211
222
|
* Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
|
|
212
223
|
*
|
|
@@ -793,6 +804,12 @@ type SkipLinkProps = {
|
|
|
793
804
|
};
|
|
794
805
|
declare const SkipLink: FC<SkipLinkProps>;
|
|
795
806
|
|
|
807
|
+
interface AlertInTextProps {
|
|
808
|
+
content: string;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
declare const AlertInTextStandard: FC<AlertInTextProps>;
|
|
812
|
+
|
|
796
813
|
interface PrincipleOfPublicityProps {
|
|
797
814
|
activatedLanguage?: string;
|
|
798
815
|
}
|
|
@@ -899,4 +916,4 @@ interface FormStatusMessagesProps {
|
|
|
899
916
|
*/
|
|
900
917
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
901
918
|
|
|
902
|
-
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 };
|
|
919
|
+
export { AddFiles as AddFilesStandard, AlertInTextStandard, 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, InputInfoOnly as InfoOnlyStandard, 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
|
@@ -8,6 +8,7 @@ interface IApplicationContent {
|
|
|
8
8
|
headline?: string;
|
|
9
9
|
body?: string;
|
|
10
10
|
linksForMoreInfo?: Array<IPTSLink>;
|
|
11
|
+
alertInText?: string;
|
|
11
12
|
pageTitle?: string;
|
|
12
13
|
textblocks?: Array<ITextBlock>;
|
|
13
14
|
textAboveStartButton?: string;
|
|
@@ -28,6 +29,7 @@ interface ITextBlock {
|
|
|
28
29
|
headline?: string;
|
|
29
30
|
body?: string;
|
|
30
31
|
linksForMoreInfo?: Array<IPTSLink>;
|
|
32
|
+
alertInText?: string;
|
|
31
33
|
pageTitle?: string;
|
|
32
34
|
textAboveStartButton?: string;
|
|
33
35
|
}
|
|
@@ -46,7 +48,7 @@ interface IOption {
|
|
|
46
48
|
interface IPTSLink {
|
|
47
49
|
title: string;
|
|
48
50
|
url: string;
|
|
49
|
-
ariaLabel
|
|
51
|
+
ariaLabel?: string;
|
|
50
52
|
}
|
|
51
53
|
interface IStepObject {
|
|
52
54
|
step: number;
|
|
@@ -90,6 +92,7 @@ interface IQuestion {
|
|
|
90
92
|
questionGroupType?: string;
|
|
91
93
|
dependsOnOtherQuestion?: Array<any>;
|
|
92
94
|
questionExtraAttribute?: IQuestionExtraAttribute;
|
|
95
|
+
infoOnly?: ITextBlock;
|
|
93
96
|
languageSupport: Array<any>;
|
|
94
97
|
}
|
|
95
98
|
interface IQuestionExtraAttribute {
|
|
@@ -137,7 +140,6 @@ interface IAppSettings {
|
|
|
137
140
|
appUsesNavigation: boolean;
|
|
138
141
|
appCookies?: IAppSettingsCookies;
|
|
139
142
|
appUsesPreview?: boolean;
|
|
140
|
-
appUsesAsterisk?: boolean;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
interface RadioProps {
|
|
@@ -207,6 +209,15 @@ interface SingleCheckboxProps {
|
|
|
207
209
|
|
|
208
210
|
declare const SingleCheckbox: FC<SingleCheckboxProps>;
|
|
209
211
|
|
|
212
|
+
interface InfoOnlyProps {
|
|
213
|
+
question: IQuestion;
|
|
214
|
+
handleQuestionInputChange: any;
|
|
215
|
+
showPreview?: boolean;
|
|
216
|
+
activatedLanguage?: string;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare const InputInfoOnly: FC<InfoOnlyProps>;
|
|
220
|
+
|
|
210
221
|
/**
|
|
211
222
|
* Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
|
|
212
223
|
*
|
|
@@ -793,6 +804,12 @@ type SkipLinkProps = {
|
|
|
793
804
|
};
|
|
794
805
|
declare const SkipLink: FC<SkipLinkProps>;
|
|
795
806
|
|
|
807
|
+
interface AlertInTextProps {
|
|
808
|
+
content: string;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
declare const AlertInTextStandard: FC<AlertInTextProps>;
|
|
812
|
+
|
|
796
813
|
interface PrincipleOfPublicityProps {
|
|
797
814
|
activatedLanguage?: string;
|
|
798
815
|
}
|
|
@@ -899,4 +916,4 @@ interface FormStatusMessagesProps {
|
|
|
899
916
|
*/
|
|
900
917
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
901
918
|
|
|
902
|
-
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 };
|
|
919
|
+
export { AddFiles as AddFilesStandard, AlertInTextStandard, 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, InputInfoOnly as InfoOnlyStandard, 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 };
|