@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 e=require("react/jsx-runtime"),x=require("react"),O=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),x=require("react"),O=require("../../_virtual/index2.cjs"),R=require("../../utils/index.cjs"),M=require("../../components/Detail/types.cjs"),k=require("../../components/SeldonImage/SeldonImage.cjs"),s=require("../../components/Text/Text.cjs"),l=require("../../components/Text/types.cjs"),z=require("../../components/DetailList/DetailList.cjs"),F=require("../../components/Detail/Detail.cjs"),h=x.memo(x.forwardRef(({badgeText:j,className:f,children:g,element:N,estimate:t,estimateLabelText:$="Estimate",estimateOnRequestText:i,badgeElement:r,favoriteElement:c,imageAlt:b="Brought to you by Phillips",imageUrl:p="",imageSrcSet:v,imageSizes:S,imageLoading:q,imageFetchPriority:V,imageBlocked:y,lotNumber:T,makerText:m,modelText:d,referenceNumber:o,titleText:u,withdrawnText:n,..._},E)=>{const{className:a,...P}=R.getCommonProps(_,"ObjectTile"),C=N??"a",D=t||i;return e.jsxs(C,{...P,className:O.default(a,f),..._,ref:E,children:[e.jsx(k.default,{alt:b,aspectRatio:"1/1",className:`${a}__img`,objectFit:"contain",src:p,srcSet:v,sizes:S,loading:q,fetchPriority:V,imageBlocked:y}),n?null:e.jsx(s.default,{element:"span",className:`${a}__badge`,variant:l.TextVariants.badgeSmall,children:j}),e.jsxs("div",{className:`${a}__lot-number-like`,children:[e.jsx(s.default,{element:"span",className:`${a}__lot-number`,variant:l.TextVariants.headingSmall,children:T}),r&&e.jsx("div",{className:`${a}__lot-badge`,children:e.jsx(r,{})}),c&&e.jsx(c,{})]}),n?e.jsx(s.default,{element:"span",className:`${a}__withdrawn`,variant:l.TextVariants.headingSmall,children:n}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`${a}__meta`,children:[m?e.jsx(s.default,{element:"span",className:`${a}__maker`,variant:l.TextVariants.headingSmall,children:m}):null,u?e.jsx(s.default,{element:"cite",className:`${a}__title`,variant:l.TextVariants.headingExtraSmall,children:u}):null,o?e.jsx(s.default,{className:`${a}__reference-number`,variant:l.TextVariants.headingExtraSmall,element:"span",children:o}):null,d?e.jsx(s.default,{className:`${a}__model`,variant:l.TextVariants.headingExtraSmall,element:"span",children:d}):null]}),D?e.jsx(z.default,{hasSeparators:!0,className:`${a}__estimate ${a}__section`,variant:M.DetailVariants.sm,children:e.jsx(F.default,{className:`${a}__estimate__label`,label:$,value:t||i,hasWrap:!1})}):null,e.jsx("div",{className:`${a}__section`,children:g})]})]})}));h.displayName="ObjectTile";exports.default=h;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e, Fragment as k } from "react/jsx-runtime";
|
|
2
2
|
import { memo as z, forwardRef as F } from "react";
|
|
3
|
-
import I from "../../_virtual/
|
|
3
|
+
import I from "../../_virtual/index2.js";
|
|
4
4
|
import { getCommonProps as L } from "../../utils/index.js";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import A from "../../components/
|
|
5
|
+
import { DetailVariants as R } from "../../components/Detail/types.js";
|
|
6
|
+
import W from "../../components/SeldonImage/SeldonImage.js";
|
|
7
|
+
import l from "../../components/Text/Text.js";
|
|
8
|
+
import { TextVariants as s } from "../../components/Text/types.js";
|
|
9
|
+
import w from "../../components/DetailList/DetailList.js";
|
|
10
|
+
import A from "../../components/Detail/Detail.js";
|
|
11
11
|
const B = z(
|
|
12
12
|
F(
|
|
13
13
|
({
|
|
@@ -38,7 +38,7 @@ const B = z(
|
|
|
38
38
|
const { className: a, ...x } = L(p, "ObjectTile"), O = $ ?? "a", V = n || t;
|
|
39
39
|
return /* @__PURE__ */ m(O, { ...x, className: I(a, f), ...p, ref: D, children: [
|
|
40
40
|
/* @__PURE__ */ e(
|
|
41
|
-
|
|
41
|
+
W,
|
|
42
42
|
{
|
|
43
43
|
alt: u,
|
|
44
44
|
aspectRatio: "1/1",
|
|
@@ -52,35 +52,35 @@ const B = z(
|
|
|
52
52
|
imageBlocked: P
|
|
53
53
|
}
|
|
54
54
|
),
|
|
55
|
-
i ? null : /* @__PURE__ */ e(
|
|
55
|
+
i ? null : /* @__PURE__ */ e(l, { element: "span", className: `${a}__badge`, variant: s.badgeSmall, children: N }),
|
|
56
56
|
/* @__PURE__ */ m("div", { className: `${a}__lot-number-like`, children: [
|
|
57
|
-
/* @__PURE__ */ e(
|
|
57
|
+
/* @__PURE__ */ e(l, { element: "span", className: `${a}__lot-number`, variant: s.headingSmall, children: C }),
|
|
58
58
|
r && /* @__PURE__ */ e("div", { className: `${a}__lot-badge`, children: /* @__PURE__ */ e(r, {}) }),
|
|
59
59
|
o && /* @__PURE__ */ e(o, {})
|
|
60
60
|
] }),
|
|
61
|
-
i ? /* @__PURE__ */ e(
|
|
61
|
+
i ? /* @__PURE__ */ e(l, { element: "span", className: `${a}__withdrawn`, variant: s.headingSmall, children: i }) : /* @__PURE__ */ m(k, { children: [
|
|
62
62
|
/* @__PURE__ */ m("div", { className: `${a}__meta`, children: [
|
|
63
|
-
c ? /* @__PURE__ */ e(
|
|
64
|
-
h ? /* @__PURE__ */ e(
|
|
63
|
+
c ? /* @__PURE__ */ e(l, { element: "span", className: `${a}__maker`, variant: s.headingSmall, children: c }) : null,
|
|
64
|
+
h ? /* @__PURE__ */ e(l, { element: "cite", className: `${a}__title`, variant: s.headingExtraSmall, children: h }) : null,
|
|
65
65
|
d ? /* @__PURE__ */ e(
|
|
66
|
-
|
|
66
|
+
l,
|
|
67
67
|
{
|
|
68
68
|
className: `${a}__reference-number`,
|
|
69
|
-
variant:
|
|
69
|
+
variant: s.headingExtraSmall,
|
|
70
70
|
element: "span",
|
|
71
71
|
children: d
|
|
72
72
|
}
|
|
73
73
|
) : null,
|
|
74
|
-
_ ? /* @__PURE__ */ e(
|
|
74
|
+
_ ? /* @__PURE__ */ e(l, { className: `${a}__model`, variant: s.headingExtraSmall, element: "span", children: _ }) : null
|
|
75
75
|
] }),
|
|
76
76
|
V ? /* @__PURE__ */ e(
|
|
77
|
-
|
|
77
|
+
w,
|
|
78
78
|
{
|
|
79
79
|
hasSeparators: !0,
|
|
80
80
|
className: `${a}__estimate ${a}__section`,
|
|
81
|
-
variant:
|
|
81
|
+
variant: R.sm,
|
|
82
82
|
children: /* @__PURE__ */ e(
|
|
83
|
-
|
|
83
|
+
A,
|
|
84
84
|
{
|
|
85
85
|
className: `${a}__estimate__label`,
|
|
86
86
|
label: b,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("react"),u=require("../../utils/index.cjs"),_=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("react"),u=require("../../utils/index.cjs"),_=require("../../_virtual/index2.cjs"),f=require("../CountryPicker/CountryPicker.cjs"),j=require("../../components/Input/Input.cjs"),$=require("../CountryPicker/utils.cjs"),I=require("../CountryPicker/constants.cjs"),l=c.forwardRef(({className:p,value:d="",countryCode:h="",handleValueChange:m,label:n="Phone",required:x=!1,error:a,errorText:g,disabled:y=!1,...v},b)=>{const{className:t,...N}=u.getCommonProps(v,"PhoneNumberInput"),[i,C]=c.useState(h||void 0),r=I.countries.find(o=>o.code===i),P=o=>{m?.(o.target.value,i||"")},s=u.useNormalizedInputProps({id:"phone-input",invalid:a,invalidText:g,type:"text"});return e.jsxs("div",{ref:b,className:_.default(`${t}`,p),...N,children:[e.jsxs("div",{className:`${t}__wrapper`,children:[e.jsxs("div",{className:`${t}__country-picker`,children:[e.jsx("input",{type:"hidden",name:"phoneNumber",value:d,"data-testid":"phone-number-hidden-input"}),e.jsx("input",{type:"hidden",name:"phoneCountryCode",value:i||"","data-testid":"phone-country-code-hidden-input"}),e.jsx(f.default,{triggerLabelText:n,triggerAriaLabel:`${n.replace("*","")} country`,triggerDisplayValue:r?`+${$.getSafeCountryCallingCode(r.code)}`:"",hasTriggerError:!!a,modalTitle:"Country code",searchInputLabel:"Search country",searchInputPlaceholder:"Search country",selectButtonLabel:"Select",isPhone:!0,value:r?.code,onChange:C})]}),e.jsx("div",{className:`${t}__input`,children:e.jsx(j.default,{className:`${t}__input-phone`,id:"phone-input",type:"tel",labelText:`${n.replace("*","")} phone`,hideLabel:!0,value:d,onChange:P,required:x,invalid:!!a,disabled:y,invalidText:"","aria-describedby":s.invalidId,maxLength:25})})]}),s.validation?s.validation:e.jsx("p",{className:`${u.px}-input__validation`,children:" "})]})});l.displayName="PhoneNumberInput";exports.default=l;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import b, { forwardRef as _ } from "react";
|
|
3
3
|
import { getCommonProps as P, useNormalizedInputProps as x, px as I } from "../../utils/index.js";
|
|
4
|
-
import $ from "../../_virtual/
|
|
4
|
+
import $ from "../../_virtual/index2.js";
|
|
5
5
|
import L from "../CountryPicker/CountryPicker.js";
|
|
6
6
|
import S from "../../components/Input/Input.js";
|
|
7
7
|
import { getSafeCountryCallingCode as T } from "../CountryPicker/utils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),o=require("react"),u=require("./types.cjs"),A=require("./hooks/useHistoryManagement.cjs"),R=require("../../utils/index.cjs"),B=require("./components/ProgressWizardFooter.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),o=require("react"),u=require("./types.cjs"),A=require("./hooks/useHistoryManagement.cjs"),R=require("../../utils/index.cjs"),B=require("./components/ProgressWizardFooter.cjs"),a=require("./utils.cjs"),T=require("../../components/ProgressIndicator/ProgressIndicator.cjs"),m=o.forwardRef((S,h)=>{const{isFullHeight:x=!0,hideNavigation:d,hideProgressIndicator:C,isEnableHistoryManagement:c=!1,currentStepIndex:t,defaultStepIndex:I,shouldAllowContinue:f=!0,loadingState:b=u.LoadingState.Idle,buttonLabels:P,onBack:y,onCancel:v,onContinue:w,onFormSubmit:z,children:W,...q}=S,{className:r,...L}=R.getCommonProps(q,"ProgressWizard");let l=I;l!==void 0&&t!==void 0&&(console.warn("ProgressWizard: Both defaultStepIndex and currentStepIndex props are provided. defaultStepIndex will be ignored."),l=void 0);const[p,M]=o.useState(l??0),g=o.useCallback(k=>{!d&&!a.isControlled(t)&&M(k)},[d,t]),e=o.useMemo(()=>t??p,[t,p]);c&&a.isControlled(t)&&console.warn("ProgressWizard: History management is disabled in controlled mode (currentStepIndex prop). To enable history management, remove the currentStepIndex prop. You may also import and use the useHistoryManagement hook directly in your controlling component.");const n=o.Children.toArray(W),N=o.useMemo(()=>a.getLabelsFromChildren(n),[n]),j=o.useMemo(()=>a.wrapChildren(n,e,r),[n,e,r]),s=n.length;(!n||s===0)&&console.warn("ProgressWizard: No children provided. At least one child is required to render steps, two for normal behavior."),n[e]||console.warn(`ProgressWizard: currentStepIndex ${e} is out of bounds (0 to ${s-1})`),A.useHistoryManagement({enabled:!a.isControlled(t)&&c,currentStepIndex:e,stepCount:s,setCurrentStepIndex:g});const H=e===0,_=e===s-1,$=j,F={setCurrentStepIndex:g,isFirstStep:H,isLastStep:_,baseClassName:r,shouldAllowContinue:f,isLoading:[u.LoadingState.Loading,u.LoadingState.Submitting].includes(b),labels:P,onContinue:w,onBack:y,onCancel:v,onFormSubmit:z};return i.jsxs("section",{...L,className:`${r}${x?` ${r}--full-height`:""}`,ref:h,"aria-label":"Progress Wizard",children:[C?null:i.jsx(T.default,{totalSteps:s,currentStep:e+1,stepLabels:N}),i.jsx("div",{className:`${r}__content`,children:$}),d?null:i.jsx("div",{className:`${r}__footer`,children:i.jsx(B.ProgressWizardFooter,{...F})})]})});m.displayName="ProgressWizard";exports.default=m;
|
|
@@ -4,8 +4,8 @@ import { LoadingState as l } from "./types.js";
|
|
|
4
4
|
import { useHistoryManagement as T } from "./hooks/useHistoryManagement.js";
|
|
5
5
|
import { getCommonProps as Y } from "../../utils/index.js";
|
|
6
6
|
import { ProgressWizardFooter as D } from "./components/ProgressWizardFooter.js";
|
|
7
|
-
import G from "
|
|
8
|
-
import
|
|
7
|
+
import { isControlled as p, getLabelsFromChildren as G, wrapChildren as J } from "./utils.js";
|
|
8
|
+
import K from "../../components/ProgressIndicator/ProgressIndicator.js";
|
|
9
9
|
const O = B((g, f) => {
|
|
10
10
|
const {
|
|
11
11
|
isFullHeight: S = !0,
|
|
@@ -40,8 +40,8 @@ const O = B((g, f) => {
|
|
|
40
40
|
c && p(r) && console.warn(
|
|
41
41
|
"ProgressWizard: History management is disabled in controlled mode (currentStepIndex prop). To enable history management, remove the currentStepIndex prop. You may also import and use the useHistoryManagement hook directly in your controlling component."
|
|
42
42
|
);
|
|
43
|
-
const o = R.toArray(z), $ = d(() =>
|
|
44
|
-
() =>
|
|
43
|
+
const o = R.toArray(z), $ = d(() => G(o), [o]), H = d(
|
|
44
|
+
() => J(o, e, t),
|
|
45
45
|
[o, e, t]
|
|
46
46
|
), n = o.length;
|
|
47
47
|
(!o || n === 0) && console.warn(
|
|
@@ -73,7 +73,7 @@ const O = B((g, f) => {
|
|
|
73
73
|
ref: f,
|
|
74
74
|
"aria-label": "Progress Wizard",
|
|
75
75
|
children: [
|
|
76
|
-
h ? null : /* @__PURE__ */ s(
|
|
76
|
+
h ? null : /* @__PURE__ */ s(K, { totalSteps: n, currentStep: e + 1, stepLabels: $ }),
|
|
77
77
|
/* @__PURE__ */ s("div", { className: `${t}__content`, children: M }),
|
|
78
78
|
a ? null : /* @__PURE__ */ s("div", { className: `${t}__footer`, children: /* @__PURE__ */ s(D, { ...k }) })
|
|
79
79
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),E=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),E=require("../../_virtual/index2.cjs"),M=require("react"),y=require("../../components/Button/Button.cjs"),N=require("../../components/Button/types.cjs"),g=require("../../providers/SeldonProvider/utils.cjs"),I=require("../../utils/index.cjs"),r=require("./types.cjs"),a=require("../../components/Card/Card.cjs"),R=require("../../components/Card/types.cjs"),L=require("../../utils/constants.cjs"),m=M.forwardRef(({className:f,imageSrc:l,imageAlt:j="Auction Image",auctionType:x,titleText:q,date:h,location:C,badgeText:n,modalButtonOnClick:i,modalButtonText:d,variant:t=r.SaleCardVariants.DEFAULT,children:c,imageDisplay:o=r.SaleCardImageDisplay.LEFT,...u},S)=>{const{className:s,..._}=I.getCommonProps(u,"SaleCard"),$=E.default(s,f,{[`${s}--${t}`]:t,[`${s}--image-${o}`]:o}),p={..._,...u};return e.jsxs(a.default.Root,{ref:S,element:"article",variant:R.CardVariants.default,className:$,...p,children:[l?e.jsx(a.default.Image,{alt:j,src:l}):null,e.jsxs(a.default.Content,{children:[e.jsx(a.default.Eyebrow,{children:x}),e.jsx(a.default.Title,{children:q}),n?e.jsx(a.default.Badge,{children:n}):null,e.jsxs(a.default.Meta,{className:`${s}__info`,children:[e.jsx(a.default.MetaItem,{children:C}),e.jsx(a.default.MetaItem,{children:h}),d&&i&&e.jsx("div",{className:`${s}__modal-link`,children:e.jsx(y.default,{onClick:i,variant:N.ButtonVariants.link,linkSize:"sm",children:d})})]})]}),t!==r.SaleCardVariants.RELATED_SALE_TILE&&c&&e.jsx("div",{className:`${s}__ctas`,children:e.jsx(g.SSRMediaQuery.Media,{greaterThanOrEqual:L.Breakpoints.snwMobile,children:c})})]})});m.displayName="SaleCard";exports.default=m;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import M from "../../_virtual/
|
|
2
|
+
import M from "../../_virtual/index2.js";
|
|
3
3
|
import { forwardRef as L } from "react";
|
|
4
4
|
import g from "../../components/Button/Button.js";
|
|
5
|
+
import { ButtonVariants as k } from "../../components/Button/types.js";
|
|
6
|
+
import { SSRMediaQuery as A } from "../../providers/SeldonProvider/utils.js";
|
|
7
|
+
import { getCommonProps as R } from "../../utils/index.js";
|
|
8
|
+
import { SaleCardImageDisplay as T, SaleCardVariants as f } from "./types.js";
|
|
5
9
|
import a from "../../components/Card/Card.js";
|
|
6
|
-
import { CardVariants as
|
|
7
|
-
import { ButtonVariants as A } from "../../components/Button/types.js";
|
|
8
|
-
import { SSRMediaQuery as R } from "../../providers/SeldonProvider/utils.js";
|
|
9
|
-
import { getCommonProps as T } from "../../utils/index.js";
|
|
10
|
-
import { SaleCardImageDisplay as w, SaleCardVariants as f } from "./types.js";
|
|
10
|
+
import { CardVariants as w } from "../../components/Card/types.js";
|
|
11
11
|
import { Breakpoints as y } from "../../utils/constants.js";
|
|
12
12
|
const P = L(
|
|
13
13
|
({
|
|
@@ -23,14 +23,14 @@ const P = L(
|
|
|
23
23
|
modalButtonText: t,
|
|
24
24
|
variant: o = f.DEFAULT,
|
|
25
25
|
children: n,
|
|
26
|
-
imageDisplay: c =
|
|
26
|
+
imageDisplay: c = T.LEFT,
|
|
27
27
|
...d
|
|
28
28
|
}, _) => {
|
|
29
|
-
const { className: e, ...N } =
|
|
29
|
+
const { className: e, ...N } = R(d, "SaleCard"), $ = M(e, p, {
|
|
30
30
|
[`${e}--${o}`]: o,
|
|
31
31
|
[`${e}--image-${c}`]: c
|
|
32
32
|
}), I = { ...N, ...d };
|
|
33
|
-
return /* @__PURE__ */ m(a.Root, { ref: _, element: "article", variant:
|
|
33
|
+
return /* @__PURE__ */ m(a.Root, { ref: _, element: "article", variant: w.default, className: $, ...I, children: [
|
|
34
34
|
i ? /* @__PURE__ */ r(a.Image, { alt: h, src: i }) : null,
|
|
35
35
|
/* @__PURE__ */ m(a.Content, { children: [
|
|
36
36
|
/* @__PURE__ */ r(a.Eyebrow, { children: C }),
|
|
@@ -39,10 +39,10 @@ const P = L(
|
|
|
39
39
|
/* @__PURE__ */ m(a.Meta, { className: `${e}__info`, children: [
|
|
40
40
|
/* @__PURE__ */ r(a.MetaItem, { children: S }),
|
|
41
41
|
/* @__PURE__ */ r(a.MetaItem, { children: E }),
|
|
42
|
-
t && s && /* @__PURE__ */ r("div", { className: `${e}__modal-link`, children: /* @__PURE__ */ r(g, { onClick: s, variant:
|
|
42
|
+
t && s && /* @__PURE__ */ r("div", { className: `${e}__modal-link`, children: /* @__PURE__ */ r(g, { onClick: s, variant: k.link, linkSize: "sm", children: t }) })
|
|
43
43
|
] })
|
|
44
44
|
] }),
|
|
45
|
-
o !== f.RELATED_SALE_TILE && n && /* @__PURE__ */ r("div", { className: `${e}__ctas`, children: /* @__PURE__ */ r(
|
|
45
|
+
o !== f.RELATED_SALE_TILE && n && /* @__PURE__ */ r("div", { className: `${e}__ctas`, children: /* @__PURE__ */ r(A.Media, { greaterThanOrEqual: y.snwMobile, children: n }) })
|
|
46
46
|
] });
|
|
47
47
|
}
|
|
48
48
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),z=require("react"),A=require("../../utils/index.cjs"),H=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),z=require("react"),A=require("../../utils/index.cjs"),H=require("../../_virtual/index2.cjs"),O=require("../../types/commonTypes.cjs"),x=require("../../providers/SeldonProvider/utils.cjs"),s=require("../../components/Banner/Banner.cjs"),_=require("../../utils/constants.cjs"),h=require("../../components/Countdown/Countdown.cjs"),j=require("../../components/Banner/types.cjs"),D=require("../../components/PageContentWrapper/PageContentWrapper.cjs"),r=require("../../components/Text/types.cjs"),t=require("../../components/Text/Text.cjs"),F=require("../../components/SeldonImage/SeldonImage.cjs"),f=z.forwardRef(({auctionEndTime:n,auctionTitle:i,badgeText:l,imageSrcUrl:v,imageSrcSet:g,imageSizes:S,imageLoading:q,imageFetchPriority:N,location:p,countdownTimerLabel:$,countdownFormatDuration:b,auctionState:M,occurrenceInformation:B,onClick:Q,children:y,className:T,footerElement:V,headerLabel:k,showTimer:c,getCurrentDateTime:w,...d},C)=>{const{className:a,...P}=A.getCommonProps(d,"SaleHeaderBanner"),o=M===O.AuctionStatus.live,u={endDateTime:n,label:$,formatDurationStr:b,getCurrentDateTime:w};return e.jsxs("div",{...P,className:H.default(a,T),...d,ref:C,children:[o&&n&&c?e.jsx(x.SSRMediaQuery.Media,{lessThan:_.Breakpoints.md,children:e.jsx("div",{className:`${a}__stack__countdown`,children:e.jsx(h.default,{...u,showBottomBorder:!1,centerAlign:!0})})}):null,e.jsxs(s.default,{variant:j.BannerVariants.top,children:[e.jsx(s.default.Content,{children:e.jsx(D.default,{children:e.jsxs("div",{className:`${a}__stack`,children:[o&&n&&c?e.jsx(x.SSRMediaQuery.Media,{greaterThanOrEqual:_.Breakpoints.md,children:e.jsx("div",{className:`${a}__stack__countdown`,children:e.jsx(h.default,{...u,centerAlign:!0})})}):null,e.jsx(s.default.Eyebrow,{variant:r.TextVariants.labelMedium,className:`${a}__header-label`,children:k}),e.jsx(s.default.Title,{variant:r.TextVariants.headingLarge,element:"h1",className:`${a}__title`,children:i}),l&&e.jsx(t.default,{variant:r.TextVariants.badge,className:`${a}__badge`,children:l}),e.jsx(t.default,{variant:r.TextVariants.labelMedium,className:`${a}__location`,children:p}),e.jsxs("div",{className:`${a}__occurrence-details`,children:[B.map(({date:m,occurrenceLabel:R})=>e.jsxs("div",{className:`${a}__occurrence-details-text`,children:[e.jsx(t.default,{variant:r.TextVariants.labelMedium,children:R}),e.jsx(t.default,{variant:r.TextVariants.labelMedium,className:`${a}__date`,children:m})]},String(m))),y]}),V]})})}),e.jsx(s.default.Media,{size:j.BannerMediaSize.half,className:`${a}__image`,children:e.jsx(F.default,{aspectRatio:"16/9",src:v,alt:String(i),objectFit:"cover",srcSet:g,sizes:S,loading:q,fetchPriority:N})})]})]})});f.displayName="SaleHeaderBanner";exports.default=f;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as R } from "react";
|
|
3
3
|
import { getCommonProps as D } from "../../utils/index.js";
|
|
4
|
-
import F from "../../_virtual/
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
4
|
+
import F from "../../_virtual/index2.js";
|
|
5
|
+
import { AuctionStatus as O } from "../../types/commonTypes.js";
|
|
6
|
+
import { SSRMediaQuery as p } from "../../providers/SeldonProvider/utils.js";
|
|
7
|
+
import n from "../../components/Banner/Banner.js";
|
|
8
|
+
import { Breakpoints as f } from "../../utils/constants.js";
|
|
9
|
+
import u from "../../components/Countdown/Countdown.js";
|
|
10
|
+
import { BannerVariants as V, BannerMediaSize as q } from "../../components/Banner/types.js";
|
|
11
|
+
import I from "../../components/PageContentWrapper/PageContentWrapper.js";
|
|
8
12
|
import { TextVariants as r } from "../../components/Text/types.js";
|
|
9
13
|
import t from "../../components/Text/Text.js";
|
|
10
|
-
import
|
|
11
|
-
import { SSRMediaQuery as f } from "../../providers/SeldonProvider/utils.js";
|
|
12
|
-
import n from "../../components/Banner/Banner.js";
|
|
13
|
-
import { Breakpoints as u } from "../../utils/constants.js";
|
|
14
|
-
import { BannerVariants as I, BannerMediaSize as L } from "../../components/Banner/types.js";
|
|
14
|
+
import L from "../../components/SeldonImage/SeldonImage.js";
|
|
15
15
|
const Q = R(
|
|
16
16
|
({
|
|
17
17
|
auctionEndTime: l,
|
|
@@ -36,17 +36,17 @@ const Q = R(
|
|
|
36
36
|
getCurrentDateTime: j,
|
|
37
37
|
...c
|
|
38
38
|
}, z) => {
|
|
39
|
-
const { className: a, ...A } = D(c, "SaleHeaderBanner"), d = w ===
|
|
39
|
+
const { className: a, ...A } = D(c, "SaleHeaderBanner"), d = w === O.live, _ = {
|
|
40
40
|
endDateTime: l,
|
|
41
41
|
label: B,
|
|
42
42
|
formatDurationStr: M,
|
|
43
43
|
getCurrentDateTime: j
|
|
44
44
|
};
|
|
45
45
|
return /* @__PURE__ */ i("div", { ...A, className: F(a, x), ...c, ref: z, children: [
|
|
46
|
-
d && l && m ? /* @__PURE__ */ e(
|
|
47
|
-
/* @__PURE__ */ i(n, { variant:
|
|
48
|
-
/* @__PURE__ */ e(n.Content, { children: /* @__PURE__ */ e(
|
|
49
|
-
d && l && m ? /* @__PURE__ */ e(
|
|
46
|
+
d && l && m ? /* @__PURE__ */ e(p.Media, { lessThan: f.md, children: /* @__PURE__ */ e("div", { className: `${a}__stack__countdown`, children: /* @__PURE__ */ e(u, { ..._, showBottomBorder: !1, centerAlign: !0 }) }) }) : null,
|
|
47
|
+
/* @__PURE__ */ i(n, { variant: V.top, children: [
|
|
48
|
+
/* @__PURE__ */ e(n.Content, { children: /* @__PURE__ */ e(I, { children: /* @__PURE__ */ i("div", { className: `${a}__stack`, children: [
|
|
49
|
+
d && l && m ? /* @__PURE__ */ e(p.Media, { greaterThanOrEqual: f.md, children: /* @__PURE__ */ e("div", { className: `${a}__stack__countdown`, children: /* @__PURE__ */ e(u, { ..._, centerAlign: !0 }) }) }) : null,
|
|
50
50
|
/* @__PURE__ */ e(n.Eyebrow, { variant: r.labelMedium, className: `${a}__header-label`, children: y }),
|
|
51
51
|
/* @__PURE__ */ e(n.Title, { variant: r.headingLarge, element: "h1", className: `${a}__title`, children: o }),
|
|
52
52
|
s && /* @__PURE__ */ e(t, { variant: r.badge, className: `${a}__badge`, children: s }),
|
|
@@ -60,8 +60,8 @@ const Q = R(
|
|
|
60
60
|
] }),
|
|
61
61
|
P
|
|
62
62
|
] }) }) }),
|
|
63
|
-
/* @__PURE__ */ e(n.Media, { size:
|
|
64
|
-
|
|
63
|
+
/* @__PURE__ */ e(n.Media, { size: q.half, className: `${a}__image`, children: /* @__PURE__ */ e(
|
|
64
|
+
L,
|
|
65
65
|
{
|
|
66
66
|
aspectRatio: "16/9",
|
|
67
67
|
src: v,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),i=require("react"),o=require("../../utils/index.cjs"),c=require("../../
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),i=require("react"),o=require("../../utils/index.cjs"),c=require("../../_virtual/index2.cjs"),l=require("../../components/Text/Text.cjs"),u=require("../../components/Text/types.cjs"),d=require("../../components/Link/Link.cjs"),a=i.forwardRef(({ctaText:s="View Calendar",ctaLabel:t="Browse Upcoming Sale",className:m,...n},x)=>{const{className:r}=o.getCommonProps(n,"SaleHeaderBanner");return e.jsxs("div",{className:c.default(`${r}__occurrence-details-text`,`${r}__browse-auctions-text`),children:[e.jsx(l.default,{variant:u.TextVariants.labelMedium,children:t}),e.jsx(d.default,{href:"/calendar",children:s})]})});a.displayName="SaleHeaderBrowseAuctions";exports.default=a;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m } from "react";
|
|
3
3
|
import { getCommonProps as i } from "../../utils/index.js";
|
|
4
|
-
import
|
|
4
|
+
import n from "../../_virtual/index2.js";
|
|
5
5
|
import l from "../../components/Text/Text.js";
|
|
6
|
-
import "../../components/
|
|
7
|
-
import
|
|
8
|
-
import d from "../../_virtual/index.js";
|
|
6
|
+
import { TextVariants as c } from "../../components/Text/types.js";
|
|
7
|
+
import d from "../../components/Link/Link.js";
|
|
9
8
|
const f = m(
|
|
10
9
|
({ ctaText: a = "View Calendar", ctaLabel: o = "Browse Upcoming Sale", className: p, ...s }, u) => {
|
|
11
10
|
const { className: e } = i(s, "SaleHeaderBanner");
|
|
12
11
|
return /* @__PURE__ */ t(
|
|
13
12
|
"div",
|
|
14
13
|
{
|
|
15
|
-
className:
|
|
14
|
+
className: n(`${e}__occurrence-details-text`, `${e}__browse-auctions-text`),
|
|
16
15
|
children: [
|
|
17
|
-
/* @__PURE__ */ r(l, { variant:
|
|
18
|
-
/* @__PURE__ */ r(
|
|
16
|
+
/* @__PURE__ */ r(l, { variant: c.labelMedium, children: o }),
|
|
17
|
+
/* @__PURE__ */ r(d, { href: "/calendar", children: a })
|
|
19
18
|
]
|
|
20
19
|
}
|
|
21
20
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),d=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),d=require("../../_virtual/index2.cjs"),m=require("../../utils/index.cjs"),q=require("../../components/Button/Button.cjs"),x=require("react"),f=require("../../components/Button/types.cjs"),N=require("../../components/Text/Text.cjs"),S=require("../../components/Text/types.cjs"),s=x.forwardRef(({className:a,children:i,titleText:n="Never miss a moment",buttonText:o="Subscribe to our newsletter",onSubscribeClick:c,...r},l)=>{const{className:e,...u}=m.getCommonProps(r,"Social");return t.jsxs("div",{ref:l,...u,className:d.default(e,a),...r,children:[t.jsx(N.default,{variant:S.TextVariants.headingSmall,className:`${e}__header`,children:n}),t.jsx(q.default,{onClick:c,variant:f.ButtonVariants.tertiary,className:`${e}__button`,children:o}),i]})});s.displayName="Social";exports.default=s;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import f from "../../_virtual/
|
|
2
|
+
import f from "../../_virtual/index2.js";
|
|
3
3
|
import { getCommonProps as p } from "../../utils/index.js";
|
|
4
4
|
import d from "../../components/Button/Button.js";
|
|
5
5
|
import { forwardRef as u } from "react";
|
|
6
6
|
import { ButtonVariants as N } from "../../components/Button/types.js";
|
|
7
|
-
import
|
|
8
|
-
import x from "../../components/Text/
|
|
7
|
+
import h from "../../components/Text/Text.js";
|
|
8
|
+
import { TextVariants as x } from "../../components/Text/types.js";
|
|
9
9
|
const S = u(
|
|
10
10
|
({
|
|
11
11
|
className: t,
|
|
@@ -17,7 +17,7 @@ const S = u(
|
|
|
17
17
|
}, n) => {
|
|
18
18
|
const { className: r, ...l } = p(o, "Social");
|
|
19
19
|
return /* @__PURE__ */ c("div", { ref: n, ...l, className: f(r, t), ...o, children: [
|
|
20
|
-
/* @__PURE__ */ a(
|
|
20
|
+
/* @__PURE__ */ a(h, { variant: x.headingSmall, className: `${r}__header`, children: e }),
|
|
21
21
|
/* @__PURE__ */ a(d, { onClick: i, variant: N.tertiary, className: `${r}__button`, children: s }),
|
|
22
22
|
m
|
|
23
23
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),E=require("react"),R=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),E=require("react"),R=require("../../_virtual/index2.cjs"),V=require("../../utils/index.cjs"),A=require("../../components/Input/Input.cjs"),B=require("../../components/Button/Button.cjs"),a=require("./types.cjs"),C=require("../../components/Button/types.cjs"),l=require("../../components/Text/Text.cjs"),p=require("../../components/Text/types.cjs");function I(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const L=I(E),g=L.forwardRef(({autoFocus:e=!0,blurb:t,buttonText:n="Sign Up",buttonProps:s,className:u,element:S="form",inputLabelText:b="Enter Your Email Address To Sign Up*",inputPlaceholder:x="example@email.com",title:y="Never Miss A Moment",loadingText:j="Loading...",invalidText:v="",errorText:q="An error occurred. Please try again.",successText:_,privacyText:d="By signing up, you agree to receive email communications from Phillips.",subscriptionState:r=a.SubscriptionState.Default,id:c,...m},h)=>{const{className:o,...N}=V.getCommonProps({id:c,...m},"Subscribe"),T=r===a.SubscriptionState.Invalid,$=r===a.SubscriptionState.Loading,P=r===a.SubscriptionState.Success,M=r===a.SubscriptionState.Error,O={invalid:v,success:_,loading:j,error:q},f=r!==a.SubscriptionState.Default?O[r]:"",w=P||$,D=T||M;return i.jsxs(S,{id:c,...N,className:R.default(o,u),noValidate:!0,ref:h,...m,children:[i.jsx(l.default,{variant:p.TextVariants.headingSmall,className:`${o}__title`,children:y}),t?i.jsx(l.default,{variant:p.TextVariants.bodyMedium,children:t}):null,i.jsx(A.default,{autoFocus:e,className:`${o}__input`,type:"email",name:"email",placeholder:x,labelText:b,invalid:D,invalidText:f,warn:w,warnText:f,required:!0,id:`${c}-input`}),i.jsx(B.default,{className:`${o}__button ${u}`,variant:C.ButtonVariants.secondary,type:"submit",...s,children:n}),d?i.jsx(l.default,{element:"p",children:d}):null]})});g.displayName="Subscribe";exports.default=g;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as I, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as L from "react";
|
|
3
|
-
import M from "../../_virtual/
|
|
3
|
+
import M from "../../_virtual/index2.js";
|
|
4
4
|
import { getCommonProps as V } from "../../utils/index.js";
|
|
5
5
|
import j from "../../components/Input/Input.js";
|
|
6
6
|
import D from "../../components/Button/Button.js";
|
|
7
7
|
import { SubscriptionState as r } from "./types.js";
|
|
8
8
|
import { ButtonVariants as R } from "../../components/Button/types.js";
|
|
9
|
-
import { TextVariants as d } from "../../components/Text/types.js";
|
|
10
9
|
import i from "../../components/Text/Text.js";
|
|
10
|
+
import { TextVariants as d } from "../../components/Text/types.js";
|
|
11
11
|
const U = L.forwardRef(
|
|
12
12
|
({
|
|
13
13
|
autoFocus: u = !0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("react"),m=require("../../utils/index.cjs"),s=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("react"),m=require("../../utils/index.cjs"),s=require("../../_virtual/index2.cjs"),n=require("../../components/Text/Text.cjs"),x=require("../../components/Text/types.cjs"),l=d.forwardRef(({headerText:c,className:u,description:a,...r},i)=>{const{className:t,...o}=m.getCommonProps(r,"TextBanner");return e.jsx("header",{...o,className:s.default(t,u),ref:i,...r,children:e.jsxs("span",{className:s.default(`${t}__content-wrapper`),children:[e.jsx(n.default,{className:`${t}__header-text`,variant:x.TextVariants.displaySmall,children:c}),a?e.jsx(n.default,{element:"p",children:a}):null]})})});l.displayName="TextBanner";exports.default=l;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
3
|
import { getCommonProps as d } from "../../utils/index.js";
|
|
4
|
-
import s from "../../_virtual/
|
|
5
|
-
import { TextVariants as f } from "../../components/Text/types.js";
|
|
4
|
+
import s from "../../_virtual/index2.js";
|
|
6
5
|
import t from "../../components/Text/Text.js";
|
|
6
|
+
import { TextVariants as f } from "../../components/Text/types.js";
|
|
7
7
|
const x = p(
|
|
8
8
|
({ headerText: n, className: o, description: r, ...m }, l) => {
|
|
9
9
|
const { className: e, ...c } = d(m, "TextBanner");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),y=require("react"),r=require("../../utils/index.cjs"),A=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),y=require("react"),r=require("../../utils/index.cjs"),A=require("../../_virtual/index2.cjs"),a=require("./types.cjs"),u=require("../../components/Icon/Icon.cjs"),l=require("../../components/Text/Text.cjs"),d=require("../../components/Text/types.cjs"),m=y.forwardRef(({accountDetailsLinkComponent:g="a",className:h,onLogin:x=r.noOp,authState:o=a.AuthState.LoggedOut,loginLabel:n="Login",accountLabel:s="Account",href:f="/account",disabled:c=!1,...i},j)=>{const{className:t,..._}=r.getCommonProps(i,"UserManagement"),p=o===a.AuthState.LoggedIn,q=o!==a.AuthState.Loading;return e.jsx("div",{..._,className:A.default(t,h),...i,ref:j,children:q&&e.jsx(e.Fragment,{children:p?e.jsxs(g,{"aria-label":typeof s=="string"?s:"Account",className:`${t}__login`,href:f,disabled:c,children:[e.jsx(u.default,{icon:"Account",className:`${t}__account-icon`,height:"100%",width:"100%"}),e.jsx(l.default,{variant:d.TextVariants.bodySmall,children:s})]}):e.jsxs("button",{"aria-label":typeof n=="string"?n:"Login",className:`${t}__login`,onClick:x,disabled:c,children:[e.jsx(u.default,{icon:"Account",className:`${t}__account-icon`,height:"100%",width:"100%"}),e.jsx(l.default,{variant:d.TextVariants.bodySmall,children:n})]})})})});m.displayName="UserManagement";exports.default=m;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as o, Fragment as x, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y } from "react";
|
|
3
3
|
import { getCommonProps as w, noOp as C } from "../../utils/index.js";
|
|
4
|
-
import $ from "../../_virtual/
|
|
4
|
+
import $ from "../../_virtual/index2.js";
|
|
5
5
|
import { AuthState as e } from "./types.js";
|
|
6
|
-
import
|
|
6
|
+
import m from "../../components/Icon/Icon.js";
|
|
7
7
|
import l from "../../components/Text/Text.js";
|
|
8
|
-
import g from "../../components/
|
|
8
|
+
import { TextVariants as g } from "../../components/Text/types.js";
|
|
9
9
|
const v = y(
|
|
10
10
|
({
|
|
11
11
|
accountDetailsLinkComponent: d = "a",
|
|
@@ -27,8 +27,8 @@ const v = y(
|
|
|
27
27
|
href: p,
|
|
28
28
|
disabled: c,
|
|
29
29
|
children: [
|
|
30
|
-
/* @__PURE__ */ o(
|
|
31
|
-
/* @__PURE__ */ o(l, { variant:
|
|
30
|
+
/* @__PURE__ */ o(m, { icon: "Account", className: `${n}__account-icon`, height: "100%", width: "100%" }),
|
|
31
|
+
/* @__PURE__ */ o(l, { variant: g.bodySmall, children: a })
|
|
32
32
|
]
|
|
33
33
|
}
|
|
34
34
|
) : /* @__PURE__ */ s(
|
|
@@ -39,8 +39,8 @@ const v = y(
|
|
|
39
39
|
onClick: h,
|
|
40
40
|
disabled: c,
|
|
41
41
|
children: [
|
|
42
|
-
/* @__PURE__ */ o(
|
|
43
|
-
/* @__PURE__ */ o(l, { variant:
|
|
42
|
+
/* @__PURE__ */ o(m, { icon: "Account", className: `${n}__account-icon`, height: "100%", width: "100%" }),
|
|
43
|
+
/* @__PURE__ */ o(l, { variant: g.bodySmall, children: t })
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
46
|
) }) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),$=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),$=require("../../_virtual/index2.cjs"),g=require("react"),v=require("../../utils/index.cjs"),s=require("../../components/Text/Text.cjs"),t=require("../../components/Text/types.cjs"),q=require("../../components/Link/Link.cjs"),V=require("../../components/Link/types.cjs"),o=g.forwardRef(({className:x,children:r,label:h,sessionTimesLabel:d,sessionTimes:i,viewingTimes:n,viewingTimesLabel:c,location:u,mapLink:m,onClose:p,linkElement:f=q.default,..._},j)=>{const{className:a,...N}=v.getCommonProps(_,"ViewingDetails");return e.jsx("div",{...N,..._,className:$.default(a,x),ref:j,children:e.jsxs("div",{className:`${a}__content`,children:[e.jsx(s.default,{variant:t.TextVariants.headingMedium,className:`${a}__title`,children:h}),r&&e.jsx("div",{className:`${a}__children`,children:r}),d&&e.jsx(s.default,{variant:t.TextVariants.headingSmall,className:`${a}__heading`,children:d}),i&&i.length>0&&i.map(l=>e.jsxs("div",{className:`${a}__session`,children:[l.sessionLabel&&e.jsx(s.default,{variant:t.TextVariants.labelMedium,className:`${a}__label`,children:l.sessionLabel}),l.sessionTime&&e.jsx(s.default,{className:`${a}__text`,children:l.sessionTime})]},`${l.sessionLabel??""}-${l.sessionTime??""}`)),c&&e.jsx(s.default,{variant:t.TextVariants.headingSmall,className:`${a}__heading`,children:c}),n&&n.length>0&&n.map(l=>e.jsx(s.default,{className:`${a}__viewing-time`,children:l},l)),u&&e.jsx(s.default,{className:`${a}__location`,children:u}),m&&e.jsx(s.default,{className:`${a}__map-link`,children:e.jsx(f,{href:m,variant:V.LinkVariants.linkMedium,children:"(Map)"})})]})})});o.displayName="ViewingDetails";exports.default=o;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
2
|
-
import v from "../../_virtual/
|
|
2
|
+
import v from "../../_virtual/index2.js";
|
|
3
3
|
import { forwardRef as x } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import V from "../../components/Link/Link.js";
|
|
6
|
-
import { TextVariants as r } from "../../components/Text/types.js";
|
|
4
|
+
import { getCommonProps as u } from "../../utils/index.js";
|
|
7
5
|
import i from "../../components/Text/Text.js";
|
|
8
|
-
import {
|
|
6
|
+
import { TextVariants as r } from "../../components/Text/types.js";
|
|
7
|
+
import V from "../../components/Link/Link.js";
|
|
8
|
+
import { LinkVariants as b } from "../../components/Link/types.js";
|
|
9
9
|
const k = x(
|
|
10
10
|
({
|
|
11
11
|
className: N,
|
|
@@ -21,7 +21,7 @@ const k = x(
|
|
|
21
21
|
linkElement: $ = V,
|
|
22
22
|
..._
|
|
23
23
|
}, f) => {
|
|
24
|
-
const { className: a, ...g } =
|
|
24
|
+
const { className: a, ...g } = u(_, "ViewingDetails");
|
|
25
25
|
return /* @__PURE__ */ e("div", { ...g, ..._, className: v(a, N), ref: f, children: /* @__PURE__ */ h("div", { className: `${a}__content`, children: [
|
|
26
26
|
/* @__PURE__ */ e(i, { variant: r.headingMedium, className: `${a}__title`, children: p }),
|
|
27
27
|
s && /* @__PURE__ */ e("div", { className: `${a}__children`, children: s }),
|
|
@@ -40,7 +40,7 @@ const k = x(
|
|
|
40
40
|
c && /* @__PURE__ */ e(i, { variant: r.headingSmall, className: `${a}__heading`, children: c }),
|
|
41
41
|
n && n.length > 0 && n.map((l) => /* @__PURE__ */ e(i, { className: `${a}__viewing-time`, children: l }, l)),
|
|
42
42
|
d && /* @__PURE__ */ e(i, { className: `${a}__location`, children: d }),
|
|
43
|
-
o && /* @__PURE__ */ e(i, { className: `${a}__map-link`, children: /* @__PURE__ */ e($, { href: o, variant:
|
|
43
|
+
o && /* @__PURE__ */ e(i, { className: `${a}__map-link`, children: /* @__PURE__ */ e($, { href: o, variant: b.linkMedium, children: "(Map)" }) })
|
|
44
44
|
] }) });
|
|
45
45
|
}
|
|
46
46
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),m=require("react"),b=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),m=require("react"),b=require("../../_virtual/index2.cjs"),E=require("../../utils/index.cjs"),M=require("./ViewingsListCard.cjs"),P=require("../../components/Button/Button.cjs");function R(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const d=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(s,n,d.get?d:{enumerable:!0,get:()=>t[n]})}}return s.default=t,Object.freeze(s)}const r=R(m),D=()=>Math.floor(Math.random()*100)+Date.now(),j=m.forwardRef((t,s)=>{const{cardTitle:n="Viewing Details",className:d,i18n:S={},onAdd:p,onDelete:c,onSave:y,title:N,viewings:u,...h}=t,[l,v]=r.useState(u),[f,a]=r.useState(""),[o,w]=r.useState(),{className:O,...V}=E.getCommonProps(h,"ViewingsList");r.useEffect(()=>{v(u)},[u]);const{addViewingsBtnLabel:$="ADD VIEWINGS"}=S,L=()=>{const e=`${D()}${l?"-"+l.length:""}`;a(e),w(e),p&&p(e)},_=e=>{a(""),typeof c=="function"&&c(e)},q=e=>{a(e),w(l?.find(i=>i.id===e))},x=e=>{y(e)&&a("")},C=()=>{typeof o=="string"?typeof c=="function"&&c(o):f===o?.id&&v(e=>e?.map(i=>i.id===o.id?o:i)),a("")};return m.createElement("div",{ref:s,...V,className:b.default(O,d),key:f,...h},g.jsx("h2",{className:b.default(`${O}__title`),children:N}),l?.map((e,i)=>g.jsx(M.default,{...e,...S,cardTitle:e.location?`${n} ${i+1}`:void 0,isEditState:f===e.id,onCancel:C,onDelete:_,onEdit:()=>q(e.id),onSave:x},`${e.id}`)),g.jsx(P.default,{id:`viewings-list-add-btn-${t.id||D()}`,onClick:L,children:$}))});j.displayName="ViewingsList";exports.default=j;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { forwardRef as R, createElement as k } from "react";
|
|
4
|
-
import w from "../../_virtual/
|
|
4
|
+
import w from "../../_virtual/index2.js";
|
|
5
5
|
import { getCommonProps as x } from "../../utils/index.js";
|
|
6
6
|
import B from "./ViewingsListCard.js";
|
|
7
7
|
import M from "../../components/Button/Button.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),ue=require("react"),ce=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),ue=require("react"),ce=require("../../_virtual/index2.cjs"),p=require("../../utils/index.cjs"),h=require("../../components/Input/Input.cjs"),c=require("../../components/Button/Button.cjs"),o=require("../../components/Button/types.cjs"),oe=require("./ViewingsListCardForm.cjs");function de(n){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(i,r,u.get?u:{enumerable:!0,get:()=>n[r]})}}return i.default=n,Object.freeze(i)}const d=de(ue),f=`${p.px}-viewings-list-card`,fe=({address1:n,address1Label:i,addressUrl:r,addressUrlLabel:u,address2:v,address2Label:$,address3:E,address3Label:O,cancelBtnLabel:C="CANCEL",cardTitle:_="Add New Viewing",deleteBtnLabel:q="DELETE",editBtnLabel:w="EDIT",isEditState:a,enableOnSite:x="false",enableOnSiteToggleLabel:S="Enabled on website",email:V,emailLabel:T="Email",emailLink:k,emailLinkLabel:A="Email Address",emailOn:L="false",emailToggleLabel:N="Include Email Address",id:t,invalidFields:s,location:B,locationLabel:I="Location",onCancel:y,onEdit:m,onDelete:j,onSave:g,previewDates:D,previewDatesLabel:R,previewHours1:z,previewHours1Label:M,previewHours2:P,previewHours2Label:G,previewLabel:H,previewLabelValue:J,previewOn:K,previewToggleLabel:Q,saveBtnLabel:U="SAVE DETAILS",viewingLabel:W,viewingLabelValue:X,viewingDates:Y,viewingDatesLabel:Z,viewingHours1:F,viewingHours1Label:ee,viewingHours2:te,viewingHours2Label:ne})=>{const[ae,re]=d.useState(x==="true"),l=d.useRef(null);d.useEffect(()=>{a&&l.current&&l.current.focus()},[a]),d.useEffect(()=>{s&&l.current&&l.current.closest(`.${p.px}-viewings-list-card`)?.querySelector(`.${p.px}-input--invalid input`)?.focus()},[s]);const ie=()=>{typeof y=="function"&&y()},se=()=>{typeof m=="function"&&m()},le=b=>{typeof g=="function"&&g(b)};return e.jsxs("section",{"data-testid":`viewings-list-card-${t}`,id:t,className:ce.default(`${f}`,{[`${f}--edit-state`]:a}),children:[e.jsx("h3",{className:`${f}__title`,children:_}),e.jsx("input",{type:"hidden",name:"id",value:t}),e.jsx(h.default,{ref:l,id:`location-${t}`,defaultValue:B,labelText:I,size:"sm",name:"location",invalid:!!s?.location,invalidText:s?.location,readOnly:!a}),a?e.jsx(oe.default,{address1:n,address1Label:i,addressUrl:r,addressUrlLabel:u,address2:v,address2Label:$,address3:E,address3Label:O,email:V,emailLabel:T,emailLink:k,emailLinkLabel:A,emailOn:L,emailToggleLabel:N,id:t,invalidFields:s,previewDates:D,previewDatesLabel:R,previewHours1:z,previewHours1Label:M,previewHours2:P,previewHours2Label:G,previewLabel:H,previewLabelValue:J,previewOn:K,previewToggleLabel:Q,viewingLabel:W,viewingLabelValue:X,viewingDates:Y,viewingDatesLabel:Z,viewingHours1:F,viewingHours1Label:ee,viewingHours2:te,viewingHours2Label:ne}):null,e.jsx(h.default,{id:`enableOnSite-${t}`,type:"toggle",defaultChecked:x==="true",labelText:S,size:"md",inline:!0,value:"true",name:"enableOnSite",onChange:()=>re(b=>!b),readOnly:!a}),ae?null:e.jsx("input",{type:"hidden",name:"enableOnSite",value:"false"}),e.jsx("hr",{}),e.jsx("div",{className:`${f}__btn-group ${p.px}-button__group`,children:a?e.jsxs(e.Fragment,{children:[e.jsx(c.default,{id:`vlc-save-btn-${t}`,variant:o.ButtonVariants.tertiary,type:"submit",onClick:le,children:U}),e.jsx(c.default,{id:`vlc-cancel-btn-${t}`,variant:o.ButtonVariants.tertiary,type:"button",onClick:ie,children:C})]}):e.jsxs(e.Fragment,{children:[e.jsx(c.default,{id:`vlc-edit-btn-${t}`,variant:o.ButtonVariants.tertiary,type:"button",onClick:se,children:w}),e.jsx(c.default,{id:`vlc-delete-btn-${t}`,variant:o.ButtonVariants.tertiary,type:"button",onClick:()=>typeof j=="function"&&j(t),children:q})]})})]})};exports.default=fe;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as f, jsx as t, Fragment as y } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import ut from "../../_virtual/
|
|
3
|
+
import ut from "../../_virtual/index2.js";
|
|
4
4
|
import { px as c } from "../../utils/index.js";
|
|
5
5
|
import v from "../../components/Input/Input.js";
|
|
6
6
|
import l from "../../components/Button/Button.js";
|