@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 t=require("react/jsx-runtime"),q=require("../../components/Icon/Icon.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),q=require("../../components/Icon/Icon.cjs"),u=require("../../components/Text/Text.cjs"),r=require("../../_virtual/index2.cjs"),b=require("./constants.cjs"),P=require("react"),k=require("../../utils/index.cjs"),w=require("../../components/Input/utils.cjs"),I=require("../../components/Text/types.cjs"),g=P.forwardRef(({labelText:s,ariaLabel:p=s,displayValue:_,onClick:f,hasError:n=!1,errorMsg:x,id:l,className:h,baseClassName:e,variantConfig:$},v)=>{const{isPhone:a,value:o}=$,i=k.useNormalizedInputProps({id:"country-picker-trigger-input",invalid:n,invalidText:x,type:"text"}),c=w.getInputClassNames(),m=i.invalidId,d=a?o:b.countries.filter(y=>y.name===o)?.[0]?.code,j=()=>i.validation?i.validation:t.jsx("p",{className:c.emptyValidation,children:" "});return t.jsxs("div",{className:r.default(`${e}__trigger`,h),children:[t.jsx(u.default,{element:"label",variant:I.TextVariants.labelMedium,className:r.default(`${e}__trigger-label`,c.label,{[`${e}__trigger-label--error`]:n}),id:l?`${l}-label`:void 0,children:s}),t.jsxs("button",{ref:v,type:"button","aria-label":p,"aria-invalid":i.invalid,"aria-describedby":m,className:r.default(`${e}__trigger-btn`,c.input,{[`${e}__trigger-btn--error`]:n,[`${e}__trigger-btn--is-phone`]:a}),onClick:f,"data-testid":"country-picker-trigger",id:l,children:[d&&t.jsx("span",{className:`${e}__trigger-flag`,children:t.jsx("img",{src:`https://flagcdn.com/h20/${d.toLowerCase()}.png`,srcSet:`https://flagcdn.com/h40/${d.toLowerCase()}.png 2x`,alt:`${o} flag`,className:`${e}__trigger-flag-img`})}),t.jsx(u.default,{className:r.default(`${e}__trigger-text`),children:_}),t.jsx("span",{className:r.default(`${e}__trigger-icon`),children:t.jsx(q.default,{icon:"ChevronDown",color:"black-100",width:16,height:16})})]}),!a&&j()]})});g.displayName="CountryPickerTrigger";exports.default=g;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import k from "../../components/Icon/Icon.js";
|
|
3
|
-
import { TextVariants as w } from "../../components/Text/types.js";
|
|
4
3
|
import m from "../../components/Text/Text.js";
|
|
5
|
-
import i from "../../_virtual/
|
|
6
|
-
import { countries as
|
|
7
|
-
import { forwardRef as
|
|
8
|
-
import { useNormalizedInputProps as
|
|
9
|
-
import { getInputClassNames as
|
|
10
|
-
|
|
4
|
+
import i from "../../_virtual/index2.js";
|
|
5
|
+
import { countries as w } from "./constants.js";
|
|
6
|
+
import { forwardRef as I } from "react";
|
|
7
|
+
import { useNormalizedInputProps as P } from "../../utils/index.js";
|
|
8
|
+
import { getInputClassNames as T } from "../../components/Input/utils.js";
|
|
9
|
+
import { TextVariants as N } from "../../components/Text/types.js";
|
|
10
|
+
const V = I(
|
|
11
11
|
({
|
|
12
12
|
labelText: d,
|
|
13
13
|
ariaLabel: s = d,
|
|
@@ -20,18 +20,18 @@ const V = P(
|
|
|
20
20
|
baseClassName: r,
|
|
21
21
|
variantConfig: $
|
|
22
22
|
}, v) => {
|
|
23
|
-
const { isPhone: l, value: a } = $, e =
|
|
23
|
+
const { isPhone: l, value: a } = $, e = P({
|
|
24
24
|
id: "country-picker-trigger-input",
|
|
25
25
|
invalid: n,
|
|
26
26
|
invalidText: u,
|
|
27
27
|
type: "text"
|
|
28
|
-
}), c =
|
|
28
|
+
}), c = T(), y = e.invalidId, g = l ? a : w.filter((b) => b.name === a)?.[0]?.code, x = () => e.validation ? e.validation : /* @__PURE__ */ t("p", { className: c.emptyValidation, children: " " });
|
|
29
29
|
return /* @__PURE__ */ p("div", { className: i(`${r}__trigger`, h), children: [
|
|
30
30
|
/* @__PURE__ */ t(
|
|
31
31
|
m,
|
|
32
32
|
{
|
|
33
33
|
element: "label",
|
|
34
|
-
variant:
|
|
34
|
+
variant: N.labelMedium,
|
|
35
35
|
className: i(`${r}__trigger-label`, c.label, {
|
|
36
36
|
[`${r}__trigger-label--error`]: n
|
|
37
37
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),m=require("../../node_modules/@radix-ui/react-popover/dist/index.cjs"),u=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),m=require("../../node_modules/@radix-ui/react-popover/dist/index.cjs"),u=require("../../_virtual/index2.cjs"),p=require("react"),B=require("../../components/Link/Link.cjs"),G=require("../../utils/index.cjs"),l=require("../../components/Text/Text.cjs"),c=require("../../components/Text/types.cjs"),y=require("../../components/Icon/Icon.cjs"),H=require("../../components/SeldonImage/SeldonImage.cjs"),J=({baseClassName:t,iconSize:n,createFirstListText:i,onClick:s})=>e.jsx("button",{type:"button",className:`${t}__create-variant`,"data-testid":"create-list","aria-label":i,onClick:r=>{r.stopPropagation(),s?.(r)},children:e.jsx("span",{className:u.default(`${t}__empty`,`${t}__empty--create-list`),children:e.jsxs("span",{className:`${t}__empty__content`,children:[e.jsx(y.default,{icon:"Add",width:n,height:n,color:"$gray-75",className:u.default(`${t}__icon`,`${t}__icon-circle`),"aria-hidden":"true"}),e.jsx(l.default,{className:`${t}__text`,variant:c.TextVariants.bodyMedium,children:i})]})})}),g=({baseClassName:t,iconSize:n,text:i,ariaLabel:s,dataTestId:r})=>e.jsx("div",{className:`${t}__media-container`,"data-testid":r,"aria-label":s,role:"region",children:e.jsx("div",{className:u.default(`${t}__empty`,`${t}__empty--bg`),children:e.jsxs("div",{className:`${t}__empty__content`,children:[e.jsx(y.default,{icon:"Favorite",width:n,height:n,color:"$gray-75",className:u.default(`${t}__icon`),"aria-hidden":"true"}),e.jsx(l.default,{className:`${t}__text`,variant:c.TextVariants.bodyMedium,children:i})]})})}),Q=({baseClassName:t,imageRef:n,listAriaLabel:i,name:s,imageSrc:r})=>e.jsx("div",{className:`${t}__media-container`,ref:n,"aria-label":i,"data-testid":"list",role:"region",children:e.jsx(H.default,{alt:s,aspectRatio:"1/1",className:`${t}__media`,objectFit:"contain",src:r,style:{cursor:"pointer"}})}),U=p.memo(p.forwardRef(({id:t,className:n,count:i,name:s,imageSrc:r,variant:x,element:b=B.default,href:N,emptyFavoritesText:L="You have not added any objects to your Favorites yet.",emptyListsText:T="You have not added any objects to your List yet.",createFirstListText:w="Create your first List.",editListText:V="Edit List",deleteListText:q="Delete List",onEdit:M,onDelete:k,formatlotStr:$=(a,h=a===1?"Lot":"Lots")=>`${a} ${h}`,linkClassName:I,iconSize:d=22,menuAriaLabel:E="Manage List",favoritesAriaLabel:P="Favorites",emptyListAriaLabel:R="Empty List",listAriaLabel:F="List",...f},C)=>{const{className:a,...h}=G.getCommonProps({id:t,...f},"FavoritesCollectionTile"),D=p.useRef(null),_=s&&i!==null&&i!==void 0,j=i===0,v=x==="lists",O=x==="create",A=x==="favorites"&&j,Y=_&&j&&v,K=()=>O?e.jsx(J,{baseClassName:a,iconSize:d,createFirstListText:w,onClick:f.onClick}):e.jsxs(b,{href:N,className:u.default(`${a}__media-link`,I),tabIndex:0,children:[A&&e.jsx(g,{baseClassName:a,iconSize:d,text:L,ariaLabel:P,dataTestId:"favorites"}),Y&&e.jsx(g,{baseClassName:a,iconSize:d,text:T,ariaLabel:R,dataTestId:"empty-list"}),!j&&_&&e.jsx(Q,{baseClassName:a,imageRef:D,listAriaLabel:F,name:s,imageSrc:r,iconSize:d})]});return e.jsx("div",{...h,className:u.default(a,n),ref:C,id:t,children:e.jsxs("div",{className:`${a}__content`,children:[e.jsxs("div",{className:`${a}__header`,children:[e.jsxs("div",{className:`${a}__info`,children:[_&&e.jsx(l.default,{element:"span",className:`${a}__count`,variant:c.TextVariants.labelMedium,children:$&&_&&$(i)}),s&&e.jsx(l.default,{element:"h3",className:`${a}__title`,variant:c.TextVariants.bodyMedium,children:s})]}),_&&v&&e.jsxs(m.Root,{children:[e.jsx(m.Trigger,{asChild:!0,children:e.jsx("div",{className:`${a}__actions`,"data-testid":"menu-trigger",tabIndex:0,role:"button","aria-label":E,"aria-haspopup":"menu",onKeyDown:o=>{o.key==="Enter"&&(o.preventDefault(),o.stopPropagation(),o.target.click())},children:e.jsx("div",{className:`${a}__icon-rotate`,children:e.jsx(y.default,{icon:"Icon",width:d,height:d,color:"$gray-75",className:`${a}__icon-button`,"aria-hidden":"true"})})})}),e.jsx(m.Portal,{children:e.jsx(m.Content,{avoidCollisions:!0,collisionPadding:10,sideOffset:5,align:"start",alignOffset:5,className:`${a}__popover-content`,children:e.jsxs("div",{className:`${a}__dropdown`,"data-testid":"dropdown-menu",children:[e.jsx("button",{className:`${a}__dropdown--item`,onClick:o=>M?.(t,o),type:"button",children:e.jsx(l.default,{variant:c.TextVariants.bodyMedium,children:V})}),e.jsx("button",{className:`${a}__dropdown--item`,onClick:o=>k?.(t,o),type:"button",children:e.jsx(l.default,{variant:c.TextVariants.bodyMedium,children:q})})]})})})]})]}),K()]})})}));exports.default=U;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { Root as q, Trigger as B, Portal as G, Content as H } from "../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
3
|
-
import _ from "../../_virtual/
|
|
3
|
+
import _ from "../../_virtual/index2.js";
|
|
4
4
|
import { memo as J, forwardRef as Q, useRef as U } from "react";
|
|
5
|
-
import $ from "../../components/Icon/Icon.js";
|
|
6
5
|
import W from "../../components/Link/Link.js";
|
|
7
|
-
import X from "../../
|
|
8
|
-
import
|
|
9
|
-
import m from "../../components/Text/
|
|
10
|
-
import
|
|
6
|
+
import { getCommonProps as X } from "../../utils/index.js";
|
|
7
|
+
import l from "../../components/Text/Text.js";
|
|
8
|
+
import { TextVariants as m } from "../../components/Text/types.js";
|
|
9
|
+
import $ from "../../components/Icon/Icon.js";
|
|
10
|
+
import Z from "../../components/SeldonImage/SeldonImage.js";
|
|
11
11
|
const S = ({
|
|
12
12
|
baseClassName: e,
|
|
13
13
|
iconSize: r,
|
|
@@ -35,7 +35,7 @@ const S = ({
|
|
|
35
35
|
"aria-hidden": "true"
|
|
36
36
|
}
|
|
37
37
|
),
|
|
38
|
-
/* @__PURE__ */ t(
|
|
38
|
+
/* @__PURE__ */ t(l, { className: `${e}__text`, variant: m.bodyMedium, children: a })
|
|
39
39
|
] }) })
|
|
40
40
|
}
|
|
41
41
|
), N = ({
|
|
@@ -56,7 +56,7 @@ const S = ({
|
|
|
56
56
|
"aria-hidden": "true"
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
|
-
/* @__PURE__ */ t(
|
|
59
|
+
/* @__PURE__ */ t(l, { className: `${e}__text`, variant: m.bodyMedium, children: a })
|
|
60
60
|
] }) }) }), z = ({
|
|
61
61
|
baseClassName: e,
|
|
62
62
|
imageRef: r,
|
|
@@ -72,7 +72,7 @@ const S = ({
|
|
|
72
72
|
"data-testid": "list",
|
|
73
73
|
role: "region",
|
|
74
74
|
children: /* @__PURE__ */ t(
|
|
75
|
-
|
|
75
|
+
Z,
|
|
76
76
|
{
|
|
77
77
|
alt: o,
|
|
78
78
|
aspectRatio: "1/1",
|
|
@@ -112,7 +112,7 @@ const S = ({
|
|
|
112
112
|
listAriaLabel: j = "List",
|
|
113
113
|
...f
|
|
114
114
|
}, C) => {
|
|
115
|
-
const { className: i, ...u } =
|
|
115
|
+
const { className: i, ...u } = X({ id: e, ...f }, "FavoritesCollectionTile"), D = U(null), h = o && a !== null && a !== void 0, y = a === 0, g = p === "lists", A = p === "create", O = p === "favorites" && y, Y = h && y && g, K = () => A ? /* @__PURE__ */ t(
|
|
116
116
|
S,
|
|
117
117
|
{
|
|
118
118
|
baseClassName: i,
|
|
@@ -156,8 +156,8 @@ const S = ({
|
|
|
156
156
|
return /* @__PURE__ */ t("div", { ...u, className: _(i, r), ref: C, id: e, children: /* @__PURE__ */ s("div", { className: `${i}__content`, children: [
|
|
157
157
|
/* @__PURE__ */ s("div", { className: `${i}__header`, children: [
|
|
158
158
|
/* @__PURE__ */ s("div", { className: `${i}__info`, children: [
|
|
159
|
-
h && /* @__PURE__ */ t(
|
|
160
|
-
o && /* @__PURE__ */ t(
|
|
159
|
+
h && /* @__PURE__ */ t(l, { element: "span", className: `${i}__count`, variant: m.labelMedium, children: v && h && v(a) }),
|
|
160
|
+
o && /* @__PURE__ */ t(l, { element: "h3", className: `${i}__title`, variant: m.bodyMedium, children: o })
|
|
161
161
|
] }),
|
|
162
162
|
h && g && /* @__PURE__ */ s(q, { children: [
|
|
163
163
|
/* @__PURE__ */ t(B, { asChild: !0, children: /* @__PURE__ */ t(
|
|
@@ -201,7 +201,7 @@ const S = ({
|
|
|
201
201
|
className: `${i}__dropdown--item`,
|
|
202
202
|
onClick: (d) => E?.(e, d),
|
|
203
203
|
type: "button",
|
|
204
|
-
children: /* @__PURE__ */ t(
|
|
204
|
+
children: /* @__PURE__ */ t(l, { variant: m.bodyMedium, children: I })
|
|
205
205
|
}
|
|
206
206
|
),
|
|
207
207
|
/* @__PURE__ */ t(
|
|
@@ -210,7 +210,7 @@ const S = ({
|
|
|
210
210
|
className: `${i}__dropdown--item`,
|
|
211
211
|
onClick: (d) => F?.(e, d),
|
|
212
212
|
type: "button",
|
|
213
|
-
children: /* @__PURE__ */ t(
|
|
213
|
+
children: /* @__PURE__ */ t(l, { variant: m.bodyMedium, children: M })
|
|
214
214
|
}
|
|
215
215
|
)
|
|
216
216
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),s=require("react"),F=require("../../utils/index.cjs"),n=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),s=require("react"),F=require("../../utils/index.cjs"),n=require("../../_virtual/index2.cjs"),N=require("../../components/Filter/Filter.cjs"),i=s.forwardRef(({className:a,children:o,element:u="form",...r},c)=>{const{className:d,...m}=F.getCommonProps(r,"FilterMenu"),[l,p]=s.useState(null),t=l?.length,f=s.Children.map(o,e=>s.isValidElement(e)&&e.type===N.default?s.cloneElement(e,{setViewAllFilter:p,hidden:t?l!==e.props.name:!1,isViewingAll:t,className:t&&n.default(e.props.className,"is-opening")}):e);return g.jsx(u,{...m,...r,className:n.default(d,a),ref:c,children:f})});i.displayName="FilterMenu";exports.default=i;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import d, { forwardRef as F, useState as N, Children as w, cloneElement as g } from "react";
|
|
3
3
|
import { getCommonProps as A } from "../../utils/index.js";
|
|
4
|
-
import a from "../../_virtual/
|
|
4
|
+
import a from "../../_virtual/index2.js";
|
|
5
5
|
import C from "../../components/Filter/Filter.js";
|
|
6
6
|
const V = F(
|
|
7
7
|
({ className: t, children: l, element: i = "form", ...r }, m) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),q=require("../../_virtual/index2.cjs"),p=require("react"),h=require("../../components/Button/Button.cjs"),n=require("../../components/Button/types.cjs"),t=require("../../utils/index.cjs"),j=require("./utils.cjs"),s=require("../../components/Text/Text.cjs"),o=require("../../components/Text/types.cjs"),v=require("../../components/Icon/Icon.cjs"),u=p.forwardRef(({className:c,label:d,onClick:f,isSelected:l,type:e="ChevronDown",count:x,id:i,ariaLabel:b,isMobile:m,totalCount:a},$)=>r.jsxs(h.default,{ref:$,className:q.default(`${t.px}-filter-button`,c,{[`${t.px}-filter-button--selected`]:l||x>0||e==="Filter"&&a>0,[`${t.px}-filter-button--filter`]:e==="Filter"}),"aria-label":b,variant:n.ButtonVariants.secondary,size:n.ButtonSizes.small,"data-testid":`${i}-filter-button`,"data-viewport":m?"mobile":"desktop",onClick:f,children:[r.jsx(s.default,{className:`${t.px}-filter-button__label`,variant:o.TextVariants.labelSmall,"data-testid":`${i}-filter-label`,children:d}),r.jsx(v.default,{icon:j.getIcon(e,l),height:8,width:8,className:`${t.px}__icon`}),a>0&&e==="Filter"&&r.jsx(s.default,{variant:o.TextVariants.labelSmall,className:`${t.px}-filter-button--count`,"data-testid":`${i}-filter-count`,children:a})]}));u.displayName="FilterButton";exports.FilterButton=u;
|
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import { jsxs as u, jsx as
|
|
2
|
-
import $ from "../../_virtual/
|
|
1
|
+
import { jsxs as u, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import $ from "../../_virtual/index2.js";
|
|
3
3
|
import h from "react";
|
|
4
4
|
import x from "../../components/Button/Button.js";
|
|
5
|
-
import {
|
|
6
|
-
import v from "../../components/Icon/Icon.js";
|
|
7
|
-
import { TextVariants as l } from "../../components/Text/types.js";
|
|
8
|
-
import m from "../../components/Text/Text.js";
|
|
5
|
+
import { ButtonSizes as _, ButtonVariants as v } from "../../components/Button/types.js";
|
|
9
6
|
import { px as t } from "../../utils/index.js";
|
|
10
|
-
import { getIcon as
|
|
7
|
+
import { getIcon as B } from "./utils.js";
|
|
8
|
+
import l from "../../components/Text/Text.js";
|
|
9
|
+
import { TextVariants as m } from "../../components/Text/types.js";
|
|
10
|
+
import F from "../../components/Icon/Icon.js";
|
|
11
11
|
const N = h.forwardRef(
|
|
12
|
-
({ className: n, label: s, onClick: f, isSelected:
|
|
12
|
+
({ className: n, label: s, onClick: f, isSelected: o, type: r = "ChevronDown", count: c, id: e, ariaLabel: d, isMobile: b, totalCount: a }, p) => /* @__PURE__ */ u(
|
|
13
13
|
x,
|
|
14
14
|
{
|
|
15
15
|
ref: p,
|
|
16
16
|
className: $(`${t}-filter-button`, n, {
|
|
17
|
-
[`${t}-filter-button--selected`]:
|
|
17
|
+
[`${t}-filter-button--selected`]: o || c > 0 || r === "Filter" && a > 0,
|
|
18
18
|
[`${t}-filter-button--filter`]: r === "Filter"
|
|
19
19
|
}),
|
|
20
20
|
"aria-label": d,
|
|
21
|
-
variant:
|
|
22
|
-
|
|
21
|
+
variant: v.secondary,
|
|
22
|
+
size: _.small,
|
|
23
|
+
"data-testid": `${e}-filter-button`,
|
|
23
24
|
"data-viewport": b ? "mobile" : "desktop",
|
|
24
25
|
onClick: f,
|
|
25
26
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
27
|
+
/* @__PURE__ */ i(
|
|
28
|
+
l,
|
|
28
29
|
{
|
|
29
30
|
className: `${t}-filter-button__label`,
|
|
30
|
-
variant:
|
|
31
|
-
"data-testid": `${
|
|
31
|
+
variant: m.labelSmall,
|
|
32
|
+
"data-testid": `${e}-filter-label`,
|
|
32
33
|
children: s
|
|
33
34
|
}
|
|
34
35
|
),
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
/* @__PURE__ */ i(F, { icon: B(r, o), height: 8, width: 8, className: `${t}__icon` }),
|
|
37
|
+
a > 0 && r === "Filter" && /* @__PURE__ */ i(
|
|
38
|
+
l,
|
|
38
39
|
{
|
|
39
|
-
variant:
|
|
40
|
+
variant: m.labelSmall,
|
|
40
41
|
className: `${t}-filter-button--count`,
|
|
41
|
-
"data-testid": `${
|
|
42
|
-
children:
|
|
42
|
+
"data-testid": `${e}-filter-count`,
|
|
43
|
+
children: a
|
|
43
44
|
}
|
|
44
45
|
)
|
|
45
46
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("../../_virtual/index2.cjs"),w=require("react"),o=require("../../components/Button/Button.cjs"),i=require("../../components/Button/types.cjs"),q=require("../../components/Filter/FilterInput.cjs"),B=require("../../utils/index.cjs"),c=require("./utils.cjs"),h=w.forwardRef(({className:f,buttonType:a,filters:d,filterIndex:u,onSelectFilter:p,onClickClear:x,onApplyFilter:m,resultsCount:b,ariaLabels:j,dropdownMenuTranslation:r},_)=>{const l=a==="Sort",t=`${B.px}-filter-dropdown-menu`,k=c.getFilterDimensions(d,u),D=c.hasActiveDimensions(d,a,u);return e.jsxs("div",{className:n.default(t,f),ref:_,"data-testid":"filter-dropdown-desktop","aria-label":j||`${a} dropdown desktop`,children:[e.jsx("div",{className:n.default(`${t}__filters`),children:k.map(s=>e.jsx(q.default,{id:s.label,labelText:s.label,name:s.label,type:l?"radio":"checkbox",checked:s.active,disabled:s?.disabled,onChange:$=>c.handleInputChange($,a??"",p)},s.label))}),e.jsx("div",{className:n.default(l?`${t}__button-wrap`:`${t}__buttons-wrap`),children:l?e.jsx(o.default,{className:n.default(`${t}__button`),variant:i.ButtonVariants.primary,size:i.ButtonSizes.small,onClick:()=>m?.(!1),children:e.jsx("span",{className:`${t}__button-text`,children:r?.confirm||"Confirm"})}):e.jsxs(e.Fragment,{children:[e.jsx(o.default,{variant:i.ButtonVariants.secondary,size:i.ButtonSizes.small,isDisabled:!D,onClick:()=>x?.(a??""),children:r?.clearAll||"Clear all"}),e.jsx(o.default,{variant:i.ButtonVariants.primary,size:i.ButtonSizes.small,onClick:()=>m?.(!1),children:e.jsx("span",{className:`${t}__button-text`,children:r?.showAuctions||`Show ${b} Auctions`})})]})})]})});h.displayName="FilterDropdownMenuDesktop";exports.FilterDropdownMenuDesktop=h;
|
|
@@ -1,80 +1,74 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { jsxs as h, jsx as e, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import t from "../../_virtual/index2.js";
|
|
3
|
+
import x from "react";
|
|
4
4
|
import l from "../../components/Button/Button.js";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { px as
|
|
8
|
-
import { getFilterDimensions as
|
|
9
|
-
const
|
|
5
|
+
import { ButtonSizes as n, ButtonVariants as m } from "../../components/Button/types.js";
|
|
6
|
+
import F from "../../components/Filter/FilterInput.js";
|
|
7
|
+
import { px as g } from "../../utils/index.js";
|
|
8
|
+
import { getFilterDimensions as v, hasActiveDimensions as z, handleInputChange as A } from "./utils.js";
|
|
9
|
+
const B = x.forwardRef(
|
|
10
10
|
({
|
|
11
|
-
className:
|
|
12
|
-
buttonType:
|
|
13
|
-
filters:
|
|
14
|
-
filterIndex:
|
|
11
|
+
className: f,
|
|
12
|
+
buttonType: a,
|
|
13
|
+
filters: c,
|
|
14
|
+
filterIndex: d,
|
|
15
15
|
onSelectFilter: _,
|
|
16
|
-
onClickClear:
|
|
17
|
-
onApplyFilter:
|
|
18
|
-
resultsCount:
|
|
16
|
+
onClickClear: b,
|
|
17
|
+
onApplyFilter: p,
|
|
18
|
+
resultsCount: k,
|
|
19
19
|
ariaLabels: $,
|
|
20
|
-
dropdownMenuTranslation:
|
|
21
|
-
},
|
|
22
|
-
const
|
|
23
|
-
return /* @__PURE__ */
|
|
20
|
+
dropdownMenuTranslation: r
|
|
21
|
+
}, w) => {
|
|
22
|
+
const o = a === "Sort", s = `${g}-filter-dropdown-menu`, C = v(c, d), D = z(c, a, d);
|
|
23
|
+
return /* @__PURE__ */ h(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
|
-
className:
|
|
27
|
-
ref:
|
|
26
|
+
className: t(s, f),
|
|
27
|
+
ref: w,
|
|
28
28
|
"data-testid": "filter-dropdown-desktop",
|
|
29
|
-
"aria-label": $ || `${
|
|
29
|
+
"aria-label": $ || `${a} dropdown desktop`,
|
|
30
30
|
children: [
|
|
31
|
-
/* @__PURE__ */ e("div", { className:
|
|
32
|
-
|
|
31
|
+
/* @__PURE__ */ e("div", { className: t(`${s}__filters`), children: C.map((i) => /* @__PURE__ */ e(
|
|
32
|
+
F,
|
|
33
33
|
{
|
|
34
|
-
id:
|
|
35
|
-
labelText:
|
|
36
|
-
name:
|
|
37
|
-
type:
|
|
38
|
-
checked:
|
|
39
|
-
disabled:
|
|
40
|
-
onChange: (
|
|
34
|
+
id: i.label,
|
|
35
|
+
labelText: i.label,
|
|
36
|
+
name: i.label,
|
|
37
|
+
type: o ? "radio" : "checkbox",
|
|
38
|
+
checked: i.active,
|
|
39
|
+
disabled: i?.disabled,
|
|
40
|
+
onChange: (N) => A(N, a ?? "", _)
|
|
41
41
|
},
|
|
42
|
-
|
|
42
|
+
i.label
|
|
43
43
|
)) }),
|
|
44
|
-
/* @__PURE__ */ e("div", { className:
|
|
44
|
+
/* @__PURE__ */ e("div", { className: t(o ? `${s}__button-wrap` : `${s}__buttons-wrap`), children: o ? /* @__PURE__ */ e(
|
|
45
45
|
l,
|
|
46
46
|
{
|
|
47
|
-
className:
|
|
48
|
-
variant:
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
className: t(`${s}__button`),
|
|
48
|
+
variant: m.primary,
|
|
49
|
+
size: n.small,
|
|
50
|
+
onClick: () => p?.(!1),
|
|
51
|
+
children: /* @__PURE__ */ e("span", { className: `${s}__button-text`, children: r?.confirm || "Confirm" })
|
|
51
52
|
}
|
|
52
|
-
) : /* @__PURE__ */
|
|
53
|
+
) : /* @__PURE__ */ h(u, { children: [
|
|
53
54
|
/* @__PURE__ */ e(
|
|
54
55
|
l,
|
|
55
56
|
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
variant: m.secondary,
|
|
58
|
+
size: n.small,
|
|
59
|
+
isDisabled: !D,
|
|
60
|
+
onClick: () => b?.(a ?? ""),
|
|
61
|
+
children: r?.clearAll || "Clear all"
|
|
60
62
|
}
|
|
61
63
|
),
|
|
62
|
-
/* @__PURE__ */ e(
|
|
63
|
-
l,
|
|
64
|
-
{
|
|
65
|
-
className: r(`${t}__buttons`),
|
|
66
|
-
variant: n.primary,
|
|
67
|
-
onClick: () => m?.(!1),
|
|
68
|
-
children: /* @__PURE__ */ e("span", { className: `${t}__button-text`, children: s?.showAuctions || `Show ${b} Auctions` })
|
|
69
|
-
}
|
|
70
|
-
)
|
|
64
|
+
/* @__PURE__ */ e(l, { variant: m.primary, size: n.small, onClick: () => p?.(!1), children: /* @__PURE__ */ e("span", { className: `${s}__button-text`, children: r?.showAuctions || `Show ${k} Auctions` }) })
|
|
71
65
|
] }) })
|
|
72
66
|
]
|
|
73
67
|
}
|
|
74
68
|
);
|
|
75
69
|
}
|
|
76
70
|
);
|
|
77
|
-
|
|
71
|
+
B.displayName = "FilterDropdownMenuDesktop";
|
|
78
72
|
export {
|
|
79
|
-
|
|
73
|
+
B as FilterDropdownMenuDesktop
|
|
80
74
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../_virtual/index2.cjs"),B=require("react"),o=require("../../components/Button/Button.cjs"),a=require("../../components/Button/types.cjs"),C=require("../../components/Filter/FilterInput.cjs"),d=require("../../components/Text/Text.cjs"),c=require("../../components/Text/types.cjs"),N=require("../../utils/index.cjs"),u=require("./utils.cjs"),f=B.forwardRef(({className:h,buttonType:s,filters:m,filterIndex:b,onApplyFilter:x,onClickClear:_,onSelectFilter:$,resultsCount:j,ariaLabels:p,dropdownMenuTranslation:r},q)=>{const n=s==="Sort",t=`${N.px}-filter-dropdown-menu`,w=u.getFilterDimensions(m,b),S=u.hasActiveDimensions(m,s,b);return e.jsxs("div",{className:l.default(`${t}`,h,`${t}--mobile`),ref:q,"data-testid":"filter-dropdown-mobile","aria-label":p||`${s} dropdown mobile`,children:[e.jsx("div",{className:l.default(`${t}__filters`,`${t}__filters--mobile`),children:w.map(i=>e.jsx(C.default,{id:i.label,labelText:i.label,name:i.label,type:n?"radio":"checkbox",checked:i.active,disabled:i?.disabled,onChange:v=>u.handleInputChange(v,s??"",$)},i.label))}),e.jsx("div",{className:l.default(n?`${t}__button-wrap`:`${t}__buttons-wrap`,`${t}__mobile-wrap`),children:n?e.jsx(o.default,{className:l.default(`${t}__button`,`${t}__button--mobile`),variant:a.ButtonVariants.primary,size:a.ButtonSizes.small,onClick:()=>x?.(!1),children:e.jsx(d.default,{variant:c.TextVariants.headingMedium,className:`${t}__button-text`,children:r?.confirm||"Confirm"})}):e.jsxs(e.Fragment,{children:[e.jsx(o.default,{variant:a.ButtonVariants.secondary,size:a.ButtonSizes.small,isDisabled:!S,onClick:()=>_?.(s??""),children:e.jsx(d.default,{variant:c.TextVariants.bodySmall,children:r?.clearAll||"Clear all"})}),e.jsx(o.default,{variant:a.ButtonVariants.primary,size:a.ButtonSizes.small,onClick:()=>x?.(!1),children:e.jsx(d.default,{variant:c.TextVariants.bodySmall,className:`${t}__button-text`,children:r?.showAuctions||`Show ${j} Auctions`})})]})})]})});f.displayName="FilterDropdownMenuMobile";exports.FilterDropdownMenuMobile=f;
|
|
@@ -1,90 +1,76 @@
|
|
|
1
|
-
import { jsxs as _, jsx as e, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as _, jsx as e, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import t from "../../_virtual/index2.js";
|
|
3
3
|
import g from "react";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
4
|
+
import s from "../../components/Button/Button.js";
|
|
5
|
+
import { ButtonSizes as m, ButtonVariants as n } from "../../components/Button/types.js";
|
|
6
6
|
import k from "../../components/Filter/FilterInput.js";
|
|
7
|
-
import
|
|
8
|
-
import { TextVariants as
|
|
9
|
-
import { px as
|
|
10
|
-
import { getFilterDimensions as
|
|
11
|
-
const
|
|
7
|
+
import c from "../../components/Text/Text.js";
|
|
8
|
+
import { TextVariants as d } from "../../components/Text/types.js";
|
|
9
|
+
import { px as F } from "../../utils/index.js";
|
|
10
|
+
import { getFilterDimensions as z, hasActiveDimensions as A, handleInputChange as B } from "./utils.js";
|
|
11
|
+
const M = g.forwardRef(
|
|
12
12
|
({
|
|
13
|
-
className:
|
|
14
|
-
buttonType:
|
|
15
|
-
filters:
|
|
16
|
-
filterIndex:
|
|
17
|
-
onApplyFilter:
|
|
13
|
+
className: p,
|
|
14
|
+
buttonType: r,
|
|
15
|
+
filters: b,
|
|
16
|
+
filterIndex: f,
|
|
17
|
+
onApplyFilter: h,
|
|
18
18
|
onClickClear: $,
|
|
19
|
-
onSelectFilter:
|
|
20
|
-
resultsCount:
|
|
19
|
+
onSelectFilter: u,
|
|
20
|
+
resultsCount: w,
|
|
21
21
|
ariaLabels: x,
|
|
22
|
-
dropdownMenuTranslation:
|
|
23
|
-
},
|
|
24
|
-
const
|
|
22
|
+
dropdownMenuTranslation: l
|
|
23
|
+
}, C) => {
|
|
24
|
+
const o = r === "Sort", i = `${F}-filter-dropdown-menu`, N = z(b, f), v = A(b, r, f);
|
|
25
25
|
return /* @__PURE__ */ _(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
|
-
className:
|
|
29
|
-
ref:
|
|
28
|
+
className: t(`${i}`, p, `${i}--mobile`),
|
|
29
|
+
ref: C,
|
|
30
30
|
"data-testid": "filter-dropdown-mobile",
|
|
31
|
-
"aria-label": x || `${
|
|
31
|
+
"aria-label": x || `${r} dropdown mobile`,
|
|
32
32
|
children: [
|
|
33
|
-
/* @__PURE__ */ e("div", { className:
|
|
33
|
+
/* @__PURE__ */ e("div", { className: t(`${i}__filters`, `${i}__filters--mobile`), children: N.map((a) => /* @__PURE__ */ e(
|
|
34
34
|
k,
|
|
35
35
|
{
|
|
36
|
-
id:
|
|
37
|
-
labelText:
|
|
38
|
-
name:
|
|
39
|
-
type:
|
|
40
|
-
checked:
|
|
41
|
-
disabled:
|
|
42
|
-
onChange: (
|
|
36
|
+
id: a.label,
|
|
37
|
+
labelText: a.label,
|
|
38
|
+
name: a.label,
|
|
39
|
+
type: o ? "radio" : "checkbox",
|
|
40
|
+
checked: a.active,
|
|
41
|
+
disabled: a?.disabled,
|
|
42
|
+
onChange: (D) => B(D, r ?? "", u)
|
|
43
43
|
},
|
|
44
|
-
|
|
44
|
+
a.label
|
|
45
45
|
)) }),
|
|
46
46
|
/* @__PURE__ */ e(
|
|
47
47
|
"div",
|
|
48
48
|
{
|
|
49
|
-
className:
|
|
50
|
-
|
|
51
|
-
`${
|
|
49
|
+
className: t(
|
|
50
|
+
o ? `${i}__button-wrap` : `${i}__buttons-wrap`,
|
|
51
|
+
`${i}__mobile-wrap`
|
|
52
52
|
),
|
|
53
|
-
children:
|
|
54
|
-
|
|
53
|
+
children: o ? /* @__PURE__ */ e(
|
|
54
|
+
s,
|
|
55
55
|
{
|
|
56
|
-
className:
|
|
57
|
-
variant:
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
className: t(`${i}__button`, `${i}__button--mobile`),
|
|
57
|
+
variant: n.primary,
|
|
58
|
+
size: m.small,
|
|
59
|
+
onClick: () => h?.(!1),
|
|
60
|
+
children: /* @__PURE__ */ e(c, { variant: d.headingMedium, className: `${i}__button-text`, children: l?.confirm || "Confirm" })
|
|
60
61
|
}
|
|
61
|
-
) : /* @__PURE__ */ _(
|
|
62
|
+
) : /* @__PURE__ */ _(S, { children: [
|
|
62
63
|
/* @__PURE__ */ e(
|
|
63
|
-
|
|
64
|
+
s,
|
|
64
65
|
{
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
)
|
|
70
|
-
variant: m.secondary,
|
|
71
|
-
onClick: () => $?.(o ?? ""),
|
|
72
|
-
children: /* @__PURE__ */ e(s, { variant: c.bodySmall, children: a?.clearAll || "Clear all" })
|
|
66
|
+
variant: n.secondary,
|
|
67
|
+
size: m.small,
|
|
68
|
+
isDisabled: !v,
|
|
69
|
+
onClick: () => $?.(r ?? ""),
|
|
70
|
+
children: /* @__PURE__ */ e(c, { variant: d.bodySmall, children: l?.clearAll || "Clear all" })
|
|
73
71
|
}
|
|
74
72
|
),
|
|
75
|
-
/* @__PURE__ */ e(
|
|
76
|
-
n,
|
|
77
|
-
{
|
|
78
|
-
className: r(
|
|
79
|
-
`${t}__buttons`,
|
|
80
|
-
`${t}__buttons--mobile`,
|
|
81
|
-
`${t}__buttons--right`
|
|
82
|
-
),
|
|
83
|
-
variant: m.primary,
|
|
84
|
-
onClick: () => d?.(!1),
|
|
85
|
-
children: /* @__PURE__ */ e(s, { variant: c.bodySmall, className: `${t}__button-text`, children: a?.showAuctions || `Show ${u} Auctions` })
|
|
86
|
-
}
|
|
87
|
-
)
|
|
73
|
+
/* @__PURE__ */ e(s, { variant: n.primary, size: m.small, onClick: () => h?.(!1), children: /* @__PURE__ */ e(c, { variant: d.bodySmall, className: `${i}__button-text`, children: l?.showAuctions || `Show ${w} Auctions` }) })
|
|
88
74
|
] })
|
|
89
75
|
}
|
|
90
76
|
)
|
|
@@ -93,7 +79,7 @@ const y = g.forwardRef(
|
|
|
93
79
|
);
|
|
94
80
|
}
|
|
95
81
|
);
|
|
96
|
-
|
|
82
|
+
M.displayName = "FilterDropdownMenuMobile";
|
|
97
83
|
export {
|
|
98
|
-
|
|
84
|
+
M as FilterDropdownMenuMobile
|
|
99
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),B=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),B=require("../../_virtual/index2.cjs"),D=require("react"),I=require("../../utils/index.cjs"),N=require("./MainFilterDropdown.cjs"),T=require("./SubFilterDropdown.cjs"),i=D.forwardRef(({id:e,className:m,filtersListState:u,setFiltersLabelListState:a,filters:t,onSelectFilter:l,onApplyFilter:s,onClickClear:b,resultsCount:c,mainFilterLabel:o,dropdownMenuTranslation:d,hideDesktopSortButton:$=!0,...p},q)=>{const{className:x,...j}=I.getCommonProps({id:e,...p},"FiltersInline");return r.jsxs("div",{ref:q,className:B.default(x,m),...j,id:e,children:[r.jsx(N.MainFilterDropdown,{id:`${e}-${o}-button`,filterButtonLabel:o,handleClick:a,filtersListState:u,filters:t,onSelectFilter:l,onApplyFilter:s,onClickClear:b,resultsCount:c,dropdownMenuTranslation:d},`${e}-${o}-button`),t?.map((n,w)=>r.jsx(T.SubFilterDropdown,{id:`${e}-${n.label}-button`,filterButtonLabel:n.label,buttonType:n.buttonType,handleClick:a,filtersListState:u,filterId:w+1,filters:t,onSelectFilter:l,onApplyFilter:s,onClickClear:b,resultsCount:c,filterButtonLabelTranslated:n.filterButtonLabelTranslated,dropdownMenuTranslation:d,hideDesktopSortButton:$},`${e}-${n.label}-button`))]})});i.displayName="FiltersInline";exports.default=i;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import h from "../../_virtual/
|
|
2
|
+
import h from "../../_virtual/index2.js";
|
|
3
3
|
import x from "react";
|
|
4
4
|
import { getCommonProps as T } from "../../utils/index.js";
|
|
5
5
|
import { MainFilterDropdown as j } from "./MainFilterDropdown.js";
|