@uob-web-and-digital/component-library 2.7.12 → 2.9.0
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.
- package/README.md +31 -0
- package/dist/components/molecules/CardImageAndText/CardImageAndText.d.ts +14 -0
- package/dist/components/molecules/CardImageAndText/CardImageAndText.stories.d.ts +18 -0
- package/dist/components/molecules/CardImageAndText/defaultProps.d.ts +6 -0
- package/dist/components/organisms/AnchorTarget/AnchorTarget.d.ts +2 -1
- package/dist/index.d.ts +3 -2
- package/dist/main.css +1 -1
- package/dist/main.js +2 -2
- package/dist/module.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -100,6 +100,37 @@ After installation you will need to add the following to your layout file;
|
|
|
100
100
|
import '@uob-web-and-digital/component-library/dist/main.css';
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
+
## Testing the component package library with a local consumer application
|
|
104
|
+
|
|
105
|
+
In order to test the component library with you need to build and then package the library into a file using pack:
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
npm run build-package
|
|
109
|
+
npm pack <filename>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
This produces \<filename\>.tgz
|
|
113
|
+
|
|
114
|
+
Copy this file into the root directory of your consuming app then change your package.json to point to that file instead of the npmjs.org package.
|
|
115
|
+
|
|
116
|
+
Change:
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
"@uob-web-and-digital/component-library": "^2.7.10",
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
To:
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
"@uob-web-and-digital/component-library": "file:./<filename>.tgz",
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Then do an npm install for that file.
|
|
129
|
+
|
|
130
|
+
```
|
|
131
|
+
npm install <filename>.tgz
|
|
132
|
+
```
|
|
133
|
+
|
|
103
134
|
## Base64 fonts
|
|
104
135
|
|
|
105
136
|
Fonts are base64 encoded so they are not hosted on a third party.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ImageProps } from '../../atoms/Image/Image';
|
|
3
|
+
import { ThemeProps } from '../../../themeProps';
|
|
4
|
+
import { HeadingProps } from '../../atoms/Heading/Heading';
|
|
5
|
+
import './cardImageAndText.scss';
|
|
6
|
+
export interface CardImageAndTextProps {
|
|
7
|
+
theme: ThemeProps;
|
|
8
|
+
inverse?: boolean;
|
|
9
|
+
image: ImageProps;
|
|
10
|
+
title?: string;
|
|
11
|
+
titleTag?: HeadingProps['htmlTag'];
|
|
12
|
+
text: string;
|
|
13
|
+
}
|
|
14
|
+
export default function CardImageAndText({ theme, inverse, image, title, titleTag, text }: CardImageAndTextProps): ReactElement;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import CardImageAndText from './CardImageAndText';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CardImageAndText;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof CardImageAndText>;
|
|
13
|
+
export declare const Light: Story;
|
|
14
|
+
export declare const Dark: Story;
|
|
15
|
+
export declare const MultipleParagraphs: Story;
|
|
16
|
+
export declare const Logo: Story;
|
|
17
|
+
export declare const NoHeading: Story;
|
|
18
|
+
export declare const Group: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CardImageAndTextProps } from './CardImageAndText';
|
|
2
|
+
export declare const cardImageAndTextLight: CardImageAndTextProps;
|
|
3
|
+
export declare const cardImageAndTextLogo: CardImageAndTextProps;
|
|
4
|
+
export declare const cardImageAndTextDark: CardImageAndTextProps;
|
|
5
|
+
export declare const cardImageAndTextMultipleParagraphs: CardImageAndTextProps;
|
|
6
|
+
export declare const cardImageAndTextNoHeading: CardImageAndTextProps;
|
|
@@ -7,5 +7,6 @@ export interface AnchorTargetProps {
|
|
|
7
7
|
targetLabel: string;
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
includeDivider?: boolean;
|
|
10
|
+
landmarkLabel?: string;
|
|
10
11
|
}
|
|
11
|
-
export default function AnchorTarget({ theme, inverse, includeDivider, targetLabel, children }: AnchorTargetProps): ReactElement;
|
|
12
|
+
export default function AnchorTarget({ theme, inverse, includeDivider, targetLabel, landmarkLabel, children }: AnchorTargetProps): ReactElement;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import Breadcrumbs, { BreadcrumbsProps } from './components/organisms/Breadcrumb
|
|
|
7
7
|
import Carousel, { CarouselProps } from './components/organisms/Carousel/Carousel';
|
|
8
8
|
import CardProfile, { CardProfileProps } from './components/molecules/CardProfile/CardProfile';
|
|
9
9
|
import CardPromoSignpost, { CardPromoSignpostProps } from './components/molecules/CardPromoSignpost/CardPromoSignpost';
|
|
10
|
+
import CardImageAndText, { CardImageAndTextProps } from './components/molecules/CardImageAndText/CardImageAndText';
|
|
10
11
|
import CentreWrapper, { CenterWrapperProps } from './components/organisms/CentreWrapper/CentreWrapper';
|
|
11
12
|
import ClearingBanner, { ClearingBannerProps } from './components/organisms/ClearingBanner/ClearingBanner';
|
|
12
13
|
import CourseDeliveryPills, { CourseDeliveryPillsProps } from './components/organisms/CourseDeliveryPills/CourseDeliveryPills';
|
|
@@ -67,5 +68,5 @@ import TwoColumnWrapper, { TwoColumnWrapperProps } from './components/organisms/
|
|
|
67
68
|
import { FormSelectProps, SelectOptionsProps } from './components/atoms/FormSelect/FormSelect';
|
|
68
69
|
import CardPromoProfile, { CardPromoProfileProps } from './components/molecules/CardPromoProfile/CardPromoProfile';
|
|
69
70
|
import CardStaff, { CardStaffProps } from './components/molecules/CardStaff/CardStaff';
|
|
70
|
-
export type { AccordionProps, AccreditationPromotionProps, AlertBannerProps, AnchorTargetProps, BreadcrumbsProps, CarouselProps, CardProfileProps, CardStaffProps, CenterWrapperProps, ClearingBannerProps, CourseDeliveryPillsProps, CTAComponentProps, EmbedWrapperProps, FactBoxesProps, FeaturedContentProps, FeaturedSignpostProps, FeaturedVideoProps, FiveArticlesGridProps, FooterProps, FormSelectProps, GenericDetailSectionProps, GeneralSearchFilterProps, HeaderProps, HeadingProps, HeroProps, HeroArticleProps, HeroCarouselProps, HeroCoursesProps, HeroProfileProps, ImageBlockProps, ImageCarouselProps, InPageNavigationProps, IntroTextProps, LeadNewsArticlesProps, ListingFilterWrapperProps, ListingResultsProps, ListingResultsCountProps, ListTableProps, LocationSelectorProps, MainWrapperProps, ModuleCardGroupProps, NewsArticlesPromoBlockProps, PaginationProps, PromoBlockProps, QuoteBlockProps, RelatedCoursesProps, ResearchStoryCarouselProps, RichTextProps, ScholarshipCarouselProps, SearchCoursesProps, SelectOptionsProps, StaffListingCarouselProps, SidebarWrapperProps, SignPostProps, SingleButtonProps, SkipToContentProps, TabsBlockProps, TextWithBackgroundProps, TwoColumnWrapperProps, TopicSelectorProps, StandardListingFilterProps, VideoCardComponentProps, VideoEmbedProps, ScrollableTableProps, ScrollableTableCategory, ModalCTAProps, LocationSectionProps, CardPromoProfileProps, CardPromoSignpostProps };
|
|
71
|
-
export { Accordion, AcreditationPromotion, AlertBanner, AnchorTarget, Breadcrumbs, Carousel, CardProfile, CardPromoSignpost, CardStaff, CentreWrapper, ClearingBanner, CourseDeliveryPills, CTAComponent, EmbedWrapper, FactBoxes, FeaturedContent, FeaturedSignpost, FeaturedVideo, FiveArticlesGrid, Footer, GeneralSearchFilter, GenericDetailSection, Header, Heading, Hero, HeroArticle, HeroCarousel, HeroCourses, HeroProfile, ImageBlock, ImageCarousel, InPageNavigation, IntroText, LeadNewsArticles, ListingFilterWrapper, ListingResults, ListingResultsCount, ListTable, LocationSelector, MainWrapper, ModuleCardGroup, NewsArticlesPromoBlock, Pagination, PromoBlock, PromoBlockGrid, QuoteBlock, RelatedCourses, ResearchStoryCarousel, RichText, ScholarshipCarousel, SearchCourses, SidebarWrapper, SignPost, SingleButton, SkipToContent, StaffListingCarousel, StandardListingFilter, TabsBlock, TextWithBackground, TopicSelector, TwoColumnWrapper, VideoCardComponent, VideoEmbed, ScrollableTable, ModalCTA, LocationSection, CardPromoProfile };
|
|
71
|
+
export type { AccordionProps, AccreditationPromotionProps, AlertBannerProps, AnchorTargetProps, BreadcrumbsProps, CarouselProps, CardProfileProps, CardStaffProps, CenterWrapperProps, ClearingBannerProps, CourseDeliveryPillsProps, CTAComponentProps, EmbedWrapperProps, FactBoxesProps, FeaturedContentProps, FeaturedSignpostProps, FeaturedVideoProps, FiveArticlesGridProps, FooterProps, FormSelectProps, GenericDetailSectionProps, GeneralSearchFilterProps, HeaderProps, HeadingProps, HeroProps, HeroArticleProps, HeroCarouselProps, HeroCoursesProps, HeroProfileProps, ImageBlockProps, ImageCarouselProps, InPageNavigationProps, IntroTextProps, LeadNewsArticlesProps, ListingFilterWrapperProps, ListingResultsProps, ListingResultsCountProps, ListTableProps, LocationSelectorProps, MainWrapperProps, ModuleCardGroupProps, NewsArticlesPromoBlockProps, PaginationProps, PromoBlockProps, QuoteBlockProps, RelatedCoursesProps, ResearchStoryCarouselProps, RichTextProps, ScholarshipCarouselProps, SearchCoursesProps, SelectOptionsProps, StaffListingCarouselProps, SidebarWrapperProps, SignPostProps, SingleButtonProps, SkipToContentProps, TabsBlockProps, TextWithBackgroundProps, TwoColumnWrapperProps, TopicSelectorProps, StandardListingFilterProps, VideoCardComponentProps, VideoEmbedProps, ScrollableTableProps, ScrollableTableCategory, ModalCTAProps, LocationSectionProps, CardPromoProfileProps, CardPromoSignpostProps, CardImageAndTextProps };
|
|
72
|
+
export { Accordion, AcreditationPromotion, AlertBanner, AnchorTarget, Breadcrumbs, Carousel, CardProfile, CardPromoSignpost, CardStaff, CentreWrapper, ClearingBanner, CourseDeliveryPills, CTAComponent, EmbedWrapper, FactBoxes, FeaturedContent, FeaturedSignpost, FeaturedVideo, FiveArticlesGrid, Footer, GeneralSearchFilter, GenericDetailSection, Header, Heading, Hero, HeroArticle, HeroCarousel, HeroCourses, HeroProfile, ImageBlock, ImageCarousel, InPageNavigation, IntroText, LeadNewsArticles, ListingFilterWrapper, ListingResults, ListingResultsCount, ListTable, LocationSelector, MainWrapper, ModuleCardGroup, NewsArticlesPromoBlock, Pagination, PromoBlock, PromoBlockGrid, QuoteBlock, RelatedCourses, ResearchStoryCarousel, RichText, ScholarshipCarousel, SearchCourses, SidebarWrapper, SignPost, SingleButton, SkipToContent, StaffListingCarousel, StandardListingFilter, TabsBlock, TextWithBackground, TopicSelector, TwoColumnWrapper, VideoCardComponent, VideoEmbed, ScrollableTable, ModalCTA, LocationSection, CardPromoProfile, CardImageAndText };
|