@phillips/seldon 1.271.0 → 1.273.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/dist/_virtual/index.cjs +1 -1
- package/dist/_virtual/index.js +3 -5
- package/dist/_virtual/index2.cjs +1 -1
- package/dist/_virtual/index2.js +5 -3
- package/dist/components/Accordion/Accordion.cjs +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/AccordionItem.cjs +1 -1
- package/dist/components/Accordion/AccordionItem.js +9 -9
- package/dist/components/Accordion/utils.cjs +1 -1
- package/dist/components/Accordion/utils.js +1 -1
- package/dist/components/AddToCalendar/AddToCalendar.cjs +1 -1
- package/dist/components/AddToCalendar/AddToCalendar.js +19 -20
- package/dist/components/Article/Article.cjs +1 -1
- package/dist/components/Article/Article.js +6 -6
- package/dist/components/Banner/Banner.cjs +1 -1
- package/dist/components/Banner/Banner.js +8 -8
- package/dist/components/Breadcrumb/Breadcrumb.cjs +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/components/Breadcrumb/BreadcrumbItem.cjs +1 -1
- package/dist/components/Breadcrumb/BreadcrumbItem.js +1 -1
- package/dist/components/Button/Button.cjs +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Card/Card.cjs +1 -1
- package/dist/components/Card/Card.js +18 -18
- package/dist/components/Carousel/Carousel.cjs +1 -1
- package/dist/components/Carousel/Carousel.js +4 -4
- package/dist/components/Carousel/CarouselArrows.cjs +1 -1
- package/dist/components/Carousel/CarouselArrows.js +1 -1
- package/dist/components/Carousel/CarouselContent.cjs +1 -1
- package/dist/components/Carousel/CarouselContent.js +1 -1
- package/dist/components/Carousel/CarouselDot.cjs +1 -1
- package/dist/components/Carousel/CarouselDot.js +1 -1
- package/dist/components/Carousel/CarouselDots.cjs +1 -1
- package/dist/components/Carousel/CarouselDots.js +1 -1
- package/dist/components/Carousel/CarouselItem.cjs +1 -1
- package/dist/components/Carousel/CarouselItem.js +1 -1
- package/dist/components/Collapsible/Collapsible.cjs +1 -1
- package/dist/components/Collapsible/Collapsible.js +1 -1
- package/dist/components/Collapsible/CollapsibleContent.cjs +1 -1
- package/dist/components/Collapsible/CollapsibleContent.js +1 -1
- package/dist/components/Collapsible/CollapsibleTrigger.cjs +1 -1
- package/dist/components/Collapsible/CollapsibleTrigger.js +1 -1
- package/dist/components/ComboBox/ComboBox.cjs +1 -1
- package/dist/components/ComboBox/ComboBox.js +139 -224
- package/dist/components/ComposedModal/ComposedModal.cjs +1 -1
- package/dist/components/ComposedModal/ComposedModal.js +8 -8
- package/dist/components/ContentPeek/ContentPeek.cjs +1 -1
- package/dist/components/ContentPeek/ContentPeek.js +3 -3
- package/dist/components/Countdown/Countdown.cjs +1 -1
- package/dist/components/Countdown/Countdown.js +17 -17
- package/dist/components/Countdown/Duration.cjs +1 -1
- package/dist/components/Countdown/Duration.js +4 -4
- package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.cjs +1 -1
- package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +1 -1
- package/dist/components/DescriptiveRadioButtonGroup/DescriptiveRadioButtonGroup.cjs +1 -1
- package/dist/components/DescriptiveRadioButtonGroup/DescriptiveRadioButtonGroup.js +1 -1
- package/dist/components/Detail/Detail.cjs +1 -1
- package/dist/components/Detail/Detail.js +1 -1
- package/dist/components/DetailList/DetailList.cjs +1 -1
- package/dist/components/DetailList/DetailList.js +1 -1
- package/dist/components/Divider/Divider.cjs +1 -1
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Drawer/Drawer.cjs +1 -1
- package/dist/components/Drawer/Drawer.js +1 -1
- package/dist/components/Drawer/DrawerHeader.cjs +1 -1
- package/dist/components/Drawer/DrawerHeader.js +4 -4
- package/dist/components/Dropdown/Dropdown.cjs +1 -1
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/ExitGateCard/ExitGateCard.cjs +1 -1
- package/dist/components/ExitGateCard/ExitGateCard.js +19 -20
- package/dist/components/FavoritingTileButton/FavoritingTileButton.cjs +1 -1
- package/dist/components/FavoritingTileButton/FavoritingTileButton.js +1 -1
- package/dist/components/Filter/Filter.cjs +1 -1
- package/dist/components/Filter/Filter.js +5 -5
- package/dist/components/Filter/FilterHeader.cjs +1 -1
- package/dist/components/Filter/FilterHeader.js +6 -6
- package/dist/components/Grid/Grid.cjs +1 -1
- package/dist/components/Grid/Grid.js +1 -1
- package/dist/components/Grid/utils.cjs +1 -1
- package/dist/components/Grid/utils.js +1 -1
- package/dist/components/GridItem/GridItem.cjs +1 -1
- package/dist/components/GridItem/GridItem.js +1 -1
- package/dist/components/Icon/Icon.cjs +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/IconButton/IconButton.cjs +1 -1
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.cjs +1 -1
- package/dist/components/Input/Input.js +6 -6
- package/dist/components/Input/utils.cjs +1 -1
- package/dist/components/Input/utils.js +2 -100
- package/dist/components/Link/Link.cjs +1 -1
- package/dist/components/Link/Link.js +1 -1
- package/dist/components/Link/types.cjs +1 -1
- package/dist/components/Link/types.js +0 -1
- package/dist/components/LinkBlock/LinkBlock.cjs +1 -1
- package/dist/components/LinkBlock/LinkBlock.js +5 -5
- package/dist/components/LinkList/LinkList.cjs +1 -1
- package/dist/components/LinkList/LinkList.js +1 -1
- package/dist/components/Loader/Loader.cjs +1 -1
- package/dist/components/Loader/Loader.js +1 -1
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.js +18 -18
- package/dist/components/Navigation/Navigation.cjs +1 -1
- package/dist/components/Navigation/Navigation.js +2 -2
- package/dist/components/Navigation/NavigationItem/NavigationItem.cjs +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationItem.js +1 -1
- package/dist/components/Navigation/NavigationItemWithSubmenu/NavigationDesktopSubmenu.cjs +1 -1
- package/dist/components/Navigation/NavigationItemWithSubmenu/NavigationDesktopSubmenu.js +5 -5
- package/dist/components/Navigation/NavigationItemWithSubmenu/NavigationItemWithSubmenu.cjs +1 -1
- package/dist/components/Navigation/NavigationItemWithSubmenu/NavigationItemWithSubmenu.js +8 -8
- package/dist/components/Navigation/NavigationList/NavigationList.cjs +1 -1
- package/dist/components/Navigation/NavigationList/NavigationList.js +1 -1
- package/dist/components/Navigation/NavigationSubmenu/NavigationSubmenu.cjs +1 -1
- package/dist/components/Navigation/NavigationSubmenu/NavigationSubmenu.js +5 -5
- package/dist/components/NotificationBanner/NotificationBanner.cjs +1 -1
- package/dist/components/NotificationBanner/NotificationBanner.js +1 -1
- package/dist/components/PageContentWrapper/PageContentWrapper.cjs +1 -1
- package/dist/components/PageContentWrapper/PageContentWrapper.js +1 -1
- package/dist/components/Pagination/Pagination.cjs +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pictogram/Pictogram.cjs +1 -1
- package/dist/components/Pictogram/Pictogram.js +1 -1
- package/dist/components/PinchZoom/PinchZoom.cjs +1 -1
- package/dist/components/PinchZoom/PinchZoom.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.cjs +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +5 -5
- package/dist/components/ProgressIndicator/ProgressIndicator.cjs +1 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.js +5 -5
- package/dist/components/Row/Row.cjs +1 -1
- package/dist/components/Row/Row.js +1 -1
- package/dist/components/Search/Search.cjs +1 -1
- package/dist/components/Search/Search.js +16 -16
- package/dist/components/SeldonImage/SeldonImage.cjs +1 -1
- package/dist/components/SeldonImage/SeldonImage.js +2 -2
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.js +9 -9
- package/dist/components/SplitPanel/SplitPanel.cjs +1 -1
- package/dist/components/SplitPanel/SplitPanel.js +1 -1
- package/dist/components/Tabs/TabsContainer.cjs +1 -1
- package/dist/components/Tabs/TabsContainer.js +5 -5
- package/dist/components/Tabs/TabsContent.cjs +1 -1
- package/dist/components/Tabs/TabsContent.js +1 -1
- package/dist/components/Tags/Tags.cjs +1 -1
- package/dist/components/Tags/Tags.js +8 -8
- package/dist/components/Text/Text.cjs +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/TextArea/TextArea.cjs +1 -1
- package/dist/components/TextArea/TextArea.js +7 -7
- package/dist/components/TextSymbol/TextSymbol.cjs +1 -1
- package/dist/components/TextSymbol/TextSymbol.js +1 -1
- package/dist/components/Toast/Toast.cjs +1 -1
- package/dist/components/Toast/Toast.js +5 -5
- package/dist/components/Toast/ToastContextProvider.js +3 -3
- package/dist/components/Video/Video.cjs +1 -1
- package/dist/components/Video/Video.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +277 -279
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-popper/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-popper/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +3 -3
- package/dist/node_modules/@radix-ui/react-toast/dist/index.js +3 -3
- package/dist/node_modules/react-zoom-pan-pinch/dist/index.esm.cjs +1 -1
- package/dist/node_modules/react-zoom-pan-pinch/dist/index.esm.js +1 -1
- package/dist/node_modules/usehooks-ts/dist/index.js +3 -3
- package/dist/patterns/AccountPageHeader/AccountPageHeader.cjs +1 -1
- package/dist/patterns/AccountPageHeader/AccountPageHeader.js +8 -8
- package/dist/patterns/BidSnapshot/BidMessage.cjs +1 -1
- package/dist/patterns/BidSnapshot/BidMessage.js +5 -5
- package/dist/patterns/BidSnapshot/BidSnapshot.cjs +1 -1
- package/dist/patterns/BidSnapshot/BidSnapshot.js +12 -13
- package/dist/patterns/CountryPicker/CountryPickerCountryList.cjs +1 -1
- package/dist/patterns/CountryPicker/CountryPickerCountryList.js +4 -4
- package/dist/patterns/CountryPicker/CountryPickerModal.cjs +1 -1
- package/dist/patterns/CountryPicker/CountryPickerModal.js +10 -10
- package/dist/patterns/CountryPicker/CountryPickerOption.cjs +1 -1
- package/dist/patterns/CountryPicker/CountryPickerOption.js +1 -1
- package/dist/patterns/CountryPicker/CountryPickerTrigger.cjs +1 -1
- package/dist/patterns/CountryPicker/CountryPickerTrigger.js +10 -10
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.cjs +1 -1
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +14 -14
- package/dist/patterns/FilterMenu/FilterMenu.cjs +1 -1
- package/dist/patterns/FilterMenu/FilterMenu.js +1 -1
- package/dist/patterns/FiltersInline/FilterButton.cjs +1 -1
- package/dist/patterns/FiltersInline/FilterButton.js +22 -21
- package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.cjs +1 -1
- package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +47 -53
- package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.cjs +1 -1
- package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +51 -65
- package/dist/patterns/FiltersInline/FiltersInline.cjs +1 -1
- package/dist/patterns/FiltersInline/FiltersInline.js +1 -1
- package/dist/patterns/FiltersInline/MainFilterDropdown.cjs +1 -1
- package/dist/patterns/FiltersInline/MainFilterDropdown.js +56 -55
- package/dist/patterns/FiltersInline/SubFilterDropdown.cjs +1 -1
- package/dist/patterns/FiltersInline/SubFilterDropdown.js +76 -76
- package/dist/patterns/FiltersInline/utils.cjs +1 -1
- package/dist/patterns/FiltersInline/utils.d.ts +4 -0
- package/dist/patterns/FiltersInline/utils.js +25 -20
- package/dist/patterns/HeroBanner/HeroBanner.cjs +1 -1
- package/dist/patterns/HeroBanner/HeroBanner.js +5 -5
- package/dist/patterns/LanguageSelector/LanguageSelector.cjs +1 -1
- package/dist/patterns/LanguageSelector/LanguageSelector.js +25 -26
- package/dist/patterns/ObjectTile/ObjectTile.cjs +1 -1
- package/dist/patterns/ObjectTile/ObjectTile.js +19 -19
- package/dist/patterns/PhoneNumberInput/PhoneNumberInput.cjs +1 -1
- package/dist/patterns/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/patterns/ProgressWizard/ProgressWizard.cjs +1 -1
- package/dist/patterns/ProgressWizard/ProgressWizard.js +5 -5
- package/dist/patterns/SaleCard/SaleCard.cjs +1 -1
- package/dist/patterns/SaleCard/SaleCard.js +11 -11
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.cjs +1 -1
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +16 -16
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.cjs +1 -1
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +6 -7
- package/dist/patterns/Social/Social.cjs +1 -1
- package/dist/patterns/Social/Social.js +4 -4
- package/dist/patterns/Subscribe/Subscribe.cjs +1 -1
- package/dist/patterns/Subscribe/Subscribe.js +2 -2
- package/dist/patterns/TextBanner/TextBanner.cjs +1 -1
- package/dist/patterns/TextBanner/TextBanner.js +2 -2
- package/dist/patterns/UserManagement/UserManagement.cjs +1 -1
- package/dist/patterns/UserManagement/UserManagement.js +7 -7
- package/dist/patterns/ViewingDetails/ViewingDetails.cjs +1 -1
- package/dist/patterns/ViewingDetails/ViewingDetails.js +7 -7
- package/dist/patterns/ViewingsList/ViewingsList.cjs +1 -1
- package/dist/patterns/ViewingsList/ViewingsList.js +1 -1
- package/dist/patterns/ViewingsList/ViewingsListCard.cjs +1 -1
- package/dist/patterns/ViewingsList/ViewingsListCard.js +1 -1
- package/dist/patterns/ViewingsList/ViewingsListCardForm.cjs +1 -1
- package/dist/patterns/ViewingsList/ViewingsListCardForm.js +1 -1
- package/dist/providers/SeldonProvider/utils.cjs +1 -1
- package/dist/providers/SeldonProvider/utils.js +1 -1
- package/dist/scss/patterns/FiltersInline/_filterDropdownMenu.scss +86 -27
- package/dist/scss/patterns/FiltersInline/_filtersInline.scss +22 -0
- package/dist/site-furniture/Footer/Footer.cjs +1 -1
- package/dist/site-furniture/Footer/Footer.js +4 -4
- package/dist/site-furniture/Header/Header.cjs +1 -1
- package/dist/site-furniture/Header/Header.js +14 -14
- package/package.json +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),w=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),w=require("../../_virtual/index2.cjs"),Y=require("react"),Z=require("../../utils/index.cjs"),s=require("../../components/Input/Input.cjs");function B(r){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const i in r)if(i!=="default"){const d=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(u,i,d.get?d:{enumerable:!0,get:()=>r[i]})}}return u.default=r,Object.freeze(u)}const v=B(Y),m=`${Z.px}-viewings-list-card-form`,G=({address1:r,address1Label:u="Address ('432 Park Ave', ETC)",addressUrl:i,addressUrlLabel:d="URL for map link ('http://www.website.com')",address2:p,address2Label:c="City, State, Zip ('New York, NY 10019')",address3:b,address3Label:T="Country (United States)",emailOn:g,emailToggleLabel:j="Include Email Address",email:$,emailLabel:H="Email",emailLink:V,emailLinkLabel:O="Email Address",id:t,invalidFields:e,previewDates:h,previewDatesLabel:z="Date(s)",previewHours1:L,previewHours1Label:_="Hours1",previewHours2:D,previewHours2Label:S="Hours2",previewLabel:y="Label ('Preview', 'Opening Night', etc)",previewLabelValue:C,previewOn:o,previewToggleLabel:k="Additional Hours",viewingLabel:E="Label ('Open to public')",viewingLabelValue:N,viewingDates:P,viewingDatesLabel:U="Date(s)",viewingHours1:q,viewingHours1Label:A="Hours1",viewingHours2:R,viewingHours2Label:M="Hours2"})=>{const[l,f]=v.useState(o==="true"),[n,I]=v.useState(g==="true");return v.useEffect(()=>{f(o==="true")},[o]),a.jsxs(a.Fragment,{children:[a.jsx(s.default,{id:`viewingLabel-${t}`,name:"viewingLabelValue",defaultValue:N,labelText:E,size:"sm",invalid:!!e?.viewingLabelValue,invalidText:e?.viewingLabelValue}),a.jsx(s.default,{id:`viewingDates-${t}`,name:"viewingDates",defaultValue:P,labelText:U,size:"sm",invalid:!!e?.viewingDates,invalidText:e?.viewingDates}),a.jsx(s.default,{id:`viewingHours1-${t}`,name:"viewingHours1",defaultValue:q,labelText:A,size:"sm",invalid:!!e?.viewingHours1,invalidText:e?.viewingHours1}),a.jsx(s.default,{id:`viewingHours2-${t}`,name:"viewingHours2",defaultValue:R,labelText:M,size:"sm",invalid:!!e?.viewingHours2,invalidText:e?.viewingHours2}),a.jsx(s.default,{id:`previewOn-${t}`,type:"toggle",labelText:k,size:"md",defaultChecked:l,inline:!0,invalid:!!e?.previewOn,invalidText:e?.previewOn,name:"previewOn",onChange:()=>f(x=>!x)}),l?null:a.jsx("input",{type:"hidden",name:"previewOn",value:"false"}),a.jsxs("div",{className:w.default(`${m}__preview-set`,{[`${m}__preview-set--hidden`]:!l}),children:[a.jsx(s.default,{id:`previewLabel-${t}`,name:"previewLabelValue",defaultValue:C,labelText:y,size:"sm",invalid:!!e?.previewLabelValue,invalidText:e?.previewLabelValue,hidden:!l}),a.jsx(s.default,{id:`previewDates-${t}`,name:"previewDates",defaultValue:h,labelText:z,size:"sm",invalid:!!e?.previewDates,invalidText:e?.previewDates,hidden:!l}),a.jsx(s.default,{id:`previewHours1-${t}`,name:"previewHours1",defaultValue:L,labelText:_,size:"sm",invalid:!!e?.previewHours1,invalidText:e?.previewHours1,hidden:!l}),a.jsx(s.default,{id:`previewHours2-${t}`,name:"previewHours2",defaultValue:D,labelText:S,size:"sm",invalid:!!e?.previewHours2,invalidText:e?.previewHours2,hidden:!l})]}),a.jsx(s.default,{id:`address1-${t}`,name:"address1",defaultValue:r,labelText:u,size:"sm",invalid:!!e?.address1,invalidText:e?.address1}),a.jsx(s.default,{id:`address2-${t}`,name:"address2",defaultValue:p,labelText:c,size:"sm",invalid:!!e?.address2,invalidText:e?.address2}),a.jsx(s.default,{id:`address3-${t}`,name:"address3",defaultValue:b,labelText:T,size:"sm",invalid:!!e?.address3,invalidText:e?.address3}),a.jsx(s.default,{id:`addressUrl-${t}`,name:"addressUrl",defaultValue:i,labelText:d,size:"sm",type:"url",invalid:!!e?.addressUrl,invalidText:e?.addressUrl}),a.jsx(s.default,{id:`emailOn-${t}`,type:"toggle",labelText:j,size:"md",defaultChecked:n,inline:!0,invalid:!!e?.emailOn,invalidText:e?.emailOn,name:"emailOn",onChange:()=>I(x=>!x)}),n?null:a.jsx("input",{type:"hidden",name:"emailOn",value:"false"}),a.jsxs("div",{className:w.default(`${m}__preview-set`,{[`${m}__preview-set--hidden`]:!n}),children:[a.jsx(s.default,{id:`email-${t}`,name:"email",defaultValue:$,labelText:H,size:"sm",invalid:!!e?.address2,invalidText:e?.address2,hidden:!n}),a.jsx(s.default,{id:`emailLink-${t}`,name:"emailLink",defaultValue:V,labelText:O,size:"sm",invalid:!!e?.address3,invalidText:e?.address3,hidden:!n})]})]})};exports.default=G;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as d, Fragment as B, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import w from "../../_virtual/
|
|
2
|
+
import w from "../../_virtual/index2.js";
|
|
3
3
|
import * as m from "react";
|
|
4
4
|
import { px as G } from "../../utils/index.js";
|
|
5
5
|
import s from "../../components/Input/Input.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/index.cjs"),r=require("../../utils/constants.cjs"),e=t.distExports.createMedia({breakpoints:r.BREAKPOINTS}),s=e.createMediaStyle();exports.SSRMediaQuery=e;exports.ssrMediaQueryStyle=s;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
@use '../../allPartials' as *;
|
|
2
2
|
|
|
3
3
|
$dropdown-height: 240px;
|
|
4
|
+
$dropdown-width: 320px;
|
|
4
5
|
|
|
5
6
|
.#{$px}-filter-dropdown-menu {
|
|
6
7
|
background: $white-100;
|
|
7
|
-
border-radius: $radius-
|
|
8
|
+
border-radius: $radius-xs;
|
|
8
9
|
box-shadow: 0 4px 6px $medium-gray;
|
|
9
10
|
display: flex;
|
|
10
11
|
flex-direction: column;
|
|
11
|
-
min-width: 100%;
|
|
12
12
|
padding: $spacing-sm 0;
|
|
13
|
+
width: $dropdown-width;
|
|
13
14
|
|
|
14
15
|
&__filters {
|
|
15
16
|
display: flex;
|
|
@@ -37,6 +38,17 @@ $dropdown-height: 240px;
|
|
|
37
38
|
justify-content: space-between;
|
|
38
39
|
padding: $spacing-sm $spacing-sm 0 $spacing-sm;
|
|
39
40
|
|
|
41
|
+
> .#{$px}-button {
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
flex: 1 1 0;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
margin: 0;
|
|
46
|
+
max-width: none;
|
|
47
|
+
min-width: 0;
|
|
48
|
+
text-align: center;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
|
|
40
52
|
&--drawer {
|
|
41
53
|
box-shadow: 0 -4px 8px -4px $medium-gray;
|
|
42
54
|
display: flex;
|
|
@@ -50,6 +62,7 @@ $dropdown-height: 240px;
|
|
|
50
62
|
|
|
51
63
|
&__mobile-wrap {
|
|
52
64
|
box-shadow: 0 -4px 8px -4px $medium-gray;
|
|
65
|
+
padding-bottom: calc(#{$spacing-sm} + env(safe-area-inset-bottom));
|
|
53
66
|
}
|
|
54
67
|
|
|
55
68
|
&__header {
|
|
@@ -76,37 +89,14 @@ $dropdown-height: 240px;
|
|
|
76
89
|
}
|
|
77
90
|
}
|
|
78
91
|
|
|
79
|
-
&__buttons {
|
|
80
|
-
align-items: center;
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: row;
|
|
83
|
-
justify-content: space-between;
|
|
84
|
-
|
|
85
|
-
&--left {
|
|
86
|
-
margin-left: auto;
|
|
87
|
-
margin-right: 0;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&--right {
|
|
91
|
-
margin-left: 0;
|
|
92
|
-
margin-right: auto;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&--mobile {
|
|
96
|
-
display: block;
|
|
97
|
-
margin-bottom: $spacing-md;
|
|
98
|
-
margin-top: $spacing-sm;
|
|
99
|
-
width: 45%;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
92
|
&__button-text {
|
|
104
93
|
color: $white-100;
|
|
105
94
|
}
|
|
106
95
|
|
|
107
96
|
&--mobile {
|
|
108
|
-
border-radius: $radius-
|
|
97
|
+
border-radius: $radius-xs $radius-xs 0 0;
|
|
109
98
|
box-shadow: none;
|
|
99
|
+
height: 100%;
|
|
110
100
|
padding: 0;
|
|
111
101
|
width: 100vw;
|
|
112
102
|
}
|
|
@@ -131,7 +121,37 @@ $dropdown-height: 240px;
|
|
|
131
121
|
}
|
|
132
122
|
.#{$px}-input__input[type='checkbox'] {
|
|
133
123
|
align-self: center;
|
|
124
|
+
appearance: none;
|
|
125
|
+
background: $bg-default;
|
|
126
|
+
border: 1px solid $bg-inverted;
|
|
127
|
+
border-radius: $radius-xs;
|
|
128
|
+
display: grid;
|
|
129
|
+
height: 16px;
|
|
130
|
+
margin-bottom: 0;
|
|
134
131
|
margin-left: auto;
|
|
132
|
+
padding: 0;
|
|
133
|
+
place-content: center;
|
|
134
|
+
width: 16px;
|
|
135
|
+
|
|
136
|
+
&::after {
|
|
137
|
+
background: $text-inverted;
|
|
138
|
+
content: '';
|
|
139
|
+
height: 11px;
|
|
140
|
+
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");
|
|
141
|
+
mask-position: center;
|
|
142
|
+
mask-repeat: no-repeat;
|
|
143
|
+
mask-size: 16px 11px;
|
|
144
|
+
opacity: 0;
|
|
145
|
+
width: 16px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&:checked {
|
|
149
|
+
background: $bg-inverted;
|
|
150
|
+
|
|
151
|
+
&::after {
|
|
152
|
+
opacity: 1;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
135
155
|
}
|
|
136
156
|
}
|
|
137
157
|
|
|
@@ -140,5 +160,44 @@ $dropdown-height: 240px;
|
|
|
140
160
|
}
|
|
141
161
|
|
|
142
162
|
.#{$px}-filter-drawer-mobile {
|
|
163
|
+
height: min(70dvh, 640px);
|
|
143
164
|
padding: 0;
|
|
165
|
+
|
|
166
|
+
.#{$px}-drawer__content {
|
|
167
|
+
flex: 1 1 auto;
|
|
168
|
+
height: auto;
|
|
169
|
+
min-height: 0;
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.#{$px}-filter-dropdown-menu--mobile {
|
|
174
|
+
min-height: 0;
|
|
175
|
+
overflow: hidden;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.#{$px}-filter-dropdown-menu__filters--mobile {
|
|
179
|
+
flex: 1 1 auto;
|
|
180
|
+
max-height: none;
|
|
181
|
+
min-height: 0;
|
|
182
|
+
overflow-y: auto;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.#{$px}-filter-dropdown-menu__mobile-wrap {
|
|
186
|
+
flex: 0 0 auto;
|
|
187
|
+
margin-top: 0;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.#{$px}-filter-drawer {
|
|
192
|
+
.#{$px}-filter-drawer-menu {
|
|
193
|
+
flex: 1 1 auto;
|
|
194
|
+
min-height: 0;
|
|
195
|
+
overflow-y: auto;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.#{$px}-filter-dropdown-menu__buttons-wrap--drawer {
|
|
199
|
+
flex: 0 0 auto;
|
|
200
|
+
margin-top: auto;
|
|
201
|
+
overflow: visible;
|
|
202
|
+
}
|
|
144
203
|
}
|
|
@@ -4,6 +4,28 @@
|
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-wrap: wrap;
|
|
6
6
|
gap: $spacing-sm;
|
|
7
|
+
|
|
8
|
+
// Desktop: align the Sort filter (and anything following it) to the right of the filter row.
|
|
9
|
+
@include media($breakpoint-md) {
|
|
10
|
+
> .#{$px}-filters-inline__sort {
|
|
11
|
+
margin-left: auto;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Mobile: filter buttons scroll horizontally and overflow off-screen instead of wrapping.
|
|
16
|
+
@include media($breakpoint-md, 'max') {
|
|
17
|
+
flex-wrap: nowrap;
|
|
18
|
+
overflow-x: auto;
|
|
19
|
+
scrollbar-width: none;
|
|
20
|
+
|
|
21
|
+
&::-webkit-scrollbar {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
> * {
|
|
26
|
+
flex: 0 0 auto;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
7
29
|
}
|
|
8
30
|
|
|
9
31
|
.#{$px}-filter-drawer {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("../../_virtual/index2.cjs"),o=require("../../utils/index.cjs"),i=require("../../components/Icon/Icon.cjs"),u=require("../../components/Text/Text.cjs"),x=require("../../components/Text/types.cjs"),f=({children:l,className:a,copyright:n=`© ${o.defaultYear} Phillips Auctioneers, LLC`,id:t,logoHref:s="/",logoLinkComponent:c})=>{const r=c;return e.jsxs("footer",{"data-testid":t||"footer",id:t,className:d.default(`${o.px}-footer`,{className:a}),children:[e.jsx("div",{className:`${o.px}-footer__links`,children:l}),e.jsxs("div",{className:`${o.px}-footer__copyright`,children:[r?e.jsx(r,{href:s,"aria-label":"logoLink","data-testid":"footer-logo",className:`${o.px}-footer__logo`,children:e.jsx(i.default,{icon:"PhillipsLogo",width:"94px"})}):e.jsx("a",{href:s,"aria-label":"logo","data-testid":"footer-logo",className:`${o.px}-footer__logo`,children:e.jsx(i.default,{icon:"PhillipsLogo",width:"94px"})}),e.jsx(u.default,{variant:x.TextVariants.bodySmall,children:n})]})]})};exports.default=f;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import n from "../../_virtual/
|
|
2
|
+
import n from "../../_virtual/index2.js";
|
|
3
3
|
import { px as t, defaultYear as d } from "../../utils/index.js";
|
|
4
|
-
import { TextVariants as p } from "../../components/Text/types.js";
|
|
5
|
-
import h from "../../components/Text/Text.js";
|
|
6
4
|
import l from "../../components/Icon/Icon.js";
|
|
5
|
+
import p from "../../components/Text/Text.js";
|
|
6
|
+
import { TextVariants as h } from "../../components/Text/types.js";
|
|
7
7
|
const u = ({
|
|
8
8
|
children: s,
|
|
9
9
|
className: m,
|
|
@@ -17,7 +17,7 @@ const u = ({
|
|
|
17
17
|
/* @__PURE__ */ o("div", { className: `${t}-footer__links`, children: s }),
|
|
18
18
|
/* @__PURE__ */ i("div", { className: `${t}-footer__copyright`, children: [
|
|
19
19
|
a ? /* @__PURE__ */ o(a, { href: e, "aria-label": "logoLink", "data-testid": "footer-logo", className: `${t}-footer__logo`, children: /* @__PURE__ */ o(l, { icon: "PhillipsLogo", width: "94px" }) }) : /* @__PURE__ */ o("a", { href: e, "aria-label": "logo", "data-testid": "footer-logo", className: `${t}-footer__logo`, children: /* @__PURE__ */ o(l, { icon: "PhillipsLogo", width: "94px" }) }),
|
|
20
|
-
/* @__PURE__ */ o(
|
|
20
|
+
/* @__PURE__ */ o(p, { variant: h.bodySmall, children: c })
|
|
21
21
|
] })
|
|
22
22
|
] });
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),o=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),o=require("../../_virtual/index2.cjs"),t=require("react"),$=require("../../components/Navigation/Navigation.cjs"),S=require("../../patterns/UserManagement/UserManagement.cjs"),G=require("../../providers/SeldonProvider/utils.cjs"),n=require("../../utils/index.cjs"),J=require("./hooks.cjs"),K=require("./utils.cjs"),W=require("../../utils/constants.cjs"),X=require("../../components/Icon/Icon.cjs"),M=require("../../patterns/LanguageSelector/LanguageSelector.cjs"),q=t.createContext(K.defaultHeaderContext),H=t.forwardRef(({logo:d=r.jsx(X.default,{icon:"PhillipsLogo"}),logoHref:u="/",logoLinkComponent:O,className:N,children:i,toggleOpenText:k="Open Menu",toggleCloseText:w="Close Menu",logoText:h="Home Page",disabled:g,bannerRef:l,skipToContentId:m="main",skipLinkLabel:P="Skip to main content",...R},a)=>{const p=n.findChildrenOfType(i,S.default),T=t.isValidElement(p?.[0])?t.cloneElement(p[0],{disabled:g}):"",f=n.findChildrenOfType(i,M.default),x=t.isValidElement(f?.[0])?t.cloneElement(f[0],{disabled:g}):"",[v,z]=t.useState(!1),L=n.findChildrenOfType(i,$.default),I=n.findChildrenExcludingTypes(i,[$.default,S.default,M.default]),{closeMenu:V,handleMenuToggle:A,isMenuOpen:c,toggleText:B}=J.useMobileMenu({toggleOpenText:k,toggleCloseText:w}),[Q,U]=t.useState(null),[_,b]=t.useState(l?.current?l.current.clientHeight:0),E=t.useRef(null);t.useEffect(()=>{const e=l?.current;if(!e)return;b(e.clientHeight);const s=new window.ResizeObserver(()=>{b(e.clientHeight)});return s.observe(e),()=>{s.disconnect()}},[l,_]),t.useEffect(()=>{const e=E.current;if(!e)return;const s=()=>{const F=e.offsetHeight;document.documentElement.style.setProperty("--header-height",`${F}px`)};s();const C=new window.ResizeObserver(s);return C.observe(e),()=>{C.disconnect()}},[]);const D=t.useCallback(e=>{E.current=e,typeof a=="function"?a(e):a&&(a.current=e)},[a]),j=O,y=typeof d=="object"?d:r.jsx("img",{alt:"Phillips","data-testid":"header-logo-img",src:d});return r.jsxs("header",{...R,className:o.default(`${n.px}-header`,N),ref:D,style:{"--banner-height":`${_}px`},children:[m&&r.jsx("a",{href:`#${m}`,className:`${n.px}-header__skip-link`,"data-testid":"skip-to-content",children:P}),r.jsxs("div",{className:`${n.px}-header__top-row`,children:[r.jsx(G.SSRMediaQuery.Media,{greaterThanOrEqual:W.Breakpoints.md,children:x}),r.jsxs("button",{"aria-label":B,"data-testid":"mobile-menu-toggle",type:"button",onClick:A,className:o.default(`${n.px}-header__toggle-btn`,{[`${n.px}-header__toggle-btn--open`]:c}),children:[r.jsx("span",{})," "]}),j?r.jsx(j,{href:u,"aria-label":h,"data-testid":"header-logo",className:`${n.px}-header__logo`,children:y}):r.jsx("a",{href:u,"aria-label":h,"data-testid":"header-logo",className:`${n.px}-header__logo`,children:y}),T]}),r.jsx("div",{className:o.default(`${n.px}-header__nav`,{[`${n.px}-header__nav--closed`]:!c}),children:r.jsxs(q.Provider,{value:{activeSubmenuId:Q,setActiveSubmenuId:U,isMenuOpen:c,isSearchExpanded:v,setIsSearchExpanded:z,closeMenu:V},children:[t.Children.map(L,e=>t.isValidElement(e)?t.cloneElement(e,{children:[...t.Children.toArray(e.props.children),x]}):e),I]})}),r.jsx("div",{className:o.default(`${n.px}-header__overlay`,{[`${n.px}-header__overlay--active`]:v})})]})});H.displayName="Header";exports.HeaderContext=q;exports.default=H;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import c from "../../_virtual/
|
|
3
|
-
import n, {
|
|
4
|
-
import X from "../../components/Icon/Icon.js";
|
|
2
|
+
import c from "../../_virtual/index2.js";
|
|
3
|
+
import n, { forwardRef as K, useState as h, useEffect as N, createContext as W } from "react";
|
|
5
4
|
import w from "../../components/Navigation/Navigation.js";
|
|
6
|
-
import O from "../../patterns/
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
|
|
5
|
+
import O from "../../patterns/UserManagement/UserManagement.js";
|
|
6
|
+
import { SSRMediaQuery as X } from "../../providers/SeldonProvider/utils.js";
|
|
7
|
+
import { findChildrenOfType as u, findChildrenExcludingTypes as Y, px as t } from "../../utils/index.js";
|
|
8
|
+
import { useMobileMenu as Z } from "./hooks.js";
|
|
9
|
+
import { defaultHeaderContext as ee } from "./utils.js";
|
|
10
|
+
import { Breakpoints as te } from "../../utils/constants.js";
|
|
11
|
+
import ne from "../../components/Icon/Icon.js";
|
|
12
|
+
import k from "../../patterns/LanguageSelector/LanguageSelector.js";
|
|
13
|
+
const re = W(ee), ae = K(
|
|
14
14
|
({
|
|
15
|
-
logo: d = /* @__PURE__ */ r(
|
|
15
|
+
logo: d = /* @__PURE__ */ r(ne, { icon: "PhillipsLogo" }),
|
|
16
16
|
logoHref: g = "/",
|
|
17
17
|
logoLinkComponent: P,
|
|
18
18
|
className: R,
|
|
@@ -26,7 +26,7 @@ const re = K(te), ae = W(
|
|
|
26
26
|
skipLinkLabel: j = "Skip to main content",
|
|
27
27
|
...I
|
|
28
28
|
}, a) => {
|
|
29
|
-
const v = u(i,
|
|
29
|
+
const v = u(i, O), T = n.isValidElement(v?.[0]) ? n.cloneElement(v[0], { disabled: f }) : "", b = u(i, k), E = n.isValidElement(b?.[0]) ? n.cloneElement(b[0], { disabled: f }) : "", [$, V] = h(!1), A = u(i, w), B = Y(i, [w, O, k]), { closeMenu: q, handleMenuToggle: Q, isMenuOpen: m, toggleText: U } = Z({
|
|
30
30
|
toggleOpenText: z,
|
|
31
31
|
toggleCloseText: L
|
|
32
32
|
}), [D, F] = h(null), [y, C] = h(s?.current ? s.current.clientHeight : 0), x = n.useRef(null);
|
|
@@ -69,7 +69,7 @@ const re = K(te), ae = W(
|
|
|
69
69
|
children: [
|
|
70
70
|
_ && /* @__PURE__ */ r("a", { href: `#${_}`, className: `${t}-header__skip-link`, "data-testid": "skip-to-content", children: j }),
|
|
71
71
|
/* @__PURE__ */ l("div", { className: `${t}-header__top-row`, children: [
|
|
72
|
-
/* @__PURE__ */ r(
|
|
72
|
+
/* @__PURE__ */ r(X.Media, { greaterThanOrEqual: te.md, children: E }),
|
|
73
73
|
/* @__PURE__ */ l(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phillips/seldon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.273.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/PhillipsAuctionHouse/seldon"
|
|
7
7
|
},
|
|
8
8
|
"type": "module",
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"**/*.scss",
|
|
11
|
+
"**/*.css"
|
|
12
|
+
],
|
|
9
13
|
"main": "./dist/index.cjs",
|
|
10
14
|
"module": "./dist/index.js",
|
|
11
15
|
"types": "./dist/index.d.ts",
|