@scbt-ecom/ui 0.0.12 → 0.0.15

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,8 +1,17 @@
1
- export interface IAdvantage {
1
+ import { ReactElement } from 'react';
2
+ interface IAdvantageClasses {
3
+ wrapper: string;
4
+ advantage: string;
2
5
  title: string;
3
6
  description: string;
4
7
  }
8
+ export interface IAdvantage {
9
+ title: string;
10
+ description: string | ReactElement;
11
+ }
5
12
  export interface IAdvantagesProps {
6
13
  advantagesList: IAdvantage[];
14
+ classes?: Partial<IAdvantageClasses>;
7
15
  }
8
- export declare const Advantages: ({ advantagesList }: IAdvantagesProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const Advantages: ({ advantagesList, classes }: IAdvantagesProps) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -1,3 +1,4 @@
1
+ import { IAdvantage } from '../Advantages';
1
2
  import { IButtonProps } from '../../shared/ui';
2
3
  export type TButtonsConfig = {
3
4
  primary: IButtonProps;
@@ -7,5 +8,6 @@ export interface IBannerProps {
7
8
  headTitle: string;
8
9
  subtitle: string;
9
10
  buttonsConfig: TButtonsConfig;
11
+ advantagesList?: IAdvantage[];
10
12
  }
11
- export declare const Banner: ({ headTitle, subtitle, buttonsConfig }: IBannerProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const Banner: ({ headTitle, subtitle, buttonsConfig, advantagesList }: IBannerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import { IBannerProps } from '../Banner';
2
2
  export declare const mockBannerBase: IBannerProps;
3
3
  export declare const mockBannerOnlyPrimaryButton: IBannerProps;
4
+ export declare const mockWithAdvantages: IBannerProps;
@@ -1,3 +1,3 @@
1
- export { PageHeader } from './pageHeader';
1
+ export { PageHeader, type THeaderContentVariant } from './pageHeader';
2
2
  export { Banner } from './banner';
3
- export { Advantages } from './Advantages';
3
+ export { Advantages, type IAdvantage, type IAdvantagesProps } from './Advantages';
@@ -11,6 +11,6 @@ interface IHeaderWithPhone extends ICommonHeaderProps {
11
11
  interface IHeaderWithButton extends ICommonHeaderProps {
12
12
  variant: 'withButton';
13
13
  }
14
- type THeaderContentVariant = IHeaderWithButton | IHeaderWithPhone;
14
+ export type THeaderContentVariant = IHeaderWithButton | IHeaderWithPhone;
15
15
  export declare const PageHeader: (props: THeaderContentVariant) => import("react/jsx-runtime").JSX.Element;
16
16
  export {};
@@ -1 +1 @@
1
- export { PageHeader } from './PageHeader';
1
+ export { PageHeader, type THeaderContentVariant } from './PageHeader';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scbt-ecom/ui",
3
- "version": "0.0.12",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {