optimized-react-component-library-xyz123 1.1.20 → 1.1.23
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 +3 -93
- package/dist/index.d.ts +3 -93
- package/dist/index.js +61 -1074
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +89 -1100
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -3
- package/src/css/darkMode.css +2 -95
- package/src/css/mobileView.css +0 -64
- package/src/css/styles.css +2 -364
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, {
|
|
1
|
+
import React$1, { FC } 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,11 +46,7 @@ interface IOption {
|
|
|
46
46
|
interface IPTSLink {
|
|
47
47
|
title: string;
|
|
48
48
|
url: string;
|
|
49
|
-
ariaLabel
|
|
50
|
-
activatedLanguage?: string;
|
|
51
|
-
openTarget?: string;
|
|
52
|
-
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
53
|
-
iconType?: string;
|
|
49
|
+
ariaLabel: string;
|
|
54
50
|
}
|
|
55
51
|
interface IStepObject {
|
|
56
52
|
step: number;
|
|
@@ -141,14 +137,6 @@ interface IAppSettings {
|
|
|
141
137
|
appUsesNavigation: boolean;
|
|
142
138
|
appCookies?: IAppSettingsCookies;
|
|
143
139
|
}
|
|
144
|
-
type INavigationItem = {
|
|
145
|
-
label: {
|
|
146
|
-
sv: string;
|
|
147
|
-
en: string;
|
|
148
|
-
};
|
|
149
|
-
href: string;
|
|
150
|
-
children?: INavigationItem[];
|
|
151
|
-
};
|
|
152
140
|
|
|
153
141
|
interface RadioProps {
|
|
154
142
|
question: IQuestion;
|
|
@@ -791,55 +779,6 @@ interface HeaderProps {
|
|
|
791
779
|
|
|
792
780
|
declare const Header: FC<HeaderProps>;
|
|
793
781
|
|
|
794
|
-
interface NavigationHeaderProps {
|
|
795
|
-
SetActivatedLanguage?: (language: string) => void;
|
|
796
|
-
headline?: string;
|
|
797
|
-
homelink?: string;
|
|
798
|
-
activatedLanguage?: string;
|
|
799
|
-
useLanguage?: boolean;
|
|
800
|
-
useNavigationMenu: boolean;
|
|
801
|
-
useSearch?: boolean;
|
|
802
|
-
useBreadCrumbs?: boolean;
|
|
803
|
-
showNavigationCloseButton?: boolean;
|
|
804
|
-
menuLinks: INavigationItem[];
|
|
805
|
-
linkComponent?: ElementType;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
declare const NavigationHeader: FC<NavigationHeaderProps>;
|
|
809
|
-
|
|
810
|
-
interface NavigationProps {
|
|
811
|
-
setIsMenyOpen?: (open: boolean) => void;
|
|
812
|
-
showCloseButton?: boolean;
|
|
813
|
-
activatedLanguage?: string;
|
|
814
|
-
menuLinks?: INavigationLink[];
|
|
815
|
-
isOpen: boolean;
|
|
816
|
-
openButtonRef: RefObject<HTMLButtonElement | null>;
|
|
817
|
-
linkComponent?: ElementType;
|
|
818
|
-
}
|
|
819
|
-
type Locale = 'sv' | 'en';
|
|
820
|
-
type Label = Record<Locale, string>;
|
|
821
|
-
interface INavigationLink {
|
|
822
|
-
label: Label;
|
|
823
|
-
href: string;
|
|
824
|
-
children?: INavigationLink[];
|
|
825
|
-
openInNewWindow?: boolean;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
declare const Navigation: FC<NavigationProps>;
|
|
829
|
-
|
|
830
|
-
interface BreadCrumbsProps {
|
|
831
|
-
activatedLanguage: string;
|
|
832
|
-
onLinkClick?: (e: React.MouseEvent) => void;
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
declare const BreadCrumbs: FC<BreadCrumbsProps>;
|
|
836
|
-
|
|
837
|
-
interface SearchBarProps {
|
|
838
|
-
activatedLanguage: string;
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
declare const SearchBar: FC<SearchBarProps>;
|
|
842
|
-
|
|
843
782
|
interface ModalProps {
|
|
844
783
|
showModal: boolean;
|
|
845
784
|
activatedLanguage?: string;
|
|
@@ -852,35 +791,6 @@ type SkipLinkProps = {
|
|
|
852
791
|
};
|
|
853
792
|
declare const SkipLink: FC<SkipLinkProps>;
|
|
854
793
|
|
|
855
|
-
interface LinkProps extends IPTSLink {
|
|
856
|
-
customClass?: string;
|
|
857
|
-
openTarget?: string;
|
|
858
|
-
useDownLoad?: boolean;
|
|
859
|
-
linkComponent?: ElementType;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
declare const LinkStandard: FC<LinkProps>;
|
|
863
|
-
|
|
864
|
-
interface LinkListProps {
|
|
865
|
-
linkArray: IPTSLink[];
|
|
866
|
-
activatedLanguage?: string;
|
|
867
|
-
customCss?: string;
|
|
868
|
-
linkComponent?: ElementType;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
declare const LinkList: FC<LinkListProps>;
|
|
872
|
-
|
|
873
|
-
interface CollapseProps {
|
|
874
|
-
title: ReactNode;
|
|
875
|
-
children: ReactNode;
|
|
876
|
-
isOpen?: boolean;
|
|
877
|
-
defaultOpen?: boolean;
|
|
878
|
-
onToggle?: (open: boolean) => void;
|
|
879
|
-
id?: string;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
declare const Collapse: FC<CollapseProps>;
|
|
883
|
-
|
|
884
794
|
interface PrincipleOfPublicityProps {
|
|
885
795
|
activatedLanguage?: string;
|
|
886
796
|
}
|
|
@@ -987,4 +897,4 @@ interface FormStatusMessagesProps {
|
|
|
987
897
|
*/
|
|
988
898
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
989
899
|
|
|
990
|
-
export { AddFiles as AddFilesStandard,
|
|
900
|
+
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, {
|
|
1
|
+
import React$1, { FC } 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,11 +46,7 @@ interface IOption {
|
|
|
46
46
|
interface IPTSLink {
|
|
47
47
|
title: string;
|
|
48
48
|
url: string;
|
|
49
|
-
ariaLabel
|
|
50
|
-
activatedLanguage?: string;
|
|
51
|
-
openTarget?: string;
|
|
52
|
-
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
53
|
-
iconType?: string;
|
|
49
|
+
ariaLabel: string;
|
|
54
50
|
}
|
|
55
51
|
interface IStepObject {
|
|
56
52
|
step: number;
|
|
@@ -141,14 +137,6 @@ interface IAppSettings {
|
|
|
141
137
|
appUsesNavigation: boolean;
|
|
142
138
|
appCookies?: IAppSettingsCookies;
|
|
143
139
|
}
|
|
144
|
-
type INavigationItem = {
|
|
145
|
-
label: {
|
|
146
|
-
sv: string;
|
|
147
|
-
en: string;
|
|
148
|
-
};
|
|
149
|
-
href: string;
|
|
150
|
-
children?: INavigationItem[];
|
|
151
|
-
};
|
|
152
140
|
|
|
153
141
|
interface RadioProps {
|
|
154
142
|
question: IQuestion;
|
|
@@ -791,55 +779,6 @@ interface HeaderProps {
|
|
|
791
779
|
|
|
792
780
|
declare const Header: FC<HeaderProps>;
|
|
793
781
|
|
|
794
|
-
interface NavigationHeaderProps {
|
|
795
|
-
SetActivatedLanguage?: (language: string) => void;
|
|
796
|
-
headline?: string;
|
|
797
|
-
homelink?: string;
|
|
798
|
-
activatedLanguage?: string;
|
|
799
|
-
useLanguage?: boolean;
|
|
800
|
-
useNavigationMenu: boolean;
|
|
801
|
-
useSearch?: boolean;
|
|
802
|
-
useBreadCrumbs?: boolean;
|
|
803
|
-
showNavigationCloseButton?: boolean;
|
|
804
|
-
menuLinks: INavigationItem[];
|
|
805
|
-
linkComponent?: ElementType;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
declare const NavigationHeader: FC<NavigationHeaderProps>;
|
|
809
|
-
|
|
810
|
-
interface NavigationProps {
|
|
811
|
-
setIsMenyOpen?: (open: boolean) => void;
|
|
812
|
-
showCloseButton?: boolean;
|
|
813
|
-
activatedLanguage?: string;
|
|
814
|
-
menuLinks?: INavigationLink[];
|
|
815
|
-
isOpen: boolean;
|
|
816
|
-
openButtonRef: RefObject<HTMLButtonElement | null>;
|
|
817
|
-
linkComponent?: ElementType;
|
|
818
|
-
}
|
|
819
|
-
type Locale = 'sv' | 'en';
|
|
820
|
-
type Label = Record<Locale, string>;
|
|
821
|
-
interface INavigationLink {
|
|
822
|
-
label: Label;
|
|
823
|
-
href: string;
|
|
824
|
-
children?: INavigationLink[];
|
|
825
|
-
openInNewWindow?: boolean;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
declare const Navigation: FC<NavigationProps>;
|
|
829
|
-
|
|
830
|
-
interface BreadCrumbsProps {
|
|
831
|
-
activatedLanguage: string;
|
|
832
|
-
onLinkClick?: (e: React.MouseEvent) => void;
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
declare const BreadCrumbs: FC<BreadCrumbsProps>;
|
|
836
|
-
|
|
837
|
-
interface SearchBarProps {
|
|
838
|
-
activatedLanguage: string;
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
declare const SearchBar: FC<SearchBarProps>;
|
|
842
|
-
|
|
843
782
|
interface ModalProps {
|
|
844
783
|
showModal: boolean;
|
|
845
784
|
activatedLanguage?: string;
|
|
@@ -852,35 +791,6 @@ type SkipLinkProps = {
|
|
|
852
791
|
};
|
|
853
792
|
declare const SkipLink: FC<SkipLinkProps>;
|
|
854
793
|
|
|
855
|
-
interface LinkProps extends IPTSLink {
|
|
856
|
-
customClass?: string;
|
|
857
|
-
openTarget?: string;
|
|
858
|
-
useDownLoad?: boolean;
|
|
859
|
-
linkComponent?: ElementType;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
declare const LinkStandard: FC<LinkProps>;
|
|
863
|
-
|
|
864
|
-
interface LinkListProps {
|
|
865
|
-
linkArray: IPTSLink[];
|
|
866
|
-
activatedLanguage?: string;
|
|
867
|
-
customCss?: string;
|
|
868
|
-
linkComponent?: ElementType;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
declare const LinkList: FC<LinkListProps>;
|
|
872
|
-
|
|
873
|
-
interface CollapseProps {
|
|
874
|
-
title: ReactNode;
|
|
875
|
-
children: ReactNode;
|
|
876
|
-
isOpen?: boolean;
|
|
877
|
-
defaultOpen?: boolean;
|
|
878
|
-
onToggle?: (open: boolean) => void;
|
|
879
|
-
id?: string;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
declare const Collapse: FC<CollapseProps>;
|
|
883
|
-
|
|
884
794
|
interface PrincipleOfPublicityProps {
|
|
885
795
|
activatedLanguage?: string;
|
|
886
796
|
}
|
|
@@ -987,4 +897,4 @@ interface FormStatusMessagesProps {
|
|
|
987
897
|
*/
|
|
988
898
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
989
899
|
|
|
990
|
-
export { AddFiles as AddFilesStandard,
|
|
900
|
+
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 };
|