@uob-web-and-digital/component-library 2.7.2 → 2.7.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.
- package/README.md +111 -111
- package/dist/components/atoms/BreadcrumbLink/BreadcrumbLink.d.ts +10 -0
- package/dist/components/atoms/BreadcrumbLink/BreadcrumbLink.stories.d.ts +11 -0
- package/dist/components/atoms/CalendarGraphic/CalendarGraphic.d.ts +10 -0
- package/dist/components/atoms/CalendarGraphic/CalendarGraphic.stories.d.ts +12 -0
- package/dist/components/atoms/CampusSelectorLink/CampusSelectorLink.d.ts +17 -0
- package/dist/components/atoms/CampusSelectorLink/CampusSelectorLink.stories.d.ts +11 -0
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +13 -0
- package/dist/components/atoms/Checkbox/Checkbox.stories.d.ts +10 -0
- package/dist/components/atoms/CourseDeliveryPill/CourseDeliveryPill.d.ts +10 -0
- package/dist/components/atoms/CourseDeliveryPill/CourseDeliveryPill.stories.d.ts +11 -0
- package/dist/components/atoms/CourseIcon/CourseIcon.d.ts +11 -0
- package/dist/components/atoms/CourseIcon/CourseIcon.stories.d.ts +12 -0
- package/dist/components/atoms/DateInput/DateInput.d.ts +12 -0
- package/dist/components/atoms/DateInput/DateInput.stories.d.ts +6 -0
- package/dist/components/atoms/ExampleTheming/ExampleTheming.d.ts +17 -0
- package/dist/components/atoms/ExampleTheming/ExampleTheming.stories.d.ts +12 -0
- package/dist/components/atoms/FormInput/FormInput.d.ts +23 -0
- package/dist/components/atoms/FormInput/FormInput.stories.d.ts +11 -0
- package/dist/components/atoms/FormInput/defaultProps.d.ts +2 -0
- package/dist/components/atoms/FormSelect/FormSelect.d.ts +23 -0
- package/dist/components/atoms/FormSelect/FormSelect.stories.d.ts +12 -0
- package/dist/components/atoms/FormSelect/defaultProps.d.ts +2 -0
- package/dist/components/atoms/Heading/Heading.d.ts +7 -0
- package/dist/components/atoms/Heading/Heading.stories.d.ts +12 -0
- package/dist/components/atoms/IconButton/IconButton.d.ts +20 -0
- package/dist/components/atoms/IconButton/IconButton.stories.d.ts +29 -0
- package/dist/components/atoms/IconButton/defaultProps.d.ts +12 -0
- package/dist/components/atoms/IconControl/IconControl.d.ts +17 -0
- package/dist/components/atoms/IconControl/IconControl.stories.d.ts +13 -0
- package/dist/components/atoms/IconControl/defaultProps.d.ts +3 -0
- package/dist/components/atoms/Icons/Icons.d.ts +18 -0
- package/dist/components/atoms/Icons/Icons.stories.d.ts +12 -0
- package/dist/components/atoms/Image/Image.d.ts +16 -0
- package/dist/components/atoms/LinkStandard/LinkStandard.d.ts +11 -0
- package/dist/components/atoms/LinkStandard/LinkStandard.stories.d.ts +11 -0
- package/dist/components/atoms/LinkWithArrow/LinkWithArrow.d.ts +19 -0
- package/dist/components/atoms/LinkWithArrow/LinkWithArrow.stories.d.ts +13 -0
- package/dist/components/atoms/LinkWithIcon/LinkWithIcon.d.ts +16 -0
- package/dist/components/atoms/LinkWithIcon/LinkWithIcon.stories.d.ts +11 -0
- package/dist/components/atoms/LogoLink/LogoLink.d.ts +13 -0
- package/dist/components/atoms/LogoLink/LogoLink.stories.d.ts +13 -0
- package/dist/components/atoms/LogoLink/defaultProps.d.ts +2 -0
- package/dist/components/atoms/MainWrapper/MainWrapper.d.ts +4 -0
- package/dist/components/atoms/NavLink/NavLink.d.ts +14 -0
- package/dist/components/atoms/NavLink/NavLink.stories.d.ts +18 -0
- package/dist/components/atoms/PageLink/PageLink.d.ts +18 -0
- package/dist/components/atoms/PageLink/PageLink.stories.d.ts +18 -0
- package/dist/components/atoms/ParagraphLink/ParagraphLink.d.ts +17 -0
- package/dist/components/atoms/ParagraphLink/ParagraphLink.stories.d.ts +11 -0
- package/dist/components/atoms/Parallax/Parallax.d.ts +7 -0
- package/dist/components/atoms/Pill/Pill.d.ts +13 -0
- package/dist/components/atoms/Pill/Pill.stories.d.ts +11 -0
- package/dist/components/atoms/RadioButton/RadioButton.d.ts +13 -0
- package/dist/components/atoms/RadioButton/RadioButton.stories.d.ts +10 -0
- package/dist/components/atoms/ReverseLinkWithArrow/ReverseLinkWithArrow.d.ts +19 -0
- package/dist/components/atoms/ReverseLinkWithArrow/ReverseLinkWithArrow.stories.d.ts +13 -0
- package/dist/components/atoms/SearchResultDetail/SearchResultDetail.d.ts +12 -0
- package/dist/components/atoms/SearchResultDetail/SearchResultDetail.stories.d.ts +10 -0
- package/dist/components/atoms/TextButton/TextButton.d.ts +32 -0
- package/dist/components/atoms/TextButton/TextButton.stories.d.ts +14 -0
- package/dist/components/atoms/TextButtonWithIcon/TextButtonWithIcon.d.ts +42 -0
- package/dist/components/atoms/TextButtonWithIcon/TextButtonWithIcon.stories.d.ts +14 -0
- package/dist/components/atoms/Video/Video.d.ts +10 -0
- package/dist/components/atoms/Video/Video.stories.d.ts +15 -0
- package/dist/components/atoms/Video/defaultProps.d.ts +2 -0
- package/dist/components/atoms/VideoPlaceholder/VideoPlaceholder.d.ts +13 -0
- package/dist/components/atoms/VideoPlaceholder/VideoPlaceholder.stories.d.ts +6 -0
- package/dist/components/atoms/VideoPlaceholder/defaultProps.d.ts +2 -0
- package/dist/components/molecules/AccordionItem/AccordionItem.d.ts +27 -0
- package/dist/components/molecules/AccordionItem/AccordionItem.stories.d.ts +19 -0
- package/dist/components/molecules/CampusSelector/CampusSelector.d.ts +15 -0
- package/dist/components/molecules/CampusSelector/CampusSelector.stories.d.ts +11 -0
- package/dist/components/molecules/CardFact/CardFact.d.ts +16 -0
- package/dist/components/molecules/CardFact/CardFact.stories.d.ts +14 -0
- package/dist/components/molecules/CardFeatured/CardFeatured.d.ts +32 -0
- package/dist/components/molecules/CardFeatured/CardFeatured.stories.d.ts +11 -0
- package/dist/components/molecules/CardFeatured/animationVariants.d.ts +44 -0
- package/dist/components/molecules/CardFeatured/defaultProps.d.ts +2 -0
- package/dist/components/molecules/CardFeaturedNews/CardFeaturedNews.d.ts +23 -0
- package/dist/components/molecules/CardFeaturedNews/CardFeaturedNews.stories.d.ts +13 -0
- package/dist/components/molecules/CardImage/CardImage.d.ts +15 -0
- package/dist/components/molecules/CardImage/CardImage.stories.d.ts +18 -0
- package/dist/components/molecules/CardImage/defaultProps.d.ts +2 -0
- package/dist/components/molecules/CardMenu/CardMenu.d.ts +19 -0
- package/dist/components/molecules/CardMenu/CardMenu.stories.d.ts +14 -0
- package/dist/components/molecules/CardModuleCard/CardModuleCard.d.ts +14 -0
- package/dist/components/molecules/CardModuleCard/CardModuleCard.stories.d.ts +14 -0
- package/dist/components/molecules/CardNews/CardNews.d.ts +19 -0
- package/dist/components/molecules/CardNews/CardNews.stories.d.ts +15 -0
- package/dist/components/molecules/CardNews/defaultProps.d.ts +2 -0
- package/dist/components/molecules/CardProfile/CardProfile.d.ts +18 -0
- package/dist/components/molecules/CardProfile/CardProfile.stories.d.ts +13 -0
- package/dist/components/molecules/CardPromo/CardPromo.d.ts +34 -0
- package/dist/components/molecules/CardPromo/CardPromo.stories.d.ts +21 -0
- package/dist/components/molecules/CardPromoProfile/CardPromoProfile.d.ts +22 -0
- package/dist/components/molecules/CardPromoProfile/CardPromoProfile.stories.d.ts +15 -0
- package/dist/components/molecules/CardPromoSignpost/CardPromoSignpost.d.ts +30 -0
- package/dist/components/molecules/CardPromoSignpost/CardPromoSignpost.stories.d.ts +18 -0
- package/dist/components/molecules/CardPromoVideo/CardPromoVideo.d.ts +20 -0
- package/dist/components/molecules/CardPromoVideo/CardPromoVideo.stories.d.ts +16 -0
- package/dist/components/molecules/CardRelatedCourse/CardRelatedCourse.d.ts +15 -0
- package/dist/components/molecules/CardRelatedCourse/CardRelatedCourse.stories.d.ts +13 -0
- package/dist/components/molecules/CardResearchStory/CardResearchStory.d.ts +18 -0
- package/dist/components/molecules/CardResearchStory/CardResearchStory.stories.d.ts +13 -0
- package/dist/components/molecules/CardScholarship/CardScholarship.d.ts +21 -0
- package/dist/components/molecules/CardScholarship/CardScholarship.stories.d.ts +13 -0
- package/dist/components/molecules/CardStaff/CardStaff.d.ts +22 -0
- package/dist/components/molecules/CardStaff/CardStaff.stories.d.ts +14 -0
- package/dist/components/molecules/CardVideo/CardVideo.d.ts +18 -0
- package/dist/components/molecules/CardVideo/CardVideo.stories.d.ts +13 -0
- package/dist/components/molecules/CarouselNav/CarouselNav.d.ts +17 -0
- package/dist/components/molecules/CarouselNav/CarouselNav.stories.d.ts +11 -0
- package/dist/components/molecules/FilterAccordion/FilterAccordion.d.ts +32 -0
- package/dist/components/molecules/FilterAccordion/FilterAccordion.stories.d.ts +12 -0
- package/dist/components/molecules/FilterAccordion/defaultProps.d.ts +3 -0
- package/dist/components/molecules/FilterAccordionSelect/FilterAccordionSelect.d.ts +14 -0
- package/dist/components/molecules/FilterAccordionSelect/FilterAccordionSelect.stories.d.ts +10 -0
- package/dist/components/molecules/FilterAccordionSelect/defaultProps.d.ts +2 -0
- package/dist/components/molecules/FullModal/FullModal.d.ts +33 -0
- package/dist/components/molecules/GenericDetail/GenericDetail.d.ts +14 -0
- package/dist/components/molecules/GenericDetail/GenericDetail.stories.d.ts +12 -0
- package/dist/components/molecules/Heading/Heading.d.ts +23 -0
- package/dist/components/molecules/Heading/Heading.stories.d.ts +19 -0
- package/dist/components/molecules/Heading/components/HeadingDescription.d.ts +8 -0
- package/dist/components/molecules/Heading/defaultProps.d.ts +2 -0
- package/dist/components/molecules/InPageNavigationLinks/InPageNavigationLinks.d.ts +18 -0
- package/dist/components/molecules/InPageNavigationLinks/InPageNavigationLinks.stories.d.ts +14 -0
- package/dist/components/molecules/InPageNavigationLinks/defaultProps.d.ts +3 -0
- package/dist/components/molecules/ListTable/ListTable.d.ts +8 -0
- package/dist/components/molecules/ListTable/ListTable.stories.d.ts +10 -0
- package/dist/components/molecules/ListingResultCard/Cards/AccomodationCard.d.ts +15 -0
- package/dist/components/molecules/ListingResultCard/Cards/CourseCard.d.ts +18 -0
- package/dist/components/molecules/ListingResultCard/Cards/EventCard.d.ts +19 -0
- package/dist/components/molecules/ListingResultCard/Cards/NewsCard.d.ts +16 -0
- package/dist/components/molecules/ListingResultCard/Cards/PageCard.d.ts +13 -0
- package/dist/components/molecules/ListingResultCard/Cards/ProfileCard.d.ts +17 -0
- package/dist/components/molecules/ListingResultCard/Cards/StaffCard.d.ts +17 -0
- package/dist/components/molecules/ListingResultCard/ListingResultCard.d.ts +11 -0
- package/dist/components/molecules/ListingResultCard/ListingResultCard.stories.d.ts +20 -0
- package/dist/components/molecules/ListingResultCard/defaultProps.d.ts +15 -0
- package/dist/components/molecules/LocationSelector/LocationSelector.d.ts +14 -0
- package/dist/components/molecules/LocationSelector/LocationSelector.stories.d.ts +15 -0
- package/dist/components/molecules/LocationSelector/defaultProps.d.ts +2 -0
- package/dist/components/molecules/ModalCTAButton/ModalCTAButton.d.ts +11 -0
- package/dist/components/molecules/ModalCTAButton/ModalCTAButton.stories.d.ts +10 -0
- package/dist/components/molecules/ModalCTAButton/defaultProps.d.ts +2 -0
- package/dist/components/molecules/MostReadNews/MostReadNews.d.ts +12 -0
- package/dist/components/molecules/MostReadNews/MostReadNews.stories.d.ts +10 -0
- package/dist/components/molecules/MostReadNews/defaultProps.d.ts +2 -0
- package/dist/components/molecules/PaginationNumbers/PaginationNumbers.d.ts +9 -0
- package/dist/components/molecules/PaginationNumbers/PaginationNumbers.stories.d.ts +12 -0
- package/dist/components/molecules/SearchResultDetailList/SearchResultDetailList.d.ts +11 -0
- package/dist/components/molecules/SearchResultDetailList/SearchResultDetailList.stories.d.ts +10 -0
- package/dist/components/molecules/SearchResultDetailList/defaultProps.d.ts +2 -0
- package/dist/components/molecules/ShareButtons/ShareButtons.d.ts +11 -0
- package/dist/components/molecules/ShareButtons/ShareButtons.stories.d.ts +11 -0
- package/dist/components/molecules/ShareButtons/defaultProps.d.ts +2 -0
- package/dist/components/molecules/Tab/Tab.d.ts +53 -0
- package/dist/components/molecules/Tab/TabItemProps.d.ts +21 -0
- package/dist/components/molecules/Tab/tabsUtils.d.ts +1 -0
- package/dist/components/molecules/TabList/TabsList.d.ts +17 -0
- package/dist/components/molecules/TabPanel/TabPanel.d.ts +34 -0
- package/dist/components/molecules/VideoWithPlaceholder/VideoWithPlaceholder.d.ts +14 -0
- package/dist/components/molecules/VideoWithPlaceholder/VideoWithPlaceholder.stories.d.ts +6 -0
- package/dist/components/molecules/VideoWithPlaceholder/defaultProps.d.ts +2 -0
- package/dist/components/molecules/Wysiwyg/Wysiwyg.d.ts +9 -0
- package/dist/components/molecules/Wysiwyg/Wysiwyg.stories.d.ts +11 -0
- package/dist/components/molecules/Wysiwyg/defaultProps.d.ts +2 -0
- package/dist/components/organisms/Accordion/Accordion.d.ts +14 -0
- package/dist/components/organisms/Accordion/accordion.stories.d.ts +13 -0
- package/dist/components/organisms/Accordion/defaultProps.d.ts +5 -0
- package/dist/components/organisms/AccreditationPromotion/AccreditationPromotion.d.ts +22 -0
- package/dist/components/organisms/AccreditationPromotion/AccreditationPromotion.stories.d.ts +11 -0
- package/dist/components/organisms/AccreditationPromotion/defaultProps.d.ts +2 -0
- package/dist/components/organisms/AlertBanner/AlertBanner.d.ts +11 -0
- package/dist/components/organisms/AlertBanner/AlertBanner.stories.d.ts +15 -0
- package/dist/components/organisms/AlertBanner/defaultProps.d.ts +2 -0
- package/dist/components/organisms/AnchorTarget/AnchorTarget.d.ts +11 -0
- package/dist/components/organisms/AnchorTarget/AnchorTarget.stories.d.ts +15 -0
- package/dist/components/organisms/Breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/components/organisms/Breadcrumbs/Breadcrumbs.stories.d.ts +11 -0
- package/dist/components/organisms/Breadcrumbs/defaultProps.d.ts +2 -0
- package/dist/components/organisms/CTAComponent/CTAComponent.d.ts +24 -0
- package/dist/components/organisms/CTAComponent/CTAComponent.stories.d.ts +14 -0
- package/dist/components/organisms/CTAComponent/defaultProps.d.ts +4 -0
- package/dist/components/organisms/Carousel/Carousel.d.ts +29 -0
- package/dist/components/organisms/Carousel/Carousel.stories.d.ts +12 -0
- package/dist/components/organisms/Carousel/defaultProps.d.ts +7 -0
- package/dist/components/organisms/CentreWrapper/CentreWrapper.d.ts +11 -0
- package/dist/components/organisms/CentreWrapper/CentreWrapper.stories.d.ts +15 -0
- package/dist/components/organisms/ClearingBanner/ClearingBanner.d.ts +13 -0
- package/dist/components/organisms/ClearingBanner/ClearingBanner.stories.d.ts +10 -0
- package/dist/components/organisms/ClearingBanner/defaultProps.d.ts +2 -0
- package/dist/components/organisms/CourseDeliveryPills/CourseDeliveryPills.d.ts +9 -0
- package/dist/components/organisms/CourseDeliveryPills/CourseDeliveryPills.stories.d.ts +10 -0
- package/dist/components/organisms/CourseDeliveryPills/defaultProps.d.ts +2 -0
- package/dist/components/organisms/EmbedWrapper/EmbedWrapper.d.ts +21 -0
- package/dist/components/organisms/EmbedWrapper/EmbedWrapper.stories.d.ts +12 -0
- package/dist/components/organisms/FactBoxes/FactBoxes.d.ts +10 -0
- package/dist/components/organisms/FactBoxes/FactBoxes.stories.d.ts +16 -0
- package/dist/components/organisms/FactBoxes/defaultProps.d.ts +4 -0
- package/dist/components/organisms/FeaturedContent/FeaturedContent.d.ts +15 -0
- package/dist/components/organisms/FeaturedContent/FeaturedContent.stories.d.ts +11 -0
- package/dist/components/organisms/FeaturedContent/defaultProps.d.ts +2 -0
- package/dist/components/organisms/FeaturedSignpost/FeaturedSignpost.d.ts +27 -0
- package/dist/components/organisms/FeaturedSignpost/FeaturedSignpost.stories.d.ts +13 -0
- package/dist/components/organisms/FeaturedSignpost/animationProperties.d.ts +104 -0
- package/dist/components/organisms/FeaturedSignpost/components/LinesOfIntent.d.ts +8 -0
- package/dist/components/organisms/FeaturedSignpost/components/SignpostImage.d.ts +14 -0
- package/dist/components/organisms/FeaturedSignpost/defaultProps.d.ts +3 -0
- package/dist/components/organisms/FeaturedVideo/FeaturedVideo.d.ts +18 -0
- package/dist/components/organisms/FeaturedVideo/FeaturedVideo.stories.d.ts +6 -0
- package/dist/components/organisms/FeaturedVideo/defaultProps.d.ts +2 -0
- package/dist/components/organisms/FiveArticlesGrid/FiveArticlesGrid.d.ts +11 -0
- package/dist/components/organisms/FiveArticlesGrid/FiveArticlesGrid.stories.d.ts +10 -0
- package/dist/components/organisms/FiveArticlesGrid/defaultProps.d.ts +2 -0
- package/dist/components/organisms/Footer/Footer.d.ts +28 -0
- package/dist/components/organisms/Footer/Footer.stories.d.ts +14 -0
- package/dist/components/organisms/Footer/defaultProps.d.ts +8 -0
- package/dist/components/organisms/GeneralSearchFilter/GeneralSearchFilter.d.ts +31 -0
- package/dist/components/organisms/GeneralSearchFilter/GeneralSearchFilter.stories.d.ts +7 -0
- package/dist/components/organisms/GeneralSearchFilter/defaultProps.d.ts +2 -0
- package/dist/components/organisms/GenericDetailSection/GenericDetailSection.d.ts +12 -0
- package/dist/components/organisms/GenericDetailSection/GenericDetailSection.stories.d.ts +13 -0
- package/dist/components/organisms/GenericDetailSection/defaultProps.d.ts +5 -0
- package/dist/components/organisms/Header/Header.d.ts +30 -0
- package/dist/components/organisms/Header/Header.stories.d.ts +12 -0
- package/dist/components/organisms/Header/components/MainMenu.d.ts +12 -0
- package/dist/components/organisms/Header/components/NestedMenu.d.ts +11 -0
- package/dist/components/organisms/Header/components/SearchMenu.d.ts +45 -0
- package/dist/components/organisms/Header/defaultProps.d.ts +12 -0
- package/dist/components/organisms/Header/types.d.ts +13 -0
- package/dist/components/organisms/Hero/Hero.d.ts +44 -0
- package/dist/components/organisms/Hero/Hero.stories.d.ts +17 -0
- package/dist/components/organisms/Hero/components/LinesOfIntent.d.ts +7 -0
- package/dist/components/organisms/Hero/components/PolygonImage.d.ts +16 -0
- package/dist/components/organisms/Hero/defaultProps.d.ts +7 -0
- package/dist/components/organisms/HeroArticle/HeroArticle.d.ts +22 -0
- package/dist/components/organisms/HeroArticle/HeroArticle.stories.d.ts +10 -0
- package/dist/components/organisms/HeroArticle/defaultProps.d.ts +2 -0
- package/dist/components/organisms/HeroCarousel/HeroCarousel.d.ts +28 -0
- package/dist/components/organisms/HeroCarousel/HeroCarousel.stories.d.ts +11 -0
- package/dist/components/organisms/HeroCarousel/animationVariants.d.ts +177 -0
- package/dist/components/organisms/HeroCarousel/components/HeroCardContent.d.ts +17 -0
- package/dist/components/organisms/HeroCarousel/components/HeroImage.d.ts +15 -0
- package/dist/components/organisms/HeroCarousel/components/LinesOfIntent.d.ts +8 -0
- package/dist/components/organisms/HeroCarousel/defaultProps.d.ts +2 -0
- package/dist/components/organisms/HeroCourses/HeroCourses.d.ts +35 -0
- package/dist/components/organisms/HeroCourses/HeroCourses.stories.d.ts +14 -0
- package/dist/components/organisms/HeroCourses/components/CourseTile.d.ts +8 -0
- package/dist/components/organisms/HeroCourses/components/CourseTileRanking.d.ts +9 -0
- package/dist/components/organisms/HeroCourses/components/CourseTileSelect.d.ts +7 -0
- package/dist/components/organisms/HeroCourses/components/tileLinkClickHandler.d.ts +3 -0
- package/dist/components/organisms/HeroCourses/defaultProps.d.ts +43 -0
- package/dist/components/organisms/HeroProfile/HeroProfile.d.ts +28 -0
- package/dist/components/organisms/HeroProfile/HeroProfile.stories.d.ts +13 -0
- package/dist/components/organisms/HeroProfile/defaultProps.d.ts +5 -0
- package/dist/components/organisms/ImageBlock/ImageBlock.d.ts +10 -0
- package/dist/components/organisms/ImageBlock/ImageBlock.stories.d.ts +24 -0
- package/dist/components/organisms/ImageBlock/defaultProps.d.ts +3 -0
- package/dist/components/organisms/ImageCarousel/ImageCarousel.d.ts +10 -0
- package/dist/components/organisms/ImageCarousel/ImageCarousel.stories.d.ts +13 -0
- package/dist/components/organisms/ImageCarousel/defaultProps.d.ts +3 -0
- package/dist/components/organisms/InPageNavigation/InPageNavigation.d.ts +11 -0
- package/dist/components/organisms/InPageNavigation/InPageNavigation.stories.d.ts +11 -0
- package/dist/components/organisms/InPageNavigation/defaultProps.d.ts +2 -0
- package/dist/components/organisms/IntroText/IntroText.d.ts +22 -0
- package/dist/components/organisms/IntroText/IntroText.stories.d.ts +17 -0
- package/dist/components/organisms/IntroText/defaultProps.d.ts +2 -0
- package/dist/components/organisms/LeadNewsArticles/LeadNewsArticles.d.ts +12 -0
- package/dist/components/organisms/LeadNewsArticles/LeadNewsArticles.stories.d.ts +10 -0
- package/dist/components/organisms/LeadNewsArticles/defaultProps.d.ts +2 -0
- package/dist/components/organisms/ListingFilterWrapper/ListingFilterWrapper.d.ts +10 -0
- package/dist/components/organisms/ListingFilterWrapper/ListingFilterWrapper.stories.d.ts +6 -0
- package/dist/components/organisms/ListingResults/ListingResults.d.ts +19 -0
- package/dist/components/organisms/ListingResults/ListingResults.stories.d.ts +15 -0
- package/dist/components/organisms/ListingResults/defaultProps.d.ts +8 -0
- package/dist/components/organisms/ListingResultsCount/ListingResultsCount.d.ts +8 -0
- package/dist/components/organisms/ListingResultsCount/ListingResultsCount.stories.d.ts +15 -0
- package/dist/components/organisms/LocationSection/LocationSection.d.ts +18 -0
- package/dist/components/organisms/LocationSection/LocationSection.stories.d.ts +13 -0
- package/dist/components/organisms/LocationSection/defaultProps.d.ts +2 -0
- package/dist/components/organisms/ModalCTA/ModalCTA.d.ts +16 -0
- package/dist/components/organisms/ModalCTA/ModalCTA.stories.d.ts +12 -0
- package/dist/components/organisms/ModalCTA/defaultProps.d.ts +2 -0
- package/dist/components/organisms/ModuleCardGroup/ModuleCardGroup.d.ts +10 -0
- package/dist/components/organisms/ModuleCardGroup/ModuleCardGroup.stories.d.ts +14 -0
- package/dist/components/organisms/ModuleCardGroup/defaultProps.d.ts +2 -0
- package/dist/components/organisms/NewsArticlesPromoBlock/NewsArticlesPromoBlock.d.ts +12 -0
- package/dist/components/organisms/NewsArticlesPromoBlock/NewsArticlesPromoBlock.stories.d.ts +11 -0
- package/dist/components/organisms/NewsArticlesPromoBlock/defaultProps.d.ts +3 -0
- package/dist/components/organisms/Pagination/Pagination.d.ts +10 -0
- package/dist/components/organisms/Pagination/Pagination.stories.d.ts +12 -0
- package/dist/components/organisms/ProfileCarousel/ProfileCarousel.stories.d.ts +13 -0
- package/dist/components/organisms/PromoBlock/PromoBlock.d.ts +70 -0
- package/dist/components/organisms/PromoBlock/PromoBlock.stories.d.ts +36 -0
- package/dist/components/organisms/PromoBlock/defaultProps.d.ts +17 -0
- package/dist/components/organisms/PromoBlockGrid/PromoBlockGrid.d.ts +46 -0
- package/dist/components/organisms/PromoBlockGrid/PromoBlockGrid.stories.d.ts +17 -0
- package/dist/components/organisms/PromoBlockGrid/defaultProps.d.ts +3 -0
- package/dist/components/organisms/QuoteBlock/QuoteBlock.d.ts +20 -0
- package/dist/components/organisms/QuoteBlock/QuoteBlock.stories.d.ts +19 -0
- package/dist/components/organisms/QuoteBlock/defaultProps.d.ts +6 -0
- package/dist/components/organisms/RelatedCourses/RelatedCourses.d.ts +18 -0
- package/dist/components/organisms/RelatedCourses/RelatedCourses.stories.d.ts +16 -0
- package/dist/components/organisms/RelatedCourses/defaultProps.d.ts +2 -0
- package/dist/components/organisms/ResearchStoryCarousel/ResearchStoryCarousel.d.ts +17 -0
- package/dist/components/organisms/ResearchStoryCarousel/ResearchStoryCarousel.stories.d.ts +10 -0
- package/dist/components/organisms/ResearchStoryCarousel/defaultProps.d.ts +2 -0
- package/dist/components/organisms/RichText/RichText.d.ts +20 -0
- package/dist/components/organisms/RichText/RichText.stories.d.ts +18 -0
- package/dist/components/organisms/RichText/defaultProps.d.ts +13 -0
- package/dist/components/organisms/ScholarshipCarousel/ScholarshipCarousel.d.ts +13 -0
- package/dist/components/organisms/ScholarshipCarousel/ScholarshipCarousel.stories.d.ts +12 -0
- package/dist/components/organisms/ScholarshipCarousel/defaultProps.d.ts +2 -0
- package/dist/components/organisms/ScrollableTable/ScrollableTable.d.ts +12 -0
- package/dist/components/organisms/ScrollableTable/ScrollableTable.stories.d.ts +24 -0
- package/dist/components/organisms/ScrollableTable/defaultProps.d.ts +6 -0
- package/dist/components/organisms/SearchCourses/SearchCourses.d.ts +79 -0
- package/dist/components/organisms/SearchCourses/SearchCourses.stories.d.ts +20 -0
- package/dist/components/organisms/SearchCourses/defaultProps.d.ts +4 -0
- package/dist/components/organisms/SidebarWrapper/SidebarWrapper.d.ts +12 -0
- package/dist/components/organisms/SidebarWrapper/SidebarWrapper.stories.d.ts +15 -0
- package/dist/components/organisms/SignPost/SignPost.d.ts +35 -0
- package/dist/components/organisms/SignPost/SignPost.stories.d.ts +19 -0
- package/dist/components/organisms/SignPost/defaultProps.d.ts +3 -0
- package/dist/components/organisms/SingleButton/SingleButton.d.ts +13 -0
- package/dist/components/organisms/SingleButton/SingleButton.stories.d.ts +13 -0
- package/dist/components/organisms/SingleButton/defaultProps.d.ts +2 -0
- package/dist/components/organisms/SkipToContent/SkipToContent.d.ts +7 -0
- package/dist/components/organisms/SkipToContent/SkipToContent.stories.d.ts +15 -0
- package/dist/components/organisms/StaffListingCarousel/StaffListingCarousel.d.ts +20 -0
- package/dist/components/organisms/StaffListingCarousel/StaffListingCarousel.stories.d.ts +16 -0
- package/dist/components/organisms/StaffListingCarousel/defaultProps.d.ts +7 -0
- package/dist/components/organisms/StandardListingFilter/StandardListingFilter.d.ts +53 -0
- package/dist/components/organisms/StandardListingFilter/StandardListingFilter.stories.d.ts +7 -0
- package/dist/components/organisms/StandardListingFilter/defaultProps.d.ts +3 -0
- package/dist/components/organisms/TabsBlock/TabsBlock.d.ts +52 -0
- package/dist/components/organisms/TabsBlock/TabsBlock.stories.d.ts +24 -0
- package/dist/components/organisms/TabsBlock/defaultProps.d.ts +4 -0
- package/dist/components/organisms/TextWithBackground/TextWithBackground.d.ts +23 -0
- package/dist/components/organisms/TextWithBackground/TextWithBackground.stories.d.ts +22 -0
- package/dist/components/organisms/TextWithBackground/defaultProps.d.ts +4 -0
- package/dist/components/organisms/TopicSelector/TopicSelector.d.ts +17 -0
- package/dist/components/organisms/TopicSelector/TopicSelector.stories.d.ts +10 -0
- package/dist/components/organisms/TopicSelector/defaultProps.d.ts +2 -0
- package/dist/components/organisms/TwoColumnWrapper/TwoColumnWrapper.d.ts +12 -0
- package/dist/components/organisms/TwoColumnWrapper/TwoColumnWrapper.stories.d.ts +16 -0
- package/dist/components/organisms/VideoCardComponent/VideoCardComponent.d.ts +17 -0
- package/dist/components/organisms/VideoCardComponent/VideoCardComponent.stories.d.ts +6 -0
- package/dist/components/organisms/VideoCardComponent/defaultProps.d.ts +2 -0
- package/dist/components/organisms/VideoEmbed/VideoEmbed.d.ts +23 -0
- package/dist/components/organisms/VideoEmbed/VideoEmbed.stories.d.ts +17 -0
- package/dist/components/organisms/VideoEmbed/defaultProps.d.ts +2 -0
- package/dist/hooks/mediaHook.d.ts +1 -0
- package/dist/hooks/useFocusTrap.d.ts +5 -0
- package/dist/hooks/useOnClickOutside.d.ts +2 -0
- package/dist/hooks/useScrollDirection.d.ts +3 -0
- package/dist/index.d.ts +70 -0
- package/dist/main.css +1 -0
- package/dist/main.js +23 -0
- package/dist/module.js +23 -0
- package/dist/themeProps.d.ts +1 -0
- package/dist/utils/ariaCarousel.d.ts +29 -0
- package/dist/utils/getFocusableTreeWalker.d.ts +32 -0
- package/dist/utils/util.d.ts +3 -0
- package/package.json +121 -121
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import './hero.scss';
|
|
4
|
+
import { SelectOptionsProps } from '../../atoms/FormSelect/FormSelect';
|
|
5
|
+
interface Link {
|
|
6
|
+
url: string;
|
|
7
|
+
title: string;
|
|
8
|
+
externalLink?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface CourseSearchProps {
|
|
11
|
+
defaultSearchTerm?: string;
|
|
12
|
+
placeholder: string;
|
|
13
|
+
filterTitle: string;
|
|
14
|
+
filterFieldName: string;
|
|
15
|
+
filterOptions: SelectOptionsProps[];
|
|
16
|
+
defaultFilter?: string;
|
|
17
|
+
formSubmitHandler?: () => void | null;
|
|
18
|
+
filterChangeHandler?: () => void | null;
|
|
19
|
+
searchTermChangeHandler?: () => void | null;
|
|
20
|
+
}
|
|
21
|
+
export interface HeroProps {
|
|
22
|
+
/**
|
|
23
|
+
* The theme to use
|
|
24
|
+
*/
|
|
25
|
+
theme: ThemeProps;
|
|
26
|
+
inverse?: boolean;
|
|
27
|
+
title: string;
|
|
28
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4';
|
|
29
|
+
description?: string;
|
|
30
|
+
image?: {
|
|
31
|
+
src: {
|
|
32
|
+
small?: string;
|
|
33
|
+
medium?: string;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
alt: string;
|
|
37
|
+
style: 'rectangle' | 'lines-of-intent';
|
|
38
|
+
fetchPriority?: React.ImgHTMLAttributes<HTMLImageElement>['fetchPriority'];
|
|
39
|
+
};
|
|
40
|
+
links?: [] | [Link] | [Link, Link];
|
|
41
|
+
courseSearchProps?: CourseSearchProps;
|
|
42
|
+
}
|
|
43
|
+
export default function Hero({ theme, inverse, title, titleTag, description, image, links, courseSearchProps }: HeroProps): ReactElement | null;
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import Hero from './Hero';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Hero;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof Hero>;
|
|
10
|
+
export declare const DarkColourBlock: Story;
|
|
11
|
+
export declare const DarkColourBlockAndH1Title: Story;
|
|
12
|
+
export declare const LightColourBlock: Story;
|
|
13
|
+
export declare const DarkRectangleImage: Story;
|
|
14
|
+
export declare const LightRectangleImage: Story;
|
|
15
|
+
export declare const DarkLinesOfIntentImage: Story;
|
|
16
|
+
export declare const LightLinesOfIntentImage: Story;
|
|
17
|
+
export declare const LightLinseOfIntentImageAndH1Title: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
isMobile: boolean;
|
|
4
|
+
isTablet: boolean;
|
|
5
|
+
image: {
|
|
6
|
+
src: {
|
|
7
|
+
small?: string;
|
|
8
|
+
medium?: string;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
alt: string;
|
|
12
|
+
fetchPriority?: React.ImgHTMLAttributes<HTMLImageElement>['fetchPriority'];
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export default function PolygonImage({ isMobile, isTablet, image }: Props): ReactElement;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HeroProps } from './Hero';
|
|
2
|
+
export declare const colourBlockHeroProps: HeroProps;
|
|
3
|
+
export declare const rectangleImageHeroProps: HeroProps;
|
|
4
|
+
export declare const linesOfIntentImageHeroProps: HeroProps;
|
|
5
|
+
export declare const newsHeroProps: HeroProps;
|
|
6
|
+
export declare const accommodationHeroProps: HeroProps;
|
|
7
|
+
export declare const schorlarshipsAwardPage: HeroProps;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import { ShareButtonsProps } from '../../molecules/ShareButtons/ShareButtons';
|
|
4
|
+
import { CardImageProps } from '../../molecules/CardImage/CardImage';
|
|
5
|
+
import './heroArticle.scss';
|
|
6
|
+
import { ParagraphLinkProps } from '../../atoms/ParagraphLink/ParagraphLink';
|
|
7
|
+
export interface HeroArticleProps {
|
|
8
|
+
/**
|
|
9
|
+
* The theme to use
|
|
10
|
+
*/
|
|
11
|
+
theme: ThemeProps;
|
|
12
|
+
inverse?: boolean;
|
|
13
|
+
title: string;
|
|
14
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4';
|
|
15
|
+
description: string;
|
|
16
|
+
cardImage: CardImageProps;
|
|
17
|
+
publishDate: string;
|
|
18
|
+
readTime?: string;
|
|
19
|
+
shareButtons: ShareButtonsProps;
|
|
20
|
+
author?: ParagraphLinkProps;
|
|
21
|
+
}
|
|
22
|
+
export default function HeroArticle({ theme, inverse, title, titleTag, description, cardImage, publishDate, readTime, shareButtons, author }: HeroArticleProps): ReactElement | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import HeroArticle from './HeroArticle';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof HeroArticle;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof HeroArticle>;
|
|
10
|
+
export declare const Example: Story;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import './heroCarousel.scss';
|
|
4
|
+
interface HeroCarouselCard {
|
|
5
|
+
category: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
linkUrl: string;
|
|
9
|
+
linkLabel: string;
|
|
10
|
+
imageSrc: {
|
|
11
|
+
small?: string;
|
|
12
|
+
medium?: string;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
imageAlt: string;
|
|
16
|
+
}
|
|
17
|
+
export interface HeroCarouselProps {
|
|
18
|
+
/**
|
|
19
|
+
* The theme to use
|
|
20
|
+
*/
|
|
21
|
+
theme: ThemeProps;
|
|
22
|
+
/**
|
|
23
|
+
* A HeroCarousel can have 1-3 items
|
|
24
|
+
*/
|
|
25
|
+
cards: [HeroCarouselCard] | [HeroCarouselCard, HeroCarouselCard] | [HeroCarouselCard, HeroCarouselCard, HeroCarouselCard];
|
|
26
|
+
}
|
|
27
|
+
export default function HeroCarousel({ theme, cards }: HeroCarouselProps): ReactElement | null;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import HeroCarousel from './HeroCarousel';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof HeroCarousel;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof HeroCarousel>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const Single: Story;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
export declare const mobileBackgroundVariants: {
|
|
2
|
+
first: {
|
|
3
|
+
clipPath: string;
|
|
4
|
+
};
|
|
5
|
+
second: {
|
|
6
|
+
clipPath: string;
|
|
7
|
+
};
|
|
8
|
+
third: {
|
|
9
|
+
clipPath: string;
|
|
10
|
+
};
|
|
11
|
+
visible: {
|
|
12
|
+
opacity: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const mobileImageVariants: {
|
|
16
|
+
first: {
|
|
17
|
+
clipPath: string;
|
|
18
|
+
};
|
|
19
|
+
second: {
|
|
20
|
+
clipPath: string;
|
|
21
|
+
};
|
|
22
|
+
third: {
|
|
23
|
+
clipPath: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const tabletBackgroundVariants: {
|
|
27
|
+
first: {
|
|
28
|
+
clipPath: string;
|
|
29
|
+
};
|
|
30
|
+
second: {
|
|
31
|
+
clipPath: string;
|
|
32
|
+
};
|
|
33
|
+
third: {
|
|
34
|
+
clipPath: string;
|
|
35
|
+
};
|
|
36
|
+
visible: {
|
|
37
|
+
opacity: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const tabletImageVariants: {
|
|
41
|
+
first: {
|
|
42
|
+
clipPath: string;
|
|
43
|
+
};
|
|
44
|
+
second: {
|
|
45
|
+
clipPath: string;
|
|
46
|
+
};
|
|
47
|
+
third: {
|
|
48
|
+
clipPath: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare const desktopBackgroundVariants: {
|
|
52
|
+
first: {
|
|
53
|
+
clipPath: string;
|
|
54
|
+
};
|
|
55
|
+
second: {
|
|
56
|
+
clipPath: string;
|
|
57
|
+
};
|
|
58
|
+
third: {
|
|
59
|
+
clipPath: string;
|
|
60
|
+
};
|
|
61
|
+
visible: {
|
|
62
|
+
opacity: number;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export declare const desktopImageVariants: {
|
|
66
|
+
first: {
|
|
67
|
+
clipPath: string;
|
|
68
|
+
};
|
|
69
|
+
second: {
|
|
70
|
+
clipPath: string;
|
|
71
|
+
};
|
|
72
|
+
third: {
|
|
73
|
+
clipPath: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export declare const mobileLineOneVariants: {
|
|
77
|
+
first: {
|
|
78
|
+
left: string;
|
|
79
|
+
bottom: number;
|
|
80
|
+
transform: string;
|
|
81
|
+
};
|
|
82
|
+
second: {
|
|
83
|
+
left: string;
|
|
84
|
+
bottom: string;
|
|
85
|
+
transform: string;
|
|
86
|
+
};
|
|
87
|
+
third: {
|
|
88
|
+
left: string;
|
|
89
|
+
bottom: string;
|
|
90
|
+
transform: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export declare const mobileLineTwoVariants: {
|
|
94
|
+
first: {
|
|
95
|
+
left: string;
|
|
96
|
+
bottom: number;
|
|
97
|
+
transform: string;
|
|
98
|
+
};
|
|
99
|
+
second: {
|
|
100
|
+
left: string;
|
|
101
|
+
bottom: string;
|
|
102
|
+
transform: string;
|
|
103
|
+
};
|
|
104
|
+
third: {
|
|
105
|
+
left: string;
|
|
106
|
+
bottom: string;
|
|
107
|
+
transform: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
export declare const tabletLineOneVariants: {
|
|
111
|
+
first: {
|
|
112
|
+
left: string;
|
|
113
|
+
top: string;
|
|
114
|
+
transform: string;
|
|
115
|
+
};
|
|
116
|
+
second: {
|
|
117
|
+
left: string;
|
|
118
|
+
top: string;
|
|
119
|
+
transform: string;
|
|
120
|
+
};
|
|
121
|
+
third: {
|
|
122
|
+
left: string;
|
|
123
|
+
top: string;
|
|
124
|
+
transform: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
export declare const tabletLineTwoVariants: {
|
|
128
|
+
first: {
|
|
129
|
+
left: string;
|
|
130
|
+
top: string;
|
|
131
|
+
transform: string;
|
|
132
|
+
};
|
|
133
|
+
second: {
|
|
134
|
+
left: string;
|
|
135
|
+
top: string;
|
|
136
|
+
transform: string;
|
|
137
|
+
};
|
|
138
|
+
third: {
|
|
139
|
+
left: string;
|
|
140
|
+
top: string;
|
|
141
|
+
transform: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
export declare const desktopLineOneVariants: {
|
|
145
|
+
first: {
|
|
146
|
+
left: string;
|
|
147
|
+
top: string;
|
|
148
|
+
transform: string;
|
|
149
|
+
};
|
|
150
|
+
second: {
|
|
151
|
+
left: string;
|
|
152
|
+
top: string;
|
|
153
|
+
transform: string;
|
|
154
|
+
};
|
|
155
|
+
third: {
|
|
156
|
+
left: string;
|
|
157
|
+
top: string;
|
|
158
|
+
transform: string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
export declare const desktopLineTwoVariants: {
|
|
162
|
+
first: {
|
|
163
|
+
left: string;
|
|
164
|
+
top: string;
|
|
165
|
+
transform: string;
|
|
166
|
+
};
|
|
167
|
+
second: {
|
|
168
|
+
left: string;
|
|
169
|
+
top: string;
|
|
170
|
+
transform: string;
|
|
171
|
+
};
|
|
172
|
+
third: {
|
|
173
|
+
left: string;
|
|
174
|
+
top: string;
|
|
175
|
+
transform: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { KeyboardEvent } from 'react';
|
|
2
|
+
import { ThemeProps } from '../../../../themeProps';
|
|
3
|
+
interface Props {
|
|
4
|
+
/**
|
|
5
|
+
* The theme to use
|
|
6
|
+
*/
|
|
7
|
+
theme: ThemeProps;
|
|
8
|
+
category: string;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
linkUrl: string;
|
|
12
|
+
linkLabel: string;
|
|
13
|
+
onKeyDown?: (e: KeyboardEvent<Element>) => void;
|
|
14
|
+
}
|
|
15
|
+
type CTARef = HTMLAnchorElement | null;
|
|
16
|
+
export declare const HeroCardContent: React.ForwardRefExoticComponent<Props & React.RefAttributes<CTARef>>;
|
|
17
|
+
export default HeroCardContent;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
isMobile: boolean;
|
|
4
|
+
isTablet: boolean;
|
|
5
|
+
activeVariant: string;
|
|
6
|
+
imageSrc: {
|
|
7
|
+
small?: string;
|
|
8
|
+
medium?: string;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
imageAlt: string;
|
|
12
|
+
imageFetchPriority?: React.ImgHTMLAttributes<HTMLImageElement>['fetchPriority'];
|
|
13
|
+
}
|
|
14
|
+
export default function HeroImage({ isMobile, isTablet, activeVariant, imageSrc, imageAlt, imageFetchPriority }: Props): ReactElement;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import './heroCourses.scss';
|
|
4
|
+
import { TextButtonProps } from '../../atoms/TextButton/TextButton';
|
|
5
|
+
import { ModalCTAButtonProps } from '../../molecules/ModalCTAButton/ModalCTAButton';
|
|
6
|
+
import { CourseTileProps } from './components/CourseTile';
|
|
7
|
+
import { CourseTileSelectProps } from './components/CourseTileSelect';
|
|
8
|
+
import { CourseTileRankingProps } from './components/CourseTileRanking';
|
|
9
|
+
import { HeadingProps } from '../../atoms/Heading/Heading';
|
|
10
|
+
import { LocationSelectorProps } from '../../molecules/LocationSelector/LocationSelector';
|
|
11
|
+
export interface HeroCoursesProps {
|
|
12
|
+
/**
|
|
13
|
+
* The theme to use
|
|
14
|
+
*/
|
|
15
|
+
theme: ThemeProps;
|
|
16
|
+
inverse?: boolean;
|
|
17
|
+
title: string;
|
|
18
|
+
titleTag?: HeadingProps['htmlTag'];
|
|
19
|
+
awardShort: string;
|
|
20
|
+
links?: Omit<TextButtonProps, 'theme'>[];
|
|
21
|
+
heroType: 'UG' | 'UG Dubai' | 'PGT Dubai' | 'Other';
|
|
22
|
+
award: CourseTileProps;
|
|
23
|
+
ranking?: CourseTileRankingProps;
|
|
24
|
+
yearOfEntry?: CourseTileSelectProps;
|
|
25
|
+
startDate?: CourseTileProps;
|
|
26
|
+
campus?: CourseTileProps;
|
|
27
|
+
duration: CourseTileProps;
|
|
28
|
+
entryRequirements: CourseTileProps;
|
|
29
|
+
fees: CourseTileProps;
|
|
30
|
+
ucas?: CourseTileProps;
|
|
31
|
+
deliveryFormat?: CourseTileProps;
|
|
32
|
+
locationDetails?: LocationSelectorProps;
|
|
33
|
+
modalCTA?: ModalCTAButtonProps;
|
|
34
|
+
}
|
|
35
|
+
export default function HeroCourses({ theme, title, titleTag, awardShort, links, ranking, award, campus, ucas, duration, entryRequirements, startDate, yearOfEntry, fees, deliveryFormat, locationDetails, modalCTA }: HeroCoursesProps): ReactElement | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import HeroCourses from './HeroCourses';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof HeroCourses;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof HeroCourses>;
|
|
10
|
+
export declare const CoursesHeroSixColumnDesktop: Story;
|
|
11
|
+
export declare const CoursesHeroFiveColumnDesktop: Story;
|
|
12
|
+
export declare const CoursesHeroPostGraduate: Story;
|
|
13
|
+
export declare const CoursesHeroFourColumnDesktop: Story;
|
|
14
|
+
export declare const CoursesHeroApplyNowWithOnClick: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { LinkWithIconProps } from '../../../atoms/LinkWithIcon/LinkWithIcon';
|
|
3
|
+
export interface CourseTileProps {
|
|
4
|
+
title: string;
|
|
5
|
+
value: string;
|
|
6
|
+
link?: LinkWithIconProps;
|
|
7
|
+
}
|
|
8
|
+
export default function CourseTile({ title, value, link }: CourseTileProps): ReactElement;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { LinkWithIconProps } from '../../../atoms/LinkWithIcon/LinkWithIcon';
|
|
3
|
+
export interface CourseTileRankingProps {
|
|
4
|
+
title: string;
|
|
5
|
+
rank: string;
|
|
6
|
+
rankText: string;
|
|
7
|
+
link?: LinkWithIconProps;
|
|
8
|
+
}
|
|
9
|
+
export default function CourseTileRanking({ title, rank, rankText, link }: CourseTileRankingProps): ReactElement;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { FormSelectProps } from '../../../atoms/FormSelect/FormSelect';
|
|
3
|
+
export interface CourseTileSelectProps {
|
|
4
|
+
title: string;
|
|
5
|
+
selectProps: FormSelectProps;
|
|
6
|
+
}
|
|
7
|
+
export default function CourseTileSelect({ title, selectProps }: CourseTileSelectProps): ReactElement;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { HeroCoursesProps } from './HeroCourses';
|
|
2
|
+
export declare const heroCoursesProps: HeroCoursesProps;
|
|
3
|
+
export declare const heroCoursesAnchorsProps: HeroCoursesProps;
|
|
4
|
+
export declare const ranking: import("./components/CourseTileRanking").CourseTileRankingProps | undefined, heroCoursesNoRankingProps: {
|
|
5
|
+
theme: import("../../../themeProps").ThemeProps;
|
|
6
|
+
inverse?: boolean | undefined;
|
|
7
|
+
title: string;
|
|
8
|
+
titleTag?: "h1" | "h2" | "h3" | "h4" | "h5" | undefined;
|
|
9
|
+
awardShort: string;
|
|
10
|
+
links?: Omit<import("../../atoms/TextButton/TextButton").TextButtonProps, "theme">[] | undefined;
|
|
11
|
+
heroType: "UG" | "UG Dubai" | "PGT Dubai" | "Other";
|
|
12
|
+
award: import("./components/CourseTile").CourseTileProps;
|
|
13
|
+
yearOfEntry?: import("./components/CourseTileSelect").CourseTileSelectProps | undefined;
|
|
14
|
+
startDate?: import("./components/CourseTile").CourseTileProps | undefined;
|
|
15
|
+
campus?: import("./components/CourseTile").CourseTileProps | undefined;
|
|
16
|
+
duration: import("./components/CourseTile").CourseTileProps;
|
|
17
|
+
entryRequirements: import("./components/CourseTile").CourseTileProps;
|
|
18
|
+
fees: import("./components/CourseTile").CourseTileProps;
|
|
19
|
+
ucas?: import("./components/CourseTile").CourseTileProps | undefined;
|
|
20
|
+
deliveryFormat?: import("./components/CourseTile").CourseTileProps | undefined;
|
|
21
|
+
locationDetails?: import("../../..").LocationSelectorProps | undefined;
|
|
22
|
+
modalCTA?: import("../../molecules/ModalCTAButton/ModalCTAButton").ModalCTAButtonProps | undefined;
|
|
23
|
+
};
|
|
24
|
+
export declare const deliveryFormat: import("./components/CourseTile").CourseTileProps | undefined, heroCoursesNoRankingNoDeliveryFormat: {
|
|
25
|
+
theme: import("../../../themeProps").ThemeProps;
|
|
26
|
+
inverse?: boolean | undefined;
|
|
27
|
+
title: string;
|
|
28
|
+
titleTag?: "h1" | "h2" | "h3" | "h4" | "h5" | undefined;
|
|
29
|
+
awardShort: string;
|
|
30
|
+
links?: Omit<import("../../atoms/TextButton/TextButton").TextButtonProps, "theme">[] | undefined;
|
|
31
|
+
heroType: "UG" | "UG Dubai" | "PGT Dubai" | "Other";
|
|
32
|
+
award: import("./components/CourseTile").CourseTileProps;
|
|
33
|
+
yearOfEntry?: import("./components/CourseTileSelect").CourseTileSelectProps | undefined;
|
|
34
|
+
startDate?: import("./components/CourseTile").CourseTileProps | undefined;
|
|
35
|
+
campus?: import("./components/CourseTile").CourseTileProps | undefined;
|
|
36
|
+
duration: import("./components/CourseTile").CourseTileProps;
|
|
37
|
+
entryRequirements: import("./components/CourseTile").CourseTileProps;
|
|
38
|
+
fees: import("./components/CourseTile").CourseTileProps;
|
|
39
|
+
ucas?: import("./components/CourseTile").CourseTileProps | undefined;
|
|
40
|
+
locationDetails?: import("../../..").LocationSelectorProps | undefined;
|
|
41
|
+
modalCTA?: import("../../molecules/ModalCTAButton/ModalCTAButton").ModalCTAButtonProps | undefined;
|
|
42
|
+
};
|
|
43
|
+
export declare const heroCoursesPGProps: HeroCoursesProps;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import './heroProfile.scss';
|
|
4
|
+
export interface HeroProfileProps {
|
|
5
|
+
/**
|
|
6
|
+
* The theme to use
|
|
7
|
+
*/
|
|
8
|
+
theme: ThemeProps;
|
|
9
|
+
inverse: boolean;
|
|
10
|
+
studentName: string;
|
|
11
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4';
|
|
12
|
+
image: {
|
|
13
|
+
src: {
|
|
14
|
+
small?: string;
|
|
15
|
+
medium?: string;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
alt: string;
|
|
19
|
+
fetchPriority?: React.ImgHTMLAttributes<HTMLImageElement>['fetchPriority'];
|
|
20
|
+
};
|
|
21
|
+
studentStatus?: string;
|
|
22
|
+
courseName?: string;
|
|
23
|
+
courseDetails?: string[];
|
|
24
|
+
studyLevel?: string;
|
|
25
|
+
homeCountry?: string;
|
|
26
|
+
studentIntro?: string;
|
|
27
|
+
}
|
|
28
|
+
export default function HeroProfile({ theme, studentName, studentStatus, courseName, courseDetails, studyLevel, titleTag, homeCountry, studentIntro, image, inverse }: HeroProfileProps): ReactElement | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import HeroProfile from './HeroProfile';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof HeroProfile;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof HeroProfile>;
|
|
10
|
+
export declare const AlternativeCourseName: Story;
|
|
11
|
+
export declare const OneCourse: Story;
|
|
12
|
+
export declare const TwoCourses: Story;
|
|
13
|
+
export declare const ThreeCourses: Story;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HeroProfileProps } from './HeroProfile';
|
|
2
|
+
export declare const heroProfileProps: HeroProfileProps;
|
|
3
|
+
export declare const heroProfilePropsOneCourse: HeroProfileProps;
|
|
4
|
+
export declare const heroProfilePropsTwoCourses: HeroProfileProps;
|
|
5
|
+
export declare const heroProfilePropsThreeCourses: HeroProfileProps;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import './imageBlock.scss';
|
|
3
|
+
import { HeadingProps } from '../../molecules/Heading/Heading';
|
|
4
|
+
import { CardImageProps } from '../../molecules/CardImage/CardImage';
|
|
5
|
+
export interface ImageBlockProps extends HeadingProps {
|
|
6
|
+
fullWidth: boolean;
|
|
7
|
+
makeHeadingFullWidth?: boolean;
|
|
8
|
+
images?: Omit<CardImageProps, 'theme' | 'inverse'>[];
|
|
9
|
+
}
|
|
10
|
+
export default function ImageBlock({ theme, inverse, title, description, linkProps, fullWidth, makeHeadingFullWidth, images, htmlTag }: ImageBlockProps): ReactElement | null;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import ImageBlock from './ImageBlock';
|
|
3
|
+
import './imageBlock.scss';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof ImageBlock;
|
|
7
|
+
tags: string[];
|
|
8
|
+
parameters: {
|
|
9
|
+
backgrounds: {
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof ImageBlock>;
|
|
16
|
+
export declare const Default: Story;
|
|
17
|
+
export declare const Dark: Story;
|
|
18
|
+
export declare const Light: Story;
|
|
19
|
+
export declare const OneImageFullWidth: Story;
|
|
20
|
+
export declare const TwoImagesFullWidth: Story;
|
|
21
|
+
export declare const OneImage: Story;
|
|
22
|
+
export declare const TwoImages: Story;
|
|
23
|
+
export declare const NoImages: Story;
|
|
24
|
+
export declare const OneImageNoHeading: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import './imageCarousel.scss';
|
|
3
|
+
import { HeadingProps } from '../../molecules/Heading/Heading';
|
|
4
|
+
import { CardImageProps } from '../../molecules/CardImage/CardImage';
|
|
5
|
+
export interface ImageCarouselProps extends HeadingProps {
|
|
6
|
+
fullWidth?: boolean;
|
|
7
|
+
widerImage: boolean;
|
|
8
|
+
images: CardImageProps[];
|
|
9
|
+
}
|
|
10
|
+
export default function ImageCarousel({ theme, inverse, title, description, linkProps, fullWidth, widerImage, images, htmlTag }: ImageCarouselProps): ReactElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import ImageCarousel from './ImageCarousel';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof ImageCarousel;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Dark: Story;
|
|
11
|
+
export declare const DarkWiderImage: Story;
|
|
12
|
+
export declare const Light: Story;
|
|
13
|
+
export declare const LightWiderImage: Story;
|