@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,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import '../Input/_input.css';
|
|
2
|
+
import './_combobox.css';
|
|
3
|
+
import { jsxs as T, jsx as l } from "react/jsx-runtime";
|
|
2
4
|
import { Root as he, Trigger as _e, Portal as ve, Content as be } from "../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
3
5
|
import p from "../../_virtual/index2.js";
|
|
4
6
|
import { Command as Ce, CommandInput as ye, CommandList as $e, CommandGroup as we, CommandItem as ge } from "../../node_modules/cmdk/dist/index.js";
|
|
@@ -8,6 +10,8 @@ import { getCommonProps as Te, useNormalizedInputProps as xe } from "../../utils
|
|
|
8
10
|
import W from "../IconButton/IconButton.js";
|
|
9
11
|
import { ButtonVariants as X } from "../Button/types.js";
|
|
10
12
|
import { usePrevious as Oe } from "../../utils/usePrevious.js";
|
|
13
|
+
|
|
14
|
+
|
|
11
15
|
import ke from "../Text/Text.js";
|
|
12
16
|
import { TextVariants as Le } from "../Text/types.js";
|
|
13
17
|
import Ve from "../../assets/formatted/CloseX.js";
|
|
@@ -29,35 +33,35 @@ const Me = Ne.forwardRef(function({
|
|
|
29
33
|
ariaLabelContent: ee,
|
|
30
34
|
hideLabel: te = !1,
|
|
31
35
|
popoverContainerRef: ae,
|
|
32
|
-
noOptionsMessage:
|
|
36
|
+
noOptionsMessage: re = "No Options.",
|
|
33
37
|
invalid: N = !1,
|
|
34
|
-
invalidText:
|
|
38
|
+
invalidText: le,
|
|
35
39
|
countOfCharsBeforeDropdown: q = 0,
|
|
36
40
|
...se
|
|
37
41
|
}, V) {
|
|
38
42
|
const { className: t, ...ne } = Te({ id: n }, "ComboBox"), oe = De, ie = Ve, z = xe({
|
|
39
43
|
id: n,
|
|
40
44
|
invalid: N,
|
|
41
|
-
invalidText:
|
|
45
|
+
invalidText: le,
|
|
42
46
|
type: "text"
|
|
43
|
-
}), [d, G] = B(!1), [ce, ue] = B(""), K = Oe(m), D = g((e) => e.label || e.value, []), [
|
|
47
|
+
}), [d, G] = B(!1), [ce, ue] = B(""), K = Oe(m), D = g((e) => e.label || e.value, []), [r, b] = B(() => {
|
|
44
48
|
if (m !== void 0) {
|
|
45
49
|
const e = i.find((a) => a.value === m);
|
|
46
50
|
return e ? e.displayValue || D(e) : "";
|
|
47
51
|
}
|
|
48
52
|
return "";
|
|
49
53
|
}), C = x(null), y = x(null), $ = x(!1), M = x(null), c = g((e) => D(e), [D]), h = m !== void 0, R = h ? m : ce, s = O(() => i.find((e) => e.value === R) || null, [i, R]), _ = O(() => s ? s.displayValue || c(s) : "", [s, c]), u = O(() => {
|
|
50
|
-
if (!
|
|
54
|
+
if (!r || s && r === _)
|
|
51
55
|
return i;
|
|
52
|
-
const e =
|
|
56
|
+
const e = r.toLowerCase().trim();
|
|
53
57
|
return i.filter((a) => {
|
|
54
58
|
const w = c(a).toLowerCase().includes(e), P = a.value.toLowerCase().includes(e), A = a.displayValue?.toLowerCase().includes(e) || !1;
|
|
55
59
|
let v = !1;
|
|
56
60
|
return a.filterTerms && a.filterTerms.length > 0 && (v = a.filterTerms.some((pe) => pe.toLowerCase().includes(e))), w || P || A || v;
|
|
57
61
|
});
|
|
58
|
-
}, [
|
|
62
|
+
}, [r, _, s, c, i]), o = g(
|
|
59
63
|
(e, a) => {
|
|
60
|
-
const w = (a?.length ||
|
|
64
|
+
const w = (a?.length || r.length) >= q;
|
|
61
65
|
(!e || e && w) && G(e), e && s && u.length > 5 && requestAnimationFrame(() => {
|
|
62
66
|
M.current && M.current.scrollIntoView({
|
|
63
67
|
block: "nearest",
|
|
@@ -65,7 +69,7 @@ const Me = Ne.forwardRef(function({
|
|
|
65
69
|
});
|
|
66
70
|
});
|
|
67
71
|
},
|
|
68
|
-
[q,
|
|
72
|
+
[q, r.length, s, u.length]
|
|
69
73
|
), I = g(
|
|
70
74
|
(e) => {
|
|
71
75
|
h || ue(e.value);
|
|
@@ -86,15 +90,15 @@ const Me = Ne.forwardRef(function({
|
|
|
86
90
|
}, U = O(() => {
|
|
87
91
|
if (h) {
|
|
88
92
|
if (m !== K)
|
|
89
|
-
return s ? _ :
|
|
93
|
+
return s ? _ : r;
|
|
90
94
|
if (s) {
|
|
91
95
|
const e = _;
|
|
92
|
-
return e !==
|
|
96
|
+
return e !== r ? r : e;
|
|
93
97
|
} else
|
|
94
|
-
return
|
|
98
|
+
return r;
|
|
95
99
|
}
|
|
96
|
-
return
|
|
97
|
-
}, [h,
|
|
100
|
+
return r;
|
|
101
|
+
}, [h, r, m, K, s, _]), E = (e) => {
|
|
98
102
|
if (s) {
|
|
99
103
|
const a = _;
|
|
100
104
|
a !== U && b(a);
|
|
@@ -102,15 +106,15 @@ const Me = Ne.forwardRef(function({
|
|
|
102
106
|
b("");
|
|
103
107
|
}, F = g(() => {
|
|
104
108
|
const e = i.filter((a) => {
|
|
105
|
-
const w = c(a).toLowerCase(), P = a.value.toLowerCase(), A = a.displayValue?.toLowerCase(), v =
|
|
109
|
+
const w = c(a).toLowerCase(), P = a.value.toLowerCase(), A = a.displayValue?.toLowerCase(), v = r.toLowerCase();
|
|
106
110
|
return w === v || P === v || A === v;
|
|
107
111
|
});
|
|
108
112
|
e.length === 1 && I(e[0]);
|
|
109
|
-
}, [
|
|
113
|
+
}, [r, i, I, c]);
|
|
110
114
|
return Ie(C, (e) => {
|
|
111
115
|
e.target.closest(`.${t}__item`) || e.target.closest(`.${t}__content`) || C.current?.contains(e.target) || e.target === C.current || (F(), E(), o(!1));
|
|
112
116
|
}), /* @__PURE__ */ T("div", { ref: V, className: p(t, H), id: n, ...ne, ...se, children: [
|
|
113
|
-
k && /* @__PURE__ */
|
|
117
|
+
k && /* @__PURE__ */ l(
|
|
114
118
|
"input",
|
|
115
119
|
{
|
|
116
120
|
type: "hidden",
|
|
@@ -123,7 +127,7 @@ const Me = Ne.forwardRef(function({
|
|
|
123
127
|
}
|
|
124
128
|
),
|
|
125
129
|
/* @__PURE__ */ T("div", { ref: C, className: `${t}__wrapper`, children: [
|
|
126
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ l(
|
|
127
131
|
ke,
|
|
128
132
|
{
|
|
129
133
|
element: "label",
|
|
@@ -137,7 +141,7 @@ const Me = Ne.forwardRef(function({
|
|
|
137
141
|
children: S
|
|
138
142
|
}
|
|
139
143
|
),
|
|
140
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ l(
|
|
141
145
|
Ce,
|
|
142
146
|
{
|
|
143
147
|
loop: !0,
|
|
@@ -149,7 +153,7 @@ const Me = Ne.forwardRef(function({
|
|
|
149
153
|
shouldFilter: !1,
|
|
150
154
|
className: `${t}__command-wrapper`,
|
|
151
155
|
children: /* @__PURE__ */ T(he, { open: d, modal: !1, children: [
|
|
152
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ l(_e, { asChild: !0, children: /* @__PURE__ */ T(
|
|
153
157
|
"div",
|
|
154
158
|
{
|
|
155
159
|
className: p(`${t}__input-wrapper`, {
|
|
@@ -158,7 +162,7 @@ const Me = Ne.forwardRef(function({
|
|
|
158
162
|
role: "combobox",
|
|
159
163
|
"aria-label": S,
|
|
160
164
|
children: [
|
|
161
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ l(
|
|
162
166
|
ye,
|
|
163
167
|
{
|
|
164
168
|
id: `${n}-input`,
|
|
@@ -173,7 +177,7 @@ const Me = Ne.forwardRef(function({
|
|
|
173
177
|
o(!0), e.preventDefault(), e.currentTarget.focus();
|
|
174
178
|
},
|
|
175
179
|
onKeyDown: (e) => {
|
|
176
|
-
e.key === "Tab" ? (o(!1), F(), E()) : e.key === "Enter" && !d ? (f && f(
|
|
180
|
+
e.key === "Tab" ? (o(!1), F(), E()) : e.key === "Enter" && !d ? (f && f(r, null), u.length === 1 && I(u[0])) : e.key === "Escape" ? (o(!1), e.preventDefault(), F(), E()) : (e.key === "ArrowDown" || e.key === "ArrowUp") && !d && u.length > 0 && (o(!0), e.preventDefault());
|
|
177
181
|
},
|
|
178
182
|
onBlur: Q,
|
|
179
183
|
className: p(`${t}__input`, {
|
|
@@ -185,7 +189,7 @@ const Me = Ne.forwardRef(function({
|
|
|
185
189
|
ref: y
|
|
186
190
|
}
|
|
187
191
|
),
|
|
188
|
-
|
|
192
|
+
r && /* @__PURE__ */ l(
|
|
189
193
|
W,
|
|
190
194
|
{
|
|
191
195
|
className: `${t}__close-button`,
|
|
@@ -194,7 +198,7 @@ const Me = Ne.forwardRef(function({
|
|
|
194
198
|
"aria-label": Z,
|
|
195
199
|
tabIndex: -1,
|
|
196
200
|
variant: X.tertiary,
|
|
197
|
-
children: /* @__PURE__ */
|
|
201
|
+
children: /* @__PURE__ */ l(
|
|
198
202
|
ie,
|
|
199
203
|
{
|
|
200
204
|
color: "currentColor",
|
|
@@ -205,7 +209,7 @@ const Me = Ne.forwardRef(function({
|
|
|
205
209
|
)
|
|
206
210
|
}
|
|
207
211
|
),
|
|
208
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ l(
|
|
209
213
|
W,
|
|
210
214
|
{
|
|
211
215
|
"aria-label": L,
|
|
@@ -216,7 +220,7 @@ const Me = Ne.forwardRef(function({
|
|
|
216
220
|
"data-testid": `${n}-dropdown`,
|
|
217
221
|
tabIndex: -1,
|
|
218
222
|
variant: X.tertiary,
|
|
219
|
-
children: /* @__PURE__ */
|
|
223
|
+
children: /* @__PURE__ */ l(
|
|
220
224
|
oe,
|
|
221
225
|
{
|
|
222
226
|
color: "currentColor",
|
|
@@ -231,7 +235,7 @@ const Me = Ne.forwardRef(function({
|
|
|
231
235
|
]
|
|
232
236
|
}
|
|
233
237
|
) }),
|
|
234
|
-
d && /* @__PURE__ */
|
|
238
|
+
d && /* @__PURE__ */ l(ve, { container: ae?.current || document.body, children: /* @__PURE__ */ l(
|
|
235
239
|
be,
|
|
236
240
|
{
|
|
237
241
|
id: `${n}-content`,
|
|
@@ -247,7 +251,7 @@ const Me = Ne.forwardRef(function({
|
|
|
247
251
|
style: {
|
|
248
252
|
width: C.current?.offsetWidth || "100%"
|
|
249
253
|
},
|
|
250
|
-
children: /* @__PURE__ */
|
|
254
|
+
children: /* @__PURE__ */ l($e, { className: `${t}__list`, children: u.length > 0 ? /* @__PURE__ */ l(we, { className: `${t}__group`, children: u.map((e) => /* @__PURE__ */ l(
|
|
251
255
|
ge,
|
|
252
256
|
{
|
|
253
257
|
className: p(`${t}__item`, {
|
|
@@ -259,13 +263,13 @@ const Me = Ne.forwardRef(function({
|
|
|
259
263
|
children: j ? j(e) : c(e)
|
|
260
264
|
},
|
|
261
265
|
e.value
|
|
262
|
-
)) }) : /* @__PURE__ */
|
|
266
|
+
)) }) : /* @__PURE__ */ l("div", { className: `${t}__no-options`, children: re }) })
|
|
263
267
|
}
|
|
264
268
|
) })
|
|
265
269
|
] })
|
|
266
270
|
}
|
|
267
271
|
),
|
|
268
|
-
z.validation ? z.validation : /* @__PURE__ */
|
|
272
|
+
z.validation ? z.validation : /* @__PURE__ */ l("p", { className: p(`${t}__empty-validation`), children: " " })
|
|
269
273
|
] })
|
|
270
274
|
] });
|
|
271
275
|
});
|
|
@@ -72,6 +72,7 @@ export declare const Playground: {
|
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
|
+
export declare const Invalid: () => import("react/jsx-runtime").JSX.Element;
|
|
75
76
|
export declare const ComboBoxInDrawer: () => import("react/jsx-runtime").JSX.Element;
|
|
76
77
|
export declare const CustomRendering: () => import("react/jsx-runtime").JSX.Element;
|
|
77
78
|
export declare const FilterTermsExample: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-combo-box{position:relative;width:100%}.seldon-combo-box__wrapper{display:flex;flex-direction:column;width:100%}.seldon-combo-box__input-wrapper{margin-bottom:.25rem;position:relative}.seldon-combo-box__input-wrapper:hover .seldon-combo-box__close-button,.seldon-combo-box__input-wrapper:focus-within .seldon-combo-box__close-button{opacity:1}.seldon-combo-box__input{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;accent-color:#000;border:1px solid #000;border-radius:4px;font-variation-settings:"wght" 600;outline:none;padding:var(--spacing-xsm);width:100%}.seldon-combo-box__input::placeholder{font-variation-settings:"wght" 400}.seldon-combo-box__input:hover{border:1px solid rgba(0,0,0,.75)}.seldon-combo-box__input:focus-visible,.seldon-combo-box__input:focus{border-radius:4px;outline:2px solid #07c;outline-offset:4px}.seldon-combo-box__input--invalid{border-color:#ff3d0a;box-shadow:inset 0 0 3px 3px #ff3d0a}.seldon-combo-box__input--invalid:focus{border-radius:4px;outline:2px solid #ff3d0a;outline-offset:4px}.seldon-combo-box__input--invalid:hover{border-color:#ff3d0a}.seldon-combo-box__label{color:#000;display:inline-block;font-variation-settings:"wght" 600;margin-bottom:.5rem;width:fit-content;word-break:break-word}.seldon-combo-box__label--hidden{block-size:1px;border:0;clip-path:inset(100%);inline-size:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap}.seldon-combo-box__label--invalid{color:#ff3d0a}.seldon-combo-box__close-button{color:#000;opacity:0;position:absolute;right:2.5rem;top:50%;transform:translateY(-50%);transition:opacity .2s ease,background-color .2s ease}.seldon-combo-box__dropdown-button{color:#000;position:absolute;right:.5rem;top:50%;transform:translateY(-50%)}.seldon-combo-box__dropdown-button--open svg{transform:rotate(180deg)}.seldon-combo-box__content{animation:fade-in .15s ease-out;background-color:#fff;border:1px solid #eae9e6;border-radius:4px;box-shadow:0 5px 15px #0000001a;margin-top:4px;max-height:300px;overflow-y:auto;position:absolute;transform:translateY(1px);width:100%;z-index:100}.seldon-combo-box__group{padding:var(--spacing-xsm) 0}.seldon-combo-box__list{max-height:200px;overflow:hidden;overflow-y:auto;position:relative;transition:height .1s ease;width:100%}.seldon-combo-box__item{background-color:#fff;padding:var(--spacing-micro) var(--spacing-xsm);transition:background-color .1s ease;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}.seldon-combo-box__item:hover,.seldon-combo-box__item[data-selected=true]{background-color:#eae9e6;cursor:pointer}.seldon-combo-box__item--selected{background-color:#eae9e6;font-variation-settings:"wght" 600}.seldon-combo-box__validation{-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;line-height:var(--spacing-md);overflow:hidden}.seldon-combo-box__empty-validation{line-height:var(--spacing-sm)}.seldon-combo-box__item__invalid-text{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;align-items:center;display:flex;margin-top:var(--spacing-xsm)}.seldon-combo-box__no-options{padding-left:var(--spacing-xsm)}@keyframes fade-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_composedModal.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),N=require("../../_virtual/index2.cjs"),j=require("react"),t=require("../../utils/index.cjs"),b=require("../Modal/Modal.cjs");;const f=require("../Divider/Divider.cjs"),h=require("../Text/Text.cjs"),p=require("../Text/types.cjs"),o=j.forwardRef(({children:c,className:m,overlayClassName:$,isOpen:u=!1,onClose:n=t.noOp,maxHeightValue:x="60vh",title:v,footerContent:a,secondaryButton:r,primaryButton:l,id:d,...i},_)=>{const{className:s,"data-testid":g,...q}=t.getCommonProps({id:d,...i},"ComposedModal");return e.jsxs(b.default,{isOpen:u,onClose:n,...i,...q,className:N.default(`${s}`,m),id:d,ref:_,title:v,children:[e.jsx("div",{className:`${s}__body`,style:{"--max-modal-body-height":x},children:c}),(r||l||a)&&e.jsxs(e.Fragment,{children:[e.jsx(f.default,{className:`${s}__divider`,id:`${d}-divider`}),e.jsxs("div",{className:`${s}__btns-group`,children:[r,l]}),a&&e.jsx(h.default,{variant:p.TextVariants.bodySmall,className:`${s}__disclaimer`,children:a})]})]})});o.displayName="ComposedModal";exports.default=o;
|
|
@@ -1,37 +1,39 @@
|
|
|
1
|
+
import './_composedModal.css';
|
|
1
2
|
import { jsxs as o, jsx as e, Fragment as _ } from "react/jsx-runtime";
|
|
2
3
|
import h from "../../_virtual/index2.js";
|
|
3
4
|
import { forwardRef as x } from "react";
|
|
4
5
|
import { getCommonProps as $, noOp as b } from "../../utils/index.js";
|
|
5
6
|
import g from "../Modal/Modal.js";
|
|
7
|
+
|
|
6
8
|
import y from "../Divider/Divider.js";
|
|
7
9
|
import C from "../Text/Text.js";
|
|
8
10
|
import { TextVariants as M } from "../Text/types.js";
|
|
9
11
|
const j = x(
|
|
10
12
|
({
|
|
11
|
-
children:
|
|
13
|
+
children: l,
|
|
12
14
|
className: t,
|
|
13
15
|
overlayClassName: P,
|
|
14
|
-
isOpen:
|
|
15
|
-
onClose:
|
|
16
|
+
isOpen: p = !1,
|
|
17
|
+
onClose: c = b,
|
|
16
18
|
maxHeightValue: f = "60vh",
|
|
17
19
|
title: N,
|
|
18
20
|
footerContent: m,
|
|
19
21
|
secondaryButton: r,
|
|
20
22
|
primaryButton: d,
|
|
21
23
|
id: s,
|
|
22
|
-
...
|
|
24
|
+
...i
|
|
23
25
|
}, n) => {
|
|
24
26
|
const {
|
|
25
27
|
className: a,
|
|
26
28
|
"data-testid": T,
|
|
27
29
|
...v
|
|
28
|
-
} = $({ id: s, ...
|
|
30
|
+
} = $({ id: s, ...i }, "ComposedModal");
|
|
29
31
|
return /* @__PURE__ */ o(
|
|
30
32
|
g,
|
|
31
33
|
{
|
|
32
|
-
isOpen:
|
|
33
|
-
onClose:
|
|
34
|
-
...
|
|
34
|
+
isOpen: p,
|
|
35
|
+
onClose: c,
|
|
36
|
+
...i,
|
|
35
37
|
...v,
|
|
36
38
|
className: h(`${a}`, t),
|
|
37
39
|
id: s,
|
|
@@ -43,7 +45,7 @@ const j = x(
|
|
|
43
45
|
{
|
|
44
46
|
className: `${a}__body`,
|
|
45
47
|
style: { "--max-modal-body-height": f },
|
|
46
|
-
children:
|
|
48
|
+
children: l
|
|
47
49
|
}
|
|
48
50
|
),
|
|
49
51
|
(r || d || m) && /* @__PURE__ */ o(_, { children: [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-composed-modal{border-radius:12px;max-width:95vw;min-width:100%;padding:var(--spacing-lg) 0 var(--spacing-sm) 0}.seldon-composed-modal:not(:has(.seldon-composed-modal__btns-group)){padding-bottom:var(--spacing-lg)}@media(min-width:361px){.seldon-composed-modal{min-width:22.5rem}}@media(min-width:961px){.seldon-composed-modal{min-width:35rem;width:35rem}}.seldon-composed-modal__body{margin:0 var(--spacing-lg) var(--spacing-md);max-height:var("--max-modal-body-height");overflow-y:auto}.seldon-composed-modal .seldon-divider,.seldon-composed-modal .seldon-divider hr{margin:0}.seldon-composed-modal__btns-group{display:flex;gap:var(--spacing-sm);justify-content:center;margin:0 var(--spacing-lg);padding:var(--spacing-sm) 0 0}@media(max-width:450px){.seldon-composed-modal__btns-group{align-items:center;flex-direction:column}}.seldon-composed-modal__btns-group>*{flex:1 1 50%}@media(max-width:450px){.seldon-composed-modal__btns-group>*{flex:1 1 auto}}.seldon-composed-modal__btns{padding:0 var(--spacing-md) var(--spacing-sm)}.seldon-composed-modal__disclaimer{margin-top:var(--spacing-sm);padding:0 var(--spacing-md)}.seldon-composed-modal__body{max-height:var(--max-modal-body-height);overflow-y:auto}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_contentPeek.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),s=require("react"),g=require("../../_virtual/index2.cjs"),N=require("../../utils/index.cjs"),S=require("../Button/Button.cjs"),H=require("../Button/types.cjs"),c=require("./utils.cjs"),m=require("../../utils/constants.cjs");;const I=require("../Collapsible/Collapsible.cjs"),M=require("../Collapsible/CollapsibleContent.cjs"),_=require("../Collapsible/CollapsibleTrigger.cjs"),h=require("../Icon/Icon.cjs"),p=s.forwardRef(({className:q,children:v,contentExpandText:C="Read More",contentCollapseText:y="Read Less",maxHeight:d=480,minHeightThreshold:i,heightUnits:f=c.HeightUnits.px,...u},E)=>{const{className:t,...j}=N.getCommonProps(u,"ContentPeek"),[r,R]=s.useState(!1),[x,P]=s.useState(!1),l=s.useRef(null),o=f===c.HeightUnits.rem?d*m.DEFAULT_REM_SIZE:d,$=i?i*m.DEFAULT_REM_SIZE:null,n=f===c.HeightUnits.rem?$:i;s.useEffect(()=>{if(l.current){const a=n??o;P(l.current.scrollHeight>a)}},[o,n]),s.useEffect(()=>{const a=n&&n>=o?n:o;l.current?.style.setProperty("--content-peek-max-height",`${a}${c.HeightUnits.px}`)},[o,n]);const b=s.useCallback(()=>{R(a=>!a)},[]);return e.jsxs(I.default,{id:u?.id,open:r,onOpenChange:b,className:g.default(t,q),ref:E,...j,...u,children:[e.jsx(M.default,{className:`${t}-content`,ref:l,forceMount:!0,children:v}),x?e.jsx("div",{className:g.default(`${t}-overlay`,{[`${t}-overlay--expanded`]:r,[`${t}-overlay--gradient`]:x&&!r}),children:e.jsx("div",{className:`${t}-overlay-trigger-wrapper`,children:e.jsx(_.default,{asChild:!0,className:`${t}-overlay-trigger`,children:e.jsxs(S.default,{variant:H.ButtonVariants.secondary,children:[r?e.jsx(h.default,{icon:"Subtract"}):e.jsx(h.default,{icon:"Add"}),r?y:C]})})})}):null]})});p.displayName="ContentPeek";exports.default=p;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './_contentPeek.css';
|
|
1
2
|
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
3
|
import { forwardRef as w, useState as u, useRef as H, useEffect as h, useCallback as M } from "react";
|
|
3
4
|
import g from "../../_virtual/index2.js";
|
|
@@ -6,6 +7,7 @@ import S from "../Button/Button.js";
|
|
|
6
7
|
import { ButtonVariants as T } from "../Button/types.js";
|
|
7
8
|
import { HeightUnits as l } from "./utils.js";
|
|
8
9
|
import { DEFAULT_REM_SIZE as x } from "../../utils/constants.js";
|
|
10
|
+
|
|
9
11
|
import j from "../Collapsible/Collapsible.js";
|
|
10
12
|
import A from "../Collapsible/CollapsibleContent.js";
|
|
11
13
|
import B from "../Collapsible/CollapsibleTrigger.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-content-peek{display:flex;flex-direction:column;gap:12px;position:relative}.seldon-content-peek-content{overflow:hidden}.seldon-content-peek-content[data-state=closed]{max-height:var(--content-peek-max-height, none)}.seldon-content-peek-overlay{bottom:0;display:flex;flex-direction:column;left:0;pointer-events:none;position:absolute;right:0}.seldon-content-peek-overlay--expanded{position:relative}.seldon-content-peek-overlay--gradient:before{background:linear-gradient(180deg,#fafafa00,#ffffff0d 6.25%,#ffffffbf 53.65%,#fff 90.62%);content:"";height:100px;pointer-events:none;width:100%}.seldon-content-peek-overlay-trigger-wrapper{background:#fff;display:flex;justify-content:center;pointer-events:auto;width:100%}.seldon-content-peek-overlay-trigger{width:fit-content}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_countdown.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),f=require("react"),z=require("../../utils/index.cjs"),H=require("../../_virtual/index2.cjs"),P=require("../../types/commonTypes.cjs"),i=require("./types.cjs"),m=require("./Duration.cjs");;const R=require("../../node_modules/date-fns/locale/zh-CN.cjs"),U=require("../../node_modules/date-fns/locale/en-US.cjs"),x=require("../../node_modules/date-fns/differenceInSeconds.cjs"),I=require("../../node_modules/date-fns/differenceInMinutes.cjs"),y=require("../../node_modules/date-fns/differenceInHours.cjs"),p=require("../../node_modules/date-fns/differenceInDays.cjs"),E=require("../../node_modules/date-fns/differenceInMilliseconds.cjs"),C=require("../Text/types.cjs"),F=require("../Text/Text.cjs"),j=f.forwardRef(({endDateTime:e,formatDurationStr:a,label:h="Lots Close in",intervalDescription:g,className:M,locale:$="en",showBottomBorder:N=!0,variant:l=i.CountdownVariants.default,getCurrentDateTime:u=()=>new Date,centerAlign:V=!1,...q},b)=>{const{className:r,...S}=z.getCommonProps(q,"Countdown"),[s,_]=f.useState(u()||new Date),d=$===P.SupportedLanguages.zh?R.zhCN:U.enUS,n={days:p.differenceInDays(e,s)>0?p.differenceInDays(e,s):0,hours:y.differenceInHours(e,s)>0?y.differenceInHours(e,s)%24:0,minutes:I.differenceInMinutes(e,s)>0?I.differenceInMinutes(e,s)%60:0,seconds:(x.differenceInSeconds(e,s)>0?x.differenceInSeconds(e,s)%60:0)%60};f.useEffect(()=>{const t=setInterval(()=>{_(u()||new Date)},1e3);return()=>clearInterval(t)},[e,u]);const v=f.useMemo(()=>{const t=u();return!!t&&new Date(e).getTime()>t.getTime()},[e,u]),L=E.differenceInMilliseconds(e,s)<=180*1e3,c=l===i.CountdownVariants.sm?C.TextVariants.labelSmall:C.TextVariants.labelMedium,w=[n.days>0?o.jsx(m.Duration,{duration:n,unit:"days",locale:d,formatDurationStr:a,textVariant:c},"days"):null,n.days>0||n.hours>0?o.jsx(m.Duration,{duration:n,unit:"hours",locale:d,formatDurationStr:a,textVariant:c},"hours"):null,n.days===0?o.jsx(m.Duration,{duration:n,unit:"minutes",locale:d,formatDurationStr:a,textVariant:c},"minutes"):null,n.days===0&&n.hours===0?o.jsx(m.Duration,{duration:n,unit:"seconds",locale:d,formatDurationStr:a,textVariant:c},"seconds"):null].filter(t=>t!=null);return v?o.jsxs("div",{"data-chromatic":"ignore",...S,className:H.default(r,M,{[`${r}--compact`]:l===i.CountdownVariants.compact,[`${r}--sm`]:l===i.CountdownVariants.sm,[`${r}--show-bottom-border`]:N,[`${r}--closing-lot`]:L,[`${r}--center-align`]:V}),...q,ref:b,children:[o.jsxs("div",{className:`${r}__countdown-container`,role:"timer","aria-label":h,children:[o.jsx(F.default,{variant:c,children:h}),w.length>0?o.jsx("div",{className:`${r}__duration-group`,children:w}):null]}),l===i.CountdownVariants.default?o.jsx("span",{children:g}):null]}):null});j.displayName="Countdown";exports.default=j;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import './_countdown.css';
|
|
1
2
|
import { jsx as t, jsxs as w } from "react/jsx-runtime";
|
|
2
3
|
import { forwardRef as P, useState as S, useEffect as E, useMemo as F } from "react";
|
|
3
4
|
import { getCommonProps as G } from "../../utils/index.js";
|
|
4
5
|
import H from "../../_virtual/index2.js";
|
|
5
6
|
import { SupportedLanguages as R } from "../../types/commonTypes.js";
|
|
6
|
-
import { CountdownVariants as
|
|
7
|
+
import { CountdownVariants as i } from "./types.js";
|
|
7
8
|
import { Duration as d } from "./Duration.js";
|
|
9
|
+
|
|
8
10
|
import { zhCN as U } from "../../node_modules/date-fns/locale/zh-CN.js";
|
|
9
11
|
import { enUS as k } from "../../node_modules/date-fns/locale/en-US.js";
|
|
10
12
|
import { differenceInSeconds as y } from "../../node_modules/date-fns/differenceInSeconds.js";
|
|
@@ -17,13 +19,13 @@ import A from "../Text/Text.js";
|
|
|
17
19
|
const B = P(
|
|
18
20
|
({
|
|
19
21
|
endDateTime: o,
|
|
20
|
-
formatDurationStr:
|
|
22
|
+
formatDurationStr: a,
|
|
21
23
|
label: f = "Lots Close in",
|
|
22
24
|
intervalDescription: $,
|
|
23
25
|
className: x,
|
|
24
26
|
locale: b = "en",
|
|
25
27
|
showBottomBorder: L = !0,
|
|
26
|
-
variant: m =
|
|
28
|
+
variant: m = i.default,
|
|
27
29
|
getCurrentDateTime: l = () => /* @__PURE__ */ new Date(),
|
|
28
30
|
centerAlign: M = !1,
|
|
29
31
|
...p
|
|
@@ -43,14 +45,14 @@ const B = P(
|
|
|
43
45
|
const j = F(() => {
|
|
44
46
|
const e = l();
|
|
45
47
|
return !!e && new Date(o).getTime() > e.getTime();
|
|
46
|
-
}, [o, l]), z = q(o, n) <= 180 * 1e3, c = m ===
|
|
48
|
+
}, [o, l]), z = q(o, n) <= 180 * 1e3, c = m === i.sm ? N.labelSmall : N.labelMedium, h = [
|
|
47
49
|
s.days > 0 ? /* @__PURE__ */ t(
|
|
48
50
|
d,
|
|
49
51
|
{
|
|
50
52
|
duration: s,
|
|
51
53
|
unit: "days",
|
|
52
54
|
locale: u,
|
|
53
|
-
formatDurationStr:
|
|
55
|
+
formatDurationStr: a,
|
|
54
56
|
textVariant: c
|
|
55
57
|
},
|
|
56
58
|
"days"
|
|
@@ -61,7 +63,7 @@ const B = P(
|
|
|
61
63
|
duration: s,
|
|
62
64
|
unit: "hours",
|
|
63
65
|
locale: u,
|
|
64
|
-
formatDurationStr:
|
|
66
|
+
formatDurationStr: a,
|
|
65
67
|
textVariant: c
|
|
66
68
|
},
|
|
67
69
|
"hours"
|
|
@@ -72,7 +74,7 @@ const B = P(
|
|
|
72
74
|
duration: s,
|
|
73
75
|
unit: "minutes",
|
|
74
76
|
locale: u,
|
|
75
|
-
formatDurationStr:
|
|
77
|
+
formatDurationStr: a,
|
|
76
78
|
textVariant: c
|
|
77
79
|
},
|
|
78
80
|
"minutes"
|
|
@@ -83,7 +85,7 @@ const B = P(
|
|
|
83
85
|
duration: s,
|
|
84
86
|
unit: "seconds",
|
|
85
87
|
locale: u,
|
|
86
|
-
formatDurationStr:
|
|
88
|
+
formatDurationStr: a,
|
|
87
89
|
textVariant: c
|
|
88
90
|
},
|
|
89
91
|
"seconds"
|
|
@@ -95,8 +97,8 @@ const B = P(
|
|
|
95
97
|
"data-chromatic": "ignore",
|
|
96
98
|
...v,
|
|
97
99
|
className: H(r, x, {
|
|
98
|
-
[`${r}--compact`]: m ===
|
|
99
|
-
[`${r}--sm`]: m ===
|
|
100
|
+
[`${r}--compact`]: m === i.compact,
|
|
101
|
+
[`${r}--sm`]: m === i.sm,
|
|
100
102
|
[`${r}--show-bottom-border`]: L,
|
|
101
103
|
[`${r}--closing-lot`]: z,
|
|
102
104
|
[`${r}--center-align`]: M
|
|
@@ -108,7 +110,7 @@ const B = P(
|
|
|
108
110
|
/* @__PURE__ */ t(A, { variant: c, children: f }),
|
|
109
111
|
h.length > 0 ? /* @__PURE__ */ t("div", { className: `${r}__duration-group`, children: h }) : null
|
|
110
112
|
] }),
|
|
111
|
-
m ===
|
|
113
|
+
m === i.default ? /* @__PURE__ */ t("span", { children: $ }) : null
|
|
112
114
|
]
|
|
113
115
|
}
|
|
114
116
|
) : null;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_duration.css');
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),c=require("../../utils/index.cjs");;const d=require("../../node_modules/date-fns/formatDuration.cjs"),i=require("../Text/Text.cjs"),l=require("../Text/types.cjs"),m=({duration:n,unit:s,locale:o,formatDurationStr:u=e=>e,textVariant:t=l.TextVariants.labelMedium})=>{const e=`${c.px}-duration`,a=d.formatDuration(n,{format:[s],zero:!0,locale:o}).split(" ");return r.jsxs("div",{className:e,children:[r.jsx(i.default,{variant:t,children:a[0].padStart(2,"0")}),r.jsx(i.default,{variant:t,children:u(a[1])})]})};exports.Duration=m;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import './_duration.css';
|
|
1
2
|
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
3
|
import { px as d } from "../../utils/index.js";
|
|
4
|
+
|
|
3
5
|
import { formatDuration as l } from "../../node_modules/date-fns/formatDuration.js";
|
|
4
6
|
import i from "../Text/Text.js";
|
|
5
7
|
import { TextVariants as c } from "../Text/types.js";
|
|
6
|
-
const
|
|
8
|
+
const j = ({
|
|
7
9
|
duration: m,
|
|
8
10
|
unit: s,
|
|
9
11
|
locale: e,
|
|
@@ -17,5 +19,5 @@ const b = ({
|
|
|
17
19
|
] });
|
|
18
20
|
};
|
|
19
21
|
export {
|
|
20
|
-
|
|
22
|
+
j as Duration
|
|
21
23
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-countdown{align-items:stretch;border-bottom:none;display:flex;flex-direction:column;justify-content:center;margin-bottom:0;padding-bottom:var(--spacing-sm);width:100%}.seldon-countdown--closing-lot .seldon-duration,.seldon-countdown--closing-lot .seldon-duration .seldon-text{color:#ea0404;font-variation-settings:"wght" 600}.seldon-countdown--show-bottom-border{border-bottom:1px solid #eae9e6;margin-bottom:1.5rem}.seldon-countdown__countdown-container{align-items:flex-start;display:flex;flex-flow:row wrap;gap:var(--spacing-micro) var(--spacing-sm);justify-content:flex-start;text-transform:inherit;width:100%}.seldon-countdown__countdown-container>.seldon-text{flex-shrink:0;font-variation-settings:"wght" 600}.seldon-countdown--center-align .seldon-countdown__countdown-container{align-items:center;justify-content:center;text-align:center}.seldon-countdown--center-align .seldon-countdown__duration-group{justify-content:center}.seldon-countdown__duration-group{align-items:center;display:flex;flex-flow:row wrap;gap:0 var(--spacing-sm);justify-content:flex-start}.seldon-countdown__duration-group .seldon-duration .seldon-text{font-variation-settings:"wght" 600}.seldon-countdown--compact .seldon-countdown__countdown-container,.seldon-countdown--compact .seldon-countdown__duration-group{column-gap:var(--spacing-xsm)}.seldon-countdown--compact--closing-lot .seldon-duration,.seldon-countdown--compact--closing-lot .seldon-duration .seldon-text{color:#ea0404;font-variation-settings:"wght" 600}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-duration{display:flex;gap:var(--spacing-micro)}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_descriptiveRadioButton.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),b=require("react"),f=require("../../utils/index.cjs"),i=require("../../_virtual/index2.cjs"),n=require("../Text/Text.cjs");;const h=require("../Text/types.cjs"),r=b.forwardRef(({labelText:l,description:a,className:d,containerClassName:o,id:u,...s},m)=>{const{className:e,..._}=f.getCommonProps(s,"descriptive-radio-button"),c=u,x=a?`${c}-desc`:void 0;return t.jsxs("label",{htmlFor:c,className:i.default(`${e}__container`,o,{[`${e}__container--selected`]:s.checked}),children:[t.jsx("input",{..._,...s,ref:m,id:c,type:"radio",className:i.default(`${e}__input`,d),checked:s.checked}),t.jsxs("span",{className:`${e}__label-content`,children:[t.jsx(n.default,{variant:h.TextVariants.labelLarge,className:`${e}__label-text`,children:l}),a&&t.jsx(n.default,{id:x,className:`${e}__description`,children:a})]})]})});r.displayName="DescriptiveRadioButton";exports.default=r;
|
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './_descriptiveRadioButton.css';
|
|
2
|
+
import { jsxs as r, jsx as s } from "react/jsx-runtime";
|
|
2
3
|
import { forwardRef as h } from "react";
|
|
3
4
|
import { getCommonProps as u } from "../../utils/index.js";
|
|
4
|
-
import
|
|
5
|
+
import c from "../../_virtual/index2.js";
|
|
5
6
|
import i from "../Text/Text.js";
|
|
7
|
+
|
|
6
8
|
import { TextVariants as N } from "../Text/types.js";
|
|
7
9
|
const $ = h(
|
|
8
|
-
({ labelText: m, description:
|
|
9
|
-
const { className: e, ...
|
|
10
|
-
|
|
10
|
+
({ labelText: m, description: a, className: n, containerClassName: l, id: d, ...t }, p) => {
|
|
11
|
+
const { className: e, ..._ } = u(
|
|
12
|
+
t,
|
|
11
13
|
"descriptive-radio-button"
|
|
12
|
-
),
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
+
), o = d, f = a ? `${o}-desc` : void 0;
|
|
15
|
+
return /* @__PURE__ */ r(
|
|
14
16
|
"label",
|
|
15
17
|
{
|
|
16
|
-
htmlFor:
|
|
17
|
-
className:
|
|
18
|
-
[`${e}__container--selected`]:
|
|
18
|
+
htmlFor: o,
|
|
19
|
+
className: c(`${e}__container`, l, {
|
|
20
|
+
[`${e}__container--selected`]: t.checked
|
|
19
21
|
}),
|
|
20
22
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ s(
|
|
22
24
|
"input",
|
|
23
25
|
{
|
|
24
|
-
...
|
|
25
|
-
...
|
|
26
|
-
ref:
|
|
27
|
-
id:
|
|
26
|
+
..._,
|
|
27
|
+
...t,
|
|
28
|
+
ref: p,
|
|
29
|
+
id: o,
|
|
28
30
|
type: "radio",
|
|
29
|
-
className:
|
|
30
|
-
checked:
|
|
31
|
+
className: c(`${e}__input`, n),
|
|
32
|
+
checked: t.checked
|
|
31
33
|
}
|
|
32
34
|
),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
|
|
35
|
+
/* @__PURE__ */ r("span", { className: `${e}__label-content`, children: [
|
|
36
|
+
/* @__PURE__ */ s(i, { variant: N.labelLarge, className: `${e}__label-text`, children: m }),
|
|
37
|
+
a && /* @__PURE__ */ s(i, { id: f, className: `${e}__description`, children: a })
|
|
36
38
|
] })
|
|
37
39
|
]
|
|
38
40
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-descriptive-radio-button__container{align-items:flex-start;background:#fff;border:1px solid #eae9e6;border-radius:4px;cursor:pointer;display:flex;padding:var(--spacing-sm)}.seldon-descriptive-radio-button__container--selected{border:1.5px solid #000}.seldon-descriptive-radio-button__container:has(input:focus-visible){border-radius:4px;outline:2px solid #07c;outline-offset:4px}.seldon-descriptive-radio-button__input{accent-color:#eae9e6;cursor:pointer;height:1rem;margin-right:var(--spacing-sm);margin-top:2px;width:1rem}@media(min-width:961px){.seldon-descriptive-radio-button__input{margin-top:var(--spacing-micro)}}.seldon-descriptive-radio-button__input:focus,.seldon-descriptive-radio-button__input:focus-visible{outline:none}.seldon-descriptive-radio-button__input:checked{accent-color:#000}.seldon-descriptive-radio-button__label-content{align-items:flex-start;cursor:pointer;display:flex;flex:1;flex-direction:column;gap:var(--spacing-sm);pointer-events:none}.seldon-descriptive-radio-button__label-text{font-variation-settings:"wght" 600}.seldon-descriptive-radio-button__description{display:block}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_descriptiveRadioButtonGroup.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),f=require("react"),p=require("../../utils/index.cjs"),b=require("../../_virtual/index2.cjs"),q=require("../DescriptiveRadioButton/DescriptiveRadioButton.cjs");;const a=f.forwardRef(({legendText:d,hideLegend:l=!0,options:r,name:t,value:o,onValueChange:n,className:c,...g},m)=>{const{className:s,...v}=p.getCommonProps(g,"descriptive-radio-button-group");if(!r||r.length===0)return null;const u=`${t}_radio-button-group`;return i.jsxs("fieldset",{...v,className:b.default(s,c),ref:m,name:t,role:"radiogroup","aria-labelledby":u,children:[i.jsx("legend",{id:u,className:l?`${s}__sr-only`:void 0,children:d}),r.map(e=>i.jsx(q.default,{...e,name:t,checked:o===e.value,onChange:()=>n(String(e.value??"")),id:e.id},e.id))]})});a.displayName="DescriptiveRadioButtonGroup";exports.default=a;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './_descriptiveRadioButtonGroup.css';
|
|
2
|
+
import { jsxs as f, jsx as s } from "react/jsx-runtime";
|
|
2
3
|
import { forwardRef as g } from "react";
|
|
3
4
|
import { getCommonProps as v } from "../../utils/index.js";
|
|
4
5
|
import b from "../../_virtual/index2.js";
|
|
5
6
|
import h from "../DescriptiveRadioButton/DescriptiveRadioButton.js";
|
|
7
|
+
|
|
6
8
|
const N = g(
|
|
7
9
|
({ legendText: t, hideLegend: d = !0, options: e, name: o, value: l, onValueChange: m, className: u, ...c }, n) => {
|
|
8
10
|
const { className: a, ...p } = v(c, "descriptive-radio-button-group");
|
|
9
11
|
if (!e || e.length === 0)
|
|
10
12
|
return null;
|
|
11
|
-
const
|
|
13
|
+
const i = `${o}_radio-button-group`;
|
|
12
14
|
return /* @__PURE__ */ f(
|
|
13
15
|
"fieldset",
|
|
14
16
|
{
|
|
@@ -17,10 +19,10 @@ const N = g(
|
|
|
17
19
|
ref: n,
|
|
18
20
|
name: o,
|
|
19
21
|
role: "radiogroup",
|
|
20
|
-
"aria-labelledby":
|
|
22
|
+
"aria-labelledby": i,
|
|
21
23
|
children: [
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
e.map((r) => /* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ s("legend", { id: i, className: d ? `${a}__sr-only` : void 0, children: t }),
|
|
25
|
+
e.map((r) => /* @__PURE__ */ s(
|
|
24
26
|
h,
|
|
25
27
|
{
|
|
26
28
|
...r,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vendor,seldon.foundation,seldon.components,seldon.patterns,seldon.site;@layer seldon.components{.seldon-descriptive-radio-button-group{border:none;display:flex;flex-direction:column;gap:var(--spacing-sm);margin:0;padding:0}@media(min-width:961px){.seldon-descriptive-radio-button-group{gap:var(--spacing-md)}}.seldon-descriptive-radio-button-group__sr-only{border:0!important;clip:rect(0,0,0,0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
require('./_detail.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),T=require("react"),j=require("../../utils/index.cjs"),r=require("../../_virtual/index2.cjs");;const l=require("../Text/types.cjs"),i=require("../Text/Text.cjs"),u=T.forwardRef(({className:d="",hasWrap:o=!0,label:m,subLabel:t,value:x,variant:s="md",...n},b)=>{const{className:e,..._}=j.getCommonProps(n,"Detail"),c=s==="sm"?l.TextVariants.labelSmall:s==="lg"?l.TextVariants.labelLarge:l.TextVariants.labelMedium,f=s==="sm"?l.TextVariants.labelSmall:s==="lg"?l.TextVariants.bodyLarge:l.TextVariants.labelMedium;return a.jsxs("div",{..._,className:r.default(e,d),...n,ref:b,children:[a.jsxs("div",{className:r.default(`${e}__label-section`,{[`${e}__label--no-wrap`]:!o,[`${e}__label-section--has-sub-label`]:t}),children:[a.jsx(i.default,{variant:c,className:r.default(`${e}__label-section--label`),children:m})," ",t?a.jsx(i.default,{className:`${e}__sub-label`,variant:c,children:t}):null]}),a.jsx("div",{className:`${e}__value`,children:a.jsx(i.default,{variant:f,children:x})})]})});u.displayName="Detail";exports.default=u;
|