@scbt-ecom/ui 0.30.1 → 0.30.2
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-BerIdUpJ.js} +2 -2
- package/dist/CustomLink-BerIdUpJ.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 +5 -9
- 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 +5 -10
- 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/ui/SelectItem.d.ts +2 -0
- 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 +2 -2
- 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/ui.js +1342 -1341
- package/dist/ui.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
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export type
|
|
1
|
+
import { ColumnsGroupLabel, ColumnsLinks } from '../model/types';
|
|
2
|
+
import { LinksListClasses } from './LinksList';
|
|
3
|
+
import { AccordionProps } from '../../../shared/ui';
|
|
4
|
+
export type ColumnGroupClasses = {
|
|
5
5
|
columnGroup?: string;
|
|
6
6
|
columnGroupHeading?: string;
|
|
7
|
-
linksList?:
|
|
7
|
+
linksList?: LinksListClasses;
|
|
8
8
|
};
|
|
9
|
-
export interface
|
|
10
|
-
groupLabel:
|
|
11
|
-
links:
|
|
12
|
-
mobileAccordionProps?:
|
|
13
|
-
classes?:
|
|
9
|
+
export interface ColumnGroupProps {
|
|
10
|
+
groupLabel: ColumnsGroupLabel;
|
|
11
|
+
links: ColumnsLinks;
|
|
12
|
+
mobileAccordionProps?: AccordionProps;
|
|
13
|
+
classes?: ColumnGroupClasses;
|
|
14
14
|
}
|
|
15
|
-
export declare const ColumnGroup: ({ groupLabel, links, mobileAccordionProps, classes }:
|
|
15
|
+
export declare const ColumnGroup: ({ groupLabel, links, mobileAccordionProps, classes }: ColumnGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { ColumnsLinks } from '../model/types';
|
|
2
|
+
export type LinksListClasses = {
|
|
3
3
|
linksWrapper?: string;
|
|
4
4
|
linkText?: string;
|
|
5
5
|
linkIcon?: string;
|
|
6
6
|
};
|
|
7
|
-
export interface
|
|
8
|
-
links:
|
|
9
|
-
classes?:
|
|
7
|
+
export interface LinksListProps {
|
|
8
|
+
links: ColumnsLinks;
|
|
9
|
+
classes?: LinksListClasses;
|
|
10
10
|
}
|
|
11
|
-
export declare const LinksList: ({ links, classes }:
|
|
11
|
+
export declare const LinksList: ({ links, classes }: LinksListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { IButtonConfig, ILongBannerClasses, ITextContent,
|
|
3
|
-
export interface
|
|
2
|
+
import { IButtonConfig, ILongBannerClasses, ITextContent, LongBannerConfig } from './model/types';
|
|
3
|
+
export interface LongBannerProps extends LongBannerConfig {
|
|
4
4
|
title: string | ReactElement;
|
|
5
5
|
buttonConfig?: IButtonConfig;
|
|
6
6
|
textContent: ITextContent[];
|
|
7
7
|
imageComponent: ReactElement;
|
|
8
|
-
classes?:
|
|
8
|
+
classes?: ILongBannerClasses;
|
|
9
9
|
}
|
|
10
|
-
export declare const LongBanner: ({ title, buttonConfig, intent, textContent, imageComponent, classes }:
|
|
10
|
+
export declare const LongBanner: ({ title, buttonConfig, intent, textContent, imageComponent, classes }: LongBannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { LongBanner, type
|
|
1
|
+
export { LongBanner, type LongBannerProps } from './LongBanner';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { itemConfig } from './cva';
|
|
4
|
-
export type
|
|
4
|
+
export type LongBannerConfig = VariantProps<typeof itemConfig>;
|
|
5
5
|
export interface ITextContent {
|
|
6
6
|
title: string | ReactElement;
|
|
7
7
|
description: string | ReactElement;
|
|
@@ -12,16 +12,16 @@ export interface IButtonConfig {
|
|
|
12
12
|
onClick: () => void;
|
|
13
13
|
}
|
|
14
14
|
export interface ILongBannerClasses {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
title
|
|
18
|
-
contentContainer
|
|
19
|
-
imgContainer
|
|
20
|
-
textWithBtnContainer
|
|
21
|
-
image
|
|
22
|
-
button
|
|
15
|
+
root?: string;
|
|
16
|
+
container?: string;
|
|
17
|
+
title?: string;
|
|
18
|
+
contentContainer?: string;
|
|
19
|
+
imgContainer?: string;
|
|
20
|
+
textWithBtnContainer?: string;
|
|
21
|
+
image?: string;
|
|
22
|
+
button?: string;
|
|
23
23
|
}
|
|
24
|
-
export interface
|
|
24
|
+
export interface TextItemProps extends LongBannerConfig {
|
|
25
25
|
data: {
|
|
26
26
|
title: string | ReactElement;
|
|
27
27
|
description: string | ReactElement;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const TextItem: ({ data, intent }:
|
|
1
|
+
import { TextItemProps } from '../model/types';
|
|
2
|
+
export declare const TextItem: ({ data, intent }: TextItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ITextContent,
|
|
2
|
-
interface
|
|
1
|
+
import { ITextContent, LongBannerConfig } from '../model/types';
|
|
2
|
+
interface ListItemsProps {
|
|
3
3
|
textContent: ITextContent[];
|
|
4
|
-
intent:
|
|
4
|
+
intent: LongBannerConfig['intent'];
|
|
5
5
|
withButton: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const TextList: ({ textContent, intent, withButton }:
|
|
7
|
+
export declare const TextList: ({ textContent, intent, withButton }: ListItemsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
4
|
-
intent:
|
|
2
|
+
import { LongBannerConfig } from '../model/types';
|
|
3
|
+
interface TitleProps {
|
|
4
|
+
intent: LongBannerConfig['intent'];
|
|
5
5
|
title: string | ReactElement;
|
|
6
6
|
desktopHidden?: boolean;
|
|
7
7
|
mobileHidden?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const Title: ({ intent, title, desktopHidden, mobileHidden }:
|
|
9
|
+
export declare const Title: ({ intent, title, desktopHidden, mobileHidden }: TitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const PageHeader: (props:
|
|
1
|
+
import { PageHeaderProps } from './model/types';
|
|
2
|
+
export declare const PageHeader: (props: PageHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const renderContentVariant: (props:
|
|
1
|
+
import { PageHeaderProps } from './types';
|
|
2
|
+
export declare const renderContentVariant: (props: PageHeaderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type
|
|
1
|
+
import { BrandLogoVariant, ButtonProps, PhoneViewProps } from '../../../shared/ui';
|
|
2
|
+
type PageHeaderClasses = {
|
|
3
3
|
header?: string;
|
|
4
4
|
container?: string;
|
|
5
5
|
wrapper?: string;
|
|
6
6
|
logo?: string;
|
|
7
7
|
};
|
|
8
|
-
interface
|
|
8
|
+
interface CommonHeaderProps {
|
|
9
9
|
logoPath?: string;
|
|
10
|
-
logoType?:
|
|
11
|
-
classes?:
|
|
10
|
+
logoType?: BrandLogoVariant;
|
|
11
|
+
classes?: PageHeaderClasses;
|
|
12
12
|
}
|
|
13
|
-
interface
|
|
13
|
+
export interface HeaderEmptyProps extends CommonHeaderProps {
|
|
14
14
|
variant: 'empty';
|
|
15
15
|
}
|
|
16
|
-
interface
|
|
16
|
+
export interface HeaderWithPhone extends CommonHeaderProps {
|
|
17
17
|
variant: 'withPhone';
|
|
18
|
-
phoneProps:
|
|
18
|
+
phoneProps: PhoneViewProps;
|
|
19
19
|
}
|
|
20
|
-
interface
|
|
20
|
+
export interface HeaderWithButton extends CommonHeaderProps {
|
|
21
21
|
variant: 'withButton';
|
|
22
|
-
buttonProps?:
|
|
22
|
+
buttonProps?: ButtonProps;
|
|
23
23
|
}
|
|
24
|
-
export type
|
|
24
|
+
export type PageHeaderProps = HeaderWithButton | HeaderWithPhone | HeaderEmptyProps;
|
|
25
25
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Stepper } from './Stepper';
|
|
1
|
+
export { Stepper, type StepperProps } from './Stepper';
|