@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.
@@ -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 interface ITextContent {
6
- title: string | ReactElement;
7
- description: string | ReactElement;
8
- popoverText?: string | ReactElement;
9
- }
10
- export interface IButtonConfig {
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: () => void;
16
+ onClick?: () => void;
13
17
  }
14
- export interface ILongBannerClasses {
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
- popoverText?: string | ReactElement;
36
+ popover?: Popover;
29
37
  };
30
38
  }
@@ -1,8 +1,8 @@
1
- import { ITextContent, LongBannerConfig } from '../model/types';
1
+ import { Details, LongBannerConfig } from '../model/types';
2
2
  interface ListItemsProps {
3
- textContent: ITextContent[];
3
+ details: Details[];
4
4
  intent: LongBannerConfig['intent'];
5
5
  withButton: boolean;
6
6
  }
7
- export declare const TextList: ({ textContent, intent, withButton }: ListItemsProps) => import("react/jsx-runtime").JSX.Element;
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
- title: string | ReactElement;
5
+ headline: string | ReactElement;
6
6
  desktopHidden?: boolean;
7
7
  mobileHidden?: boolean;
8
8
  }
9
- export declare const Title: ({ intent, title, desktopHidden, mobileHidden }: TitleProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const Title: ({ intent, headline, desktopHidden, mobileHidden }: TitleProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scbt-ecom/ui",
3
- "version": "0.42.3",
3
+ "version": "0.42.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {