@uob-web-and-digital/component-library 2.22.2 → 2.22.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.
@@ -10,7 +10,7 @@ export interface NewsCardProps {
10
10
  title: string;
11
11
  url: string;
12
12
  description?: string;
13
- author?: ParagraphLinkProps | ParagraphLinkProps[];
13
+ author?: ParagraphLinkProps | ParagraphLinkProps[] | string;
14
14
  details: Omit<SearchResultDetailProps, 'theme'>[];
15
15
  showCategory?: boolean;
16
16
  }
@@ -16,7 +16,9 @@ export declare const EventCardMoreDatesAvailable: Story;
16
16
  export declare const StaffCard: Story;
17
17
  export declare const NewsCard: Story;
18
18
  export declare const NewsCardTwoAuthors: Story;
19
- export declare const AccomodationCard: Story;
19
+ export declare const NewsCardAuthorAsString: Story;
20
+ export declare const NewsCardWithoutAuthor: Story;
21
+ export declare const AccommodationCard: Story;
20
22
  export declare const CourseCard: Story;
21
23
  export declare const CourseCardH3Title: Story;
22
24
  export declare const CourseCardH4Title: Story;
@@ -19,5 +19,6 @@ export interface DocumentNavigationProps {
19
19
  documentTitle: string;
20
20
  openByDefault?: boolean;
21
21
  sections: DocumentNavigationSectionProps[];
22
+ initiallyActiveSectionIndex?: number;
22
23
  }
23
- export default function DocumentNavigation({ variant, theme, inverse, documentTitle, openByDefault, sections }: DocumentNavigationProps): ReactElement;
24
+ export default function DocumentNavigation({ variant, theme, inverse, documentTitle, openByDefault, sections, initiallyActiveSectionIndex }: DocumentNavigationProps): ReactElement;
@@ -13,4 +13,5 @@ export declare const MultipleSections: Story;
13
13
  export declare const MultipleSectionsOverlay: Story;
14
14
  export declare const MultipleSectionsOverlayDark: Story;
15
15
  export declare const OpenByDefault: Story;
16
- export declare const OpenByDefaultFirstSectionHasNoSubsections: Story;
16
+ export declare const MultipleSectionsSecondSectionActive: Story;
17
+ export declare const MultipleSectionsDarkSecondSectionActive: Story;