@phillips/seldon 1.279.2 → 1.280.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -5
- package/dist/_virtual/index3.cjs +1 -1
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.cjs +1 -1
- package/dist/_virtual/index4.js +2 -4
- package/dist/_virtual/index5.cjs +1 -1
- package/dist/_virtual/index5.js +4 -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 +6 -4
- 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/@artsy/fresnel/dist/index.cjs +1 -1
- package/dist/node_modules/@artsy/fresnel/dist/index.js +1 -1
- package/dist/node_modules/classnames/index.cjs +1 -1
- package/dist/node_modules/classnames/index.js +1 -1
- package/dist/node_modules/usehooks-ts/dist/index.cjs +1 -1
- package/dist/node_modules/usehooks-ts/dist/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 +10 -8
- 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 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_countryPickerModal.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),n=require("react"),B=require("../../components/Button/Button.cjs"),D=require("../../components/Input/Input.cjs"),F=require("../../components/Modal/Modal.cjs"),T=require("../../components/Text/Text.cjs"),y=require("./constants.cjs"),L=require("./utils.cjs"),H=require("../../components/Button/types.cjs"),N=require("../../components/Icon/Icon.cjs"),O=require("./CountryPickerCountryList.cjs");;const U=require("../../components/Text/types.cjs"),R=["US","GB","HK","CH"],M=(i,a)=>{if(!a)return i;const d=a.replace(/[.*?^${}()|[\]\\]/g,"\\$&").replace(/\+/g,"");if(!d)return i;const s=new RegExp(d,"gi");return i.filter(f=>{const m=f.name,e=f.code,p=L.getSafeCountryCallingCode(e).replace(/\+/g,"");return s.test(m)||s.test(e)||s.test(p)||s.test("+"+p)})},P=n.forwardRef(({isOpen:i=!1,onClose:a,modalTitle:h,searchInputLabel:d,searchInputPlaceholder:s,selectButtonLabel:f,inputName:m="value",baseClassName:e,variantConfig:_},p)=>{const{value:g,onChange:j,isPhone:S}=_,[c,k]=n.useState(g),q=r=>y.countries.some(u=>u.code===r);n.useEffect(()=>{k(g)},[i,g]);const[l,V]=n.useState(""),w=n.useRef(null),z=n.useRef(null),[v,$]=n.useMemo(()=>{const r=R.map(o=>y.countries.filter(x=>x.code===o)).flat(),u=y.countries.filter(o=>!R.includes(o.code));return[r,u.sort((o,x)=>o.name.localeCompare(x.name))]},[]),E=n.useMemo(()=>M(v,l),[v,l]),C=n.useMemo(()=>M($,l),[$,l]),I=n.useMemo(()=>{const r={};return C.forEach(u=>{const o=u.name[0].toUpperCase();r[o]||(r[o]=[]),r[o].push(u)}),r},[C]);return t.jsx(F.default,{isOpen:i,onClose:a,"data-testid":"country-picker-modal",className:`${e}__modal`,ref:p,children:t.jsxs("div",{className:`${e}__wrapper`,children:[t.jsxs("div",{className:`${e}__header`,children:[t.jsx(T.default,{variant:U.TextVariants.headingMedium,className:`${e}__header-text`,children:h}),t.jsx("div",{className:`${e}__input-wrapper`,children:t.jsx(D.default,{id:"countrySearch",type:"search",labelText:d,hideLabel:!0,placeholder:s,value:l,onChange:r=>{V(r.target.value)},autoFocus:!0,className:`${e}__input`,inputAdornment:t.jsx("span",{"aria-hidden":"true",children:t.jsx(N.default,{icon:"Search",width:20,height:20,color:"$cta-inactive"})})})})]}),t.jsx(O.CountryPickerCountryList,{filteredPrioritized:E,groupedCountries:I,baseClassName:e,modalTitle:h,listRef:z,variantConfig:_,inputName:m}),t.jsx("div",{className:`${e}__button-container`,children:t.jsx(B.default,{onClick:()=>{c&&(S?q(c)&&j(c):q(c)||j(c),a?.())},className:`${e}__button`,"data-testid":"country-picker-modal-select-button",ref:w,type:"button",variant:H.ButtonVariants.secondary,isDisabled:!c,children:f})})]})})});P.displayName="CountryPickerModal";exports.default=P;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import './_countryPickerModal.css';
|
|
1
2
|
import { jsx as o, jsxs as k } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as j, useState as S, useEffect as H, useRef as V, useMemo as
|
|
3
|
+
import { forwardRef as j, useState as S, useEffect as H, useRef as V, useMemo as m } from "react";
|
|
3
4
|
import L from "../../components/Button/Button.js";
|
|
4
5
|
import N from "../../components/Input/Input.js";
|
|
5
6
|
import U from "../../components/Modal/Modal.js";
|
|
@@ -9,6 +10,7 @@ import { getSafeCountryCallingCode as G } from "./utils.js";
|
|
|
9
10
|
import { ButtonVariants as K } from "../../components/Button/types.js";
|
|
10
11
|
import O from "../../components/Icon/Icon.js";
|
|
11
12
|
import { CountryPickerCountryList as Z } from "./CountryPickerCountryList.js";
|
|
13
|
+
|
|
12
14
|
import { TextVariants as q } from "../../components/Text/types.js";
|
|
13
15
|
const w = ["US", "GB", "HK", "CH"], z = (n, l) => {
|
|
14
16
|
if (!l) return n;
|
|
@@ -23,7 +25,7 @@ const w = ["US", "GB", "HK", "CH"], z = (n, l) => {
|
|
|
23
25
|
({
|
|
24
26
|
isOpen: n = !1,
|
|
25
27
|
onClose: l,
|
|
26
|
-
modalTitle:
|
|
28
|
+
modalTitle: f,
|
|
27
29
|
searchInputLabel: d,
|
|
28
30
|
searchInputPlaceholder: i,
|
|
29
31
|
selectButtonLabel: u,
|
|
@@ -35,14 +37,14 @@ const w = ["US", "GB", "HK", "CH"], z = (n, l) => {
|
|
|
35
37
|
H(() => {
|
|
36
38
|
I(g);
|
|
37
39
|
}, [n, g]);
|
|
38
|
-
const [s, M] = S(""), B = V(null), D = V(null), [x, P] =
|
|
40
|
+
const [s, M] = S(""), B = V(null), D = V(null), [x, P] = m(() => {
|
|
39
41
|
const e = w.map((r) => v.filter(($) => $.code === r)).flat(), a = v.filter((r) => !w.includes(r.code));
|
|
40
42
|
return [
|
|
41
43
|
e,
|
|
42
44
|
// keep original order for prioritized
|
|
43
45
|
a.sort((r, $) => r.name.localeCompare($.name))
|
|
44
46
|
];
|
|
45
|
-
}, []), F =
|
|
47
|
+
}, []), F = m(() => z(x, s), [x, s]), R = m(() => z(P, s), [P, s]), T = m(() => {
|
|
46
48
|
const e = {};
|
|
47
49
|
return R.forEach((a) => {
|
|
48
50
|
const r = a.name[0].toUpperCase();
|
|
@@ -59,7 +61,7 @@ const w = ["US", "GB", "HK", "CH"], z = (n, l) => {
|
|
|
59
61
|
ref: p,
|
|
60
62
|
children: /* @__PURE__ */ k("div", { className: `${t}__wrapper`, children: [
|
|
61
63
|
/* @__PURE__ */ k("div", { className: `${t}__header`, children: [
|
|
62
|
-
/* @__PURE__ */ o(A, { variant: q.headingMedium, className: `${t}__header-text`, children:
|
|
64
|
+
/* @__PURE__ */ o(A, { variant: q.headingMedium, className: `${t}__header-text`, children: f }),
|
|
63
65
|
/* @__PURE__ */ o("div", { className: `${t}__input-wrapper`, children: /* @__PURE__ */ o(
|
|
64
66
|
N,
|
|
65
67
|
{
|
|
@@ -84,7 +86,7 @@ const w = ["US", "GB", "HK", "CH"], z = (n, l) => {
|
|
|
84
86
|
filteredPrioritized: F,
|
|
85
87
|
groupedCountries: T,
|
|
86
88
|
baseClassName: t,
|
|
87
|
-
modalTitle:
|
|
89
|
+
modalTitle: f,
|
|
88
90
|
listRef: D,
|
|
89
91
|
variantConfig: _,
|
|
90
92
|
inputName: h
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_countryPickerOption.css');
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),l=require("../../components/Text/Text.cjs"),d=require("../../_virtual/index2.cjs"),_=require("./utils.cjs");;const a=require("../../components/Text/types.cjs"),g=({code:o,name:e,isChecked:r,inputName:p,baseClassName:t,variantConfig:$})=>{const c=`${t}__radio-${o}`,{isPhone:i,onChange:u}=$;return n.jsxs(l.default,{element:"label",variant:a.TextVariants.labelMedium,htmlFor:c,className:d.default(`${t}__option`,{[`${t}__option--selected`]:r,[`${t}__option--is-phone`]:i}),"aria-label":i?`${e} +${_.getSafeCountryCallingCode(o)}`:e,children:[n.jsx("input",{type:"radio",id:c,name:p,checked:r,className:d.default(`${t}__radio`,{[`${t}__radio--selected`]:r,[`${t}__radio--visually-hidden`]:i}),onChange:()=>{u(i?o:e)}}),n.jsxs("span",{className:`${t}__option-content`,children:[n.jsx(l.default,{className:`${t}__option-name`,children:e}),i&&n.jsxs(l.default,{className:`${t}__option-code`,children:["+",_.getSafeCountryCallingCode(o)]})]}),n.jsx("span",{className:`${t}__option-flag`,children:n.jsx("img",{src:`https://flagcdn.com/h20/${o.toLowerCase()}.png`,srcSet:`https://flagcdn.com/h40/${o.toLowerCase()}.png 2x`,alt:`${e} flag`,className:`${t}__option-flag-img`})})]})};exports.CountryPickerOption=g;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import './_countryPickerOption.css';
|
|
1
2
|
import { jsxs as _, jsx as r } from "react/jsx-runtime";
|
|
2
3
|
import c from "../../components/Text/Text.js";
|
|
3
4
|
import $ from "../../_virtual/index2.js";
|
|
4
5
|
import { getSafeCountryCallingCode as d } from "./utils.js";
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
import { TextVariants as m } from "../../components/Text/types.js";
|
|
8
|
+
const j = ({
|
|
7
9
|
code: t,
|
|
8
10
|
name: n,
|
|
9
11
|
isChecked: p,
|
|
@@ -16,7 +18,7 @@ const s = ({
|
|
|
16
18
|
c,
|
|
17
19
|
{
|
|
18
20
|
element: "label",
|
|
19
|
-
variant:
|
|
21
|
+
variant: m.labelMedium,
|
|
20
22
|
htmlFor: l,
|
|
21
23
|
className: $(`${o}__option`, {
|
|
22
24
|
[`${o}__option--selected`]: p,
|
|
@@ -61,5 +63,5 @@ const s = ({
|
|
|
61
63
|
);
|
|
62
64
|
};
|
|
63
65
|
export {
|
|
64
|
-
|
|
66
|
+
j as CountryPickerOption
|
|
65
67
|
};
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
require('../../components/Input/_input.css');
|
|
2
|
+
require('./_countryPickerTrigger.css');
|
|
3
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),y=require("../../components/Icon/Icon.cjs"),u=require("../../components/Text/Text.cjs"),r=require("../../_virtual/index2.cjs"),b=require("./constants.cjs"),P=require("react"),k=require("../../utils/index.cjs"),w=require("../../components/Input/utils.cjs");;;const I=require("../../components/Text/types.cjs"),g=P.forwardRef(({labelText:s,ariaLabel:p=s,displayValue:_,onClick:f,hasError:n=!1,errorMsg:x,id:l,className:h,baseClassName:e,variantConfig:$},v)=>{const{isPhone:a,value:o}=$,i=k.useNormalizedInputProps({id:"country-picker-trigger-input",invalid:n,invalidText:x,type:"text"}),c=w.getInputClassNames(),m=i.invalidId,d=a?o:b.countries.filter(q=>q.name===o)?.[0]?.code,j=()=>i.validation?i.validation:t.jsx("p",{className:c.emptyValidation,children:" "});return t.jsxs("div",{className:r.default(`${e}__trigger`,h),children:[t.jsx(u.default,{element:"label",variant:I.TextVariants.labelMedium,className:r.default(`${e}__trigger-label`,c.label,{[`${e}__trigger-label--error`]:n}),id:l?`${l}-label`:void 0,children:s}),t.jsxs("button",{ref:v,type:"button","aria-label":p,"aria-invalid":i.invalid,"aria-describedby":m,className:r.default(`${e}__trigger-btn`,c.input,{[`${e}__trigger-btn--error`]:n,[`${e}__trigger-btn--is-phone`]:a}),onClick:f,"data-testid":"country-picker-trigger",id:l,children:[d&&t.jsx("span",{className:`${e}__trigger-flag`,children:t.jsx("img",{src:`https://flagcdn.com/h20/${d.toLowerCase()}.png`,srcSet:`https://flagcdn.com/h40/${d.toLowerCase()}.png 2x`,alt:`${o} flag`,className:`${e}__trigger-flag-img`})}),t.jsx(u.default,{className:r.default(`${e}__trigger-text`),children:_}),t.jsx("span",{className:r.default(`${e}__trigger-icon`),children:t.jsx(y.default,{icon:"ChevronDown",color:"black-100",width:16,height:16})})]}),!a&&j()]})});g.displayName="CountryPickerTrigger";exports.default=g;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '../../components/Input/_input.css';
|
|
2
|
+
import './_countryPickerTrigger.css';
|
|
1
3
|
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
4
|
import k from "../../components/Icon/Icon.js";
|
|
3
5
|
import m from "../../components/Text/Text.js";
|
|
@@ -6,6 +8,8 @@ import { countries as w } from "./constants.js";
|
|
|
6
8
|
import { forwardRef as I } from "react";
|
|
7
9
|
import { useNormalizedInputProps as P } from "../../utils/index.js";
|
|
8
10
|
import { getInputClassNames as T } from "../../components/Input/utils.js";
|
|
11
|
+
|
|
12
|
+
|
|
9
13
|
import { TextVariants as N } from "../../components/Text/types.js";
|
|
10
14
|
const V = I(
|
|
11
15
|
({
|
|
@@ -13,16 +17,16 @@ const V = I(
|
|
|
13
17
|
ariaLabel: s = d,
|
|
14
18
|
displayValue: f,
|
|
15
19
|
onClick: _,
|
|
16
|
-
hasError:
|
|
20
|
+
hasError: o = !1,
|
|
17
21
|
errorMsg: u,
|
|
18
|
-
id:
|
|
22
|
+
id: n,
|
|
19
23
|
className: h,
|
|
20
24
|
baseClassName: r,
|
|
21
25
|
variantConfig: $
|
|
22
26
|
}, v) => {
|
|
23
27
|
const { isPhone: l, value: a } = $, e = P({
|
|
24
28
|
id: "country-picker-trigger-input",
|
|
25
|
-
invalid:
|
|
29
|
+
invalid: o,
|
|
26
30
|
invalidText: u,
|
|
27
31
|
type: "text"
|
|
28
32
|
}), c = T(), y = e.invalidId, g = l ? a : w.filter((b) => b.name === a)?.[0]?.code, x = () => e.validation ? e.validation : /* @__PURE__ */ t("p", { className: c.emptyValidation, children: " " });
|
|
@@ -33,9 +37,9 @@ const V = I(
|
|
|
33
37
|
element: "label",
|
|
34
38
|
variant: N.labelMedium,
|
|
35
39
|
className: i(`${r}__trigger-label`, c.label, {
|
|
36
|
-
[`${r}__trigger-label--error`]:
|
|
40
|
+
[`${r}__trigger-label--error`]: o
|
|
37
41
|
}),
|
|
38
|
-
id:
|
|
42
|
+
id: n ? `${n}-label` : void 0,
|
|
39
43
|
children: d
|
|
40
44
|
}
|
|
41
45
|
),
|
|
@@ -48,12 +52,12 @@ const V = I(
|
|
|
48
52
|
"aria-invalid": e.invalid,
|
|
49
53
|
"aria-describedby": y,
|
|
50
54
|
className: i(`${r}__trigger-btn`, c.input, {
|
|
51
|
-
[`${r}__trigger-btn--error`]:
|
|
55
|
+
[`${r}__trigger-btn--error`]: o,
|
|
52
56
|
[`${r}__trigger-btn--is-phone`]: l
|
|
53
57
|
}),
|
|
54
58
|
onClick: _,
|
|
55
59
|
"data-testid": "country-picker-trigger",
|
|
56
|
-
id:
|
|
60
|
+
id: n,
|
|
57
61
|
children: [
|
|
58
62
|
g && /* @__PURE__ */ t("span", { className: `${r}__trigger-flag`, children: /* @__PURE__ */ t(
|
|
59
63
|
"img",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.patterns{.seldon-country-picker__modal{display:flex;flex-direction:column;height:80vh;width:635px}@media(max-width:961px){.seldon-country-picker__modal{height:100dvh;width:100%}}.seldon-country-picker__wrapper{display:flex;flex:1;flex-direction:column;min-height:-webkit-fill-available}.seldon-country-picker__header{background:#fff;margin-bottom:24px;position:sticky;top:0}.seldon-country-picker__header-text{margin-bottom:var(--spacing-md)}.seldon-country-picker__list{flex:1;margin-bottom:var(--spacing-sm);min-height:0;overflow-y:auto}.seldon-country-picker__letter-header{align-items:flex-start;display:flex;flex-direction:column;margin:var(--spacing-sm) 0}.seldon-country-picker__letter-text.seldon-text{margin-bottom:0}.seldon-country-picker__letter-line{border-bottom:1px solid #eae9e6;height:0;width:100%}.seldon-country-picker__button-container{background:#fff;border-top:1px solid #eae9e6;margin-top:auto;padding-top:1rem;width:100%}.seldon-country-picker__button-container button{width:100%}.seldon-country-picker__input-wrapper{padding-bottom:.25rem;position:relative;width:100%}.seldon-country-picker__input-wrapper .seldon-input__validation{display:none}.seldon-country-picker__input-wrapper input::placeholder{font-variation-settings:"wght" 700}@supports (-webkit-touch-callout: none){.seldon-country-picker__input-wrapper input{appearance:none;background-color:#fff}}.seldon-country-picker .seldon-country-picker__input-wrapper .seldon-input__label{border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.patterns{.seldon-country-picker__option{align-items:center;background:#fff;border:1px solid transparent;border-radius:4px;cursor:pointer;display:flex;flex-direction:row-reverse;font-variation-settings:"wght" 600;justify-content:space-between;margin-bottom:var(--spacing-micro);margin-right:1px;outline:none;padding:12px var(--spacing-sm);transition:border-color .2s,background .2s}.seldon-country-picker__option--selected{border:1px solid #000}.seldon-country-picker__option--selected .seldon-country-picker__radio{accent-color:#000}.seldon-country-picker__option--is-phone:focus-within{box-shadow:inset 0 0 0 2px #07c;outline:none}.seldon-country-picker__option-content{display:flex;flex:1;justify-content:space-between}.seldon-country-picker__option-content .seldon-text{font-variation-settings:"wght" 600}.seldon-country-picker__option-flag{align-items:center;display:flex;height:1rem;justify-content:center;margin-right:var(--spacing-sm);overflow:hidden;width:1.5rem}@media(min-width:961px){.seldon-country-picker__option-flag{height:1.25rem;width:1.75rem}}.seldon-country-picker__option-flag-img{display:block;height:100%;width:auto}.seldon-country-picker .seldon-country-picker__radio{height:1.25rem;width:1.25rem}.seldon-country-picker__radio--visually-hidden{border:0;height:1px;margin:-1px;opacity:0;padding:0;white-space:nowrap;width:1px}.seldon-country-picker__option--is-phone.seldon-country-picker__option--selected:focus-within{box-shadow:inset 0 0 0 2px #07c;outline:none}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.patterns{.seldon-country-picker__trigger{display:flex;flex-direction:column;width:100%}.seldon-country-picker__trigger-label{margin-bottom:var(--spacing-xsm);white-space:nowrap}.seldon-country-picker__trigger-label--error{color:#ff3d0a}.seldon-country-picker__trigger-btn{font-family:Montserrat,sans-serif;font-size:var(--font-size-body-medium);font-style:unset;font-variation-settings:"wght" 400;letter-spacing:0;line-height:1.4;text-transform:unset;align-items:center;appearance:none;background:#fff;border:1px solid #000;border-radius:4px;box-sizing:border-box;color:#000;cursor:pointer;display:flex;flex-direction:row;font-variation-settings:"wght" 600;justify-content:space-between;padding:var(--spacing-xsm);width:100%}.seldon-country-picker__trigger-btn:focus-visible{border-radius:4px;outline:2px solid #07c;outline-offset:4px}.seldon-country-picker__trigger-btn--error{border-color:#ff3d0a;box-shadow:inset 0 0 3px 3px #ff3d0a}.seldon-country-picker__trigger-text{flex:1;font-variation-settings:"wght" 600;margin-left:var(--spacing-xsm);margin-right:var(--spacing-xsm);overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.seldon-country-picker__trigger-icon{align-items:center;display:flex;height:1.4em;width:1.4em}.seldon-country-picker__trigger-flag{align-items:center;display:flex;height:1rem;justify-content:center;overflow:hidden;width:1.5rem}@media(min-width:961px){.seldon-country-picker__trigger-flag{height:1.25rem;width:1.75rem}}.seldon-country-picker__trigger-flag-img{display:block;height:100%;width:auto}.seldon-input__validation{animation:reveal .45s linear forwards}.seldon-input__empty-validation{line-height:var(--spacing-sm)}@keyframes reveal{0%{opacity:0}to{opacity:1}}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_favoritesCollectionTile.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),m=require("../../node_modules/@radix-ui/react-popover/dist/index.cjs"),u=require("../../_virtual/index2.cjs"),p=require("react"),B=require("../../components/Link/Link.cjs"),G=require("../../utils/index.cjs");;const l=require("../../components/Text/Text.cjs"),c=require("../../components/Text/types.cjs"),y=require("../../components/Icon/Icon.cjs"),H=require("../../components/SeldonImage/SeldonImage.cjs"),J=require("../../components/SeldonImage/types.cjs"),Q=({baseClassName:t,iconSize:r,createFirstListText:a,onClick:s})=>e.jsx("button",{type:"button",className:`${t}__create-variant`,"data-testid":"create-list","aria-label":a,onClick:n=>{n.stopPropagation(),s?.(n)},children:e.jsx("span",{className:u.default(`${t}__empty`,`${t}__empty--create-list`),children:e.jsxs("span",{className:`${t}__empty__content`,children:[e.jsx(y.default,{icon:"Add",width:r,height:r,color:"$gray-75",className:u.default(`${t}__icon`,`${t}__icon-circle`),"aria-hidden":"true"}),e.jsx(l.default,{className:`${t}__text`,variant:c.TextVariants.bodyMedium,children:a})]})})}),g=({baseClassName:t,iconSize:r,text:a,ariaLabel:s,dataTestId:n})=>e.jsx("div",{className:`${t}__media-container`,"data-testid":n,"aria-label":s,role:"region",children:e.jsx("div",{className:u.default(`${t}__empty`,`${t}__empty--bg`),children:e.jsxs("div",{className:`${t}__empty__content`,children:[e.jsx(y.default,{icon:"Favorite",width:r,height:r,color:"$gray-75",className:u.default(`${t}__icon`),"aria-hidden":"true"}),e.jsx(l.default,{className:`${t}__text`,variant:c.TextVariants.bodyMedium,children:a})]})})}),U=({baseClassName:t,imageRef:r,listAriaLabel:a,name:s,imageSrc:n})=>e.jsx("div",{className:`${t}__media-container`,ref:r,"aria-label":a,"data-testid":"list",role:"region",children:e.jsx(H.default,{alt:s,aspectRatio:J.AspectRatio.Square,className:`${t}__media`,objectFit:"contain",src:n,style:{cursor:"pointer"}})}),W=p.memo(p.forwardRef(({id:t,className:r,count:a,name:s,imageSrc:n,variant:x,element:b=B.default,href:N,emptyFavoritesText:L="You have not added any objects to your Favorites yet.",emptyListsText:q="You have not added any objects to your List yet.",createFirstListText:T="Create your first List.",editListText:w="Edit List",deleteListText:V="Delete List",onEdit:M,onDelete:k,formatlotStr:$=(i,h=i===1?"Lot":"Lots")=>`${i} ${h}`,linkClassName:I,iconSize:d=22,menuAriaLabel:R="Manage List",favoritesAriaLabel:E="Favorites",emptyListAriaLabel:P="Empty List",listAriaLabel:F="List",...f},C)=>{const{className:i,...h}=G.getCommonProps({id:t,...f},"FavoritesCollectionTile"),A=p.useRef(null),_=s&&a!==null&&a!==void 0,j=a===0,v=x==="lists",D=x==="create",O=x==="favorites"&&j,Y=_&&j&&v,K=()=>D?e.jsx(Q,{baseClassName:i,iconSize:d,createFirstListText:T,onClick:f.onClick}):e.jsxs(b,{href:N,className:u.default(`${i}__media-link`,I),tabIndex:0,children:[O&&e.jsx(g,{baseClassName:i,iconSize:d,text:L,ariaLabel:E,dataTestId:"favorites"}),Y&&e.jsx(g,{baseClassName:i,iconSize:d,text:q,ariaLabel:P,dataTestId:"empty-list"}),!j&&_&&e.jsx(U,{baseClassName:i,imageRef:A,listAriaLabel:F,name:s,imageSrc:n,iconSize:d})]});return e.jsx("div",{...h,className:u.default(i,r),ref:C,id:t,children:e.jsxs("div",{className:`${i}__content`,children:[e.jsxs("div",{className:`${i}__header`,children:[e.jsxs("div",{className:`${i}__info`,children:[_&&e.jsx(l.default,{element:"span",className:`${i}__count`,variant:c.TextVariants.labelMedium,children:$&&_&&$(a)}),s&&e.jsx(l.default,{element:"h3",className:`${i}__title`,variant:c.TextVariants.bodyMedium,children:s})]}),_&&v&&e.jsxs(m.Root,{children:[e.jsx(m.Trigger,{asChild:!0,children:e.jsx("div",{className:`${i}__actions`,"data-testid":"menu-trigger",tabIndex:0,role:"button","aria-label":R,"aria-haspopup":"menu",onKeyDown:o=>{o.key==="Enter"&&(o.preventDefault(),o.stopPropagation(),o.target.click())},children:e.jsx("div",{className:`${i}__icon-rotate`,children:e.jsx(y.default,{icon:"Icon",width:d,height:d,color:"$gray-75",className:`${i}__icon-button`,"aria-hidden":"true"})})})}),e.jsx(m.Portal,{children:e.jsx(m.Content,{avoidCollisions:!0,collisionPadding:10,sideOffset:5,align:"start",alignOffset:5,className:`${i}__popover-content`,children:e.jsxs("div",{className:`${i}__dropdown`,"data-testid":"dropdown-menu",children:[e.jsx("button",{className:`${i}__dropdown--item`,onClick:o=>M?.(t,o),type:"button",children:e.jsx(l.default,{variant:c.TextVariants.bodyMedium,children:w})}),e.jsx("button",{className:`${i}__dropdown--item`,onClick:o=>k?.(t,o),type:"button",children:e.jsx(l.default,{variant:c.TextVariants.bodyMedium,children:V})})]})})})]})]}),K()]})})}));exports.default=W;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import './_favoritesCollectionTile.css';
|
|
1
2
|
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
2
3
|
import { Root as K, Trigger as B, Portal as G, Content as H } from "../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
3
4
|
import _ from "../../_virtual/index2.js";
|
|
4
5
|
import { memo as J, forwardRef as Q, useRef as U } from "react";
|
|
5
6
|
import W from "../../components/Link/Link.js";
|
|
6
7
|
import { getCommonProps as X } from "../../utils/index.js";
|
|
8
|
+
|
|
7
9
|
import l from "../../components/Text/Text.js";
|
|
8
10
|
import { TextVariants as m } from "../../components/Text/types.js";
|
|
9
11
|
import $ from "../../components/Icon/Icon.js";
|
|
@@ -86,7 +88,7 @@ const z = ({
|
|
|
86
88
|
}
|
|
87
89
|
)
|
|
88
90
|
}
|
|
89
|
-
),
|
|
91
|
+
), pt = J(
|
|
90
92
|
Q(
|
|
91
93
|
({
|
|
92
94
|
id: e,
|
|
@@ -225,5 +227,5 @@ const z = ({
|
|
|
225
227
|
)
|
|
226
228
|
);
|
|
227
229
|
export {
|
|
228
|
-
|
|
230
|
+
pt as default
|
|
229
231
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.patterns{.seldon-favorites-collection-tile{display:flex;flex-direction:column;text-align:left}.seldon-favorites-collection-tile__content{display:flex;flex-direction:column;height:100%}.seldon-favorites-collection-tile__header{align-items:flex-end;display:flex;justify-content:space-between;padding-bottom:var(--spacing-sm)}.seldon-favorites-collection-tile__info{flex:1;min-height:calc(var(--spacing-sm) + var(--spacing-xsm) + var(--font-size-label-medium) + var(--font-size-body-medium));overflow:hidden}.seldon-favorites-collection-tile__count{color:#75716f;display:block;margin-bottom:var(--spacing-xsm)}.seldon-favorites-collection-tile h3.seldon-text{margin-bottom:0}.seldon-favorites-collection-tile__title{-webkit-box-orient:vertical;display:block;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;overflow:hidden}.seldon-favorites-collection-tile__title.seldon-text{font-variation-settings:"wght" 600}.seldon-favorites-collection-tile__actions{align-items:center;align-self:normal;background-position:center;border-radius:40px;display:flex;height:2.5rem;justify-content:center;position:relative;top:var(--spacing-micro);transition:background .8s;width:2.5rem}.seldon-favorites-collection-tile__actions:hover{background:#eae9e6 radial-gradient(circle,transparent 1%,#eae9e6 1%) center/15000%;background-color:#eae9e6;cursor:pointer}.seldon-favorites-collection-tile__actions:active{background-color:#eae9e6;background-size:100%;transition:background 0s}.seldon-favorites-collection-tile__popover-content{outline:none}.seldon-favorites-collection-tile__dropdown{box-shadow:0 4px 6px #eae9e6}.seldon-favorites-collection-tile__dropdown--item{all:unset;background-color:#fff;cursor:pointer;display:block;padding:.75rem 1rem;width:90px}.seldon-favorites-collection-tile__dropdown--item:hover,.seldon-favorites-collection-tile__dropdown--item:focus-visible{background-color:#eae9e6}.seldon-favorites-collection-tile__media-link:hover{color:inherit;text-decoration:none}.seldon-favorites-collection-tile__media-link.seldon-link{text-transform:none}.seldon-favorites-collection-tile__media-link:focus-visible{outline:2px solid #07c;outline-offset:4px}.seldon-favorites-collection-tile__media-container{background-color:#f9f8f7;position:relative;width:100%}.seldon-favorites-collection-tile__media{background-position:center;width:100%}.seldon-favorites-collection-tile__empty{aspect-ratio:1/1;background-position:center center;background-repeat:no-repeat;background-size:cover;cursor:pointer;display:block;position:relative}.seldon-favorites-collection-tile__empty:focus-visible{outline:2px solid #07c;outline-offset:4px}.seldon-favorites-collection-tile__empty--bg{background-color:#f9f8f7}.seldon-favorites-collection-tile__empty--create-list{background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:0}.seldon-favorites-collection-tile__empty__content{bottom:20px;left:20px;position:absolute;width:calc(100% - 40px)}.seldon-favorites-collection-tile__icon{justify-content:flex-start;margin-bottom:var(--spacing-xsm);pointer-events:none}.seldon-favorites-collection-tile__icon-rotate{transform:rotate(90deg)}.seldon-favorites-collection-tile__icon-circle{border:2px solid #75716f;border-radius:40px;height:1.5rem;justify-content:flex-start;width:1.5rem}.seldon-favorites-collection-tile__icon-button{pointer-events:none}.seldon-favorites-collection-tile__text{text-transform:none}.seldon-favorites-collection-tile [data-radix-popper-content-wrapper]>*{all:unset}.seldon-favorites-collection-tile__create-variant{all:unset;background:none;height:100%;width:100%}.seldon-favorites-collection-tile__create-variant:focus-visible{outline:2px solid #07c;outline-offset:4px}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_filterMenu.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),s=require("react"),q=require("../../utils/index.cjs"),i=require("../../_virtual/index2.cjs"),F=require("../../components/Filter/Filter.cjs");;const n=s.forwardRef(({className:a,children:o,element:u="form",...t},c)=>{const{className:d,...m}=q.getCommonProps(t,"FilterMenu"),[l,p]=s.useState(null),r=l?.length,f=s.Children.map(o,e=>s.isValidElement(e)&&e.type===F.default?s.cloneElement(e,{setViewAllFilter:p,hidden:r?l!==e.props.name:!1,isViewingAll:r,className:r&&i.default(e.props.className,"is-opening")}):e);return g.jsx(u,{...m,...t,className:i.default(d,a),ref:c,children:f})});n.displayName="FilterMenu";exports.default=n;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
+
import './_filterMenu.css';
|
|
1
2
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
3
|
import d, { forwardRef as F, useState as N, Children as w, cloneElement as g } from "react";
|
|
3
4
|
import { getCommonProps as A } from "../../utils/index.js";
|
|
4
|
-
import
|
|
5
|
+
import t from "../../_virtual/index2.js";
|
|
5
6
|
import C from "../../components/Filter/Filter.js";
|
|
7
|
+
|
|
6
8
|
const V = F(
|
|
7
|
-
({ className:
|
|
9
|
+
({ className: a, children: l, element: i = "form", ...r }, m) => {
|
|
8
10
|
const { className: n, ...p } = A(r, "FilterMenu"), [o, f] = N(null), s = o?.length, c = w.map(
|
|
9
11
|
l,
|
|
10
12
|
(e) => d.isValidElement(e) && e.type === C ? g(e, {
|
|
11
13
|
setViewAllFilter: f,
|
|
12
14
|
hidden: s ? o !== e.props.name : !1,
|
|
13
15
|
isViewingAll: s,
|
|
14
|
-
className: s &&
|
|
16
|
+
className: s && t(e.props.className, "is-opening")
|
|
15
17
|
}) : e
|
|
16
18
|
);
|
|
17
|
-
return /* @__PURE__ */ u(i, { ...p, ...r, className:
|
|
19
|
+
return /* @__PURE__ */ u(i, { ...p, ...r, className: t(n, a), ref: m, children: c });
|
|
18
20
|
}
|
|
19
21
|
);
|
|
20
22
|
V.displayName = "FilterMenu";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.patterns{.seldon-filter-menu{align-self:stretch;overflow-y:scroll;padding-bottom:var(--spacing-sm)}.seldon-filter-menu::-webkit-scrollbar{display:none}.seldon-filter-menu .seldon-filter:not([hidden])+.seldon-filter{border-top:1px solid #eae9e6;margin-top:var(--spacing-sm);padding-top:var(--spacing-md)}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_filterButton.css');
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),$=require("../../_virtual/index2.cjs"),p=require("react"),h=require("../../components/Button/Button.cjs"),n=require("../../components/Button/types.cjs"),t=require("../../utils/index.cjs"),j=require("./utils.cjs");;const s=require("../../components/Text/Text.cjs"),o=require("../../components/Text/types.cjs"),v=require("../../components/Icon/Icon.cjs"),u=p.forwardRef(({className:c,label:d,onClick:f,isSelected:l,type:e="ChevronDown",count:x,id:i,ariaLabel:b,isMobile:m,totalCount:a},q)=>r.jsxs(h.default,{ref:q,className:$.default(`${t.px}-filter-button`,c,{[`${t.px}-filter-button--selected`]:l||x>0||e==="Filter"&&a>0,[`${t.px}-filter-button--filter`]:e==="Filter"}),"aria-label":b,variant:n.ButtonVariants.secondary,size:n.ButtonSizes.small,"data-testid":`${i}-filter-button`,"data-viewport":m?"mobile":"desktop",onClick:f,children:[r.jsx(s.default,{className:`${t.px}-filter-button__label`,variant:o.TextVariants.labelSmall,"data-testid":`${i}-filter-label`,children:d}),r.jsx(v.default,{icon:j.getIcon(e,l),height:8,width:8,className:`${t.px}__icon`}),a>0&&e==="Filter"&&r.jsx(s.default,{variant:o.TextVariants.labelSmall,className:`${t.px}-filter-button--count`,"data-testid":`${i}-filter-count`,children:a})]}));u.displayName="FilterButton";exports.FilterButton=u;
|
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './_filterButton.css';
|
|
2
|
+
import { jsxs as u, jsx as o } from "react/jsx-runtime";
|
|
2
3
|
import $ from "../../_virtual/index2.js";
|
|
3
4
|
import h from "react";
|
|
4
5
|
import x from "../../components/Button/Button.js";
|
|
5
6
|
import { ButtonSizes as _, ButtonVariants as v } from "../../components/Button/types.js";
|
|
6
7
|
import { px as t } from "../../utils/index.js";
|
|
7
8
|
import { getIcon as B } from "./utils.js";
|
|
9
|
+
|
|
8
10
|
import l from "../../components/Text/Text.js";
|
|
9
11
|
import { TextVariants as m } from "../../components/Text/types.js";
|
|
10
12
|
import F from "../../components/Icon/Icon.js";
|
|
11
13
|
const N = h.forwardRef(
|
|
12
|
-
({ className: n, label: s, onClick: f, isSelected:
|
|
14
|
+
({ className: n, label: s, onClick: f, isSelected: a, type: r = "ChevronDown", count: c, id: e, ariaLabel: d, isMobile: p, totalCount: i }, b) => /* @__PURE__ */ u(
|
|
13
15
|
x,
|
|
14
16
|
{
|
|
15
|
-
ref:
|
|
17
|
+
ref: b,
|
|
16
18
|
className: $(`${t}-filter-button`, n, {
|
|
17
|
-
[`${t}-filter-button--selected`]:
|
|
19
|
+
[`${t}-filter-button--selected`]: a || c > 0 || r === "Filter" && i > 0,
|
|
18
20
|
[`${t}-filter-button--filter`]: r === "Filter"
|
|
19
21
|
}),
|
|
20
22
|
"aria-label": d,
|
|
21
23
|
variant: v.secondary,
|
|
22
24
|
size: _.small,
|
|
23
25
|
"data-testid": `${e}-filter-button`,
|
|
24
|
-
"data-viewport":
|
|
26
|
+
"data-viewport": p ? "mobile" : "desktop",
|
|
25
27
|
onClick: f,
|
|
26
28
|
children: [
|
|
27
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ o(
|
|
28
30
|
l,
|
|
29
31
|
{
|
|
30
32
|
className: `${t}-filter-button__label`,
|
|
@@ -33,14 +35,14 @@ const N = h.forwardRef(
|
|
|
33
35
|
children: s
|
|
34
36
|
}
|
|
35
37
|
),
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
38
|
+
/* @__PURE__ */ o(F, { icon: B(r, a), height: 8, width: 8, className: `${t}__icon` }),
|
|
39
|
+
i > 0 && r === "Filter" && /* @__PURE__ */ o(
|
|
38
40
|
l,
|
|
39
41
|
{
|
|
40
42
|
variant: m.labelSmall,
|
|
41
43
|
className: `${t}-filter-button--count`,
|
|
42
44
|
"data-testid": `${e}-filter-count`,
|
|
43
|
-
children:
|
|
45
|
+
children: i
|
|
44
46
|
}
|
|
45
47
|
)
|
|
46
48
|
]
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_filterDropdownMenu.css');
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../_virtual/index2.cjs"),$=require("react"),u=require("../../components/Button/Button.cjs"),h=require("../../components/Button/types.cjs"),C=require("../../components/Filter/FilterInput.cjs"),N=require("../../utils/index.cjs"),n=require("./utils.cjs");;const m=$.forwardRef(({className:p,buttonType:t,filters:l,filterIndex:o,onSelectFilter:f,onClickClear:x,onApplyFilter:d,resultsCount:b,ariaLabels:D,dropdownMenuTranslation:c},j)=>{const r=t==="Sort",i=`${N.px}-filter-dropdown-menu`,k=n.getFilterDimensions(l,o),q=n.hasActiveDimensions(l,t,o);return e.jsxs("div",{className:a.default(i,p),ref:j,"data-testid":"filter-dropdown-desktop","aria-label":D||`${t} dropdown desktop`,children:[e.jsx("div",{className:a.default(`${i}__filters`),children:k.map(s=>e.jsx(C.default,{id:s.label,labelText:s.label,name:s.label,type:r?"radio":"checkbox",checked:s.active,disabled:s?.disabled,onChange:w=>{n.handleInputChange(w,t??"",f),r&&d?.(!1)}},s.label))}),!r&&e.jsxs("div",{className:a.default(`${i}__buttons-wrap`),children:[e.jsx(u.default,{variant:h.ButtonVariants.secondary,isDisabled:!q,onClick:()=>x?.(t??""),children:c?.clearAll||"Clear all"}),e.jsx(u.default,{variant:h.ButtonVariants.primary,onClick:()=>d?.(!1),children:e.jsx("span",{className:`${i}__button-text`,children:c?.showAuctions||`Show ${b} Auctions`})})]})]})});m.displayName="FilterDropdownMenuDesktop";exports.FilterDropdownMenuDesktop=m;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import './_filterDropdownMenu.css';
|
|
2
|
+
import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import t from "../../_virtual/index2.js";
|
|
3
4
|
import N from "react";
|
|
4
|
-
import
|
|
5
|
+
import c from "../../components/Button/Button.js";
|
|
5
6
|
import { ButtonVariants as p } from "../../components/Button/types.js";
|
|
6
7
|
import $ from "../../components/Filter/FilterInput.js";
|
|
7
8
|
import { px as u } from "../../utils/index.js";
|
|
8
9
|
import { getFilterDimensions as A, hasActiveDimensions as F, handleInputChange as g } from "./utils.js";
|
|
10
|
+
|
|
9
11
|
const v = N.forwardRef(
|
|
10
12
|
({
|
|
11
13
|
className: f,
|
|
12
14
|
buttonType: i,
|
|
13
|
-
filters:
|
|
15
|
+
filters: a,
|
|
14
16
|
filterIndex: l,
|
|
15
17
|
onSelectFilter: h,
|
|
16
18
|
onClickClear: b,
|
|
@@ -19,33 +21,33 @@ const v = N.forwardRef(
|
|
|
19
21
|
ariaLabels: w,
|
|
20
22
|
dropdownMenuTranslation: d
|
|
21
23
|
}, D) => {
|
|
22
|
-
const
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
+
const s = i === "Sort", r = `${u}-filter-dropdown-menu`, _ = A(a, l), x = F(a, i, l);
|
|
25
|
+
return /* @__PURE__ */ m(
|
|
24
26
|
"div",
|
|
25
27
|
{
|
|
26
|
-
className:
|
|
28
|
+
className: t(r, f),
|
|
27
29
|
ref: D,
|
|
28
30
|
"data-testid": "filter-dropdown-desktop",
|
|
29
31
|
"aria-label": w || `${i} dropdown desktop`,
|
|
30
32
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ o("div", { className: t(`${r}__filters`), children: _.map((e) => /* @__PURE__ */ o(
|
|
32
34
|
$,
|
|
33
35
|
{
|
|
34
36
|
id: e.label,
|
|
35
37
|
labelText: e.label,
|
|
36
38
|
name: e.label,
|
|
37
|
-
type:
|
|
39
|
+
type: s ? "radio" : "checkbox",
|
|
38
40
|
checked: e.active,
|
|
39
41
|
disabled: e?.disabled,
|
|
40
42
|
onChange: (C) => {
|
|
41
|
-
g(C, i ?? "", h),
|
|
43
|
+
g(C, i ?? "", h), s && n?.(!1);
|
|
42
44
|
}
|
|
43
45
|
},
|
|
44
46
|
e.label
|
|
45
47
|
)) }),
|
|
46
|
-
!
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
48
|
+
!s && /* @__PURE__ */ m("div", { className: t(`${r}__buttons-wrap`), children: [
|
|
49
|
+
/* @__PURE__ */ o(
|
|
50
|
+
c,
|
|
49
51
|
{
|
|
50
52
|
variant: p.secondary,
|
|
51
53
|
isDisabled: !x,
|
|
@@ -53,7 +55,7 @@ const v = N.forwardRef(
|
|
|
53
55
|
children: d?.clearAll || "Clear all"
|
|
54
56
|
}
|
|
55
57
|
),
|
|
56
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ o(c, { variant: p.primary, onClick: () => n?.(!1), children: /* @__PURE__ */ o("span", { className: `${r}__button-text`, children: d?.showAuctions || `Show ${k} Auctions` }) })
|
|
57
59
|
] })
|
|
58
60
|
]
|
|
59
61
|
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_filterDropdownMenu.css');
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),r=require("../../_virtual/index2.cjs"),D=require("react"),u=require("../../components/Button/Button.cjs"),m=require("../../components/Button/types.cjs"),N=require("../../components/Filter/FilterInput.cjs"),C=require("../../utils/index.cjs"),l=require("./utils.cjs");;const b=D.forwardRef(({className:f,buttonType:a,filters:n,filterIndex:o,onApplyFilter:d,onClickClear:h,onSelectFilter:x,resultsCount:_,ariaLabels:$,dropdownMenuTranslation:c},p)=>{const t=a==="Sort",e=`${C.px}-filter-dropdown-menu`,j=l.getFilterDimensions(n,o),w=l.hasActiveDimensions(n,a,o);return i.jsxs("div",{className:r.default(`${e}`,f,`${e}--mobile`),ref:p,"data-testid":"filter-dropdown-mobile","aria-label":$||`${a} dropdown mobile`,children:[i.jsx("div",{className:r.default(`${e}__filters`,`${e}__filters--mobile`),children:j.map(s=>i.jsx(N.default,{id:s.label,labelText:s.label,name:s.label,type:t?"radio":"checkbox",checked:s.active,disabled:s?.disabled,onChange:q=>{l.handleInputChange(q,a??"",x),t&&d?.(!1)}},s.label))}),t?i.jsx("div",{className:`${e}__mobile-safe-area`,"aria-hidden":"true"}):i.jsxs("div",{className:r.default(`${e}__buttons-wrap`,`${e}__mobile-wrap`),children:[i.jsx(u.default,{variant:m.ButtonVariants.secondary,isDisabled:!w,onClick:()=>h?.(a??""),children:c?.clearAll||"Clear all"}),i.jsx(u.default,{variant:m.ButtonVariants.primary,onClick:()=>d?.(!1),children:i.jsx("span",{className:`${e}__button-text`,children:c?.showAuctions||`Show ${_} Auctions`})})]})]})});b.displayName="FilterDropdownMenuMobile";exports.FilterDropdownMenuMobile=b;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './_filterDropdownMenu.css';
|
|
1
2
|
import { jsxs as d, jsx as a } from "react/jsx-runtime";
|
|
2
3
|
import s from "../../_virtual/index2.js";
|
|
3
4
|
import D from "react";
|
|
@@ -6,14 +7,15 @@ import { ButtonVariants as f } from "../../components/Button/types.js";
|
|
|
6
7
|
import u from "../../components/Filter/FilterInput.js";
|
|
7
8
|
import { px as k } from "../../utils/index.js";
|
|
8
9
|
import { getFilterDimensions as v, hasActiveDimensions as A, handleInputChange as F } from "./utils.js";
|
|
10
|
+
|
|
9
11
|
const g = D.forwardRef(
|
|
10
12
|
({
|
|
11
|
-
className:
|
|
13
|
+
className: p,
|
|
12
14
|
buttonType: r,
|
|
13
15
|
filters: l,
|
|
14
16
|
filterIndex: t,
|
|
15
17
|
onApplyFilter: n,
|
|
16
|
-
onClickClear:
|
|
18
|
+
onClickClear: b,
|
|
17
19
|
onSelectFilter: h,
|
|
18
20
|
resultsCount: _,
|
|
19
21
|
ariaLabels: $,
|
|
@@ -23,7 +25,7 @@ const g = D.forwardRef(
|
|
|
23
25
|
return /* @__PURE__ */ d(
|
|
24
26
|
"div",
|
|
25
27
|
{
|
|
26
|
-
className: s(`${e}`,
|
|
28
|
+
className: s(`${e}`, p, `${e}--mobile`),
|
|
27
29
|
ref: w,
|
|
28
30
|
"data-testid": "filter-dropdown-mobile",
|
|
29
31
|
"aria-label": $ || `${r} dropdown mobile`,
|
|
@@ -49,7 +51,7 @@ const g = D.forwardRef(
|
|
|
49
51
|
{
|
|
50
52
|
variant: f.secondary,
|
|
51
53
|
isDisabled: !x,
|
|
52
|
-
onClick: () =>
|
|
54
|
+
onClick: () => b?.(r ?? ""),
|
|
53
55
|
children: m?.clearAll || "Clear all"
|
|
54
56
|
}
|
|
55
57
|
),
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_filtersInline.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react/jsx-runtime"),I=require("../../_virtual/index2.cjs"),w=require("react"),D=require("../../utils/index.cjs"),N=require("./MainFilterDropdown.cjs"),g=require("./SubFilterDropdown.cjs"),q=require("./types.cjs");;const y=w.forwardRef(({id:t,className:T,filtersListState:s,setFiltersLabelListState:l,filters:r,onSelectFilter:a,onApplyFilter:i,onClickClear:d,resultsCount:c,mainFilterLabel:n,dropdownMenuTranslation:b,hideDesktopSortButton:x=!0,...B},F)=>{const{className:f,...j}=D.getCommonProps({id:t,...B},"FiltersInline");return u.jsxs("div",{ref:F,className:I.default(f,T),...j,id:t,children:[u.jsx(N.MainFilterDropdown,{id:`${t}-${n}-button`,filterButtonLabel:n,handleClick:l,filtersListState:s,filters:r,onSelectFilter:a,onApplyFilter:i,onClickClear:d,resultsCount:c,dropdownMenuTranslation:b},`${t}-${n}-button`),(()=>{const p=r?.map((e,o)=>({filter:e,filterId:o+1}))??[],m=p.find(({filter:e})=>e.buttonType===q.FilterButtonType.Sort),$=p.filter(({filter:e})=>e.buttonType!==q.FilterButtonType.Sort);return(m?[...$,m]:$).map(({filter:e,filterId:o})=>u.jsx(g.SubFilterDropdown,{id:`${t}-${e.label}-button`,filterButtonLabel:e.label,buttonType:e.buttonType,handleClick:l,filtersListState:s,filterId:o,filters:r,onSelectFilter:a,onApplyFilter:i,onClickClear:d,resultsCount:c,filterButtonLabelTranslated:e.filterButtonLabelTranslated,dropdownMenuTranslation:b,hideDesktopSortButton:x},`${t}-${e.label}-button`))})()]})});y.displayName="FiltersInline";exports.default=y;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './_filtersInline.css';
|
|
2
|
+
import { jsxs as h, jsx as f } from "react/jsx-runtime";
|
|
2
3
|
import F from "../../_virtual/index2.js";
|
|
3
4
|
import j from "react";
|
|
4
5
|
import { getCommonProps as w } from "../../utils/index.js";
|
|
5
6
|
import { MainFilterDropdown as D } from "./MainFilterDropdown.js";
|
|
6
7
|
import { SubFilterDropdown as P } from "./SubFilterDropdown.js";
|
|
7
8
|
import { FilterButtonType as $ } from "./types.js";
|
|
9
|
+
|
|
8
10
|
const R = j.forwardRef(
|
|
9
11
|
({
|
|
10
12
|
id: o,
|
|
@@ -23,7 +25,7 @@ const R = j.forwardRef(
|
|
|
23
25
|
}, I) => {
|
|
24
26
|
const { className: x, ...N } = w({ id: o, ...B }, "FiltersInline");
|
|
25
27
|
return /* @__PURE__ */ h("div", { ref: I, className: F(x, T), ...N, id: o, children: [
|
|
26
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ f(
|
|
27
29
|
D,
|
|
28
30
|
{
|
|
29
31
|
id: `${o}-${e}-button`,
|
|
@@ -40,8 +42,8 @@ const R = j.forwardRef(
|
|
|
40
42
|
`${o}-${e}-button`
|
|
41
43
|
),
|
|
42
44
|
(() => {
|
|
43
|
-
const b = r?.map((t, n) => ({ filter: t, filterId: n + 1 })) ?? [], c = b.find(({ filter: t }) => t.buttonType === $.Sort),
|
|
44
|
-
return (c ? [...
|
|
45
|
+
const b = r?.map((t, n) => ({ filter: t, filterId: n + 1 })) ?? [], c = b.find(({ filter: t }) => t.buttonType === $.Sort), i = b.filter(({ filter: t }) => t.buttonType !== $.Sort);
|
|
46
|
+
return (c ? [...i, c] : i).map(({ filter: t, filterId: n }) => /* @__PURE__ */ f(
|
|
45
47
|
P,
|
|
46
48
|
{
|
|
47
49
|
id: `${o}-${t.label}-button`,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.patterns{.seldon-filter-button{border:2px solid #eae9e6;border-radius:40px;gap:4px;height:inherit;padding:var(--spacing-xsm) var(--spacing-sm)}.seldon-filter-button:hover{border:2px solid #000;box-shadow:none}.seldon-filter-button:focus-visible{border-radius:40px;outline:2px solid #07c;outline-offset:4px}.seldon-filter-button--selected{border:2px solid #000}.seldon-filter-button--selected:focus-visible{border-radius:40px;outline:2px solid #07c;outline-offset:4px}.seldon-filter-button__label{font-variation-settings:"wght" 600}.seldon-filter-button--count.seldon-filter-button--count.seldon-text{background:#000;border:2px solid #fff;border-radius:40px;color:#fff;display:inline-block;font-variation-settings:"wght" 600;height:1.5rem;line-height:1.2rem;position:absolute;right:0;text-align:center;top:-15px;width:1.5rem}@media(min-width:961px){.seldon-filter-button--count.seldon-filter-button--count.seldon-text{line-height:1.3rem}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.patterns{.seldon-filter-dropdown-menu{background:#fff;border-radius:4px;box-shadow:0 4px 6px #eae9e6;display:flex;flex-direction:column;padding:var(--spacing-sm) 0;width:320px}.seldon-filter-dropdown-menu__filters{display:flex;flex-direction:column;gap:var(--spacing-sm);max-height:240px;overflow-y:auto;padding:0 var(--spacing-sm);padding-bottom:var(--spacing-sm)}.seldon-filter-dropdown-menu__filters--mobile{padding:var(--spacing-md)}.seldon-filter-dropdown-menu__buttons-wrap{border-top:1px solid #eae9e6;display:flex;gap:var(--spacing-sm);justify-content:space-between;padding:var(--spacing-sm) var(--spacing-sm) 0 var(--spacing-sm)}.seldon-filter-dropdown-menu__buttons-wrap>.seldon-button{display:inline-flex;flex:1 1 0;justify-content:center;margin:0;max-width:none;min-width:0;text-align:center;white-space:nowrap}.seldon-filter-dropdown-menu__buttons-wrap--drawer{box-shadow:0 -4px 8px -4px #eae9e6;display:flex;flex-direction:row;gap:var(--spacing-sm);min-height:fit-content;padding:var(--spacing-md) var(--spacing-sm);width:100%}.seldon-filter-dropdown-menu__mobile-wrap{box-shadow:0 -4px 8px -4px #eae9e6;padding-bottom:calc(var(--spacing-sm) + env(safe-area-inset-bottom))}.seldon-filter-dropdown-menu__mobile-safe-area{padding-bottom:calc(var(--spacing-sm) + env(safe-area-inset-bottom))}.seldon-filter-dropdown-menu__header{margin-bottom:var(--spacing-sm);margin-top:0}.seldon-filter-dropdown-menu__header--mobile{padding:var(--spacing-md) var(--spacing-md) 0 var(--spacing-md)}.seldon-filter-dropdown-menu__button-text{color:#fff}.seldon-filter-dropdown-menu--mobile{border-radius:4px 4px 0 0;box-shadow:none;height:100%;padding:0;width:100vw}.seldon-filter-dropdown-menu .seldon-input__wrapper{align-items:center;display:flex;flex-direction:row;justify-content:space-between;max-height:2rem}.seldon-filter-dropdown-menu .seldon-input__label{align-self:center;margin:0}.seldon-filter-dropdown-menu .seldon-input__input[type=radio]{align-self:center;margin-left:auto}.seldon-filter-dropdown-menu .seldon-input__input[type=checkbox]:disabled{border-color:#75716f}.seldon-filter-dropdown-menu .seldon-input__input[type=checkbox]{align-self:center;appearance:none;background:#fff;border:1px solid #000;border-radius:4px;display:grid;height:16px;margin-bottom:0;margin-left:auto;padding:0;place-content:center;width:16px}.seldon-filter-dropdown-menu .seldon-input__input[type=checkbox]:after{background:#fff;content:"";height:11px;mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-linecap='square' stroke-width='2'/%3E%3C/svg%3E");mask-position:center;mask-repeat:no-repeat;mask-size:16px 11px;opacity:0;width:16px}.seldon-filter-dropdown-menu .seldon-input__input[type=checkbox]:checked{background:#000}.seldon-filter-dropdown-menu .seldon-input__input[type=checkbox]:checked:after{opacity:1}.seldon-filter-dropdown-menu .seldon-filter-input__input__wrapper{max-height:2rem}.seldon-filter-dropdown-menu .seldon-input__label.seldon-text,.seldon-filter-drawer-menu .seldon-input__label.seldon-text{font-family:Montserrat,sans-serif;font-size:var(--font-size-label-small);font-style:unset;font-variation-settings:"wght" 600;letter-spacing:0;line-height:1.2;text-transform:unset}.seldon-filter-drawer-mobile{height:min(70dvh,640px);padding:0}.seldon-filter-drawer-mobile .seldon-drawer__content{flex:1 1 auto;height:auto;min-height:0;overflow:hidden}.seldon-filter-drawer-mobile .seldon-filter-dropdown-menu--mobile{min-height:0;overflow:hidden}.seldon-filter-drawer-mobile .seldon-filter-dropdown-menu__filters--mobile{flex:1 1 auto;max-height:none;min-height:0;overflow-y:auto}.seldon-filter-drawer-mobile .seldon-filter-dropdown-menu__mobile-wrap{flex:0 0 auto;margin-top:0}.seldon-filter-drawer-mobile .seldon-filter-dropdown-menu__mobile-safe-area{flex:0 0 auto}.seldon-filter-drawer .seldon-filter-drawer-menu{flex:1 1 auto;min-height:0;overflow-y:auto}.seldon-filter-drawer .seldon-filter-dropdown-menu__buttons-wrap--drawer{flex:0 0 auto;margin-top:auto;overflow:visible}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.patterns{.seldon-filters-inline{display:flex;flex-wrap:wrap;gap:var(--spacing-sm)}@media(min-width:961px){.seldon-filters-inline>.seldon-filters-inline__sort{margin-left:auto}}@media(max-width:960px){.seldon-filters-inline{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.seldon-filters-inline::-webkit-scrollbar{display:none}.seldon-filters-inline>*{flex:0 0 auto}}.seldon-filter-drawer{max-width:380px;padding:0}.seldon-filter-drawer-menu{padding:var(--spacing-md)}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_heroBanner.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),_=require("react"),j=require("../../utils/index.cjs"),p=require("../../_virtual/index2.cjs");;const i=require("../../components/Text/Text.cjs"),c=require("../../components/Text/types.cjs"),u=_.forwardRef(({prehead:r,date:n,headerText:d,subHeadText:a,association:l,background:o,className:m,...t},x)=>{const{className:s,...h}=j.getCommonProps(t,"HeroBanner");return e.jsx("header",{...h,className:p.default(s,m),style:{"--background":o},ref:x,...t,children:e.jsxs("span",{className:`${s}__content-wrapper`,children:[r||n?e.jsxs("p",{className:`${s}__pre-head`,children:[r?e.jsx("span",{children:r}):null,n?e.jsx("span",{children:n}):null]}):null,e.jsx(i.default,{className:`${s}__header-text`,variant:c.TextVariants.displayMedium,children:d}),a?e.jsx(i.default,{className:`${s}__sub-head-text`,variant:c.TextVariants.headingMedium,children:a}):null,l?e.jsx("p",{className:`${s}__after-head`,children:l}):null]})})});u.displayName="HeroBanner";exports.default=u;
|