optimized-react-component-library-xyz123 1.1.8 → 1.1.10
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 +54 -1
- package/dist/index.d.ts +54 -1
- package/dist/index.js +866 -61
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +860 -59
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -6
- package/src/css/darkMode.css +83 -2
- package/src/css/mobileView.css +140 -0
- package/src/css/questions.css +1 -1
- package/src/css/styles.css +308 -2
- package/src/css/FooterStandard.css +0 -169
package/dist/index.d.mts
CHANGED
|
@@ -779,6 +779,59 @@ interface HeaderProps {
|
|
|
779
779
|
|
|
780
780
|
declare const Header: FC<HeaderProps>;
|
|
781
781
|
|
|
782
|
+
interface NavigationHeaderProps {
|
|
783
|
+
SetActivatedLanguage?: (language: string) => void;
|
|
784
|
+
headline?: string;
|
|
785
|
+
homelink: string;
|
|
786
|
+
activatedLanguage: string;
|
|
787
|
+
useLanguage: boolean;
|
|
788
|
+
useNavigationMenu: boolean;
|
|
789
|
+
useSearch: boolean;
|
|
790
|
+
useBreadCrumbs: boolean;
|
|
791
|
+
showNavigationCloseButton?: boolean;
|
|
792
|
+
menuLinks: NavigationItem[];
|
|
793
|
+
}
|
|
794
|
+
type NavigationItem = {
|
|
795
|
+
label: {
|
|
796
|
+
sv: string;
|
|
797
|
+
en: string;
|
|
798
|
+
};
|
|
799
|
+
href: string;
|
|
800
|
+
children?: NavigationItem[];
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
declare const NavigationHeader: FC<NavigationHeaderProps>;
|
|
804
|
+
|
|
805
|
+
interface NavigationProps {
|
|
806
|
+
setIsMenyOpen?: (open: boolean) => void;
|
|
807
|
+
showCloseButton?: boolean;
|
|
808
|
+
activatedLanguage?: string;
|
|
809
|
+
menuLinks?: INavigationLink[];
|
|
810
|
+
}
|
|
811
|
+
type Locale = 'sv' | 'en';
|
|
812
|
+
type Label = Record<Locale, string>;
|
|
813
|
+
interface INavigationLink {
|
|
814
|
+
label: Label;
|
|
815
|
+
href: string;
|
|
816
|
+
children?: INavigationLink[];
|
|
817
|
+
openInNewWindow?: boolean;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
declare const Navigation: FC<NavigationProps>;
|
|
821
|
+
|
|
822
|
+
interface BreadCrumbsProps {
|
|
823
|
+
activatedLanguage: string;
|
|
824
|
+
onLinkClick?: (e: React.MouseEvent) => void;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
declare const BreadCrumbs: FC<BreadCrumbsProps>;
|
|
828
|
+
|
|
829
|
+
interface SearchBarProps {
|
|
830
|
+
activatedLanguage: string;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
declare const SearchBar: FC<SearchBarProps>;
|
|
834
|
+
|
|
782
835
|
interface ModalProps {
|
|
783
836
|
showModal: boolean;
|
|
784
837
|
activatedLanguage?: string;
|
|
@@ -897,4 +950,4 @@ interface FormStatusMessagesProps {
|
|
|
897
950
|
*/
|
|
898
951
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
899
952
|
|
|
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 };
|
|
953
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -779,6 +779,59 @@ interface HeaderProps {
|
|
|
779
779
|
|
|
780
780
|
declare const Header: FC<HeaderProps>;
|
|
781
781
|
|
|
782
|
+
interface NavigationHeaderProps {
|
|
783
|
+
SetActivatedLanguage?: (language: string) => void;
|
|
784
|
+
headline?: string;
|
|
785
|
+
homelink: string;
|
|
786
|
+
activatedLanguage: string;
|
|
787
|
+
useLanguage: boolean;
|
|
788
|
+
useNavigationMenu: boolean;
|
|
789
|
+
useSearch: boolean;
|
|
790
|
+
useBreadCrumbs: boolean;
|
|
791
|
+
showNavigationCloseButton?: boolean;
|
|
792
|
+
menuLinks: NavigationItem[];
|
|
793
|
+
}
|
|
794
|
+
type NavigationItem = {
|
|
795
|
+
label: {
|
|
796
|
+
sv: string;
|
|
797
|
+
en: string;
|
|
798
|
+
};
|
|
799
|
+
href: string;
|
|
800
|
+
children?: NavigationItem[];
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
declare const NavigationHeader: FC<NavigationHeaderProps>;
|
|
804
|
+
|
|
805
|
+
interface NavigationProps {
|
|
806
|
+
setIsMenyOpen?: (open: boolean) => void;
|
|
807
|
+
showCloseButton?: boolean;
|
|
808
|
+
activatedLanguage?: string;
|
|
809
|
+
menuLinks?: INavigationLink[];
|
|
810
|
+
}
|
|
811
|
+
type Locale = 'sv' | 'en';
|
|
812
|
+
type Label = Record<Locale, string>;
|
|
813
|
+
interface INavigationLink {
|
|
814
|
+
label: Label;
|
|
815
|
+
href: string;
|
|
816
|
+
children?: INavigationLink[];
|
|
817
|
+
openInNewWindow?: boolean;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
declare const Navigation: FC<NavigationProps>;
|
|
821
|
+
|
|
822
|
+
interface BreadCrumbsProps {
|
|
823
|
+
activatedLanguage: string;
|
|
824
|
+
onLinkClick?: (e: React.MouseEvent) => void;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
declare const BreadCrumbs: FC<BreadCrumbsProps>;
|
|
828
|
+
|
|
829
|
+
interface SearchBarProps {
|
|
830
|
+
activatedLanguage: string;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
declare const SearchBar: FC<SearchBarProps>;
|
|
834
|
+
|
|
782
835
|
interface ModalProps {
|
|
783
836
|
showModal: boolean;
|
|
784
837
|
activatedLanguage?: string;
|
|
@@ -897,4 +950,4 @@ interface FormStatusMessagesProps {
|
|
|
897
950
|
*/
|
|
898
951
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
899
952
|
|
|
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 };
|
|
953
|
+
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 };
|