@phillips/seldon 1.279.2 → 1.280.1
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 +85 -5
- package/dist/_virtual/index10.cjs +1 -1
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index9.cjs +1 -1
- package/dist/_virtual/index9.js +2 -2
- package/dist/components/Accordion/Accordion.cjs +2 -1
- package/dist/components/Accordion/Accordion.js +5 -3
- package/dist/components/Accordion/_accordion.css +1 -0
- package/dist/components/AddToCalendar/AddToCalendar.cjs +2 -1
- package/dist/components/AddToCalendar/AddToCalendar.js +2 -0
- package/dist/components/AddToCalendar/_addToCalendar.css +1 -0
- package/dist/components/Article/Article.cjs +2 -1
- package/dist/components/Article/Article.js +2 -0
- package/dist/components/Article/_article.css +1 -0
- package/dist/components/Banner/Banner.cjs +2 -1
- package/dist/components/Banner/Banner.js +4 -2
- package/dist/components/Banner/_banner.css +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.cjs +2 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +16 -14
- package/dist/components/Breadcrumb/_breadcrumb.css +1 -0
- package/dist/components/Button/Button.cjs +2 -1
- package/dist/components/Button/Button.js +2 -0
- package/dist/components/Button/_button.css +1 -0
- package/dist/components/Card/Card.cjs +2 -1
- package/dist/components/Card/Card.js +4 -2
- package/dist/components/Card/_card.css +1 -0
- package/dist/components/Carousel/Carousel.cjs +2 -1
- package/dist/components/Carousel/Carousel.js +68 -69
- package/dist/components/Carousel/CarouselDot.cjs +1 -1
- package/dist/components/Carousel/CarouselDot.d.ts +4 -2
- package/dist/components/Carousel/CarouselDot.js +12 -11
- package/dist/components/Carousel/CarouselDots.cjs +1 -1
- package/dist/components/Carousel/CarouselDots.js +62 -58
- package/dist/components/Carousel/_carousel.css +1 -0
- package/dist/components/ComboBox/ComboBox.cjs +3 -1
- package/dist/components/ComboBox/ComboBox.js +35 -31
- package/dist/components/ComboBox/ComboBox.stories.d.ts +1 -0
- package/dist/components/ComboBox/_combobox.css +1 -0
- package/dist/components/ComposedModal/ComposedModal.cjs +2 -1
- package/dist/components/ComposedModal/ComposedModal.js +11 -9
- package/dist/components/ComposedModal/_composedModal.css +1 -0
- package/dist/components/ContentPeek/ContentPeek.cjs +2 -1
- package/dist/components/ContentPeek/ContentPeek.js +2 -0
- package/dist/components/ContentPeek/_contentPeek.css +1 -0
- package/dist/components/Countdown/Countdown.cjs +2 -1
- package/dist/components/Countdown/Countdown.js +13 -11
- package/dist/components/Countdown/Duration.cjs +2 -1
- package/dist/components/Countdown/Duration.js +4 -2
- package/dist/components/Countdown/_countdown.css +1 -0
- package/dist/components/Countdown/_duration.css +1 -0
- package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.cjs +2 -1
- package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +22 -20
- package/dist/components/DescriptiveRadioButton/_descriptiveRadioButton.css +1 -0
- package/dist/components/DescriptiveRadioButtonGroup/DescriptiveRadioButtonGroup.cjs +2 -1
- package/dist/components/DescriptiveRadioButtonGroup/DescriptiveRadioButtonGroup.js +7 -5
- package/dist/components/DescriptiveRadioButtonGroup/_descriptiveRadioButtonGroup.css +1 -0
- package/dist/components/Detail/Detail.cjs +2 -1
- package/dist/components/Detail/Detail.js +5 -3
- package/dist/components/Detail/_detail.css +1 -0
- package/dist/components/DetailList/DetailList.cjs +2 -1
- package/dist/components/DetailList/DetailList.js +14 -12
- package/dist/components/DetailList/_detailList.css +1 -0
- package/dist/components/Divider/Divider.cjs +2 -1
- package/dist/components/Divider/Divider.js +8 -6
- package/dist/components/Divider/_divider.css +1 -0
- package/dist/components/Drawer/Drawer.cjs +2 -1
- package/dist/components/Drawer/Drawer.js +9 -7
- package/dist/components/Drawer/DrawerHeader.cjs +2 -1
- package/dist/components/Drawer/DrawerHeader.js +12 -10
- package/dist/components/Drawer/_drawer.css +1 -0
- package/dist/components/Drawer/_drawerHeader.css +1 -0
- package/dist/components/Dropdown/Dropdown.cjs +2 -1
- package/dist/components/Dropdown/Dropdown.js +2 -0
- package/dist/components/Dropdown/_dropdown.css +1 -0
- package/dist/components/ExitGateCard/ExitGateCard.cjs +2 -1
- package/dist/components/ExitGateCard/ExitGateCard.js +6 -4
- package/dist/components/ExitGateCard/_exitGateCard.css +1 -0
- package/dist/components/FavoritingTileButton/FavoritingTileButton.cjs +2 -1
- package/dist/components/FavoritingTileButton/FavoritingTileButton.js +8 -6
- package/dist/components/FavoritingTileButton/_favoritingTileButton.css +1 -0
- package/dist/components/Filter/Filter.cjs +2 -1
- package/dist/components/Filter/Filter.js +9 -7
- package/dist/components/Filter/_filter.css +1 -0
- package/dist/components/Grid/Grid.cjs +2 -1
- package/dist/components/Grid/Grid.js +13 -11
- package/dist/components/Grid/_grid.css +1 -0
- package/dist/components/GridItem/GridItem.cjs +2 -1
- package/dist/components/GridItem/GridItem.js +2 -0
- package/dist/components/GridItem/_gridItem.css +1 -0
- package/dist/components/Icon/Icon.cjs +2 -1
- package/dist/components/Icon/Icon.js +6 -4
- package/dist/components/Icon/_icon.css +1 -0
- package/dist/components/IconButton/IconButton.cjs +2 -1
- package/dist/components/IconButton/IconButton.js +11 -9
- package/dist/components/IconButton/_iconButton.css +1 -0
- package/dist/components/Input/Input.cjs +3 -1
- package/dist/components/Input/Input.js +4 -0
- package/dist/components/Input/_input.css +1 -0
- package/dist/components/Link/Link.cjs +2 -1
- package/dist/components/Link/Link.js +10 -8
- package/dist/components/Link/_link.css +1 -0
- package/dist/components/LinkBlock/LinkBlock.cjs +2 -1
- package/dist/components/LinkBlock/LinkBlock.js +8 -6
- package/dist/components/LinkBlock/_linkBlock.css +1 -0
- package/dist/components/LinkList/LinkList.cjs +2 -1
- package/dist/components/LinkList/LinkList.js +11 -9
- package/dist/components/LinkList/_linkList.css +1 -0
- package/dist/components/Loader/Loader.cjs +2 -1
- package/dist/components/Loader/Loader.js +8 -6
- package/dist/components/Loader/_loader.css +1 -0
- package/dist/components/Modal/Modal.cjs +2 -1
- package/dist/components/Modal/Modal.js +6 -4
- package/dist/components/Modal/_modal.css +1 -0
- package/dist/components/Navigation/Navigation.cjs +2 -1
- package/dist/components/Navigation/Navigation.js +10 -8
- package/dist/components/Navigation/NavigationItem/NavigationItem.cjs +2 -1
- package/dist/components/Navigation/NavigationItem/NavigationItem.js +22 -18
- package/dist/components/Navigation/NavigationItem/_navigationItem.css +1 -0
- package/dist/components/Navigation/NavigationItemWithSubmenu/NavigationItemWithSubmenu.cjs +2 -1
- package/dist/components/Navigation/NavigationItemWithSubmenu/NavigationItemWithSubmenu.js +8 -6
- package/dist/components/Navigation/NavigationItemWithSubmenu/_navigationItemWithSubmenu.css +1 -0
- package/dist/components/Navigation/NavigationList/NavigationList.cjs +2 -1
- package/dist/components/Navigation/NavigationList/NavigationList.js +9 -7
- package/dist/components/Navigation/NavigationList/_navigationList.css +1 -0
- package/dist/components/Navigation/_navigation.css +1 -0
- package/dist/components/NotificationBanner/NotificationBanner.cjs +2 -1
- package/dist/components/NotificationBanner/NotificationBanner.js +4 -2
- package/dist/components/NotificationBanner/_notificationBanner.css +1 -0
- package/dist/components/PageContentWrapper/PageContentWrapper.cjs +2 -1
- package/dist/components/PageContentWrapper/PageContentWrapper.js +11 -9
- package/dist/components/PageContentWrapper/_pageContentWrapper.css +1 -0
- package/dist/components/Pagination/Pagination.cjs +2 -1
- package/dist/components/Pagination/Pagination.js +2 -0
- package/dist/components/Pagination/_pagination.css +1 -0
- package/dist/components/PinchZoom/PinchZoom.cjs +2 -1
- package/dist/components/PinchZoom/PinchZoom.js +2 -0
- package/dist/components/PinchZoom/_pinchZoom.css +1 -0
- package/dist/components/ProgressBar/ProgressBar.cjs +2 -1
- package/dist/components/ProgressBar/ProgressBar.js +2 -0
- package/dist/components/ProgressBar/_progressBar.css +1 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.cjs +2 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.js +13 -11
- package/dist/components/ProgressIndicator/_progressIndicator.css +1 -0
- package/dist/components/Row/Row.cjs +2 -1
- package/dist/components/Row/Row.js +6 -4
- package/dist/components/Row/_row.css +1 -0
- package/dist/components/Search/Search.cjs +2 -1
- package/dist/components/Search/Search.js +2 -0
- package/dist/components/Search/SearchButton.cjs +2 -1
- package/dist/components/Search/SearchButton.js +4 -2
- package/dist/components/Search/SearchResults/SearchResults.cjs +2 -1
- package/dist/components/Search/SearchResults/SearchResults.js +4 -2
- package/dist/components/Search/SearchResults/_searchResults.css +1 -0
- package/dist/components/Search/_search.css +1 -0
- package/dist/components/Search/_searchButton.css +1 -0
- package/dist/components/SeldonImage/SeldonImage.cjs +2 -1
- package/dist/components/SeldonImage/SeldonImage.js +2 -0
- package/dist/components/SeldonImage/_seldonImage.css +1 -0
- package/dist/components/Select/Select.cjs +3 -1
- package/dist/components/Select/Select.js +21 -17
- package/dist/components/Select/_select.css +1 -0
- package/dist/components/SlideToActivate/SlideToActivate.cjs +2 -1
- package/dist/components/SlideToActivate/SlideToActivate.js +2 -0
- package/dist/components/SlideToActivate/_slideToActivate.css +1 -0
- package/dist/components/SplitPanel/SplitPanel.cjs +2 -1
- package/dist/components/SplitPanel/SplitPanel.js +6 -4
- package/dist/components/SplitPanel/_splitPanel.css +1 -0
- package/dist/components/Tabs/TabsContainer.cjs +2 -1
- package/dist/components/Tabs/TabsContainer.js +2 -0
- package/dist/components/Tabs/_tabs.css +1 -0
- package/dist/components/Tags/Tags.cjs +2 -1
- package/dist/components/Tags/Tags.js +10 -8
- package/dist/components/Tags/_tags.css +1 -0
- package/dist/components/Text/Text.cjs +2 -1
- package/dist/components/Text/Text.js +6 -4
- package/dist/components/Text/_text.css +1 -0
- package/dist/components/TextArea/TextArea.cjs +3 -1
- package/dist/components/TextArea/TextArea.js +14 -10
- package/dist/components/TextArea/TextArea.stories.d.ts +1 -0
- package/dist/components/TextArea/_textArea.css +1 -0
- package/dist/components/TextSymbol/TextSymbol.cjs +2 -1
- package/dist/components/TextSymbol/TextSymbol.js +7 -5
- package/dist/components/TextSymbol/_textSymbol.css +1 -0
- package/dist/components/Toast/Toast.cjs +2 -1
- package/dist/components/Toast/Toast.js +2 -0
- package/dist/components/Toast/_toast.css +1 -0
- package/dist/components/Toggle/_toggle.css +1 -0
- package/dist/components/Video/Video.cjs +2 -1
- package/dist/components/Video/Video.js +2 -0
- package/dist/components/Video/_video.css +1 -0
- package/dist/node_modules/ics/dist/index.cjs +1 -1
- package/dist/node_modules/ics/dist/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.cjs +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/pages/Page.cjs +2 -1
- package/dist/pages/Page.js +4 -2
- package/dist/pages/_page.css +1 -0
- package/dist/patterns/AccountPageHeader/AccountPageHeader.cjs +2 -1
- package/dist/patterns/AccountPageHeader/AccountPageHeader.js +11 -9
- package/dist/patterns/AccountPageHeader/_accountPageHeader.css +1 -0
- package/dist/patterns/BidSnapshot/BidSnapshot.cjs +2 -1
- package/dist/patterns/BidSnapshot/BidSnapshot.js +2 -0
- package/dist/patterns/BidSnapshot/_bidSnapshot.css +1 -0
- package/dist/patterns/CountryPicker/CountryPicker.stories.d.ts +4 -0
- package/dist/patterns/CountryPicker/CountryPickerModal.cjs +2 -1
- package/dist/patterns/CountryPicker/CountryPickerModal.js +8 -6
- package/dist/patterns/CountryPicker/CountryPickerOption.cjs +2 -1
- package/dist/patterns/CountryPicker/CountryPickerOption.js +6 -4
- package/dist/patterns/CountryPicker/CountryPickerTrigger.cjs +3 -1
- package/dist/patterns/CountryPicker/CountryPickerTrigger.js +11 -7
- package/dist/patterns/CountryPicker/_countryPickerModal.css +1 -0
- package/dist/patterns/CountryPicker/_countryPickerOption.css +1 -0
- package/dist/patterns/CountryPicker/_countryPickerTrigger.css +1 -0
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.cjs +2 -1
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +4 -2
- package/dist/patterns/FavoritesCollectionTile/_favoritesCollectionTile.css +1 -0
- package/dist/patterns/FilterMenu/FilterMenu.cjs +2 -1
- package/dist/patterns/FilterMenu/FilterMenu.js +6 -4
- package/dist/patterns/FilterMenu/_filterMenu.css +1 -0
- package/dist/patterns/FiltersInline/FilterButton.cjs +2 -1
- package/dist/patterns/FiltersInline/FilterButton.js +11 -9
- package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.cjs +2 -1
- package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +16 -14
- package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.cjs +2 -1
- package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +6 -4
- package/dist/patterns/FiltersInline/FiltersInline.cjs +2 -1
- package/dist/patterns/FiltersInline/FiltersInline.js +6 -4
- package/dist/patterns/FiltersInline/_filterButton.css +1 -0
- package/dist/patterns/FiltersInline/_filterDropdownMenu.css +1 -0
- package/dist/patterns/FiltersInline/_filtersInline.css +1 -0
- package/dist/patterns/HeroBanner/HeroBanner.cjs +2 -1
- package/dist/patterns/HeroBanner/HeroBanner.js +15 -13
- package/dist/patterns/HeroBanner/_heroBanner.css +1 -0
- package/dist/patterns/LanguageSelector/LanguageSelector.cjs +2 -1
- package/dist/patterns/LanguageSelector/LanguageSelector.js +10 -8
- package/dist/patterns/LanguageSelector/_languageSelector.css +1 -0
- package/dist/patterns/ObjectTile/ObjectTile.cjs +2 -1
- package/dist/patterns/ObjectTile/ObjectTile.js +20 -18
- package/dist/patterns/ObjectTile/_objectTile.css +1 -0
- package/dist/patterns/PhoneNumberInput/PhoneNumberInput.cjs +2 -1
- package/dist/patterns/PhoneNumberInput/PhoneNumberInput.js +2 -0
- package/dist/patterns/PhoneNumberInput/_phoneNumberInput.css +1 -0
- package/dist/patterns/ProgressWizard/ProgressWizard.cjs +2 -1
- package/dist/patterns/ProgressWizard/ProgressWizard.js +7 -5
- package/dist/patterns/ProgressWizard/_progressWizard.css +1 -0
- package/dist/patterns/SaleCard/SaleCard.cjs +2 -1
- package/dist/patterns/SaleCard/SaleCard.js +12 -10
- package/dist/patterns/SaleCard/SaleCardActions.cjs +2 -1
- package/dist/patterns/SaleCard/SaleCardActions.js +6 -4
- package/dist/patterns/SaleCard/_saleCard.css +1 -0
- package/dist/patterns/SaleCard/_saleCardActions.css +1 -0
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.cjs +2 -1
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +2 -0
- package/dist/patterns/SaleHeaderBanner/_saleHeaderBanner.css +1 -0
- package/dist/patterns/Social/Social.cjs +2 -1
- package/dist/patterns/Social/Social.js +2 -0
- package/dist/patterns/Social/_social.css +1 -0
- package/dist/patterns/Subscribe/Subscribe.cjs +2 -1
- package/dist/patterns/Subscribe/Subscribe.js +11 -9
- package/dist/patterns/Subscribe/_subscribe.css +1 -0
- package/dist/patterns/TextBanner/TextBanner.cjs +2 -1
- package/dist/patterns/TextBanner/TextBanner.js +10 -8
- package/dist/patterns/TextBanner/_textBanner.css +1 -0
- package/dist/patterns/UserManagement/UserManagement.cjs +2 -1
- package/dist/patterns/UserManagement/UserManagement.js +13 -11
- package/dist/patterns/UserManagement/_userManagement.css +1 -0
- package/dist/patterns/ViewingDetails/ViewingDetails.cjs +2 -1
- package/dist/patterns/ViewingDetails/ViewingDetails.js +6 -4
- package/dist/patterns/ViewingDetails/_viewingDetails.css +1 -0
- package/dist/patterns/ViewingsList/ViewingsList.cjs +2 -1
- package/dist/patterns/ViewingsList/ViewingsList.js +2 -0
- package/dist/patterns/ViewingsList/ViewingsListCard.cjs +2 -1
- package/dist/patterns/ViewingsList/ViewingsListCard.js +8 -6
- package/dist/patterns/ViewingsList/_viewingsList.css +1 -0
- package/dist/providers/SeldonProvider/SeldonProvider.cjs +2 -1
- package/dist/providers/SeldonProvider/SeldonProvider.js +3 -1
- package/dist/scss/_allPartials.scss +2 -1
- package/dist/scss/_foundation.css +1 -0
- package/dist/scss/_foundation.scss +69 -0
- package/dist/scss/_layers.scss +12 -0
- package/dist/scss/_reset.scss +57 -53
- package/dist/scss/_sharedClasses.scss +61 -57
- package/dist/scss/_typography.scss +64 -52
- package/dist/scss/_vars.scss +6 -5
- package/dist/scss/_vars.scss.cjs +6 -5
- package/dist/scss/_vars.scss.js +6 -5
- package/dist/scss/componentStyles.scss +3 -66
- package/dist/scss/components/Accordion/_accordion.scss +102 -99
- package/dist/scss/components/AddToCalendar/_addToCalendar.scss +69 -52
- package/dist/scss/components/Article/_article.scss +22 -19
- package/dist/scss/components/Banner/_banner.scss +137 -134
- package/dist/scss/components/Breadcrumb/_breadcrumb.scss +47 -44
- package/dist/scss/components/Button/_button.scss +240 -216
- package/dist/scss/components/Card/_card.scss +86 -83
- package/dist/scss/components/Carousel/_carousel.scss +169 -166
- package/dist/scss/components/ComboBox/_combobox.scss +144 -141
- package/dist/scss/components/ComposedModal/_composedModal.scss +54 -51
- package/dist/scss/components/ContentPeek/_contentPeek.scss +48 -45
- package/dist/scss/components/Countdown/_countdown.scss +64 -61
- package/dist/scss/components/Countdown/_duration.scss +6 -3
- package/dist/scss/components/DatePicker/_datePicker.scss +74 -65
- package/dist/scss/components/DescriptiveRadioButton/_descriptiveRadioButton.scss +50 -47
- package/dist/scss/components/DescriptiveRadioButtonGroup/_descriptiveRadioButtonGroup.scss +24 -21
- package/dist/scss/components/Detail/_detail.scss +39 -36
- package/dist/scss/components/DetailList/_detailList.scss +37 -34
- package/dist/scss/components/Divider/_divider.scss +15 -12
- package/dist/scss/components/Drawer/_drawer.scss +189 -186
- package/dist/scss/components/Drawer/_drawerHeader.scss +30 -27
- package/dist/scss/components/Dropdown/_dropdown.scss +79 -76
- package/dist/scss/components/ExitGateCard/_exitGateCard.scss +59 -56
- package/dist/scss/components/FavoritingTileButton/_favoritingTileButton.scss +36 -33
- package/dist/scss/components/Filter/_filter.scss +87 -84
- package/dist/scss/components/Grid/_grid.scss +20 -17
- package/dist/scss/components/GridItem/_gridItem.scss +33 -30
- package/dist/scss/components/Icon/_icon.scss +10 -7
- package/dist/scss/components/IconButton/_iconButton.scss +168 -77
- package/dist/scss/components/Input/_input.scss +205 -210
- package/dist/scss/components/Link/_link.scss +69 -64
- package/dist/scss/components/LinkBlock/_linkBlock.scss +14 -11
- package/dist/scss/components/LinkList/_linkList.scss +19 -16
- package/dist/scss/components/Loader/_loader.scss +21 -18
- package/dist/scss/components/Modal/_modal.scss +29 -26
- package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +86 -83
- package/dist/scss/components/Navigation/NavigationItemWithSubmenu/_navigationItemWithSubmenu.scss +89 -86
- package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +71 -68
- package/dist/scss/components/Navigation/_navigation.scss +122 -119
- package/dist/scss/components/NotificationBanner/_notificationBanner.scss +33 -30
- package/dist/scss/components/PageContentWrapper/_pageContentWrapper.scss +7 -4
- package/dist/scss/components/Pagination/_pagination.scss +66 -63
- package/dist/scss/components/PinchZoom/_pinchZoom.scss +28 -25
- package/dist/scss/components/ProgressBar/_progressBar.scss +77 -74
- package/dist/scss/components/ProgressIndicator/_progressIndicator.scss +55 -52
- package/dist/scss/components/Row/_row.scss +6 -3
- package/dist/scss/components/Search/SearchResults/_searchResults.scss +43 -40
- package/dist/scss/components/Search/_search.scss +127 -124
- package/dist/scss/components/Search/_searchButton.scss +53 -50
- package/dist/scss/components/SeldonImage/_seldonImage.scss +93 -90
- package/dist/scss/components/Select/_select.scss +60 -48
- package/dist/scss/components/SlideToActivate/_slideToActivate.scss +227 -224
- package/dist/scss/components/SplitPanel/_splitPanel.scss +26 -23
- package/dist/scss/components/Tabs/_tabs.scss +69 -66
- package/dist/scss/components/Tags/_tags.scss +64 -61
- package/dist/scss/components/Text/_text.scss +39 -36
- package/dist/scss/components/TextArea/_textArea.scss +102 -99
- package/dist/scss/components/TextSymbol/_textSymbol.scss +13 -10
- package/dist/scss/components/Toast/_toast.scss +82 -79
- package/dist/scss/components/Toggle/_toggle.scss +148 -145
- package/dist/scss/components/Video/_video.scss +16 -13
- package/dist/scss/layers.test.d.ts +1 -0
- package/dist/scss/patterns/AccountPageHeader/_accountPageHeader.scss +35 -32
- package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +43 -40
- package/dist/scss/patterns/CountryPicker/_countryPickerModal.scss +82 -81
- package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +72 -69
- package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +83 -80
- package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +153 -151
- package/dist/scss/patterns/FilterMenu/_filterMenu.scss +14 -11
- package/dist/scss/patterns/FiltersInline/_filterButton.scss +41 -38
- package/dist/scss/patterns/FiltersInline/_filterDropdownMenu.scss +165 -162
- package/dist/scss/patterns/FiltersInline/_filtersInline.scss +31 -28
- package/dist/scss/patterns/HeroBanner/_heroBanner.scss +78 -75
- package/dist/scss/patterns/LanguageSelector/_languageSelector.scss +47 -43
- package/dist/scss/patterns/ObjectTile/_objectTile.scss +84 -81
- package/dist/scss/patterns/PhoneNumberInput/_phoneNumberInput.scss +45 -42
- package/dist/scss/patterns/ProgressWizard/_progressWizard.scss +66 -63
- package/dist/scss/patterns/SaleCard/_saleCard.scss +62 -58
- package/dist/scss/patterns/SaleCard/_saleCardActions.scss +11 -8
- package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +75 -72
- package/dist/scss/patterns/Social/_social.scss +65 -62
- package/dist/scss/patterns/Subscribe/_subscribe.scss +16 -13
- package/dist/scss/patterns/TextBanner/_textBanner.scss +35 -32
- package/dist/scss/patterns/UserManagement/_userManagement.scss +49 -46
- package/dist/scss/patterns/ViewingDetails/_viewingDetails.scss +55 -52
- package/dist/scss/patterns/ViewingsList/_viewingsList.scss +44 -41
- package/dist/scss/site-furniture/Footer/_footer.scss +104 -95
- package/dist/scss/site-furniture/Header/_header.scss +176 -173
- package/dist/site-furniture/Footer/Footer.cjs +2 -1
- package/dist/site-furniture/Footer/Footer.js +4 -2
- package/dist/site-furniture/Footer/_footer.css +1 -0
- package/dist/site-furniture/Header/Header.cjs +2 -1
- package/dist/site-furniture/Header/Header.js +2 -0
- package/dist/site-furniture/Header/_header.css +1 -0
- package/package.json +4 -3
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './_navigationList.css';
|
|
2
|
+
import { jsx as a, Fragment as p } from "react/jsx-runtime";
|
|
2
3
|
import f from "../../../_virtual/index2.js";
|
|
3
|
-
import * as
|
|
4
|
+
import * as r from "react";
|
|
4
5
|
import { px as u } from "../../../utils/index.js";
|
|
5
6
|
import d from "../NavigationItem/NavigationItem.js";
|
|
6
7
|
import { List as c } from "../../../node_modules/@radix-ui/react-navigation-menu/dist/index.js";
|
|
7
8
|
import N from "../NavigationItemWithSubmenu/NavigationItemWithSubmenu.js";
|
|
9
|
+
|
|
8
10
|
function v({ children: e, isMobile: n = !0 }) {
|
|
9
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ a(p, { children: r.Children.map(e, (t) => r.isValidElement(t) && t.type === d ? r.cloneElement(t, {
|
|
10
12
|
isMobile: n
|
|
11
|
-
}) :
|
|
13
|
+
}) : r.isValidElement(t) && t.type === N ? r.cloneElement(t, {
|
|
12
14
|
isMobile: n
|
|
13
15
|
}) : t) });
|
|
14
16
|
}
|
|
15
|
-
const C =
|
|
17
|
+
const C = r.forwardRef(
|
|
16
18
|
({ id: e, children: n, className: t, isOffScreen: i, onClick: g, isMobile: o = !0 }, m) => {
|
|
17
|
-
const s = /* @__PURE__ */
|
|
19
|
+
const s = /* @__PURE__ */ a(v, { isMobile: o, children: n }), l = f(t, `${u}-nav__list`, {
|
|
18
20
|
[`${u}-nav__list--offscreen`]: i
|
|
19
21
|
});
|
|
20
|
-
return o ? /* @__PURE__ */
|
|
22
|
+
return o ? /* @__PURE__ */ a("ul", { "aria-hidden": i, id: e, "data-testid": e, role: "list", className: l, ref: m, children: s }) : /* @__PURE__ */ a(c, { asChild: !0, children: /* @__PURE__ */ a("ul", { "aria-hidden": i, id: e, "data-testid": e, role: "list", className: l, ref: m, children: s }) });
|
|
21
23
|
}
|
|
22
24
|
);
|
|
23
25
|
C.displayName = "NavigationList";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-nav__list{align-items:flex-start;flex-direction:column;justify-content:left;opacity:1}.seldon-nav__list:focus:not(:focus-visible){outline:none}.seldon-nav__list--offscreen{opacity:0;pointer-events:none;top:-100%}@media(min-width:961px){.seldon-nav__list{align-items:flex-end;display:flex;flex-direction:row;justify-content:center;list-style:none;margin:0;padding:0;position:relative;top:0;transform:translateY(0);transition:top .3s cubic-bezier(.4,0,.2,1),transform .3s cubic-bezier(.4,0,.2,1),opacity .5s cubic-bezier(.65,0,.35,1);z-index:5}}@media(min-width:961px)and (prefers-reduced-motion:reduce){.seldon-nav__list{transition:none}}@media(min-width:961px){.seldon-nav__list--offscreen{transition:top .3s cubic-bezier(.4,0,.2,1),transform .3s cubic-bezier(.4,0,.2,1),opacity .2s cubic-bezier(.65,0,.35,1)}}@media(min-width:961px)and (prefers-reduced-motion:reduce){.seldon-nav__list--offscreen{transition:none}}@media(min-width:961px){.seldon-nav__list__section{display:grid;gap:var(--spacing-sm);width:50%}.seldon-nav__list__section:only-child{width:100%}.seldon-nav__list .seldon-accordion{display:none}}@media(max-width:960px){.seldon-nav__list__section{width:100%}.seldon-nav__list .seldon-accordion{border-bottom:0;border-top:0;margin-bottom:0}.seldon-nav__list .seldon-accordion-item-label{opacity:1}.seldon-nav__list .seldon-link--linkStylised{border-bottom:1px solid #eae9e6;flex-wrap:wrap;padding:1.25rem 0}.seldon-nav__list .seldon-accordion-item-label{padding:1.25rem 0}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-nav{border-top:1px solid #eae9e6;display:flex;height:fit-content;justify-content:center}.seldon-nav__list-container{display:flex;flex-direction:column;justify-content:center;padding:0 var(--spacing-sm);position:relative;width:100%}.seldon-nav__list-container>.seldon-nav__list{padding-top:0}@media(min-width:961px){.seldon-nav__list-container>.seldon-nav__list{border-top:unset}}@media(max-width:960px){.seldon-nav__list-container>.seldon-nav__list{padding:0 var(--spacing-md)}}.seldon-nav__list-container>.seldon-nav__list .seldon-nav__item+.seldon-accordion{border-top:0}@media(min-width:961px){.seldon-nav__list-container{flex-direction:row;overflow:visible;padding-right:var(--search-size)}.seldon-nav__list-container--search-expanded .seldon-nav__list{opacity:0;pointer-events:none;transform:translateY(-100%);transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .2s cubic-bezier(.65,0,.35,1)}}@media(min-width:961px)and (prefers-reduced-motion:reduce){.seldon-nav__list-container--search-expanded .seldon-nav__list{transition:none}}@media(min-width:961px){.seldon-nav{border:unset;width:fit-content}.seldon-nav .seldon-nav__close-btn{display:none}}.seldon-nav__close-btn:hover,.seldon-nav__close-btn:focus{background-color:#eae9e6}@media(max-width:960px){.seldon-nav__list-container .seldon-nav__list{padding:0 var(--spacing-md)}.seldon-nav__list-container .seldon-nav__list .seldon-link--linkStylised{padding:1.25rem 0}.seldon-nav__list-container .seldon-nav__list .seldon-link--linkMedium,.seldon-nav__list-container .seldon-nav__list .seldon-link--linkLarge{padding:0}.seldon-nav__list-container .seldon-nav__list .seldon-accordion-item-label{padding:1.25rem 0}}@media(min-width:961px){.seldon-nav__radix-root{display:flex;flex-direction:column;overflow:visible;position:relative;width:fit-content}.seldon-nav__radix-viewport{height:0;left:0;overflow:hidden;pointer-events:none;position:fixed;right:0;top:calc(var(--banner-height, 0px) + var(--header-height));transition:height .3s cubic-bezier(.4,0,.2,1)}}@media(min-width:961px)and (prefers-reduced-motion:reduce){.seldon-nav__radix-viewport{transition:none}}@media(min-width:961px){.seldon-nav__radix-viewport[data-state=open]{animation:nav-viewport-enter .3s cubic-bezier(.33,1,.68,1);height:var(--radix-navigation-menu-viewport-height, auto);pointer-events:auto}}@media(min-width:961px)and (prefers-reduced-motion:reduce){.seldon-nav__radix-viewport[data-state=open]{animation:none}}@media(min-width:961px){.seldon-nav__radix-viewport[data-state=closed]{animation:nav-viewport-exit .2s cubic-bezier(.65,0,.35,1)}}@media(min-width:961px)and (prefers-reduced-motion:reduce){.seldon-nav__radix-viewport[data-state=closed]{animation:none}}@media(min-width:961px){@keyframes nav-viewport-enter{0%{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}@keyframes nav-viewport-exit{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-16px)}}}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_notificationBanner.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react/jsx-runtime"),u=require("../../_virtual/index2.cjs"),d=require("react"),l=require("../../utils/index.cjs");;const t=d.forwardRef(({className:i,...e},n)=>{const{className:o,...r}=l.getCommonProps(e,"NotificationBanner"),{children:a,id:s}=e;return c.jsx("div",{...r,...e,className:u.default(o,i),ref:n,id:s,children:a})});t.displayName="NotificationBanner";exports.default=t;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import './_notificationBanner.css';
|
|
1
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
3
|
import e from "../../_virtual/index2.js";
|
|
3
4
|
import { forwardRef as c } from "react";
|
|
4
5
|
import { getCommonProps as f } from "../../utils/index.js";
|
|
6
|
+
|
|
5
7
|
const l = c(({ className: a, ...o }, i) => {
|
|
6
|
-
const { className: m, ...
|
|
7
|
-
return /* @__PURE__ */ s("div", { ...
|
|
8
|
+
const { className: m, ...r } = f(o, "NotificationBanner"), { children: t, id: n } = o;
|
|
9
|
+
return /* @__PURE__ */ s("div", { ...r, ...o, className: e(m, a), ref: i, id: n, children: t });
|
|
8
10
|
});
|
|
9
11
|
l.displayName = "NotificationBanner";
|
|
10
12
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-notification-banner{background:#eae9e6;color:#000;left:0;padding:var(--spacing-sm) var(--spacing-md);pointer-events:auto;position:fixed;text-align:center;top:0;width:100%;z-index:10;font-family:Montserrat,sans-serif;font-size:var(--font-size-body-small);font-style:unset;font-variation-settings:"wght" 400;letter-spacing:0;line-height:1.4;text-transform:unset}.seldon-notification-banner>*,.seldon-notification-banner .seldon-text{text-align:center;font-family:Montserrat,sans-serif;font-size:var(--font-size-body-small);font-style:unset;font-variation-settings:"wght" 400;letter-spacing:0;line-height:1.4;text-transform:unset}.seldon-notification-banner .seldon-link{font-family:Montserrat,sans-serif;font-size:var(--font-size-link-small);font-style:unset;font-variation-settings:"wght" 400;letter-spacing:0;line-height:1.2;text-decoration:underline;text-transform:unset}.seldon-notification-banner>.seldon-notification-banner-content{color:#000;text-align:center}.seldon-notification-banner>.seldon-notification-banner-content .seldon-link{font-family:Montserrat,sans-serif;font-size:var(--font-size-link-small);font-style:unset;font-variation-settings:"wght" 400;letter-spacing:0;line-height:1.2;text-decoration:underline;text-transform:unset}.seldon-notification-banner .seldon-notification-banner-link{cursor:pointer;text-decoration:underline}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_pageContentWrapper.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react/jsx-runtime"),i=require("react"),c=require("../../utils/index.cjs"),l=require("../../_virtual/index2.cjs");;const r=i.forwardRef(({children:t,className:a,...e},s)=>{const{className:n,...o}=c.getCommonProps(e,"PageContentWrapper");return u.jsx("div",{...o,className:l.default(n,a),...e,ref:s,children:t})});r.displayName="PageContentWrapper";exports.default=r;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import './_pageContentWrapper.css';
|
|
2
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as p } from "react";
|
|
4
|
+
import { getCommonProps as n } from "../../utils/index.js";
|
|
4
5
|
import f from "../../_virtual/index2.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
|
|
7
|
+
const i = p(
|
|
8
|
+
({ children: r, className: a, ...o }, e) => {
|
|
9
|
+
const { className: m, ...t } = n(o, "PageContentWrapper");
|
|
10
|
+
return /* @__PURE__ */ s("div", { ...t, className: f(m, a), ...o, ref: e, children: r });
|
|
9
11
|
}
|
|
10
12
|
);
|
|
11
|
-
|
|
13
|
+
i.displayName = "PageContentWrapper";
|
|
12
14
|
export {
|
|
13
|
-
|
|
15
|
+
i as default
|
|
14
16
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-page-content-wrapper{padding:0 var(--spacing-md)}@media(min-width:961px){.seldon-page-content-wrapper{padding:0 var(--spacing-lg)}}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_pagination.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),v=require("react"),m=require("../../_virtual/index2.cjs"),f=require("../../utils/index.cjs"),B=require("../Select/Select.cjs"),j=require("../IconButton/IconButton.cjs"),y=require("../Button/types.cjs"),c=require("./utils.cjs"),M=require("../../utils/hooks.cjs");;const $=require("../Icon/Icon.cjs"),O=v.forwardRef(({className:P,onChange:_,variant:q="inline",options:i=[],value:x,isDisabled:l,previousLabel:S="Previous",nextLabel:C="Next",selectLabel:b="Select",...h},N)=>{const V="pagination",{className:o,...w}=f.getCommonProps(h,"Pagination"),{id:s}=h,{pendingState:I,setPendingState:R}=M.usePendingState(c.determineOptionValue(x)),u=I||x,p=(e,a)=>{const d=c.determineOptionValue(e);R(d),_(d,a)},[t,n]=v.useMemo(()=>{const e=i.findIndex(g=>c.determineOptionValue(g)===u)-1,a=i.at(e)||"",d=(i.findIndex(g=>c.determineOptionValue(g)===u)+1)%i.length,k=i[d];return[a,k]},[i,u]);return r.jsxs("div",{ref:N,className:m.default(`${f.px}-${V}`,{[`${o}__wrapper`]:o},P),...w,...h,children:[r.jsx(j.default,{className:m.default(`${o}__button`,`${f.px}-left-arrow`,{[`${o}__button--is-disabled`]:l}),onClick:e=>{typeof t=="object"&&t.href&&e.preventDefault(),p(t)},"data-testid":`${s}-previous-button`,isDisabled:l,"aria-label":S,variant:y.ButtonVariants.primary,href:typeof t=="object"&&t.href?t.href:void 0,prefetch:typeof t=="object"&&t.prefetch?t.prefetch:void 0,children:r.jsx($.default,{icon:"ChevronRight",height:"16",width:"16"})}),r.jsx(B.default,{className:q==="inline"?`${f.px}--inline-pagination`:void 0,"aria-label":b,value:u,onChange:e=>{const a=c.findOptionFromSelectString(i,e?.currentTarget.value);a&&p(a,e)},"data-testid":`${s}-select-button`,hideLabel:!0,labelText:b,disabled:l,showIcon:!1,id:`${s}-select-button`,isStandalone:!0,children:i.map(e=>{const a=c.determineOptionValue(e);return r.jsx("option",{value:a,children:typeof e=="string"||typeof e=="number"?e:e.label},a)})}),r.jsx(j.default,{className:m.default(`${o}__button`,{[`${o}__button--is-disabled`]:l}),onClick:e=>{typeof n=="object"&&n.href&&e.preventDefault(),p(n)},"data-testid":`${s}-next-button`,isDisabled:l,"aria-label":C,variant:y.ButtonVariants.primary,href:typeof n=="object"&&n.href?n.href:void 0,prefetch:typeof n=="object"&&n.prefetch?n.prefetch:void 0,children:r.jsx($.default,{icon:"ChevronRight",height:"16",width:"16"})})]})});O.displayName="Pagination";exports.default=O;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './_pagination.css';
|
|
1
2
|
import { jsxs as k, jsx as i } from "react/jsx-runtime";
|
|
2
3
|
import { forwardRef as B, useMemo as T } from "react";
|
|
3
4
|
import u from "../../_virtual/index2.js";
|
|
@@ -7,6 +8,7 @@ import x from "../IconButton/IconButton.js";
|
|
|
7
8
|
import { ButtonVariants as $ } from "../Button/types.js";
|
|
8
9
|
import { determineOptionValue as f, findOptionFromSelectString as W } from "./utils.js";
|
|
9
10
|
import { usePendingState as q } from "../../utils/hooks.js";
|
|
11
|
+
|
|
10
12
|
import y from "../Icon/Icon.js";
|
|
11
13
|
const z = B(
|
|
12
14
|
({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-pagination{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xsm)}.seldon-pagination__button .seldon-icon-chevron-right{color:#0065fc}.seldon-pagination__button .seldon-icon-chevron-right svg{height:1rem;width:1rem}@media(min-width:961px){.seldon-pagination__button .seldon-icon-chevron-right svg{height:1.5rem;width:1.5rem}}.seldon-pagination__button:disabled{border:unset}.seldon-pagination__button--is-disabled{opacity:.15;pointer-events:none}.seldon-pagination__button--is-disabled .seldon-icon path{fill:#000}.seldon-pagination__button:hover:not(:disabled){background-color:inherit}.seldon-pagination__button:hover:not(:disabled) .seldon-icon path{fill:#000}.seldon--inline-pagination__wrapper select{font-family:Montserrat,sans-serif;color:#000;font-size:var(--body-size2);line-height:1.5;appearance:none;border:none;border-bottom:1px solid #000;border-radius:0;font-variation-settings:"wght" 600;margin-bottom:0;outline:none;padding:0 var(--spacing-micro) var(--spacing-micro);text-align:center;text-align-last:center}.seldon--inline-pagination__wrapper select:disabled{border-color:transparent;margin:auto;max-height:3.5rem;max-width:5rem}.seldon--inline-pagination__wrapper select:hover{cursor:pointer}.seldon--inline-pagination__wrapper select:focus-visible{border-radius:0}.seldon--inline-pagination__wrapper select::-ms-expand{border:none;display:none}.seldon-left-arrow{transform:scaleX(-1)}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_pinchZoom.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("react/jsx-runtime"),e=require("react"),R=require("../../utils/index.cjs"),p=require("../../node_modules/react-zoom-pan-pinch/dist/index.esm.cjs"),b=require("../../_virtual/index2.cjs");;const P=e.forwardRef(({onZoomChange:s,onAtLeftEdge:i,onAtRightEdge:l,children:t,maxZoom:x=10,className:q,isZoomReset:c=!1,...u},S)=>{const{className:a,...N}=R.getCommonProps(u,"PinchZoom"),[r,n]=e.useState(!1),m=e.useRef(null);e.useEffect(()=>{c&&(m.current?.resetTransform(),n(!1),s?.(!1))},[c,s]);const T=e.useCallback(j=>{const{state:o,instance:d}=j;o.scale>.99&&o.scale<1.01?(n(!1),s?.(!1)):(n(!0),s?.(!0));const w=Math.abs(o.positionX-(d.bounds?.maxPositionX??0))<.01,M=Math.abs(o.positionX-(d.bounds?.minPositionX??0))<.01;i?.(w),l?.(M)},[s,i,l]);return f.jsx(p.TransformWrapper,{maxScale:x,onTransformed:T,minScale:1,disablePadding:!0,doubleClick:{mode:r?"reset":"toggle"},wheel:{smoothStep:.01},panning:{disabled:!r},ref:m,children:f.jsx(p.TransformComponent,{wrapperProps:{...N,...u},wrapperClass:b.default(a,q,{[`${a}-zoomed`]:r}),contentClass:`${a}-content`,children:e.isValidElement(t)?e.cloneElement(t,{className:b.default(`${a}-child`,t?.props?.className),ref:S}):t})})});P.displayName="PinchZoom";exports.default=P;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import './_pinchZoom.css';
|
|
1
2
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
3
|
import { forwardRef as X, useState as h, useRef as C, useEffect as E, useCallback as $, isValidElement as k, cloneElement as z } from "react";
|
|
3
4
|
import { getCommonProps as M } from "../../utils/index.js";
|
|
4
5
|
import { TransformWrapper as R, TransformComponent as g } from "../../node_modules/react-zoom-pan-pinch/dist/index.esm.js";
|
|
5
6
|
import d from "../../_virtual/index2.js";
|
|
7
|
+
|
|
6
8
|
const j = X(
|
|
7
9
|
({ onZoomChange: s, onAtLeftEdge: m, onAtRightEdge: l, children: e, maxZoom: u = 10, className: b, isZoomReset: n = !1, ...i }, P) => {
|
|
8
10
|
const { className: o, ...N } = M(i, "PinchZoom"), [t, r] = h(!1), c = C(null);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-pinch-zoom{cursor:pointer;display:flex;max-height:100%}.seldon-pinch-zoom.seldon-pinch-zoom{height:unset;margin:0 auto;overflow:unset;width:unset}.seldon-pinch-zoom-content{display:flex;flex:1;max-height:100%}.seldon-pinch-zoom-content.seldon-pinch-zoom-content{flex-wrap:unset;height:unset;width:unset}.seldon-pinch-zoom-zoomed{cursor:grab}.seldon-pinch-zoom-zoomed:active{cursor:grabbing}.seldon-pinch-zoom-child{flex:1;object-fit:contain}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_progressBar.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),o=require("react"),M=require("../../_virtual/index2.cjs"),N=require("../../utils/index.cjs"),q=require("./utils.cjs");;const T=require("../Text/Text.cjs"),w=require("../Text/types.cjs");function V(i,l){return`${i} of ${l}`}const m=o.forwardRef(({current:i,total:l,ariaLive:x="polite",className:g,tooltipContent:a,progressAriaLabel:f="Progress",getAriaValueText:h=V,..._},$)=>{const{className:r,...P}=N.getCommonProps(_,"ProgressBar"),{safeTotal:t,safeCurrent:n,visualPercent:p}=o.useMemo(()=>q.getProgressBarMetrics(i,l),[i,l]),b=h(n,t),[u,c]=o.useState({isVisible:!1,x:0}),d=(e,v)=>{const j=Math.min(Math.max(e-v.left,0),v.width);c({isVisible:!0,x:j})};return s.jsxs("div",{...P,ref:$,className:M.default(r,g),children:[s.jsx("span",{className:`${r}__live-region`,role:"progressbar","aria-valuemin":1,"aria-valuemax":t,"aria-valuenow":n,"aria-valuetext":b,"aria-label":f}),s.jsxs("div",{className:`${r}__track`,onMouseEnter:a?e=>d(e.clientX,e.currentTarget.getBoundingClientRect()):void 0,onMouseMove:a?e=>d(e.clientX,e.currentTarget.getBoundingClientRect()):void 0,onMouseLeave:a?()=>c(e=>({...e,isVisible:!1})):void 0,children:[s.jsx("div",{className:`${r}__fill`,style:{width:`${p}%`},children:s.jsx("div",{className:`${r}__label`,children:s.jsx(T.default,{element:"span",variant:w.TextVariants.stringSmall,"aria-live":x,children:`${n}/${t}`})})}),a&&u.isVisible&&s.jsxs("div",{className:`${r}__hover-tooltip`,style:{left:`${u.x}px`},"aria-hidden":!0,children:[a,s.jsx("span",{className:`${r}__hover-tooltip-caret`})]})]})]})});m.displayName="ProgressBar";exports.default=m;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import './_progressBar.css';
|
|
1
2
|
import { jsxs as m, jsx as s } from "react/jsx-runtime";
|
|
2
3
|
import { forwardRef as b, useMemo as M, useState as w } from "react";
|
|
3
4
|
import T from "../../_virtual/index2.js";
|
|
4
5
|
import { getCommonProps as V } from "../../utils/index.js";
|
|
5
6
|
import { getProgressBarMetrics as B } from "./utils.js";
|
|
7
|
+
|
|
6
8
|
import y from "../Text/Text.js";
|
|
7
9
|
import { TextVariants as X } from "../Text/types.js";
|
|
8
10
|
function j(i, l) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-progress-bar{position:relative;width:100%}.seldon-progress-bar__track{align-items:center;background:#0065fc33;cursor:pointer;display:flex;height:1rem;overflow:visible;position:relative;width:100%}.seldon-progress-bar__fill{align-items:center;background:#0065fc;bottom:0;color:#fff;display:flex;justify-content:flex-end;left:0;min-width:0;overflow:hidden;padding-inline:var(--spacing-xsm);position:absolute;top:0;transition:width .25s ease;width:0;z-index:1}.seldon-progress-bar__label{align-items:center;display:flex;flex-shrink:0;height:100%;white-space:nowrap}.seldon-progress-bar__hover-tooltip{background:#fff;border-radius:8px;box-shadow:0 .25rem 1rem #00000029;left:0;max-width:calc(100% - var(--spacing-md));padding:var(--spacing-sm);pointer-events:none;position:absolute;top:100%;transform:translate(-50%);z-index:4}.seldon-progress-bar__hover-tooltip-caret{border-bottom:.5rem solid #fff;border-left:.375rem solid transparent;border-right:.375rem solid transparent;display:block;height:0;left:50%;position:absolute;top:-.5rem;transform:translate(-50%);width:0}.seldon-progress-bar__live-region{border:0;clip:rect(0 0 0 0);clip-path:inset(100%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media(max-width:960px){.seldon-progress-bar{display:none}}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_progressIndicator.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),N=require("../../node_modules/@radix-ui/react-progress/dist/index.cjs"),u=require("react"),S=require("../../utils/index.cjs"),m=require("../../_virtual/index2.cjs");;const $=require("../Icon/Icon.cjs"),h=require("../Text/Text.cjs"),_=require("../Text/types.cjs"),x=u.forwardRef(({totalSteps:o,currentStep:f,className:j,stepLabels:t,progressIndicatorAriaLabel:p="Progress Indicator",completedIconAriaLabel:g="Completed Icon",...l},v)=>{const{className:r,...M}=S.getCommonProps(l,"ProgressIndicator");if(o<=0)return null;const s=Math.max(1,Math.min(10,Math.floor(o))),n=Math.max(1,Math.min(s,Math.floor(f)));return e.jsx("div",{...M,className:m.default(r,j),...l,ref:v,children:e.jsx(N.Root,{value:n,max:s,"aria-label":p,children:e.jsx("div",{className:`${r}__steps`,children:Array.from({length:s}).map((P,a)=>{const c=a+1,i=n>c,d=n===c;return e.jsxs(u.Fragment,{children:[e.jsxs("div",{className:`${r}__item`,"aria-current":d?"step":void 0,"data-testid":`progress-step-${c}`,children:[e.jsx("span",{className:m.default(`${r}__circle`,{[`${r}__circle--active`]:i,[`${r}__circle--current`]:d}),children:i?e.jsx($.default,{icon:"Success","aria-label":g,color:"currentColor",width:20,height:20}):e.jsx(h.default,{variant:_.TextVariants.labelSmall,children:c})}),t&&t[a]&&e.jsx("span",{className:`${r}__label`,children:e.jsx(h.default,{variant:_.TextVariants.bodySmall,children:t[a]})})]}),a<s-1?e.jsx("div",{className:`${r}__connector`,"aria-hidden":"true"}):null]},t?.[a]||a)})})})})});x.displayName="ProgressIndicator";exports.default=x;
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
+
import './_progressIndicator.css';
|
|
1
2
|
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
2
3
|
import { Root as P } from "../../node_modules/@radix-ui/react-progress/dist/index.js";
|
|
3
4
|
import { forwardRef as S, Fragment as $ } from "react";
|
|
4
5
|
import { getCommonProps as C } from "../../utils/index.js";
|
|
5
|
-
import
|
|
6
|
+
import p from "../../_virtual/index2.js";
|
|
7
|
+
|
|
6
8
|
import I from "../Icon/Icon.js";
|
|
7
|
-
import
|
|
9
|
+
import h from "../Text/Text.js";
|
|
8
10
|
import { TextVariants as _ } from "../Text/types.js";
|
|
9
11
|
const T = S(
|
|
10
12
|
({
|
|
11
|
-
totalSteps:
|
|
13
|
+
totalSteps: m,
|
|
12
14
|
currentStep: f,
|
|
13
15
|
className: u,
|
|
14
16
|
stepLabels: e,
|
|
15
17
|
progressIndicatorAriaLabel: N = "Progress Indicator",
|
|
16
18
|
completedIconAriaLabel: g = "Completed Icon",
|
|
17
|
-
...
|
|
19
|
+
...l
|
|
18
20
|
}, v) => {
|
|
19
|
-
const { className: a, ...M } = C(
|
|
20
|
-
if (
|
|
21
|
-
const t = Math.max(1, Math.min(10, Math.floor(
|
|
22
|
-
return /* @__PURE__ */ r("div", { ...M, className:
|
|
21
|
+
const { className: a, ...M } = C(l, "ProgressIndicator");
|
|
22
|
+
if (m <= 0) return null;
|
|
23
|
+
const t = Math.max(1, Math.min(10, Math.floor(m))), c = Math.max(1, Math.min(t, Math.floor(f)));
|
|
24
|
+
return /* @__PURE__ */ r("div", { ...M, className: p(a, u), ...l, ref: v, children: /* @__PURE__ */ r(P, { value: c, max: t, "aria-label": N, children: /* @__PURE__ */ r("div", { className: `${a}__steps`, children: Array.from({ length: t }).map((x, o) => {
|
|
23
25
|
const s = o + 1, i = c > s, n = c === s;
|
|
24
26
|
return /* @__PURE__ */ d($, { children: [
|
|
25
27
|
/* @__PURE__ */ d(
|
|
@@ -32,7 +34,7 @@ const T = S(
|
|
|
32
34
|
/* @__PURE__ */ r(
|
|
33
35
|
"span",
|
|
34
36
|
{
|
|
35
|
-
className:
|
|
37
|
+
className: p(`${a}__circle`, {
|
|
36
38
|
[`${a}__circle--active`]: i,
|
|
37
39
|
[`${a}__circle--current`]: n
|
|
38
40
|
}),
|
|
@@ -45,10 +47,10 @@ const T = S(
|
|
|
45
47
|
width: 20,
|
|
46
48
|
height: 20
|
|
47
49
|
}
|
|
48
|
-
) : /* @__PURE__ */ r(
|
|
50
|
+
) : /* @__PURE__ */ r(h, { variant: _.labelSmall, children: s })
|
|
49
51
|
}
|
|
50
52
|
),
|
|
51
|
-
e && e[o] && /* @__PURE__ */ r("span", { className: `${a}__label`, children: /* @__PURE__ */ r(
|
|
53
|
+
e && e[o] && /* @__PURE__ */ r("span", { className: `${a}__label`, children: /* @__PURE__ */ r(h, { variant: _.bodySmall, children: e[o] }) })
|
|
52
54
|
]
|
|
53
55
|
}
|
|
54
56
|
),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-progress-indicator__steps{align-items:flex-start;display:flex;gap:0;justify-content:space-between;margin:0;padding:0}.seldon-progress-indicator__item{align-items:center;display:flex;gap:var(--spacing-xsm);position:relative}.seldon-progress-indicator__circle{align-items:center;border:1px solid #000;border-radius:40px;display:flex;height:1.5rem;justify-content:center;padding:0;width:1.5rem}.seldon-progress-indicator__circle .seldon-text{font-variation-settings:"wght" 600}.seldon-progress-indicator__circle--active,.seldon-progress-indicator__circle--current{background-color:#000;color:#fff}.seldon-progress-indicator__circle--active svg,.seldon-progress-indicator__circle--current svg{color:#fff}.seldon-progress-indicator__label{display:none;margin-bottom:var(--spacing-micro)}@media(min-width:961px){.seldon-progress-indicator__label{display:inline-block;text-align:center;white-space:nowrap}}@media(min-width:1401px){.seldon-progress-indicator__label{margin-bottom:0}}.seldon-progress-indicator__connector{align-self:center;background:#000;flex:1 1 0;height:1px;margin:0 var(--spacing-xsm);min-width:8px}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_row.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react/jsx-runtime"),d=require("react"),e=require("../../utils/index.cjs"),g=require("../../_virtual/index2.cjs");;const s=d.forwardRef(({children:n,element:a,padding:t={top:e.PaddingTokens.lg,bottom:e.PaddingTokens.lg},className:r,...o},m)=>{const{className:l,...i}=e.getCommonProps(o,"Row"),u=a||"section";return c.jsx(u,{ref:m,...i,className:g.default(l,t.top&&e.generatePaddingClassName(t.top,"start"),t.bottom&&e.generatePaddingClassName(t.bottom,"end"),r),...o,children:n})});s.displayName="Row";exports.default=s;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './_row.css';
|
|
2
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
3
|
import { forwardRef as f } from "react";
|
|
3
4
|
import { getCommonProps as i, PaddingTokens as m, generatePaddingClassName as e } from "../../utils/index.js";
|
|
4
5
|
import C from "../../_virtual/index2.js";
|
|
6
|
+
|
|
5
7
|
const N = f(
|
|
6
8
|
({
|
|
7
9
|
children: s,
|
|
@@ -10,12 +12,12 @@ const N = f(
|
|
|
10
12
|
className: r,
|
|
11
13
|
...t
|
|
12
14
|
}, n) => {
|
|
13
|
-
const { className: l, ...
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
+
const { className: l, ...p } = i(t, "Row");
|
|
16
|
+
return /* @__PURE__ */ c(
|
|
15
17
|
a || "section",
|
|
16
18
|
{
|
|
17
19
|
ref: n,
|
|
18
|
-
...
|
|
20
|
+
...p,
|
|
19
21
|
className: C(
|
|
20
22
|
l,
|
|
21
23
|
o.top && e(o.top, "start"),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-row * .seldon-text:last-child{margin-bottom:0}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_search.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),n=require("react"),l=require("../../utils/index.cjs"),c=require("../../_virtual/index2.cjs"),T=require("../Input/Input.cjs"),V=require("../Link/Link.cjs"),H=require("./SearchResults/SearchResults.cjs"),M=require("../../node_modules/usehooks-ts/dist/index.cjs"),O=require("../../site-furniture/Header/Header.cjs"),D=require("./SearchButton.cjs"),U=require("../../node_modules/react-remove-scroll/dist/es2015/Combination.cjs");;const A=require("../Text/Text.cjs"),B=require("../Text/types.cjs"),F=require("../../node_modules/react-transition-group/esm/CSSTransition.cjs"),K=require("../Link/types.cjs"),j=n.forwardRef(({onSearch:m,onCancel:S,searchResults:q=[],state:o="idle",defaultValue:R="",className:b,placeholder:w="",searchButtonText:u="Search",loadingText:N="Search In Progress...",invalidText:C="Invalid search",getAllResultsText:I=e=>`View all results for ${e}`,getAllResultsLink:_=e=>`/Search?Search=${e}`,...v},E)=>{const{className:e,"data-testid":i,...P}=l.getCommonProps(v,"Search"),d=n.useContext(O.HeaderContext),h=n.useRef(null),f=n.useRef(null),$=n.useRef(null),r=d.isSearchExpanded,t=h.current?.value,[L,p]=n.useState(!0),k=m?a=>{m(a.target.value)}:void 0;M.useOnClickOutside($,a=>{S?.(),x(!1),a.stopPropagation()});const g=a=>{if(a.stopPropagation(),a.key==="Enter"){if(a.preventDefault(),t&&t.length>2){const y=l.encodeURLSearchParams(_(t));p(!1),window.location.href=y}a.currentTarget instanceof HTMLAnchorElement&&(p(!1),a.currentTarget.click())}a.key==="Escape"&&(f.current?.reset(),d.setIsSearchExpanded(!1))};n.useEffect(()=>{if(r){h.current?.focus();return}},[r]);const x=a=>{f.current?.reset(),d.setIsSearchExpanded(a)};return s.jsx(U.default,{enabled:r,allowPinchZoom:!0,removeScrollBar:!1,children:s.jsx("div",{className:`${e}__container`,ref:E,children:s.jsxs("div",{className:`${e}__container__inner`,ref:$,onClick:a=>{r||(x(!0),a.stopPropagation())},children:[s.jsx(A.default,{variant:B.TextVariants.headingSmall,className:`${e}__container__inner__label`,children:u}),s.jsx("div",{...P,className:c.default(e,b,{[`${e}--active`]:r}),"data-testid":i,role:"search",...v,children:s.jsxs("form",{"data-testid":`${i}-form`,className:c.default(`${e}__form`,{[`${e}__form--active`]:r}),ref:f,children:[s.jsxs("div",{className:c.default(`${e}__content-wrapper`,{[`${e}__content-wrapper--active`]:r}),role:"combobox","aria-haspopup":"listbox","aria-expanded":r,"aria-controls":r?`${i}-listbox`:void 0,children:[s.jsx(F.default,{in:r,classNames:`${l.px}-input`,addEndListener:()=>{},children:s.jsx(T.default,{"aria-hidden":!r,className:`${e}__input`,id:"search-input",hideLabel:!0,labelText:u,placeholder:r?w:"",type:"text",defaultValue:R,invalid:o==="invalid",invalidText:C,onKeyDown:g,onChange:k,ref:h,tabIndex:r?0:-1})}),s.jsx(D.SearchButton,{className:e,searchButtonText:u,state:o,testId:i,isSearchExpanded:r,setIsSearchExpanded:x,onCancel:S})]}),r&&L&&t&&t.length>2?s.jsx(H.default,{id:`${i}-listbox`,autoCompleteResults:q,isLoading:o==="loading",loadingText:N,onKeyDown:g,userInputValue:t,closeSearch:p,children:s.jsx("li",{className:c.default(`${e}__result`,`${e}__result--view-all`),children:s.jsx(V.default,{href:l.encodeURLSearchParams(_(t)),variant:K.LinkVariants.linkLarge,children:s.jsx("p",{children:I(t)})})},"viewAllSearchResults")}):null]})})]})})})});j.displayName="Search";exports.default=j;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './_search.css';
|
|
1
2
|
import { jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
2
3
|
import { forwardRef as j, useContext as D, useRef as f, useState as H, useEffect as O } from "react";
|
|
3
4
|
import { getCommonProps as A, px as F, encodeURLSearchParams as w } from "../../utils/index.js";
|
|
@@ -9,6 +10,7 @@ import { useOnClickOutside as Z } from "../../node_modules/usehooks-ts/dist/inde
|
|
|
9
10
|
import { HeaderContext as q } from "../../site-furniture/Header/Header.js";
|
|
10
11
|
import { SearchButton as z } from "./SearchButton.js";
|
|
11
12
|
import B from "../../node_modules/react-remove-scroll/dist/es2015/Combination.js";
|
|
13
|
+
|
|
12
14
|
import G from "../Text/Text.js";
|
|
13
15
|
import { TextVariants as J } from "../Text/types.js";
|
|
14
16
|
import Q from "../../node_modules/react-transition-group/esm/CSSTransition.js";
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_searchButton.css');
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime");;const a=require("../Icon/Icon.cjs"),b=({state:_,isSearchExpanded:u,setIsSearchExpanded:r,searchButtonText:c,className:t,testId:o,onCancel:l,...i})=>u?u?n.jsx("button",{...i,type:"button","data-testid":`${o}-close-button`,"aria-label":"Close Search",className:`${t}__button ${t}__button--close`,onClick:e=>{l?.(),r(!1),e.stopPropagation()},children:n.jsx(a.default,{icon:"CloseX","data-testid":`${o}-form-icon`,className:`${t}__button__icon`})}):null:n.jsx("button",{...i,type:"button","data-testid":`${o}-button`,"aria-label":c||"Search",className:`${t}__button ${t}__button--search`,onClick:e=>{r(!0),e.stopPropagation()},children:n.jsx(a.default,{icon:"Search","data-testid":`${o}-button-icon`,className:`${t}__button__icon`})});exports.SearchButton=b;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import './_searchButton.css';
|
|
1
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
|
|
2
4
|
import e from "../Icon/Icon.js";
|
|
3
|
-
const
|
|
5
|
+
const p = ({
|
|
4
6
|
state: b,
|
|
5
7
|
isSearchExpanded: r,
|
|
6
8
|
setIsSearchExpanded: a,
|
|
@@ -37,5 +39,5 @@ const f = ({
|
|
|
37
39
|
}
|
|
38
40
|
);
|
|
39
41
|
export {
|
|
40
|
-
|
|
42
|
+
p as SearchButton
|
|
41
43
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_searchResults.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),a=require("../../../utils/index.cjs"),j=require("../../Link/Link.cjs");;const L=require("../../Link/types.cjs"),g=({autoCompleteResults:l=[],isLoading:i,children:n,loadingText:c="Loading...",onKeyDown:u,userInputValue:o="",closeSearch:d,id:h})=>{const x=Array.isArray(l)&&l.length>0;function _(s,r){return s.split(new RegExp(`(${r})`,"gi")).map((t,p)=>t.toLocaleLowerCase()===r.toLocaleLowerCase()?e.jsx("strong",{children:t},p):t)}return e.jsx("div",{className:`${a.px}-search__results`,children:e.jsxs("ul",{id:h,role:"listbox","data-testid":"search-results",className:`${a.px}-search__results-container`,children:[i?e.jsx("li",{className:`${a.px}-search__result`,children:c}):null,x&&l.map((s,r)=>e.jsx("li",{className:`${a.px}-search__result`,children:e.jsx(j.default,{href:s.url,onKeyDown:u,onClick:()=>d(!1),variant:L.LinkVariants.linkLarge,children:e.jsx("span",{"data-testid":`search-result-${r}`,className:"${px}-search__result__label",children:_(s.label,o)})})},s.id)),n]})})};exports.default=g;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import './_searchResults.css';
|
|
1
2
|
import { jsx as r, jsxs as f } from "react/jsx-runtime";
|
|
2
3
|
import { px as e } from "../../../utils/index.js";
|
|
3
4
|
import L from "../../Link/Link.js";
|
|
5
|
+
|
|
4
6
|
import { LinkVariants as x } from "../../Link/types.js";
|
|
5
|
-
const
|
|
7
|
+
const j = ({
|
|
6
8
|
autoCompleteResults: l = [],
|
|
7
9
|
isLoading: t,
|
|
8
10
|
children: n,
|
|
@@ -34,5 +36,5 @@ const w = ({
|
|
|
34
36
|
] }) });
|
|
35
37
|
};
|
|
36
38
|
export {
|
|
37
|
-
|
|
39
|
+
j as default
|
|
38
40
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-search__results{align-items:flex-start;background:#fff;display:flex;flex-direction:column;gap:.625rem;max-height:calc(90vh - var(--header-height));-ms-overflow-style:none;overflow-y:scroll;padding:var(--spacing-sm);position:absolute;scrollbar-width:none;top:var(--search-size);width:100%}.seldon-search__results::-webkit-scrollbar{display:none}@media(max-width:960px){.seldon-search__results{padding:var(--spacing-sm) 0}}.seldon-search__results-container{background:#fff;display:flex;flex-direction:column;font-family:Montserrat,sans-serif;gap:var(--spacing-sm);width:100%}.seldon-search__results-container strong{font-variation-settings:"wght" 700;font-weight:unset}.seldon-search__result{display:flex}.seldon-search__result:not(.seldon-search__result--view-all) .seldon-link:not(:hover):not(:focus-visible){text-decoration:none}.seldon-search__result__label{text-transform:initial}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-search{bottom:0;display:flex;gap:var(--spacing-md);height:var(--search-size);left:calc(100% - var(--search-size));min-width:var(--search-size);position:absolute;right:0;transition:left .25s ease-in}.seldon-search:after{border-bottom:1px solid #000;bottom:0;content:"";display:flex;margin-bottom:-1px;position:absolute;right:0;transition:width .25s ease-in;width:0}@media(max-width:960px){.seldon-search{bottom:1px;height:calc(var(--search-size) - 1px);left:calc(100% - var(--search-size) - var(--spacing-md));right:var(--spacing-md)}}.seldon-search--active{left:0;transition:left .25s ease-in .2s;z-index:11}.seldon-search--active:after{transition:width .25s ease-in .2s;width:100%}.seldon-search__input-status-icon{height:var(--search-size);width:var(--search-size)}.seldon-search__input-status-icon svg{height:100%;width:100%}.seldon-search__form{display:flex;overflow:hidden;width:100%}.seldon-search__form--active{overflow:visible}.seldon-search__form--active .seldon-search__results{display:flex;flex-direction:column}.seldon-search__content-wrapper{color:#545454;display:flex;justify-content:flex-end;width:100%}.seldon-search__content-wrapper .seldon-input{width:100%}.seldon-search__content-wrapper .seldon-input__validation{display:none}.seldon-search__content-wrapper .seldon-input-enter-active input{background:#fff}.seldon-search__content-wrapper .seldon-input-enter-active input::placeholder{opacity:1;transition:opacity .75s ease-in}.seldon-search__content-wrapper .seldon-input__input{background:transparent;border:0;border-radius:unset;font-variation-settings:"wght" 600;height:var(--search-size);margin:0;padding:var(--spacing-xsm) 0 var(--spacing-xsm) var(--spacing-sm);font-family:Montserrat,sans-serif;font-size:var(--font-size-body-large);font-style:unset;font-variation-settings:"wght" 400;letter-spacing:0;line-height:1.4;text-transform:unset}@media(max-width:960px){.seldon-search__content-wrapper .seldon-input__input{height:calc(var(--spacing-md) + var(--search-size));line-height:calc(var(--spacing-md) + var(--search-size));padding:var(--spacing-md) 0;position:relative;top:calc(var(--spacing-md) * -1)}}.seldon-search__content-wrapper .seldon-input__input:focus{outline:none}.seldon-search__content-wrapper .seldon-input__input::placeholder{opacity:0}@media(max-width:960px){.seldon-search__container{border-bottom:1px solid #eae9e6;margin-right:var(--spacing-md);padding-left:var(--spacing-md);position:relative;width:100%}}.seldon-search__container__inner{cursor:pointer;display:flex;justify-content:space-between;padding:0;pointer-events:all}@media(min-width:961px){.seldon-search__container__inner{cursor:default}}@media(max-width:960px){.seldon-search__container__inner{align-items:center;height:calc(var(--spacing-md) + var(--search-size));position:relative}}.seldon-search__container__inner .seldon-text{margin-bottom:0;padding-left:0}.seldon-search__container__inner__label{display:none}@media(max-width:960px){.seldon-search__container__inner__label{align-items:center;cursor:pointer;display:flex;flex-wrap:wrap;height:var(--search-size);margin:0;padding:0 var(--spacing-sm);pointer-events:all}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-search__button{align-items:center;background:#fff;border:none;border-bottom:1px solid transparent;cursor:pointer;display:flex;height:var(--search-size);justify-content:center;padding:0;position:absolute;right:0;top:0;width:var(--search-size)}@media(max-width:960px){.seldon-search__button{height:calc(var(--spacing-md) + var(--search-size));justify-content:flex-end;top:calc(var(--spacing-md) * -1)}}.seldon-search__button svg{height:1.5rem;width:1.5rem}.seldon-search__button:focus-visible{border-radius:4px;outline:2px solid #07c;outline-offset:4px}.seldon-search__button:hover:after,.seldon-search__button:active:after{border-bottom:1px solid #000;bottom:0;content:"";display:flex;margin-bottom:-2px;position:absolute;right:0;width:102%}@media(max-width:960px){.seldon-search__button:hover:after,.seldon-search__button:active:after{margin-bottom:-1px;width:52%}}.seldon-search__button__icon{pointer-events:none}.seldon-search__button__icon path{fill:#000}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_seldonImage.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),o=require("react"),u=require("../../_virtual/index2.cjs"),w=require("../../utils/index.cjs"),P=require("./utils.cjs"),v=require("./types.cjs");;const x=require("../Icon/Icon.cjs"),C=typeof window>"u",y=o.memo(o.forwardRef(({className:N,aspectRatio:c=v.AspectRatio.None,objectFit:g="none",hasBlurBackground:h=!1,imageClassName:j,imageStyle:q,src:a,alt:f,srcSet:i,sizes:n,loading:E,fetchPriority:R,errorText:L="Error loading image",imageBlocked:t=!1,...$},S)=>{const{className:e,...b}=w.getCommonProps($,"SeldonImage"),I=o.useRef(null),[l,s]=o.useState(()=>{if(C)return"loading";const d=document.getElementById(a);if(d instanceof HTMLImageElement&&!d.classList.contains(`${e}-img--hidden`))return"loaded";const m=document.createElement("img");return i&&(m.srcset=i),n&&(m.sizes=n),m.src=a,m.complete?"loaded":"loading"}),p=o.useCallback(async()=>{const d=await P.isImageValid({img:I.current,src:a,srcSet:i,sizes:n});s(d?"loaded":"error")},[a,i,n]);return o.useEffect(()=>{p()},[p]),r.jsxs("div",{"data-chromatic":"ignore",ref:S,className:u.default(e,N,{[`${e}--aspect-ratio-${c.replace("/","-")}`]:c!==v.AspectRatio.None,[`${e}--error-image`]:l==="error"||t}),role:"img","aria-label":f,...$,...b,children:[h&&r.jsx("div",{className:u.default(`${e}-blur`,{[`${e}-blur--hidden`]:l==="loading"||l==="error"||t}),style:{backgroundImage:`url(${a})`}}),l==="error"||t?r.jsx("div",{className:`${e}--error`,children:t?r.jsx(x.default,{icon:"ImageUnavailable","aria-label":"Image Unavailable",role:"img"}):r.jsx(x.default,{icon:"PhillipsLogo","aria-label":L,role:"img",color:"$black-25"})}):null,r.jsx("img",{className:u.default(`${e}-img`,j,{[`${e}-img--hidden`]:l==="error"||t,[`${e}-img--object-fit-${g}`]:g!=="none"}),id:a,style:q,src:a,srcSet:i,sizes:n,alt:f,"data-testid":`${b["data-testid"]}-img`,ref:I,loading:E,fetchpriority:R,onLoad:()=>{s("loaded")},onError:()=>{s("error")}})]})}));y.displayName="SeldonImage";exports.default=y;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import './_seldonImage.css';
|
|
1
2
|
import { jsxs as P, jsx as l } from "react/jsx-runtime";
|
|
2
3
|
import { memo as R, forwardRef as S, useRef as j, useState as U, useCallback as V, useEffect as A } from "react";
|
|
3
4
|
import s from "../../_virtual/index2.js";
|
|
4
5
|
import { getCommonProps as H } from "../../utils/index.js";
|
|
5
6
|
import { isImageValid as M } from "./utils.js";
|
|
6
7
|
import { AspectRatio as I } from "./types.js";
|
|
8
|
+
|
|
7
9
|
import N from "../Icon/Icon.js";
|
|
8
10
|
const T = typeof window > "u", q = R(
|
|
9
11
|
S(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-seldon-image{max-height:inherit;overflow:hidden;position:relative}.seldon-seldon-image--aspect-ratio-16-9 img,.seldon-seldon-image--aspect-ratio-16-9.seldon-seldon-image--error-image{aspect-ratio:16/9}.seldon-seldon-image--aspect-ratio-3-4 img{aspect-ratio:3/4;height:auto;max-height:inherit;max-width:100%;width:auto}.seldon-seldon-image--aspect-ratio-3-4.seldon-seldon-image--error-image{aspect-ratio:3/4}.seldon-seldon-image--aspect-ratio-1-1 img{aspect-ratio:1/1;height:auto;max-height:inherit;max-width:100%;width:auto}.seldon-seldon-image--aspect-ratio-1-1.seldon-seldon-image--error-image{aspect-ratio:1/1}.seldon-seldon-image--error{width:100%}.seldon-seldon-image--error-image{background-color:#f9f8f7}.seldon-seldon-image--error .phillips-logo{fill:#eae9e6}.seldon-seldon-image--error svg{fill:#eae9e6;left:50%;max-width:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.seldon-seldon-image-img{height:auto;object-fit:contain;width:100%}.seldon-seldon-image-img--object-fit-contain{object-fit:contain}.seldon-seldon-image-img--object-fit-cover{object-fit:cover}.seldon-seldon-image-img--object-fit-fill{object-fit:fill}.seldon-seldon-image-img--object-fit-scale-down{object-fit:scale-down}.seldon-seldon-image-img--hidden{visibility:hidden}.seldon-seldon-image-blur{background-position:center;background-size:cover;filter:blur(10px);height:100%;left:0;opacity:.5;position:absolute;top:0;width:100%;z-index:-1}.seldon-seldon-image-blur--hidden{visibility:hidden}}
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
require('../Input/_input.css');
|
|
2
|
+
require('./_select.css');
|
|
3
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime");;;const R=require("react"),u=require("../../_virtual/index2.cjs"),e=require("../../utils/index.cjs"),x=require("./types.cjs"),T=require("../Input/utils.cjs"),D=require("../Text/Text.cjs"),V=require("../Text/types.cjs"),k=require("../Icon/Icon.cjs");function z(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,l.get?l:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const I=z(R),f=I.forwardRef(({children:t,className:n,defaultValue:a,disabled:l,hideLabel:m,id:s,showIcon:p=!0,variant:$=x.SelectVariants.default,inline:b,invalid:_,invalidText:j,labelText:q,onChange:v,onClick:F,readOnly:d,size:y="md",value:g,warn:C,warnText:S,isStandalone:w=!1,...N},h)=>{const c="select",r=e.useNormalizedInputProps({disabled:l,id:s,invalid:_,invalidText:j,readOnly:d,type:c,warn:C,warnText:S}),o=T.getInputClassNames(),O=u.default(`${e.px}-${c}-input`,`${e.px}-input`,`${e.px}-input--${y}`,{[`${e.px}-input--inline`]:b,[`${e.px}-input--readonly`]:d,[`${e.px}-input--disabled`]:r.disabled,[`${e.px}-input--invalid`]:r.invalid,[`${e.px}-input--warn`]:r.warn,[`${n}__wrapper`]:n,[`${e.px}-${c}-input__standalone`]:w}),P=u.default(n,o.input,{[`${e.px}-input__select--tertiary`]:$===x.SelectVariants.tertiary}),M=u.default(`${e.px}-select-container`,{[`${e.px}-select-container--show__icon`]:p});return i.jsxs("div",{className:O,children:[i.jsx(D.default,{element:"label",variant:V.TextVariants.labelMedium,"data-testid":`${s}-label`,htmlFor:s,className:u.default(o.label,{[o.labelHidden]:m}),children:q}),i.jsxs("div",{className:M,children:[i.jsx("select",{className:P,"data-testid":s,defaultValue:a,disabled:r.disabled,id:s,onChange:v,ref:h,value:g,...N,children:t}),p?i.jsx(k.default,{icon:"ChevronDown"}):null]}),r.validation]})});f.displayName="Select";exports.default=f;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import '../Input/_input.css';
|
|
2
|
+
import './_select.css';
|
|
1
3
|
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
|
|
2
6
|
import * as g from "react";
|
|
3
7
|
import n from "../../_virtual/index2.js";
|
|
4
|
-
import { useNormalizedInputProps as k, px as
|
|
8
|
+
import { useNormalizedInputProps as k, px as t } from "../../utils/index.js";
|
|
5
9
|
import { SelectVariants as c } from "./types.js";
|
|
6
10
|
import { getInputClassNames as z } from "../Input/utils.js";
|
|
7
11
|
import D from "../Text/Text.js";
|
|
@@ -14,7 +18,7 @@ const M = g.forwardRef(
|
|
|
14
18
|
defaultValue: u,
|
|
15
19
|
disabled: $,
|
|
16
20
|
hideLabel: f,
|
|
17
|
-
id:
|
|
21
|
+
id: e,
|
|
18
22
|
showIcon: o = !0,
|
|
19
23
|
variant: b = c.default,
|
|
20
24
|
inline: C,
|
|
@@ -33,25 +37,25 @@ const M = g.forwardRef(
|
|
|
33
37
|
}, P) => {
|
|
34
38
|
const i = "select", a = k({
|
|
35
39
|
disabled: $,
|
|
36
|
-
id:
|
|
40
|
+
id: e,
|
|
37
41
|
invalid: _,
|
|
38
42
|
invalidText: v,
|
|
39
43
|
readOnly: p,
|
|
40
44
|
type: i,
|
|
41
45
|
warn: y,
|
|
42
46
|
warnText: S
|
|
43
|
-
}), l = z(), R = n(`${
|
|
44
|
-
[`${
|
|
45
|
-
[`${
|
|
46
|
-
[`${
|
|
47
|
-
[`${
|
|
48
|
-
[`${
|
|
47
|
+
}), l = z(), R = n(`${t}-${i}-input`, `${t}-input`, `${t}-input--${N}`, {
|
|
48
|
+
[`${t}-input--inline`]: C,
|
|
49
|
+
[`${t}-input--readonly`]: p,
|
|
50
|
+
[`${t}-input--disabled`]: a.disabled,
|
|
51
|
+
[`${t}-input--invalid`]: a.invalid,
|
|
52
|
+
[`${t}-input--warn`]: a.warn,
|
|
49
53
|
[`${s}__wrapper`]: s,
|
|
50
|
-
[`${
|
|
54
|
+
[`${t}-${i}-input__standalone`]: j
|
|
51
55
|
}), T = n(s, l.input, {
|
|
52
|
-
[`${
|
|
53
|
-
}), V = n(`${
|
|
54
|
-
[`${
|
|
56
|
+
[`${t}-input__select--tertiary`]: b === c.tertiary
|
|
57
|
+
}), V = n(`${t}-select-container`, {
|
|
58
|
+
[`${t}-select-container--show__icon`]: o
|
|
55
59
|
});
|
|
56
60
|
return /* @__PURE__ */ m("div", { className: R, children: [
|
|
57
61
|
/* @__PURE__ */ r(
|
|
@@ -59,8 +63,8 @@ const M = g.forwardRef(
|
|
|
59
63
|
{
|
|
60
64
|
element: "label",
|
|
61
65
|
variant: F.labelMedium,
|
|
62
|
-
"data-testid": `${
|
|
63
|
-
htmlFor:
|
|
66
|
+
"data-testid": `${e}-label`,
|
|
67
|
+
htmlFor: e,
|
|
64
68
|
className: n(l.label, { [l.labelHidden]: f }),
|
|
65
69
|
children: w
|
|
66
70
|
}
|
|
@@ -70,10 +74,10 @@ const M = g.forwardRef(
|
|
|
70
74
|
"select",
|
|
71
75
|
{
|
|
72
76
|
className: T,
|
|
73
|
-
"data-testid":
|
|
77
|
+
"data-testid": e,
|
|
74
78
|
defaultValue: u,
|
|
75
79
|
disabled: a.disabled,
|
|
76
|
-
id:
|
|
80
|
+
id: e,
|
|
77
81
|
onChange: x,
|
|
78
82
|
ref: P,
|
|
79
83
|
value: h,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-select-input{margin-bottom:var(--spacing-sm);position:relative}.seldon-select-input.seldon-input{width:fit-content}.seldon-select-input .seldon-input__input{background:transparent;width:fit-content}.seldon-select-input__standalone{margin-bottom:0}.seldon-select-input .seldon-select-container{position:relative}.seldon-select-input .seldon-select-container--show__icon select{appearance:none;color:#000;padding-right:3rem}@media(min-width:961px){.seldon-select-input .seldon-select-container--show__icon select{padding-right:3.25rem}}.seldon-select-input svg{height:1rem;pointer-events:none;position:absolute;right:.35rem;top:45%;transform:translateY(-45%);width:1rem}@media(min-width:961px){.seldon-select-input svg{height:1.25rem;right:.5rem;width:1.25rem}}.seldon-select-input svg path{fill:#000}.seldon-select-input select.seldon-input__select--tertiary{border:1.5px solid #000;border-radius:40px;color:inherit;padding:var(--spacing-xsm) var(--spacing-md) var(--spacing-xsm) var(--spacing-sm)}.seldon-select-input select.seldon-input__select--tertiary:hover{cursor:pointer}.seldon-select-input select.seldon-input__select--tertiary:focus-visible{border-radius:40px;outline:2px solid #07c;outline-offset:4px;background-color:#fff}.seldon-select-input select.seldon-input__select--tertiary svg{top:.625rem}}
|