@royaloperahouse/chord 1.2.0 → 1.2.1-a-chord-development
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/CHANGELOG.md +504 -7
- package/README.md +250 -40
- package/dist/chord.cjs.development.js +9019 -3801
- package/dist/chord.cjs.development.js.map +1 -1
- package/dist/chord.cjs.production.min.js +1 -1
- package/dist/chord.cjs.production.min.js.map +1 -1
- package/dist/chord.esm.js +8986 -3797
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.d.ts +4 -0
- package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.style.d.ts +4 -0
- package/dist/components/atoms/Buttons/Primary/PrimaryButtonWrapper.style.d.ts +1 -0
- package/dist/components/atoms/Grid/GridItemLegacy.d.ts +8 -0
- package/dist/components/atoms/Grid/index.d.ts +2 -1
- package/dist/components/atoms/Icons/Icons.d.ts +1 -1
- package/dist/components/atoms/Icons/StorybookSupport/Iconography.d.ts +1 -0
- package/dist/components/atoms/Icons/SvgIcons/12px/Expand.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/12px/Remove.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/12px/Tick.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/AddToMyList.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/BookTickets.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/ChooseDates.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/EditMyList.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Favourite.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/FavouriteFull.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Filter.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/FindAScreening.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/OnMyList.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Reminder.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Subscribe.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Watch.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Arrows/Arrow.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Arrows/CarouselArrow.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Arrows/DropdownArrow.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Cinema.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Clock.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/CreditCard.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Email.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Info.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/List.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Location.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/PDF.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Phone.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Print.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Seat.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Secure.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Standing.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Tickets.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Wheelchair.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Facebook.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Instagram.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Tiktok.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Twitter.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/X.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Youtube.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/BalletAndDance.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Basket.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/BasketFull.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Home.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/LiveStream.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Menu.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/OperaAndMusic.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Search.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Settings.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/User.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/UserSignedIn.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Text/Delete.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Text/Shift.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Text/Space.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Close.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Confirm.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Detract.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Expand.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/ExternalLink.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/GridView.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/ListView.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Refresh.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Remove.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/Star.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/AudioDescription.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Back10.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Clips.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Forward10.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/FullScreen.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Minimise.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Muted.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Pause.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Play.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Restart.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Subtitles.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Trailer.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Volume.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/index.d.ts +76 -70
- package/dist/components/atoms/Logo/Logo.d.ts +1 -1
- package/dist/components/atoms/Progress/Progress.d.ts +1 -1
- package/dist/components/atoms/Progress/Progress.styles.d.ts +10 -3
- package/dist/components/atoms/Radio/Radio.d.ts +6 -0
- package/dist/components/atoms/Radio/Radio.style.d.ts +4 -0
- package/dist/components/atoms/Radio/index.d.ts +2 -0
- package/dist/components/atoms/Radio2/Radio2.d.ts +23 -0
- package/dist/components/atoms/Radio2/Radio2.style.d.ts +7 -0
- package/dist/components/atoms/Radio2/index.d.ts +2 -0
- package/dist/components/atoms/Sponsorship/Sponsorship.style.d.ts +2 -0
- package/dist/components/atoms/Stepper/Stepper.d.ts +58 -0
- package/dist/components/atoms/Stepper/Stepper.style.d.ts +6 -0
- package/dist/components/atoms/Stepper/index.d.ts +2 -0
- package/dist/components/atoms/TextArea/TextArea.d.ts +44 -0
- package/dist/components/atoms/TextArea/TextArea.style.d.ts +5 -0
- package/dist/components/atoms/TextArea/index.d.ts +2 -0
- package/dist/components/atoms/TextField/TextField.d.ts +42 -0
- package/dist/components/atoms/TextField/TextField.style.d.ts +9 -0
- package/dist/components/atoms/TextField/TextFieldLegacy.d.ts +10 -0
- package/dist/components/atoms/TextField/TextFieldLegacy.style.d.ts +5 -0
- package/dist/components/atoms/TextField/index.d.ts +3 -0
- package/dist/components/atoms/TextLogo/TextLogo.d.ts +13 -0
- package/dist/components/atoms/TextLogo/index.d.ts +2 -0
- package/dist/components/atoms/TextLogo/styled.d.ts +12 -0
- package/dist/components/atoms/Tickbox/Tickbox.d.ts +3 -0
- package/dist/components/atoms/Tickbox/Tickbox.style.d.ts +5 -0
- package/dist/components/atoms/Tickbox2/Tickbox2.d.ts +23 -0
- package/dist/components/atoms/Tickbox2/Tickbox2.style.d.ts +7 -0
- package/dist/components/atoms/Tickbox2/index.d.ts +2 -0
- package/dist/components/atoms/Timer/Timer.d.ts +4 -0
- package/dist/components/atoms/Timer/Timer.style.d.ts +9 -0
- package/dist/components/atoms/Timer/index.d.ts +2 -0
- package/dist/components/atoms/Typography/Typography.d.ts +2 -2
- package/dist/components/atoms/VideoControls/VideoControls.d.ts +4 -0
- package/dist/components/atoms/VideoControls/VideoControls.style.d.ts +13 -0
- package/dist/components/atoms/VideoControls/index.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +17 -7
- package/dist/components/index.d.ts +4 -4
- package/dist/components/molecules/Accordion/Accordion.style.d.ts +7 -2
- package/dist/components/molecules/AuxiliaryNav/AuxiliaryNav.d.ts +21 -0
- package/dist/components/molecules/AuxiliaryNav/AuxiliaryNav.styles.d.ts +9 -0
- package/dist/components/molecules/AuxiliaryNav/index.d.ts +2 -0
- package/dist/components/molecules/Basket/Basket.d.ts +3 -0
- package/dist/components/molecules/Basket/helpers.d.ts +3 -0
- package/dist/components/molecules/Basket/hooks.d.ts +8 -0
- package/dist/components/molecules/Card/Card.style.d.ts +17 -1
- package/dist/components/molecules/ContentSummary/ContentSummary.d.ts +3 -0
- package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +17 -0
- package/dist/components/molecules/ContentSummary/ContentSummaryData.d.ts +25 -0
- package/dist/components/molecules/ContentSummary/index.d.ts +2 -0
- package/dist/components/molecules/Information/InfoCta.d.ts +2 -2
- package/dist/components/molecules/Information/Information.style.d.ts +6 -3
- package/dist/components/molecules/MiniCard/MiniCard.d.ts +4 -0
- package/dist/components/molecules/MiniCard/MiniCard.style.d.ts +6 -0
- package/dist/components/molecules/MiniCard/index.d.ts +2 -0
- package/dist/components/molecules/NavTop/NavTop.d.ts +1 -1
- package/dist/components/molecules/PageHeading/Compact/Compact.d.ts +4 -0
- package/dist/components/molecules/PageHeading/Compact/Compact.style.d.ts +24 -0
- package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.d.ts +10 -0
- package/dist/components/molecules/PageHeading/Compact/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/Impact/Impact.d.ts +1 -1
- package/dist/components/molecules/PageHeading/Impact/Impact.style.d.ts +1 -0
- package/dist/components/molecules/PageHeading/PageHeading.style.d.ts +6 -3
- package/dist/components/molecules/PageHeading/Panel/Panel.d.ts +4 -0
- package/dist/components/molecules/PageHeading/Panel/Panel.style.d.ts +9 -0
- package/dist/components/molecules/PageHeading/Panel/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/index.d.ts +3 -1
- package/dist/components/molecules/Pagination/Pagination.d.ts +9 -0
- package/dist/components/molecules/Pagination/Pagination.style.d.ts +8 -0
- package/dist/components/molecules/Pagination/index.d.ts +2 -0
- package/dist/components/molecules/PasswordStrength/PasswordStrength.d.ts +33 -0
- package/dist/components/molecules/PasswordStrength/PasswordStrength.styles.d.ts +13 -0
- package/dist/components/molecules/PasswordStrength/index.d.ts +2 -0
- package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.d.ts +5 -0
- package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +8 -0
- package/dist/components/molecules/PeopleListing/CreditListing/index.d.ts +2 -0
- package/dist/components/molecules/PeopleListing/PeopleListing.style.d.ts +1 -0
- package/dist/components/molecules/PeopleListing/index.d.ts +2 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.d.ts +1 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +11 -4
- package/dist/components/molecules/PromoWithTitle/PromoChild.d.ts +9 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +6 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.style.d.ts +1 -0
- package/dist/components/molecules/RadioGroup/index.d.ts +2 -0
- package/dist/components/molecules/RadioGroup2/RadioGroup2.d.ts +38 -0
- package/dist/components/molecules/RadioGroup2/RadioGroup2.style.d.ts +4 -0
- package/dist/components/molecules/RadioGroup2/index.d.ts +2 -0
- package/dist/components/molecules/ReadMore/ReadMore.d.ts +4 -0
- package/dist/components/molecules/ReadMore/ReadMore.style.d.ts +9 -0
- package/dist/components/molecules/ReadMore/index.d.ts +2 -0
- package/dist/components/molecules/SearchBar/SearchBar.style.d.ts +1 -0
- package/dist/components/molecules/SectionTitle/SectionTitle.d.ts +1 -1
- package/dist/components/molecules/Select/Select.d.ts +100 -0
- package/dist/components/molecules/Select/Select.style.d.ts +14 -0
- package/dist/components/molecules/Select/index.d.ts +2 -0
- package/dist/components/molecules/Select2/Select2.d.ts +24 -0
- package/dist/components/molecules/Select2/Select2.style.d.ts +5 -0
- package/dist/components/molecules/Select2/index.d.ts +2 -0
- package/dist/components/molecules/Select2Async/Select2Async.d.ts +18 -0
- package/dist/components/molecules/Select2Async/index.d.ts +2 -0
- package/dist/components/molecules/StatusBanner/StatusBanner.d.ts +4 -0
- package/dist/components/molecules/StatusBanner/StatusBanner.style.d.ts +3 -0
- package/dist/components/molecules/StatusBanner/index.d.ts +2 -0
- package/dist/components/molecules/Table/Table.d.ts +4 -0
- package/dist/components/molecules/Table/Table.style.d.ts +19 -0
- package/dist/components/molecules/Table/components/TableCell.d.ts +3 -0
- package/dist/components/molecules/Table/components/TableHelpers.d.ts +4 -0
- package/dist/components/molecules/Table/components/TableRow.d.ts +3 -0
- package/dist/components/molecules/Table/index.d.ts +2 -0
- package/dist/components/molecules/UpsellCard/OfferText.d.ts +2 -0
- package/dist/components/molecules/UpsellCard/UpsellCard.d.ts +4 -0
- package/dist/components/molecules/UpsellCard/UpsellCard.style.d.ts +15 -0
- package/dist/components/molecules/UpsellCard/index.d.ts +2 -0
- package/dist/components/molecules/UpsellCards/UpsellCards.d.ts +4 -0
- package/dist/components/molecules/UpsellCards/UpsellCards.style.d.ts +1 -0
- package/dist/components/molecules/UpsellCards/index.d.ts +2 -0
- package/dist/components/molecules/VideoWithControls/VideoWithControls.d.ts +4 -0
- package/dist/components/molecules/VideoWithControls/VideoWithControls.style.d.ts +2 -0
- package/dist/components/molecules/VideoWithControls/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +19 -3
- package/dist/components/organisms/AnchorTabBar/AnchorTabBar.style.d.ts +4 -3
- package/dist/components/organisms/ModalWindow/ModalWindow.d.ts +68 -0
- package/dist/components/organisms/ModalWindow/ModalWindow.style.d.ts +4 -0
- package/dist/components/organisms/ModalWindow/index.d.ts +2 -0
- package/dist/components/organisms/Navigation/Navigation.style.d.ts +6 -2
- package/dist/components/organisms/StickyBar/StickyBar.style.d.ts +5 -1
- package/dist/components/organisms/UpsellSection/UpsellSection.d.ts +4 -0
- package/dist/components/organisms/UpsellSection/UpsellSection.style.d.ts +3 -0
- package/dist/components/organisms/UpsellSection/index.d.ts +2 -0
- package/dist/components/organisms/index.d.ts +3 -3
- package/dist/helpers/arrays.d.ts +6 -0
- package/dist/helpers/aspectRatio.d.ts +2 -0
- package/dist/helpers/defaultValues.d.ts +7 -0
- package/dist/helpers/devices.d.ts +3 -0
- package/dist/helpers/formatStrings.d.ts +2 -0
- package/dist/helpers/generateDomElementId.d.ts +8 -0
- package/dist/helpers/htmlStrings.d.ts +5 -1
- package/dist/helpers/keyboards.d.ts +3 -0
- package/dist/helpers/urls.d.ts +2 -0
- package/dist/index.d.ts +9 -4
- package/dist/styles/themes.d.ts +1188 -104
- package/dist/styles/viewports.d.ts +3 -0
- package/dist/types/auxiliaryNav.d.ts +39 -0
- package/dist/types/buttonTypes.d.ts +18 -0
- package/dist/types/card.d.ts +44 -0
- package/dist/types/carousel.d.ts +22 -1
- package/dist/types/creditListing.d.ts +13 -0
- package/dist/types/editorial.d.ts +80 -56
- package/dist/types/formTypes.d.ts +328 -0
- package/dist/types/iconTypes.d.ts +6 -0
- package/dist/types/image.d.ts +3 -0
- package/dist/types/impactHeader.d.ts +135 -0
- package/dist/types/index.d.ts +7 -2
- package/dist/types/information.d.ts +17 -12
- package/dist/types/miniCard.d.ts +27 -0
- package/dist/types/modalWindow.d.ts +20 -0
- package/dist/types/navigation.d.ts +68 -4
- package/dist/types/passwordStrength.d.ts +51 -0
- package/dist/types/progress.d.ts +33 -0
- package/dist/types/promoWithTags.d.ts +81 -0
- package/dist/types/tableTypes.d.ts +47 -0
- package/dist/types/tickbox.d.ts +35 -0
- package/dist/types/timer.d.ts +37 -0
- package/dist/types/types.d.ts +168 -10
- package/dist/types/typography.d.ts +18 -2
- package/dist/types/upsell.d.ts +78 -0
- package/dist/types/utility.d.ts +4 -0
- package/package.json +15 -4
- package/README.GIT +0 -122
- package/dist/components/atoms/Basket/Basket.d.ts +0 -3
- package/dist/components/organisms/Carousel/Carousel.d.ts +0 -5
- package/dist/components/organisms/Carousel/Carousel.style.d.ts +0 -6
- package/dist/components/organisms/Carousel/index.d.ts +0 -2
- package/dist/components/organisms/HighlightsCarousel/HighlightsCarousel.d.ts +0 -5
- package/dist/components/organisms/HighlightsCarousel/HighlightsCarousel.style.d.ts +0 -12
- package/dist/components/organisms/HighlightsCarousel/HighlightsCinema.d.ts +0 -4
- package/dist/components/organisms/HighlightsCarousel/HighlightsCore.d.ts +0 -4
- package/dist/components/organisms/HighlightsCarousel/HighlightsStream.d.ts +0 -4
- package/dist/components/organisms/HighlightsCarousel/index.d.ts +0 -5
- /package/dist/components/{atoms → molecules}/Basket/Basket.style.d.ts +0 -0
- /package/dist/components/{atoms → molecules}/Basket/index.d.ts +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IEditorialGridProps } from '../../../types/editorial';
|
|
3
|
+
import { IPromoWithTagsStyledProps } from '../../../types/promoWithTags';
|
|
2
4
|
export declare const PromoWithTagsGrid: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
3
|
-
export declare const PromoWithTagsExtraContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
4
|
-
export declare const PromoWithTagsContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
5
|
-
export declare const PromoWithTagsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
5
|
export declare const PromoWithTagsSubtitle: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
6
|
export declare const PromoWithTagsText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
7
|
export declare const ButtonsContainer: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
@@ -14,3 +13,11 @@ export declare const ExtraContentWrapper: import("styled-components").StyledComp
|
|
|
14
13
|
export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
14
|
export declare const PrimaryButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
15
|
export declare const MobileTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
|
+
export declare const PromoWithTagsTypeTags: import("styled-components").StyledComponent<({ list }: import("../../../types/types").ITypeTagsProps) => JSX.Element, any, {}, never>;
|
|
17
|
+
export declare const PromoWithTagsHeader: import("styled-components").StyledComponent<({ semanticLevel, level, children }: import("../../../types/typography").IHeaderProps) => JSX.Element, any, {}, never>;
|
|
18
|
+
export declare const PromoWithTagsTextLink: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../../types/types").ITextLinkProps>, any, {}, never>;
|
|
19
|
+
export declare const PromoWithTagsExtraContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
20
|
+
export declare const PromoWithTagsContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
21
|
+
export declare const PromoWithTagsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
22
|
+
export declare const TimerWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
23
|
+
export declare const EndDateText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FunctionComponent, ReactElement } from 'react';
|
|
2
|
+
import { IVideoWithControlsSettings } from '../../../types/types';
|
|
3
|
+
interface IPromoChildProps {
|
|
4
|
+
children: ReactElement<HTMLImageElement | HTMLVideoElement>;
|
|
5
|
+
videoSettings: IVideoWithControlsSettings;
|
|
6
|
+
imageToLeft: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const PromoChild: FunctionComponent<IPromoChildProps>;
|
|
9
|
+
export default PromoChild;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IRadioGroupProps } from '../../../types/formTypes';
|
|
2
|
+
/**
|
|
3
|
+
* DEPRECATED. Use RadioGroup2 instead
|
|
4
|
+
*/
|
|
5
|
+
declare const RadioGroup: ({ radios, columnStartDesktop, columnStartDevice, columnSpanDesktop, columnSpanDevice, columnStartSmallDevice, columnSpanSmallDevice, onChange, }: IRadioGroupProps) => JSX.Element;
|
|
6
|
+
export default RadioGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RadioGroupContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { IRadioGroup2Props } from '../../../types/formTypes';
|
|
3
|
+
/**
|
|
4
|
+
* A RadioGroup component, that renders set of Radio2 components inside.
|
|
5
|
+
* `name` prop should be specified and will be passed as a `name` to each
|
|
6
|
+
* radio to combine them in one group.
|
|
7
|
+
*
|
|
8
|
+
* # Radios
|
|
9
|
+
* `radios` prop is an array of radios that should be renderet. This is an
|
|
10
|
+
* array of objects `{content: ReactNode, value: string | number}`.
|
|
11
|
+
*
|
|
12
|
+
* # Default value
|
|
13
|
+
* `defaultValue` prop can be specified to make one of radios checked inittially.
|
|
14
|
+
* This should be equal to `value` of one of `radios`.
|
|
15
|
+
*
|
|
16
|
+
* # Error state
|
|
17
|
+
* An error label will be shown below the radios if the `error` prop exists.
|
|
18
|
+
* Also radios will be rendered with a red border. An empty string can be passed to
|
|
19
|
+
* render only error state without error message.
|
|
20
|
+
*
|
|
21
|
+
* # Horizontal mode
|
|
22
|
+
* If `horizontalMode` prop is true radios will be placed in a row instead of column.
|
|
23
|
+
*
|
|
24
|
+
* # Distance between radios
|
|
25
|
+
* `gap` prop allow to control distance between radios in pixels. This works in default and
|
|
26
|
+
* horizontal modes.
|
|
27
|
+
*
|
|
28
|
+
* # Light / Dark mode
|
|
29
|
+
* The component can also adapt its styles for light / dark mode. If you want this component
|
|
30
|
+
* to be rendered on a dark / coloured background, you can use the `darkMode` prop.
|
|
31
|
+
*
|
|
32
|
+
* # Black box mode
|
|
33
|
+
* If `blackBox` prop is true checked state will be styled as black box with white tick icon.
|
|
34
|
+
* This style was used before as a default. Not preferred in new components.
|
|
35
|
+
* This will be ignored if `darkMode` is true.
|
|
36
|
+
*/
|
|
37
|
+
declare const RadioGroup2: FunctionComponent<IRadioGroup2Props>;
|
|
38
|
+
export default RadioGroup2;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IRadioGroup2Props } from '../../../types/formTypes';
|
|
2
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const RadioGroup: import("styled-components").StyledComponent<"div", any, Pick<IRadioGroup2Props, "horizontalMode" | "gap">, never>;
|
|
4
|
+
export declare const ErrorLabel: import("styled-components").StyledComponent<"div", any, Pick<IRadioGroup2Props, "darkMode">, never>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const ReadMoreContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const LinkContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const FullTextContainer: import("styled-components").StyledComponent<"div", any, {
|
|
4
|
+
isVisible?: boolean | undefined;
|
|
5
|
+
}, never>;
|
|
6
|
+
export declare const IntroTextContainer: import("styled-components").StyledComponent<"div", any, {
|
|
7
|
+
isVisible?: boolean | undefined;
|
|
8
|
+
}, never>;
|
|
9
|
+
export declare const ContentContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const SearchBarContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
2
|
export declare const SvgContainerSearch: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const SvgContainerClose: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const SearchUnavailableContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
5
|
export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
6
|
export declare const SearchLinkContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
7
|
export declare const SearchArrowContainer: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ISectionTitleProps } from '../../../types/types';
|
|
2
|
-
declare const SectionTitle: ({ title, size, description }: ISectionTitleProps) => JSX.Element;
|
|
2
|
+
declare const SectionTitle: ({ title, size, description, semanticLevel }: ISectionTitleProps) => JSX.Element;
|
|
3
3
|
export default SectionTitle;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ISelectProps } from '../../../types/formTypes';
|
|
2
|
+
/**
|
|
3
|
+
* DEPRECATED. Use Select2 instead.
|
|
4
|
+
* A select component, created using <ul> and <li> elements, with bespoke accessibility
|
|
5
|
+
* logic.
|
|
6
|
+
*
|
|
7
|
+
* # Usage
|
|
8
|
+
* ## Defining a component that uses a typical Select element
|
|
9
|
+
* ```tsx
|
|
10
|
+
* const MyComponent = () => {
|
|
11
|
+
* const handleSelect = (value: number, text: string) => {
|
|
12
|
+
* console.log("Selected", value);
|
|
13
|
+
* };
|
|
14
|
+
*
|
|
15
|
+
* return <>
|
|
16
|
+
* <Select
|
|
17
|
+
* label="This is a label"
|
|
18
|
+
* options={[
|
|
19
|
+
* { text: "Option 1", value: 1 },
|
|
20
|
+
* { text: "Option 2", value: 2 },
|
|
21
|
+
* ]}
|
|
22
|
+
* onSelect={handleSelect}
|
|
23
|
+
* />
|
|
24
|
+
* </>
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Defining a component that uses a disabled Select element
|
|
29
|
+
* ```tsx
|
|
30
|
+
* const MyComponent = () => {
|
|
31
|
+
* const handleSelect = (value: number, text: string) => {
|
|
32
|
+
* console.log("Selected", value);
|
|
33
|
+
* };
|
|
34
|
+
*
|
|
35
|
+
* return <>
|
|
36
|
+
* <Select
|
|
37
|
+
* disabled // Select component disabled explicitely
|
|
38
|
+
* label="This is a label"
|
|
39
|
+
* options={[
|
|
40
|
+
* { text: "Option 1", value: 1 },
|
|
41
|
+
* { text: "Option 2", value: 2 },
|
|
42
|
+
* ]}
|
|
43
|
+
* onSelect={handleSelect}
|
|
44
|
+
* />
|
|
45
|
+
* <Select
|
|
46
|
+
* label="This is a label"
|
|
47
|
+
* options={[]} // Select component disabled implicitely by passing an empty array of options
|
|
48
|
+
* onSelect={handleSelect}
|
|
49
|
+
* />
|
|
50
|
+
* </>
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* ## Defining a component with a non-labelled Select element
|
|
55
|
+
* ```tsx
|
|
56
|
+
* const MyComponent = () => {
|
|
57
|
+
* const handleSelect = (value: number, text: string) => {
|
|
58
|
+
* console.log("Selected", value);
|
|
59
|
+
* };
|
|
60
|
+
*
|
|
61
|
+
* return <>
|
|
62
|
+
* <Select
|
|
63
|
+
* label=""
|
|
64
|
+
* options={[
|
|
65
|
+
* { text: "Option 1", value: 1 },
|
|
66
|
+
* { text: "Option 2", value: 2 },
|
|
67
|
+
* ]}
|
|
68
|
+
* onSelect={handleSelect}
|
|
69
|
+
* />
|
|
70
|
+
* </>
|
|
71
|
+
* }
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* ## Changing the dimensions of a Select element (px)
|
|
75
|
+
* ```tsx
|
|
76
|
+
* const MyComponent = () => {
|
|
77
|
+
* const handleSelect = (value: number, text: string) => {
|
|
78
|
+
* console.log("Selected", value);
|
|
79
|
+
* };
|
|
80
|
+
*
|
|
81
|
+
* const selectWidthPx = 100;
|
|
82
|
+
* const selectHeightPx = 27;
|
|
83
|
+
*
|
|
84
|
+
* return <>
|
|
85
|
+
* <Select
|
|
86
|
+
* label="This is a label"
|
|
87
|
+
* options={[
|
|
88
|
+
* { text: "Option 1", value: 1 },
|
|
89
|
+
* { text: "Option 2", value: 2 },
|
|
90
|
+
* ]}
|
|
91
|
+
* onSelect={handleSelect}
|
|
92
|
+
* width={selectWidthPx}
|
|
93
|
+
* height={selectHeightPx}
|
|
94
|
+
* />
|
|
95
|
+
* </>
|
|
96
|
+
* }
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
declare function Select<T>({ label, options, onSelect, disabled, resetWhenOptionsUpdate, width, height, }: ISelectProps<T>): JSX.Element;
|
|
100
|
+
export default Select;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ISelectProps } from '../../../types/formTypes';
|
|
3
|
+
export declare const ArrowIcon: import("styled-components").StyledComponent<import("react").MemoExoticComponent<({ className, color, iconName, title, direction, ariaLabel }: import("../../../types/iconTypes").IIconProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>>, any, {
|
|
4
|
+
iconName: "DropdownArrow";
|
|
5
|
+
color: string;
|
|
6
|
+
title: "Select Arrow";
|
|
7
|
+
}, "title" | "color" | "iconName">;
|
|
8
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const SelectWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const Options: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const Option: import("styled-components").StyledComponent<"li", any, {
|
|
12
|
+
hover: boolean;
|
|
13
|
+
}, never>;
|
|
14
|
+
export declare const SelectList: import("styled-components").StyledComponent<"ul", any, Pick<Required<ISelectProps<unknown>>, "height" | "width">, never>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import { DropdownIndicatorProps } from 'react-select';
|
|
3
|
+
import { ISelect2Props } from '../../../types/formTypes';
|
|
4
|
+
export declare const DropdownIndicator: (props: DropdownIndicatorProps) => JSX.Element;
|
|
5
|
+
interface IWrapperProps extends Pick<ISelect2Props, 'label' | 'error' | 'width' | 'darkMode'> {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const WrapperComponent: FunctionComponent<IWrapperProps>;
|
|
9
|
+
/**
|
|
10
|
+
* A Select2 component wraps react-select with Chord styling and additional elements like
|
|
11
|
+
* text and error labels. This should be used just as usual react-select component.
|
|
12
|
+
* Note: using some advanced opportunities of react-select may require additional styling.
|
|
13
|
+
*
|
|
14
|
+
* # Error state
|
|
15
|
+
* An error label will be shown below the select if the `error` prop exists.
|
|
16
|
+
* Also select will be rendered with a red border. An empty string can be passed to
|
|
17
|
+
* render only error state without error message.
|
|
18
|
+
*
|
|
19
|
+
* # Light / Dark mode
|
|
20
|
+
* The component can also adapt its styles for light / dark mode. If you want this component
|
|
21
|
+
* to be rendered on a dark / coloured background, you can use the `darkMode` prop.
|
|
22
|
+
*/
|
|
23
|
+
declare const SelectComponent: FunctionComponent<ISelect2Props>;
|
|
24
|
+
export default SelectComponent;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ISelect2Props } from '../../../types/formTypes';
|
|
2
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const SelectWrapper: import("styled-components").StyledComponent<"div", any, Pick<ISelect2Props, "width" | "darkMode" | "error">, never>;
|
|
4
|
+
export declare const TextLabel: import("styled-components").StyledComponent<"div", any, Pick<ISelect2Props, "darkMode">, never>;
|
|
5
|
+
export declare const ErrorLabel: import("styled-components").StyledComponent<"div", any, Pick<ISelect2Props, "darkMode">, never>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { ISelect2AsyncProps } from '../../../types/formTypes';
|
|
3
|
+
/**
|
|
4
|
+
* The Select2Async component is similar to Select 2, but uses react-select async
|
|
5
|
+
* component for select instead of regular react-select component. This can be used
|
|
6
|
+
* for selects with dynamically loaded options, live search components etc.
|
|
7
|
+
*
|
|
8
|
+
* # Error state
|
|
9
|
+
* An error label will be shown below the select if the `error` prop exists.
|
|
10
|
+
* Also select will be rendered with a red border. An empty string can be passed to
|
|
11
|
+
* render only error state without error message.
|
|
12
|
+
*
|
|
13
|
+
* # Light / Dark mode
|
|
14
|
+
* The component can also adapt its styles for light / dark mode. If you want this component
|
|
15
|
+
* to be rendered on a dark / coloured background, you can use the `darkMode` prop.
|
|
16
|
+
*/
|
|
17
|
+
declare const SelectComponent: FunctionComponent<ISelect2AsyncProps>;
|
|
18
|
+
export default SelectComponent;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const StatusBannerWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const ContentContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const SvgContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Colors } from '../../../types/types';
|
|
2
|
+
export declare const TableContainer: import("styled-components").StyledComponent<"table", any, {}, never>;
|
|
3
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const TableHeader: import("styled-components").StyledComponent<"th", any, {
|
|
6
|
+
columns: number;
|
|
7
|
+
lineColor: Colors;
|
|
8
|
+
}, never>;
|
|
9
|
+
export declare const TableCell: import("styled-components").StyledComponent<"td", any, {
|
|
10
|
+
columns: number;
|
|
11
|
+
lineColor: Colors;
|
|
12
|
+
}, never>;
|
|
13
|
+
export declare const Pagination: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
export declare const PageNumber: import("styled-components").StyledComponent<"button", any, {
|
|
15
|
+
active?: string | undefined;
|
|
16
|
+
}, never>;
|
|
17
|
+
export declare const Next: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
18
|
+
export declare const ScrollButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
19
|
+
export declare const AriaDescription: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import { ContentProps } from '../../../../types/tableTypes';
|
|
3
|
+
export declare const Content: FunctionComponent<ContentProps>;
|
|
4
|
+
export declare const scrollTable: (tableRef: React.RefObject<HTMLTableElement>, direction: 'left' | 'right') => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Colors } from '../../../types';
|
|
2
|
+
declare type withColor = {
|
|
3
|
+
theme: {
|
|
4
|
+
color: Colors;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const PromoLabelWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const PromoLabel: import("styled-components").StyledComponent<"div", any, withColor, never>;
|
|
10
|
+
export declare const ButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export declare const OfferTextWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const PriceRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
export declare const LineThrough: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -4,15 +4,31 @@ import AnnouncementBanner from './AnnouncementBanner';
|
|
|
4
4
|
import Card from './Card';
|
|
5
5
|
import Cards from './Cards';
|
|
6
6
|
import ContactCard from './ContactCard';
|
|
7
|
+
import ContentSummary from './ContentSummary';
|
|
7
8
|
import Editorial from './Editorial';
|
|
8
9
|
import Information from './Information';
|
|
9
|
-
import { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream } from './PageHeading';
|
|
10
|
-
import
|
|
10
|
+
import { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PageHeadingCompact } from './PageHeading';
|
|
11
|
+
import Pagination from './Pagination';
|
|
12
|
+
import { PeopleListing, CreditListing } from './PeopleListing';
|
|
11
13
|
import PromoWithTags from './PromoWithTags';
|
|
12
14
|
import PromoWithTitle from './PromoWithTitle';
|
|
15
|
+
import RadioGroup from './RadioGroup';
|
|
16
|
+
import RadioGroup2 from './RadioGroup2';
|
|
17
|
+
import StatusBanner from './StatusBanner';
|
|
18
|
+
import SearchBar from './SearchBar';
|
|
13
19
|
import SectionTitle from './SectionTitle';
|
|
20
|
+
import Select from './Select';
|
|
21
|
+
import Select2 from './Select2';
|
|
22
|
+
import Select2Async from './Select2Async';
|
|
14
23
|
import Tabs from './Tabs';
|
|
15
24
|
import TextOnly from './TextOnly';
|
|
25
|
+
import UpsellCard from './UpsellCard';
|
|
16
26
|
import ImageWithCaption from './ImageWithCaption';
|
|
17
27
|
import Quote from './Quote';
|
|
18
|
-
|
|
28
|
+
import MiniCard from './MiniCard';
|
|
29
|
+
import ReadMore from './ReadMore';
|
|
30
|
+
import PasswordStrength from './PasswordStrength';
|
|
31
|
+
import AuxiliaryNav from './AuxiliaryNav';
|
|
32
|
+
import Table from './Table';
|
|
33
|
+
import VideoWithControls from './VideoWithControls';
|
|
34
|
+
export { Accordion, Accordions, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, MiniCard, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PasswordStrength, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, Quote, StatusBanner, SectionTitle, SearchBar, Select, Select2, Select2Async, Tabs, Table, TextOnly, UpsellCard, VideoWithControls, };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IAnchorTabsListProps } from '../../../types/navigation';
|
|
2
|
-
export declare const
|
|
1
|
+
import { IAnchorTabArrowsBoxProps, IAnchorTabsListProps, IAnchorTabBarBorderProps } from '../../../types/navigation';
|
|
2
|
+
export declare const LIST_ITEM_GAP = 32;
|
|
3
|
+
export declare const AnchorTabbarWrapper: import("styled-components").StyledComponent<"div", any, IAnchorTabBarBorderProps, never>;
|
|
3
4
|
export declare const TabsGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
5
|
export declare const TabsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
6
|
export declare const TabsList: import("styled-components").StyledComponent<"ul", any, IAnchorTabsListProps, never>;
|
|
6
|
-
export declare const ArrowsContainer: import("styled-components").StyledComponent<"div", any,
|
|
7
|
+
export declare const ArrowsContainer: import("styled-components").StyledComponent<"div", any, IAnchorTabArrowsBoxProps, never>;
|
|
7
8
|
export declare const ArrowWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { ModalWindowProps } from '../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* A ModalWindow component, leveraging React Modal for rendering modals with enhanced accessibility
|
|
5
|
+
* and styling customization. This component is designed to be flexible for various use cases, with
|
|
6
|
+
* support for mobile responsiveness, custom z-indexes, and a close button.
|
|
7
|
+
*
|
|
8
|
+
* # Usage
|
|
9
|
+
* This component is intended to be used in React applications where modal functionality is required.
|
|
10
|
+
* It supports a range of props for customization, including isOpen, setIsOpen, children, appElementId,
|
|
11
|
+
* and accepts all additional props supported by React Modal for further configuration.
|
|
12
|
+
*
|
|
13
|
+
* ## Basic Example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* import React, { useState } from 'react';
|
|
16
|
+
* import ModalWindow from './ModalWindow';
|
|
17
|
+
*
|
|
18
|
+
* const App = () => {
|
|
19
|
+
* const [isOpen, setIsOpen] = useState(false);
|
|
20
|
+
*
|
|
21
|
+
* const toggleModal = () => setIsOpen(!isOpen);
|
|
22
|
+
*
|
|
23
|
+
* return (
|
|
24
|
+
* <>
|
|
25
|
+
* <button onClick={toggleModal}>Open Modal</button>
|
|
26
|
+
* <ModalWindow
|
|
27
|
+
* isOpen={isOpen}
|
|
28
|
+
* setIsOpen={setIsOpen}
|
|
29
|
+
* appElementId="root"
|
|
30
|
+
* >
|
|
31
|
+
* <div>Modal Content Here</div>
|
|
32
|
+
* </ModalWindow>
|
|
33
|
+
* </>
|
|
34
|
+
* );
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ## Advanced Usage
|
|
39
|
+
* You can further customize the modal by directly passing props supported by React Modal.
|
|
40
|
+
* This component adapts its z-index based on the device type (mobile or desktop) and allows for an
|
|
41
|
+
* accessible close functionality.
|
|
42
|
+
*
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <ModalWindow
|
|
45
|
+
* isOpen={isOpen}
|
|
46
|
+
* setIsOpen={setIsOpen}
|
|
47
|
+
* appElementId="root"
|
|
48
|
+
* shouldCloseOnOverlayClick={true}
|
|
49
|
+
* >
|
|
50
|
+
* <YourCustomComponent />
|
|
51
|
+
* </ModalWindow>
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* # Props
|
|
55
|
+
* - `isOpen`: Boolean indicating if the modal is open.
|
|
56
|
+
* - `setIsOpen`: Function to set the open state of the modal.
|
|
57
|
+
* - `children`: Content to be displayed within the modal.
|
|
58
|
+
* - `appElementId`: ID of the app element to assist with accessibility.
|
|
59
|
+
* - All other props are passed directly to the underlying React Modal component, allowing for extensive customization.
|
|
60
|
+
*
|
|
61
|
+
* # Design and Accessibility
|
|
62
|
+
* This component automatically applies a `ScrollLock` when the modal is open to prevent background
|
|
63
|
+
* scrolling and sets appropriate z-index values to ensure the modal is layered correctly on the page.
|
|
64
|
+
* It also configures the modal for accessibility, including support for closing on ESC and setting
|
|
65
|
+
* `aria-modal` to true.
|
|
66
|
+
*/
|
|
67
|
+
declare const ModalWindow: FunctionComponent<ModalWindowProps>;
|
|
68
|
+
export default ModalWindow;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const InnerModal: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const CloseButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
3
|
+
export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const Overlay: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -2,8 +2,12 @@ import { INavigationWrapperProps } from '../../../types/navigation';
|
|
|
2
2
|
export declare const NavigationWrapper: import("styled-components").StyledComponent<"div", any, INavigationWrapperProps, never>;
|
|
3
3
|
export declare const FullScreenContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export declare const NavigationGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const SearchBackground: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
-
|
|
5
|
+
export declare const SearchBackground: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
visible?: boolean | undefined;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const GridItemSearch: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps & {
|
|
9
|
+
visible?: boolean | undefined;
|
|
10
|
+
}, never>;
|
|
7
11
|
export declare const NavigationGridMobile: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
12
|
export declare const LogoContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
13
|
export declare const MenuContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
interface IStickyBarGridProps {
|
|
2
|
+
hideBottomBorder: boolean;
|
|
3
|
+
}
|
|
1
4
|
export declare const StickyBarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const StickyBarGrid: import("styled-components").StyledComponent<"div", any,
|
|
5
|
+
export declare const StickyBarGrid: import("styled-components").StyledComponent<"div", any, IStickyBarGridProps, never>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const UpsellBorderBox: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const TextContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|