@scbt-ecom/ui 0.42.3 → 0.42.5
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-DRb2l2sC.js → CustomLink-BrBUFe53.js} +714 -718
- package/dist/CustomLink-BrBUFe53.js.map +1 -0
- package/dist/shared/ui/formElements/controlled/index.d.ts +2 -2
- package/dist/shared/ui/formElements/controlled/uploader/UploaderControl.d.ts +2 -2
- package/dist/shared/ui/index.d.ts +0 -1
- package/dist/shared/ui/phoneView/helpers.d.ts +1 -0
- package/dist/ui.js +148 -169
- package/dist/ui.js.map +1 -1
- package/dist/widget.js +349 -392
- package/dist/widget.js.map +1 -1
- package/dist/widgets/footer/Footer.d.ts +5 -6
- package/dist/widgets/footer/model/types.d.ts +15 -6
- package/dist/widgets/footer/ui/Copyright.d.ts +1 -2
- package/dist/{shared/ui/ligal → widgets/footer/ui}/Ligal.d.ts +1 -2
- package/dist/widgets/footer/ui/NavLinks.d.ts +3 -3
- package/dist/widgets/longBanner/LongBanner.d.ts +7 -6
- package/dist/widgets/longBanner/model/types.d.ts +17 -9
- package/dist/widgets/longBanner/ui/TextList.d.ts +3 -3
- package/dist/widgets/longBanner/ui/Title.d.ts +2 -2
- package/package.json +1 -1
- package/dist/CustomLink-DRb2l2sC.js.map +0 -1
- package/dist/shared/ui/ligal/index.d.ts +0 -1
- package/dist/widgets/footer/model/defaultValues.d.ts +0 -5
|
@@ -2,16 +2,24 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { itemConfig } from './cva';
|
|
4
4
|
export type LongBannerConfig = VariantProps<typeof itemConfig>;
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
export type Config = {
|
|
6
|
+
intent?: 'twoItems' | 'fourItems';
|
|
7
|
+
details: Details[];
|
|
8
|
+
};
|
|
9
|
+
export type Details = {
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
popover?: Popover;
|
|
13
|
+
};
|
|
14
|
+
export interface ButtonConfig {
|
|
11
15
|
text: string | ReactElement;
|
|
12
|
-
onClick
|
|
16
|
+
onClick?: () => void;
|
|
13
17
|
}
|
|
14
|
-
export
|
|
18
|
+
export type Popover = {
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
text?: string;
|
|
21
|
+
};
|
|
22
|
+
export interface LongBannerClasses {
|
|
15
23
|
root?: string;
|
|
16
24
|
container?: string;
|
|
17
25
|
title?: string;
|
|
@@ -25,6 +33,6 @@ export interface TextItemProps extends LongBannerConfig {
|
|
|
25
33
|
data: {
|
|
26
34
|
title: string | ReactElement;
|
|
27
35
|
description: string | ReactElement;
|
|
28
|
-
|
|
36
|
+
popover?: Popover;
|
|
29
37
|
};
|
|
30
38
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Details, LongBannerConfig } from '../model/types';
|
|
2
2
|
interface ListItemsProps {
|
|
3
|
-
|
|
3
|
+
details: Details[];
|
|
4
4
|
intent: LongBannerConfig['intent'];
|
|
5
5
|
withButton: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const TextList: ({
|
|
7
|
+
export declare const TextList: ({ details, intent, withButton }: ListItemsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -2,9 +2,9 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { LongBannerConfig } from '../model/types';
|
|
3
3
|
interface TitleProps {
|
|
4
4
|
intent: LongBannerConfig['intent'];
|
|
5
|
-
|
|
5
|
+
headline: string | ReactElement;
|
|
6
6
|
desktopHidden?: boolean;
|
|
7
7
|
mobileHidden?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const Title: ({ intent,
|
|
9
|
+
export declare const Title: ({ intent, headline, desktopHidden, mobileHidden }: TitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|