optimized-react-component-library-xyz123 1.1.14 → 1.1.16
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 +35 -3
- package/dist/index.d.ts +35 -3
- package/dist/index.js +250 -57
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +250 -54
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +18 -0
- package/src/css/mobileView.css +1 -1
- package/src/css/questions.css +1 -1
- package/src/css/styles.css +89 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, { FC, RefObject } from 'react';
|
|
1
|
+
import React$1, { ComponentType, SVGProps, FC, RefObject, ElementType, ReactNode } 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';
|
|
@@ -46,7 +46,11 @@ interface IOption {
|
|
|
46
46
|
interface IPTSLink {
|
|
47
47
|
title: string;
|
|
48
48
|
url: string;
|
|
49
|
-
ariaLabel
|
|
49
|
+
ariaLabel?: string;
|
|
50
|
+
activatedLanguage?: string;
|
|
51
|
+
openTarget?: string;
|
|
52
|
+
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
53
|
+
iconType?: string;
|
|
50
54
|
}
|
|
51
55
|
interface IStepObject {
|
|
52
56
|
step: number;
|
|
@@ -809,6 +813,7 @@ interface NavigationProps {
|
|
|
809
813
|
menuLinks?: INavigationLink[];
|
|
810
814
|
isOpen: boolean;
|
|
811
815
|
openButtonRef: RefObject<HTMLButtonElement | null>;
|
|
816
|
+
linkComponent?: ElementType;
|
|
812
817
|
}
|
|
813
818
|
type Locale = 'sv' | 'en';
|
|
814
819
|
type Label = Record<Locale, string>;
|
|
@@ -846,6 +851,33 @@ type SkipLinkProps = {
|
|
|
846
851
|
};
|
|
847
852
|
declare const SkipLink: FC<SkipLinkProps>;
|
|
848
853
|
|
|
854
|
+
interface LinkProps extends IPTSLink {
|
|
855
|
+
customClass?: string;
|
|
856
|
+
openTarget?: string;
|
|
857
|
+
useDownLoad?: boolean;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
declare const LinkStandard: FC<LinkProps>;
|
|
861
|
+
|
|
862
|
+
interface LinkListProps {
|
|
863
|
+
linkArray: IPTSLink[];
|
|
864
|
+
activatedLanguage?: string;
|
|
865
|
+
customCss?: string;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
declare const LinkList: FC<LinkListProps>;
|
|
869
|
+
|
|
870
|
+
interface CollapseProps {
|
|
871
|
+
title: ReactNode;
|
|
872
|
+
children: ReactNode;
|
|
873
|
+
isOpen?: boolean;
|
|
874
|
+
defaultOpen?: boolean;
|
|
875
|
+
onToggle?: (open: boolean) => void;
|
|
876
|
+
id?: string;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
declare const Collapse: FC<CollapseProps>;
|
|
880
|
+
|
|
849
881
|
interface PrincipleOfPublicityProps {
|
|
850
882
|
activatedLanguage?: string;
|
|
851
883
|
}
|
|
@@ -952,4 +984,4 @@ interface FormStatusMessagesProps {
|
|
|
952
984
|
*/
|
|
953
985
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
954
986
|
|
|
955
|
-
export { AddFiles as AddFilesStandard, BreadCrumbs, 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, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SearchBar, 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 };
|
|
987
|
+
export { AddFiles as AddFilesStandard, BreadCrumbs, CheckboxGroup as CheckboxGroupStandard, Collapse, 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, LinkList as LinkListStandard, LinkStandard, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SearchBar, 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, { FC, RefObject } from 'react';
|
|
1
|
+
import React$1, { ComponentType, SVGProps, FC, RefObject, ElementType, ReactNode } 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';
|
|
@@ -46,7 +46,11 @@ interface IOption {
|
|
|
46
46
|
interface IPTSLink {
|
|
47
47
|
title: string;
|
|
48
48
|
url: string;
|
|
49
|
-
ariaLabel
|
|
49
|
+
ariaLabel?: string;
|
|
50
|
+
activatedLanguage?: string;
|
|
51
|
+
openTarget?: string;
|
|
52
|
+
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
53
|
+
iconType?: string;
|
|
50
54
|
}
|
|
51
55
|
interface IStepObject {
|
|
52
56
|
step: number;
|
|
@@ -809,6 +813,7 @@ interface NavigationProps {
|
|
|
809
813
|
menuLinks?: INavigationLink[];
|
|
810
814
|
isOpen: boolean;
|
|
811
815
|
openButtonRef: RefObject<HTMLButtonElement | null>;
|
|
816
|
+
linkComponent?: ElementType;
|
|
812
817
|
}
|
|
813
818
|
type Locale = 'sv' | 'en';
|
|
814
819
|
type Label = Record<Locale, string>;
|
|
@@ -846,6 +851,33 @@ type SkipLinkProps = {
|
|
|
846
851
|
};
|
|
847
852
|
declare const SkipLink: FC<SkipLinkProps>;
|
|
848
853
|
|
|
854
|
+
interface LinkProps extends IPTSLink {
|
|
855
|
+
customClass?: string;
|
|
856
|
+
openTarget?: string;
|
|
857
|
+
useDownLoad?: boolean;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
declare const LinkStandard: FC<LinkProps>;
|
|
861
|
+
|
|
862
|
+
interface LinkListProps {
|
|
863
|
+
linkArray: IPTSLink[];
|
|
864
|
+
activatedLanguage?: string;
|
|
865
|
+
customCss?: string;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
declare const LinkList: FC<LinkListProps>;
|
|
869
|
+
|
|
870
|
+
interface CollapseProps {
|
|
871
|
+
title: ReactNode;
|
|
872
|
+
children: ReactNode;
|
|
873
|
+
isOpen?: boolean;
|
|
874
|
+
defaultOpen?: boolean;
|
|
875
|
+
onToggle?: (open: boolean) => void;
|
|
876
|
+
id?: string;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
declare const Collapse: FC<CollapseProps>;
|
|
880
|
+
|
|
849
881
|
interface PrincipleOfPublicityProps {
|
|
850
882
|
activatedLanguage?: string;
|
|
851
883
|
}
|
|
@@ -952,4 +984,4 @@ interface FormStatusMessagesProps {
|
|
|
952
984
|
*/
|
|
953
985
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
954
986
|
|
|
955
|
-
export { AddFiles as AddFilesStandard, BreadCrumbs, 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, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SearchBar, 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 };
|
|
987
|
+
export { AddFiles as AddFilesStandard, BreadCrumbs, CheckboxGroup as CheckboxGroupStandard, Collapse, 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, LinkList as LinkListStandard, LinkStandard, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SearchBar, 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 };
|