@scbt-ecom/ui 0.30.1 → 0.31.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/{CustomLink-CKaoTS8A.js → CustomLink-DmltAHJD.js} +5 -5
- package/dist/CustomLink-DmltAHJD.js.map +1 -0
- package/dist/mergeRefs-qDToYXtM.js +12 -0
- package/dist/mergeRefs-qDToYXtM.js.map +1 -0
- package/dist/shared/ui/accordion/Accordion.d.ts +6 -8
- package/dist/shared/ui/accordion/index.d.ts +1 -1
- package/dist/shared/ui/accordion/ui/AccordionHeader.d.ts +9 -4
- package/dist/shared/ui/badge/Badge.d.ts +2 -2
- package/dist/shared/ui/brandLogos/BrandLogos.d.ts +3 -3
- package/dist/shared/ui/breadcrumbs/Breadcrumbs.d.ts +6 -6
- package/dist/shared/ui/button/Button.d.ts +3 -3
- package/dist/shared/ui/button/index.d.ts +1 -1
- package/dist/shared/ui/button/model/helpers.d.ts +2 -2
- package/dist/shared/ui/buttonIcon/ButtonIcon.d.ts +4 -4
- package/dist/shared/ui/customLink/CustomLink.d.ts +7 -7
- package/dist/shared/ui/document/Document.d.ts +3 -3
- package/dist/shared/ui/floatButton/FloatButton.d.ts +6 -6
- package/dist/shared/ui/formElements/controlled/index.d.ts +7 -11
- package/dist/shared/ui/formElements/controlled/input/InputControl.d.ts +1 -0
- package/dist/shared/ui/formElements/controlled/textarea/TextareaControl.d.ts +1 -0
- package/dist/shared/ui/formElements/uncontrolled/checkbox/Checkbox.d.ts +2 -1
- package/dist/shared/ui/formElements/uncontrolled/dayPicker/DayPicker.d.ts +15 -2
- package/dist/shared/ui/formElements/uncontrolled/index.d.ts +7 -12
- package/dist/shared/ui/formElements/uncontrolled/radio/RadioGroup.d.ts +2 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItem.d.ts +1 -2
- package/dist/shared/ui/formElements/uncontrolled/select/Select.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/select/ui/SelectItem.d.ts +3 -1
- package/dist/shared/ui/formElements/uncontrolled/textarea/Textarea.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/uploader/UploaderBase.d.ts +3 -3
- package/dist/shared/ui/heading/Heading.d.ts +2 -2
- package/dist/shared/ui/hint/Hint.d.ts +4 -4
- package/dist/shared/ui/icon/Icon.d.ts +2 -2
- package/dist/shared/ui/icon/index.d.ts +1 -1
- package/dist/shared/ui/keyboardShortcuts/KeyboardShortcuts.d.ts +4 -4
- package/dist/shared/ui/ligal/Ligal.d.ts +4 -4
- package/dist/shared/ui/loader/Loader.d.ts +2 -2
- package/dist/shared/ui/modal/Modal.d.ts +4 -4
- package/dist/shared/ui/modal/ui/ModalHeader.d.ts +2 -2
- package/dist/shared/ui/notification/Notification.d.ts +2 -2
- package/dist/shared/ui/notification/index.d.ts +1 -1
- package/dist/shared/ui/notification/ui/CustomToast.d.ts +3 -3
- package/dist/shared/ui/phoneView/PhoneView.d.ts +4 -4
- package/dist/shared/ui/popover/Popover.d.ts +6 -6
- package/dist/shared/ui/progressBar/ProgressBar.d.ts +2 -2
- package/dist/shared/ui/providers/NotificationProvider.d.ts +2 -2
- package/dist/shared/ui/providers/index.d.ts +1 -1
- package/dist/shared/ui/responsiveContainer/ResponsiveContainer.d.ts +2 -2
- package/dist/shared/ui/section/Section.d.ts +2 -2
- package/dist/shared/ui/skeleton/Skeleton.d.ts +2 -2
- package/dist/shared/ui/tabSwitcher/TabsSwitcher.d.ts +5 -5
- package/dist/shared/ui/tabSwitcher/model/types.d.ts +4 -4
- package/dist/shared/ui/tabSwitcher/ui/TabContent.d.ts +4 -4
- package/dist/shared/utils/typeGuards.d.ts +1 -1
- package/dist/shared/validation/base/base.constants.d.ts +17 -0
- package/dist/shared/validation/base/date.validators.d.ts +48 -0
- package/dist/shared/validation/base/email.validators.d.ts +34 -0
- package/dist/shared/validation/base/index.d.ts +1 -0
- package/dist/shared/validation/base/number.validators.d.ts +37 -0
- package/dist/shared/validation/base/phone.validators.d.ts +48 -0
- package/dist/shared/validation/base/select.validators.d.ts +60 -0
- package/dist/shared/validation/base/string.validators.d.ts +45 -0
- package/dist/shared/validation/base/union.validators.d.ts +35 -0
- package/dist/{typeGuards-CaNkXs7N.js → typeGuards-B82KZ2oS.js} +3 -12
- package/dist/typeGuards-B82KZ2oS.js.map +1 -0
- package/dist/ui.js +1736 -1757
- package/dist/ui.js.map +1 -1
- package/dist/{parse-C_80L3wX.js → utils-b38KjjXe.js} +1060 -1030
- package/dist/utils-b38KjjXe.js.map +1 -0
- package/dist/utils.js +5 -4
- package/dist/utils.js.map +1 -1
- package/dist/validation.js +198 -39
- package/dist/validation.js.map +1 -1
- package/dist/widget.js +186 -184
- package/dist/widget.js.map +1 -1
- package/dist/widgets/advantages/Advantages.d.ts +10 -14
- package/dist/widgets/advantages/index.d.ts +1 -1
- package/dist/widgets/advantages/model/index.d.ts +1 -0
- package/dist/widgets/advantages/model/types.d.ts +4 -0
- package/dist/widgets/authProvider/AuthProvider.d.ts +2 -2
- package/dist/widgets/authProvider/model/types.d.ts +23 -23
- package/dist/widgets/authProvider/ui/ui/AuthWrapper.d.ts +6 -6
- package/dist/widgets/authProvider/ui/ui/Links.d.ts +2 -2
- package/dist/widgets/banner/Banner.d.ts +10 -25
- package/dist/widgets/banner/index.d.ts +1 -1
- package/dist/widgets/banner/model/index.d.ts +1 -0
- package/dist/widgets/banner/model/types.d.ts +18 -0
- package/dist/widgets/banner/ui/BannerButtonsGroup.d.ts +9 -9
- package/dist/widgets/banner/ui/banners/BannerImageFull.d.ts +2 -2
- package/dist/widgets/banner/ui/banners/BannerWithSeparateImg.d.ts +2 -2
- package/dist/widgets/benefit/Benefit.d.ts +9 -9
- package/dist/widgets/benefit/index.d.ts +1 -1
- package/dist/widgets/benefit/model/types.d.ts +2 -2
- package/dist/widgets/benefit/ui/BenefitItem.d.ts +10 -10
- package/dist/widgets/footer/Footer.d.ts +8 -8
- package/dist/widgets/footer/index.d.ts +1 -1
- package/dist/widgets/footer/model/defaultValues.d.ts +4 -4
- package/dist/widgets/footer/model/types.d.ts +12 -12
- package/dist/widgets/footer/ui/Copyright.d.ts +4 -4
- package/dist/widgets/footer/ui/FooterLogo.d.ts +4 -4
- package/dist/widgets/footer/ui/NavLinks.d.ts +6 -6
- package/dist/widgets/footer/ui/PhonesBlock.d.ts +6 -6
- package/dist/widgets/footer/ui/SiteMap.d.ts +4 -4
- package/dist/widgets/footer/ui/SocialLinks.d.ts +4 -4
- package/dist/widgets/interLinking/InterLinking.d.ts +11 -11
- package/dist/widgets/interLinking/model/types.d.ts +3 -3
- package/dist/widgets/interLinking/ui/Column.d.ts +8 -8
- package/dist/widgets/interLinking/ui/ColumnGroup.d.ts +11 -11
- package/dist/widgets/interLinking/ui/LinksList.d.ts +6 -6
- package/dist/widgets/longBanner/LongBanner.d.ts +4 -4
- package/dist/widgets/longBanner/index.d.ts +1 -1
- package/dist/widgets/longBanner/model/types.d.ts +10 -10
- package/dist/widgets/longBanner/ui/TextItem.d.ts +2 -2
- package/dist/widgets/longBanner/ui/TextList.d.ts +4 -4
- package/dist/widgets/longBanner/ui/Title.d.ts +4 -4
- package/dist/widgets/pageHeader/PageHeader.d.ts +2 -2
- package/dist/widgets/pageHeader/model/helpers.d.ts +2 -2
- package/dist/widgets/pageHeader/model/types.d.ts +11 -11
- package/dist/widgets/stepper/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/CustomLink-CKaoTS8A.js.map +0 -1
- package/dist/parse-C_80L3wX.js.map +0 -1
- package/dist/shared/validation/index.d.ts +0 -3
- package/dist/typeGuards-CaNkXs7N.js.map +0 -1
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { AdvantageItem } from './model/types';
|
|
2
|
+
export interface AdvantageClasses {
|
|
3
|
+
root?: string;
|
|
4
|
+
item?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export interface AdvantagesProps {
|
|
9
|
+
advantagesList: AdvantageItem[];
|
|
10
|
+
classes?: AdvantageClasses;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
13
|
-
advantagesList: IAdvantage[];
|
|
14
|
-
classes?: Partial<IAdvantageClasses>;
|
|
15
|
-
}
|
|
16
|
-
export declare const Advantages: ({ advantagesList, classes }: IAdvantagesProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const Advantages: ({ advantagesList, classes }: AdvantagesProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Advantages, type
|
|
1
|
+
export { Advantages, type AdvantagesProps } from './Advantages.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AdvantageItem } from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthProviderProps } from './model/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export declare const AuthProvider: (props:
|
|
3
|
+
export declare const AuthProvider: (props: AuthProviderProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthWrapperClasses, TLinksClasses } from '../ui/ui';
|
|
2
2
|
import { AUTH_PROVIDER_MODE } from './helpers';
|
|
3
|
-
import {
|
|
4
|
-
export type
|
|
3
|
+
import { LoaderProps } from '../../../shared/ui';
|
|
4
|
+
export type CombineClasses = {
|
|
5
5
|
root?: string;
|
|
6
6
|
topContent?: string;
|
|
7
7
|
badge?: string;
|
|
8
8
|
subtitle?: string;
|
|
9
9
|
authWrapper?: string;
|
|
10
10
|
};
|
|
11
|
-
type
|
|
12
|
-
authWrapper?:
|
|
11
|
+
type MobileIdClasses = {
|
|
12
|
+
authWrapper?: AuthWrapperClasses;
|
|
13
13
|
innerWrapper?: string;
|
|
14
14
|
textContent?: string;
|
|
15
15
|
mtsLogo?: string;
|
|
@@ -19,8 +19,8 @@ type TMobileIdClasses = {
|
|
|
19
19
|
badge?: string;
|
|
20
20
|
links?: TLinksClasses;
|
|
21
21
|
};
|
|
22
|
-
type
|
|
23
|
-
authWrapper?:
|
|
22
|
+
type EsiaClasses = {
|
|
23
|
+
authWrapper?: AuthWrapperClasses;
|
|
24
24
|
innerWrapper?: string;
|
|
25
25
|
textContent?: string;
|
|
26
26
|
esiaLogo?: string;
|
|
@@ -28,7 +28,7 @@ type TEsiaClasses = {
|
|
|
28
28
|
badge?: string;
|
|
29
29
|
links?: TLinksClasses;
|
|
30
30
|
};
|
|
31
|
-
export type
|
|
31
|
+
export type SingleAuthSchema = {
|
|
32
32
|
mainLink: {
|
|
33
33
|
title: string;
|
|
34
34
|
mobileTitle: string;
|
|
@@ -38,33 +38,33 @@ export type TSingleAuthSchema = {
|
|
|
38
38
|
text: string;
|
|
39
39
|
href: string;
|
|
40
40
|
};
|
|
41
|
-
classes?:
|
|
41
|
+
classes?: CombineClasses;
|
|
42
42
|
badge?: string;
|
|
43
|
-
loaderProps?:
|
|
43
|
+
loaderProps?: LoaderProps;
|
|
44
44
|
isLoading?: boolean;
|
|
45
45
|
};
|
|
46
|
-
type
|
|
47
|
-
esiaConfig: Omit<
|
|
48
|
-
mobileIdConfig: Omit<
|
|
46
|
+
type CombineAuthSchema = {
|
|
47
|
+
esiaConfig: Omit<SingleAuthSchema, 'badge'> & Pick<EsiaMode, 'classes'>;
|
|
48
|
+
mobileIdConfig: Omit<SingleAuthSchema, 'badge'> & Pick<MobileIdMode, 'classes'>;
|
|
49
49
|
subtitle?: string;
|
|
50
50
|
badge?: string;
|
|
51
|
-
classes?:
|
|
51
|
+
classes?: CombineClasses;
|
|
52
52
|
};
|
|
53
|
-
type
|
|
54
|
-
classes?:
|
|
53
|
+
type EsiaMode = SingleAuthSchema & {
|
|
54
|
+
classes?: EsiaClasses;
|
|
55
55
|
} & {
|
|
56
56
|
mode: typeof AUTH_PROVIDER_MODE.ESIA;
|
|
57
57
|
};
|
|
58
|
-
type
|
|
59
|
-
classes?:
|
|
58
|
+
type MobileIdMode = SingleAuthSchema & {
|
|
59
|
+
classes?: MobileIdClasses;
|
|
60
60
|
} & {
|
|
61
61
|
mode: typeof AUTH_PROVIDER_MODE.MOBILE_ID;
|
|
62
62
|
};
|
|
63
|
-
type
|
|
63
|
+
type CombineMode = CombineAuthSchema & {
|
|
64
64
|
mode: typeof AUTH_PROVIDER_MODE.COMBINE;
|
|
65
65
|
};
|
|
66
|
-
export type TEsiaProps = Omit<
|
|
67
|
-
export type TMobileIdProps = Omit<
|
|
68
|
-
export type TCombineProps = Omit<
|
|
69
|
-
export type
|
|
66
|
+
export type TEsiaProps = Omit<EsiaMode, 'mode'>;
|
|
67
|
+
export type TMobileIdProps = Omit<MobileIdMode, 'mode'>;
|
|
68
|
+
export type TCombineProps = Omit<CombineMode, 'mode'>;
|
|
69
|
+
export type AuthProviderProps = CombineMode | MobileIdMode | EsiaMode;
|
|
70
70
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { LoaderProps } from '../../../../shared/ui';
|
|
2
|
+
export type AuthWrapperClasses = {
|
|
3
3
|
root?: string;
|
|
4
4
|
wrapper?: string;
|
|
5
5
|
};
|
|
6
|
-
export interface
|
|
6
|
+
export interface AuthWrapperProps {
|
|
7
7
|
children: React.ReactElement;
|
|
8
|
-
classes?:
|
|
8
|
+
classes?: AuthWrapperClasses;
|
|
9
9
|
isLoading?: boolean;
|
|
10
|
-
loaderProps?:
|
|
10
|
+
loaderProps?: LoaderProps;
|
|
11
11
|
}
|
|
12
|
-
export declare const AuthWrapper: ({ children, isLoading, classes, loaderProps }:
|
|
12
|
+
export declare const AuthWrapper: ({ children, isLoading, classes, loaderProps }: AuthWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleAuthSchema } from '../../model/types';
|
|
2
2
|
export type TLinksClasses = {
|
|
3
3
|
linksWrapper?: string;
|
|
4
4
|
linksMainLink?: string;
|
|
5
5
|
linksSubLink?: string;
|
|
6
6
|
};
|
|
7
|
-
interface ILinksProps extends Pick<
|
|
7
|
+
interface ILinksProps extends Pick<SingleAuthSchema, 'subLink' | 'mainLink'> {
|
|
8
8
|
isMobile: boolean;
|
|
9
9
|
classes?: TLinksClasses;
|
|
10
10
|
}
|
|
@@ -1,24 +1,8 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
interface
|
|
6
|
-
section: string;
|
|
7
|
-
container: string;
|
|
8
|
-
wrapper: string;
|
|
9
|
-
content: string;
|
|
10
|
-
textBlock: string;
|
|
11
|
-
title: string;
|
|
12
|
-
subtitle: string;
|
|
13
|
-
imageContainer: string;
|
|
14
|
-
image: string;
|
|
15
|
-
advantageContainer: string;
|
|
16
|
-
}
|
|
17
|
-
export type TButtonsConfig = {
|
|
18
|
-
primary: IButtonProps;
|
|
19
|
-
secondary?: IButtonProps;
|
|
20
|
-
};
|
|
21
|
-
export interface IBannerProps {
|
|
2
|
+
import { AdvantageClasses } from '../advantages/Advantages.tsx';
|
|
3
|
+
import { AdvantageItem } from '../advantages/model/types.ts';
|
|
4
|
+
import { BannerClasses, ButtonsConfig } from './model/types.ts';
|
|
5
|
+
export interface BannerProps {
|
|
22
6
|
headTitle: string | ReactElement;
|
|
23
7
|
subtitle: string | ReactElement;
|
|
24
8
|
img?: string;
|
|
@@ -27,10 +11,11 @@ export interface IBannerProps {
|
|
|
27
11
|
mob: string;
|
|
28
12
|
type?: string;
|
|
29
13
|
};
|
|
30
|
-
buttonsConfig:
|
|
31
|
-
advantagesList?:
|
|
32
|
-
classes?:
|
|
14
|
+
buttonsConfig: ButtonsConfig;
|
|
15
|
+
advantagesList?: AdvantageItem[];
|
|
16
|
+
classes?: BannerClasses & {
|
|
17
|
+
advantages?: AdvantageClasses;
|
|
18
|
+
};
|
|
33
19
|
bannerVariant?: 'separateImg' | 'fullImg';
|
|
34
20
|
}
|
|
35
|
-
export declare const Banner: ({ bannerVariant, ...props }:
|
|
36
|
-
export {};
|
|
21
|
+
export declare const Banner: ({ bannerVariant, ...props }: BannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { BannerWithSeparateImg } from './ui/banners';
|
|
2
|
-
export { Banner, type
|
|
2
|
+
export { Banner, type BannerProps } from './Banner';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ButtonsConfig, BannerClasses } from './types';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ButtonProps } from '../../../shared/ui';
|
|
2
|
+
import { BannerButtonsGroupClasses } from '../ui/BannerButtonsGroup';
|
|
3
|
+
export interface BannerClasses extends BannerButtonsGroupClasses {
|
|
4
|
+
root?: string;
|
|
5
|
+
container?: string;
|
|
6
|
+
wrapper?: string;
|
|
7
|
+
content?: string;
|
|
8
|
+
textBlock?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
imageContainer?: string;
|
|
12
|
+
image?: string;
|
|
13
|
+
advantageContainer?: string;
|
|
14
|
+
}
|
|
15
|
+
export type ButtonsConfig = {
|
|
16
|
+
primary: ButtonProps;
|
|
17
|
+
secondary?: ButtonProps;
|
|
18
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
3
|
-
group
|
|
4
|
-
primary
|
|
5
|
-
secondary
|
|
1
|
+
import { ButtonsConfig } from '../model';
|
|
2
|
+
export interface BannerButtonsGroupClasses {
|
|
3
|
+
group?: string;
|
|
4
|
+
primary?: string;
|
|
5
|
+
secondary?: string;
|
|
6
6
|
}
|
|
7
|
-
interface
|
|
8
|
-
buttonsConfig:
|
|
9
|
-
classes?: Partial<
|
|
7
|
+
interface BannerButtonsGroupProps {
|
|
8
|
+
buttonsConfig: ButtonsConfig;
|
|
9
|
+
classes?: Partial<BannerButtonsGroupClasses>;
|
|
10
10
|
className?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare const BannerButtonsGroup: ({ buttonsConfig, classes, className }:
|
|
12
|
+
export declare const BannerButtonsGroup: ({ buttonsConfig, classes, className }: BannerButtonsGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const BannerImageFull: ({ headTitle, subtitle, buttonsConfig, advantagesList, classes, img, imgSets }: Omit<
|
|
1
|
+
import { BannerProps } from '../../..';
|
|
2
|
+
export declare const BannerImageFull: ({ headTitle, subtitle, buttonsConfig, advantagesList, classes, img, imgSets }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const BannerWithSeparateImg: ({ headTitle, subtitle, buttonsConfig, advantagesList, classes, img, imgSets }: Omit<
|
|
1
|
+
import { BannerProps } from '../../..';
|
|
2
|
+
export declare const BannerWithSeparateImg: ({ headTitle, subtitle, buttonsConfig, advantagesList, classes, img, imgSets }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import {
|
|
4
|
-
export type
|
|
5
|
-
|
|
3
|
+
import { BenefitItemClasses, BenefitItemProps } from './ui/BenefitItem';
|
|
4
|
+
export type BenefitClasses = {
|
|
5
|
+
root?: string;
|
|
6
|
+
container?: string;
|
|
7
|
+
item?: BenefitItemClasses;
|
|
6
8
|
heading?: string;
|
|
7
9
|
grid?: string;
|
|
8
|
-
container?: string;
|
|
9
|
-
section?: string;
|
|
10
10
|
};
|
|
11
11
|
declare const gridConfig: (props?: ({
|
|
12
12
|
intent?: "twoCards" | "threeCards" | "fourCards" | null | undefined;
|
|
13
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
|
-
export interface
|
|
14
|
+
export interface BenefitProps extends VariantProps<typeof gridConfig> {
|
|
15
15
|
heading: string | ReactElement;
|
|
16
|
-
cards:
|
|
17
|
-
classes?:
|
|
16
|
+
cards: BenefitItemProps[];
|
|
17
|
+
classes?: BenefitClasses;
|
|
18
18
|
}
|
|
19
|
-
export declare const Benefit: ({ heading, cards, classes, intent }:
|
|
19
|
+
export declare const Benefit: ({ heading, cards, classes, intent }: BenefitProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Benefit, type
|
|
1
|
+
export { Benefit, type BenefitProps } from './Benefit.tsx';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { allowedBannersBackgroundColors } from '../../../shared/constants';
|
|
2
|
-
export type
|
|
3
|
-
export type AllowedBannerBackgroundColor = `bg-banner-${
|
|
2
|
+
export type Colors = keyof typeof allowedBannersBackgroundColors;
|
|
3
|
+
export type AllowedBannerBackgroundColor = `bg-banner-${Colors}`;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { AllowedBannerBackgroundColor } from '../model';
|
|
4
|
-
export type
|
|
4
|
+
export type BenefitItemClasses = {
|
|
5
|
+
root?: string;
|
|
5
6
|
button?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
itemDescription?: string;
|
|
7
|
+
wrapper?: string;
|
|
8
|
+
textContainer?: string;
|
|
9
|
+
description?: string;
|
|
10
10
|
img?: string;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
imgContainer?: string;
|
|
12
|
+
title?: string;
|
|
13
13
|
};
|
|
14
14
|
declare const itemConfig: (props?: ({
|
|
15
15
|
intent?: "twoCards" | "threeCards" | "fourCards" | null | undefined;
|
|
16
16
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
17
|
-
export interface
|
|
17
|
+
export interface BenefitItemProps extends VariantProps<typeof itemConfig> {
|
|
18
18
|
title: string;
|
|
19
19
|
description: string | ReactElement;
|
|
20
20
|
img?: string;
|
|
21
21
|
mobileImg?: boolean;
|
|
22
|
-
classes?:
|
|
22
|
+
classes?: BenefitItemClasses;
|
|
23
23
|
withButton?: boolean;
|
|
24
24
|
buttonText?: string;
|
|
25
25
|
cardColor?: AllowedBannerBackgroundColor;
|
|
26
26
|
}
|
|
27
|
-
export declare const BenefitItem: ({ description, title, img, mobileImg, classes, withButton, buttonText, intent, cardColor }:
|
|
27
|
+
export declare const BenefitItem: ({ description, title, img, mobileImg, classes, withButton, buttonText, intent, cardColor }: BenefitItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FooterClasses, FooterNavLinks, FooterPhones, FooterRenderBlocks, FooterSocialLinks } from './model/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export interface
|
|
4
|
-
classes?:
|
|
5
|
-
renderBlocks?:
|
|
6
|
-
socialsLinks?:
|
|
7
|
-
phones?:
|
|
8
|
-
navigationLinks?:
|
|
3
|
+
export interface FooterProps {
|
|
4
|
+
classes?: FooterClasses;
|
|
5
|
+
renderBlocks?: FooterRenderBlocks;
|
|
6
|
+
socialsLinks?: FooterSocialLinks[];
|
|
7
|
+
phones?: FooterPhones[];
|
|
8
|
+
navigationLinks?: FooterNavLinks[];
|
|
9
9
|
ligal?: string | React.ReactElement;
|
|
10
10
|
copyright?: string | React.ReactElement;
|
|
11
11
|
}
|
|
12
|
-
export declare const Footer: ({ renderBlocks: { withSocial, withPhones, withNavLinks, withCopyright, withSiteMap }, socialsLinks, phones, navigationLinks, ligal, copyright, classes }:
|
|
12
|
+
export declare const Footer: ({ renderBlocks: { withSocial, withPhones, withNavLinks, withCopyright, withSiteMap }, socialsLinks, phones, navigationLinks, ligal, copyright, classes }: FooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Footer, type
|
|
1
|
+
export { Footer, type FooterProps } from './Footer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FooterNavLinks, FooterPhones, FooterSocialLinks } from './types';
|
|
2
2
|
export declare const defaultCopyright: import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare const defaultPhones:
|
|
4
|
-
export declare const defaultSocialsLinks:
|
|
5
|
-
export declare const defaultNavigationLinks:
|
|
3
|
+
export declare const defaultPhones: FooterPhones[];
|
|
4
|
+
export declare const defaultSocialsLinks: FooterSocialLinks[];
|
|
5
|
+
export declare const defaultNavigationLinks: FooterNavLinks[];
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CopyrightClasses, FooterLogoClasses, NavigationLinksClasses, PhoneBlockClasses, SiteMapClasses, SocialLinksClasses } from '../ui';
|
|
2
2
|
import { SpritesMap } from '../../../shared/ui';
|
|
3
|
-
export interface
|
|
3
|
+
export interface FooterSocialLinks {
|
|
4
4
|
iconName: `social/${SpritesMap['social']}`;
|
|
5
5
|
href: string;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface FooterNavLinks {
|
|
8
8
|
groupLabel: string;
|
|
9
9
|
links: {
|
|
10
10
|
text: string;
|
|
11
11
|
href: string;
|
|
12
12
|
}[];
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface FooterPhones {
|
|
15
15
|
phone: string;
|
|
16
16
|
text: string;
|
|
17
17
|
}
|
|
18
|
-
export type
|
|
18
|
+
export type FooterRenderBlocks = {
|
|
19
19
|
withSocial?: boolean;
|
|
20
20
|
withPhones?: boolean;
|
|
21
21
|
withNavLinks?: boolean;
|
|
22
22
|
withCopyright?: boolean;
|
|
23
23
|
withSiteMap?: boolean;
|
|
24
24
|
};
|
|
25
|
-
export type
|
|
25
|
+
export type FooterClasses = {
|
|
26
26
|
root?: string;
|
|
27
27
|
footerContainer?: string;
|
|
28
28
|
footerWrapper?: string;
|
|
29
29
|
footerHead?: string;
|
|
30
30
|
footerSocialBlock?: string;
|
|
31
31
|
footerBottom?: string;
|
|
32
|
-
footerLogo?:
|
|
33
|
-
navLinks?:
|
|
34
|
-
phonesBlock?:
|
|
35
|
-
socialLinks?:
|
|
36
|
-
siteMap?:
|
|
37
|
-
copyright?:
|
|
32
|
+
footerLogo?: FooterLogoClasses;
|
|
33
|
+
navLinks?: NavigationLinksClasses;
|
|
34
|
+
phonesBlock?: PhoneBlockClasses;
|
|
35
|
+
socialLinks?: SocialLinksClasses;
|
|
36
|
+
siteMap?: SiteMapClasses;
|
|
37
|
+
copyright?: CopyrightClasses;
|
|
38
38
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export type
|
|
2
|
+
export type CopyrightClasses = {
|
|
3
3
|
copyRight?: string;
|
|
4
4
|
};
|
|
5
|
-
interface
|
|
5
|
+
interface CopyrightProps {
|
|
6
6
|
text?: string | React.ReactElement;
|
|
7
|
-
classes?:
|
|
7
|
+
classes?: CopyrightClasses;
|
|
8
8
|
}
|
|
9
|
-
export declare const Copyright: ({ text, classes }:
|
|
9
|
+
export declare const Copyright: ({ text, classes }: CopyrightProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type FooterLogoClasses = {
|
|
2
2
|
footerLogo?: string;
|
|
3
3
|
footerLogoIcon?: string;
|
|
4
4
|
};
|
|
5
|
-
export interface
|
|
6
|
-
classes?:
|
|
5
|
+
export interface FooterLogoProps {
|
|
6
|
+
classes?: FooterLogoClasses;
|
|
7
7
|
}
|
|
8
|
-
export declare const FooterLogo: ({ classes }:
|
|
8
|
+
export declare const FooterLogo: ({ classes }: FooterLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { FooterNavLinks } from '../model/types';
|
|
2
|
+
export type NavigationLinksClasses = {
|
|
3
3
|
navRoot?: string;
|
|
4
4
|
navGroup?: string;
|
|
5
5
|
navLabel?: string;
|
|
@@ -7,9 +7,9 @@ export type TNavigationLinksClasses = {
|
|
|
7
7
|
navLink?: string;
|
|
8
8
|
navLinkIcon?: string;
|
|
9
9
|
};
|
|
10
|
-
interface
|
|
11
|
-
navigationLinks:
|
|
12
|
-
classes?:
|
|
10
|
+
interface NavLinksProps {
|
|
11
|
+
navigationLinks: FooterNavLinks[];
|
|
12
|
+
classes?: NavigationLinksClasses;
|
|
13
13
|
}
|
|
14
|
-
export declare const NavLinks: ({ navigationLinks, classes }:
|
|
14
|
+
export declare const NavLinks: ({ navigationLinks, classes }: NavLinksProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { FooterPhones } from '../model/types';
|
|
2
|
+
export type PhoneBlockClasses = {
|
|
3
3
|
phonesRoot?: string;
|
|
4
4
|
phoneWrapper?: string;
|
|
5
5
|
phoneText?: string;
|
|
6
6
|
phoneLink?: string;
|
|
7
7
|
};
|
|
8
|
-
interface
|
|
9
|
-
phones:
|
|
10
|
-
classes?:
|
|
8
|
+
interface PhonesBlockProps {
|
|
9
|
+
phones: FooterPhones[];
|
|
10
|
+
classes?: PhoneBlockClasses;
|
|
11
11
|
}
|
|
12
|
-
export declare const PhonesBlock: ({ phones, classes }:
|
|
12
|
+
export declare const PhonesBlock: ({ phones, classes }: PhonesBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type SiteMapClasses = {
|
|
2
2
|
siteMapLink?: string;
|
|
3
3
|
siteMapLinkIcon?: string;
|
|
4
4
|
};
|
|
5
|
-
export interface
|
|
6
|
-
classes?:
|
|
5
|
+
export interface SiteMapProps {
|
|
6
|
+
classes?: SiteMapClasses;
|
|
7
7
|
}
|
|
8
|
-
export declare const SiteMap: ({ classes }:
|
|
8
|
+
export declare const SiteMap: ({ classes }: SiteMapProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { FooterSocialLinks } from '../model/types';
|
|
2
|
+
export type SocialLinksClasses = {
|
|
3
3
|
socialRoot?: string;
|
|
4
4
|
socialLink?: string;
|
|
5
5
|
socialIcon?: string;
|
|
6
6
|
};
|
|
7
7
|
interface ISocialLinksProps {
|
|
8
|
-
socialsLinks:
|
|
9
|
-
classes?:
|
|
8
|
+
socialsLinks: FooterSocialLinks[];
|
|
9
|
+
classes?: SocialLinksClasses;
|
|
10
10
|
}
|
|
11
11
|
export declare const SocialLinks: ({ socialsLinks, classes }: ISocialLinksProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export type
|
|
1
|
+
import { InterLinkingSchema } from './model/types';
|
|
2
|
+
import { ColumnClasses } from './ui';
|
|
3
|
+
import { AccordionProps } from '../../shared/ui';
|
|
4
|
+
export type InterLinkingClasses = {
|
|
5
5
|
root?: string;
|
|
6
6
|
heading?: string;
|
|
7
7
|
columnsWrapper?: string;
|
|
8
|
-
column?:
|
|
8
|
+
column?: ColumnClasses;
|
|
9
9
|
};
|
|
10
|
-
export interface
|
|
11
|
-
data:
|
|
12
|
-
mobileAccordionProps?:
|
|
13
|
-
rootAccordionProps?:
|
|
14
|
-
classes?:
|
|
10
|
+
export interface InterLinkingProps {
|
|
11
|
+
data: InterLinkingSchema;
|
|
12
|
+
mobileAccordionProps?: AccordionProps;
|
|
13
|
+
rootAccordionProps?: AccordionProps;
|
|
14
|
+
classes?: InterLinkingClasses;
|
|
15
15
|
}
|
|
16
|
-
export declare const InterLinking: ({ data, mobileAccordionProps, rootAccordionProps, classes }:
|
|
16
|
+
export declare const InterLinking: ({ data, mobileAccordionProps, rootAccordionProps, classes }: InterLinkingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { columnGroupSchema, interLinkingSchema } from './helpers';
|
|
3
3
|
export type TColumnGroupSchema = z.infer<typeof columnGroupSchema>;
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
4
|
+
export type InterLinkingSchema = z.infer<typeof interLinkingSchema>;
|
|
5
|
+
export type ColumnsLinks = TColumnGroupSchema[number]['links'];
|
|
6
|
+
export type ColumnsGroupLabel = TColumnGroupSchema[number]['groupLabel'];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AccordionProps } from '../../../shared/ui';
|
|
2
2
|
import { TColumnGroupSchema } from '../model/types';
|
|
3
|
-
import {
|
|
4
|
-
export type
|
|
3
|
+
import { ColumnGroupClasses } from './ColumnGroup';
|
|
4
|
+
export type ColumnClasses = {
|
|
5
5
|
column?: string;
|
|
6
|
-
columnGroup?:
|
|
6
|
+
columnGroup?: ColumnGroupClasses;
|
|
7
7
|
};
|
|
8
|
-
export interface
|
|
8
|
+
export interface ColumnProps {
|
|
9
9
|
columnsGroup: TColumnGroupSchema;
|
|
10
|
-
mobileAccordionProps?:
|
|
11
|
-
classes?:
|
|
10
|
+
mobileAccordionProps?: AccordionProps;
|
|
11
|
+
classes?: ColumnClasses;
|
|
12
12
|
}
|
|
13
|
-
export declare const Column: ({ columnsGroup, mobileAccordionProps, classes }:
|
|
13
|
+
export declare const Column: ({ columnsGroup, mobileAccordionProps, classes }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
|