@scbt-ecom/ui 0.77.0 → 0.77.1

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.
@@ -1,12 +1,19 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { AdvantageClasses, AdvantagesProps } from '../advantages/Advantages';
3
3
  import { BackgroundBannerColorsValues } from './model/constants';
4
- import { BannerClasses, ButtonsConfig, ImgBanner } from './model/types';
4
+ import { BannerClasses, ButtonsConfig } from './model/types';
5
5
  export interface BannerProps {
6
6
  headTitle: string | ReactElement;
7
7
  subtitle: string | ReactElement;
8
- imgDesktop: ImgBanner;
9
- imgMobile: ImgBanner;
8
+ imgMobile: {
9
+ src: string;
10
+ base64?: string;
11
+ };
12
+ imgDesktop: {
13
+ src: string;
14
+ base64?: string;
15
+ };
16
+ imgAlt?: string;
10
17
  buttonsConfig: ButtonsConfig;
11
18
  advantages?: AdvantagesProps;
12
19
  variant?: 'separateImg' | 'fullImg';
@@ -14,6 +21,7 @@ export interface BannerProps {
14
21
  classes?: BannerClasses & {
15
22
  advantages?: AdvantageClasses;
16
23
  };
24
+ renderImage?: (props: React.ComponentProps<'img'>) => ReactElement;
17
25
  }
18
26
  export declare const Banner: ({ variant, ...props }: BannerProps) => import("react/jsx-runtime").JSX.Element;
19
27
  export default Banner;
@@ -1,4 +1,3 @@
1
- import { ReactElement } from 'react';
2
1
  import { ButtonHandlerOptions } from '../../buttonWithHandlers';
3
2
  import { ButtonProps } from '../../../shared/ui';
4
3
  export interface BannerClasses {
@@ -30,7 +29,3 @@ export type ButtonsConfig = {
30
29
  enabled: boolean;
31
30
  };
32
31
  };
33
- export type ImgBanner = ReactElement | {
34
- url: string;
35
- alt: string;
36
- };
@@ -1,2 +1,2 @@
1
1
  import { BannerProps } from '../../..';
2
- export declare const BannerImageFull: ({ headTitle, subtitle, buttonsConfig, advantages, classes, imgMobile, imgDesktop, color }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const BannerImageFull: ({ headTitle, subtitle, buttonsConfig, advantages, classes, imgMobile, imgDesktop, imgAlt, color, renderImage }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { BannerProps } from '../../..';
2
- export declare const BannerWithSeparateImg: ({ headTitle, subtitle, buttonsConfig, advantages, classes, imgMobile, imgDesktop, color }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const BannerWithSeparateImg: ({ headTitle, subtitle, buttonsConfig, advantages, classes, imgMobile, imgDesktop, imgAlt, color, renderImage }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
package/dist/ui.js CHANGED
@@ -1,9 +1,9 @@
1
- import { j as w, c as An, R as Tn, B as ge, u as jn, a as Hn, b as Gn, d as zn, P as Be, e as Wt, f as kn, I as Bn, g as et, h as qn, A as Un, i as Re, H as Qt, D as Kn, V as Xn, O as Wn } from "./index-CRB6VnF-.js";
2
- import { o as Mi, C as bi, v as Vi, t as Pi, p as $i, K as Ei, L as Di, M as Li, N as Oi, n as Ni, q as Ai, r as Ti, U as ji, s as Hi, k as Gi, m as zi, l as ki, w as Bi } from "./index-CRB6VnF-.js";
1
+ import { j as w, c as An, R as Tn, B as ge, u as jn, a as Hn, b as Gn, d as zn, P as Be, e as Wt, f as kn, I as Bn, g as et, h as qn, A as Un, i as Re, H as Qt, D as Kn, V as Xn, O as Wn } from "./index-PZSikNMt.js";
2
+ import { o as Mi, C as bi, v as Vi, t as Pi, p as $i, K as Ei, L as Di, M as Li, N as Oi, n as Ni, q as Ai, r as Ti, U as ji, s as Hi, k as Gi, m as zi, l as ki, w as Bi } from "./index-PZSikNMt.js";
3
3
  import * as ce from "react";
4
4
  import { forwardRef as Q, useState as oe, useRef as xe, useCallback as Se, useEffect as ve, isValidElement as He, cloneElement as Jt, Children as be } from "react";
5
5
  import { c as F, T as At } from "./typeGuards-CSiImkUY.js";
6
- import { aQ as Ui, aT as Ki, aP as Xi, aS as Wi, aR as Qi } from "./utils-CaWgHX_C.js";
6
+ import { aQ as Ui, aT as Ki, aP as Xi, aS as Wi, aR as Qi } from "./utils-CnDzHNQ6.js";
7
7
  import { u as qe, a as Yt } from "./useDebounce-BH0d8exl.js";
8
8
  import { createPortal as Qn } from "react-dom";
9
9
  import { m as Jn } from "./mergeRefs-qDToYXtM.js";