@uob-web-and-digital/component-library 1.0.3 → 1.0.4

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.
@@ -8,7 +8,7 @@ export interface AccordionItemProps {
8
8
  text?: string;
9
9
  theme: ThemeProps;
10
10
  inverse?: boolean;
11
- titleTag?: 'h2' | 'h3' | 'h4';
11
+ titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | undefined;
12
12
  openByDefault?: boolean;
13
13
  cards?: CardModuleCardProps[];
14
14
  primaryButton?: {
@@ -26,8 +26,9 @@ export interface CardPromoProps {
26
26
  eventStatus?: CalendarGraphicProps['status'];
27
27
  eventDay?: CalendarGraphicProps['day'];
28
28
  eventMonth?: CalendarGraphicProps['month'];
29
+ inStoryCarousel?: boolean;
29
30
  }
30
31
  /**
31
32
  * Primary UI component for user interaction
32
33
  */
33
- export default function CardPromo({ theme, inverse, image, tag, title, subtitle, href, publishDate, authorString, readingTime, location, copy, isSingle, titleTag, cardCopyIsRichText, eventTime, eventStatus, eventDay, eventMonth }: CardPromoProps): ReactElement;
34
+ export default function CardPromo({ theme, inverse, image, tag, title, subtitle, href, publishDate, authorString, readingTime, location, copy, isSingle, titleTag, cardCopyIsRichText, eventTime, eventStatus, eventDay, eventMonth, inStoryCarousel }: CardPromoProps): ReactElement;
@@ -1,7 +1,7 @@
1
1
  import { AccordionItemProps } from '../AccordionItem/AccordionItem';
2
2
  import { CardModuleCardProps } from '../CardModuleCard/CardModuleCard';
3
3
  export interface TabItemProps {
4
- titleTag?: 'h2' | 'h3' | 'h4';
4
+ titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | undefined;
5
5
  cards?: CardModuleCardProps[];
6
6
  title: string;
7
7
  content?: string;
@@ -1,10 +1,15 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
2
  import './tabPanel.scss';
3
+ import { HeadingProps } from '../../atoms/Heading/Heading';
3
4
  export interface TabPanelProps {
4
5
  /**
5
6
  * The tab title
6
7
  */
7
8
  title: string;
9
+ /**
10
+ * The html tag to be applied to the title
11
+ */
12
+ htmlTag?: HeadingProps['htmlTag'] | undefined;
8
13
  /**
9
14
  * The theme to use
10
15
  */
@@ -26,4 +31,4 @@ export interface TabPanelProps {
26
31
  */
27
32
  children: ReactNode;
28
33
  }
29
- export default function TabPanel({ title, theme, inverse, isActive, children, tabsBlockName }: TabPanelProps): ReactElement | null;
34
+ export default function TabPanel({ title, htmlTag, theme, inverse, isActive, children, tabsBlockName }: TabPanelProps): ReactElement | null;
package/dist/index.d.ts CHANGED
@@ -16,7 +16,7 @@ interface AccordionItemProps {
16
16
  text?: string;
17
17
  theme: ThemeProps;
18
18
  inverse?: boolean;
19
- titleTag?: 'h2' | 'h3' | 'h4';
19
+ titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | undefined;
20
20
  openByDefault?: boolean;
21
21
  cards?: CardModuleCardProps[];
22
22
  primaryButton?: {
@@ -72,7 +72,7 @@ interface HeadingProps {
72
72
  }
73
73
 
74
74
  interface TabItemProps {
75
- titleTag?: 'h2' | 'h3' | 'h4';
75
+ titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | undefined;
76
76
  cards?: CardModuleCardProps[];
77
77
  title: string;
78
78
  content?: string;
@@ -254,6 +254,7 @@ interface CardPromoProps {
254
254
  eventStatus?: CalendarGraphicProps['status'];
255
255
  eventDay?: CalendarGraphicProps['day'];
256
256
  eventMonth?: CalendarGraphicProps['month'];
257
+ inStoryCarousel?: boolean;
257
258
  }
258
259
 
259
260
  interface TextButtonProps {