@phillips/seldon 1.272.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/index10.cjs +1 -1
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index2.cjs +1 -1
- package/dist/_virtual/index2.js +5 -3
- package/dist/_virtual/index9.cjs +1 -1
- package/dist/_virtual/index9.js +2 -2
- 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/ics/dist/index.cjs +1 -1
- package/dist/node_modules/ics/dist/index.js +1 -1
- package/dist/node_modules/ics/dist/schema/index.cjs +1 -1
- package/dist/node_modules/ics/dist/schema/index.js +1 -1
- package/dist/node_modules/ics/dist/utils/index.cjs +1 -1
- package/dist/node_modules/ics/dist/utils/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.cjs +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- 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 +10 -10
- package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.cjs +1 -1
- package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +1 -1
- package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.cjs +1 -1
- package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +1 -1
- 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 +1 -1
- 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/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,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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),w=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),w=require("../../_virtual/index2.cjs"),Y=require("react"),Z=require("../../utils/index.cjs"),s=require("../../components/Input/Input.cjs");function B(r){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const i in r)if(i!=="default"){const d=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(u,i,d.get?d:{enumerable:!0,get:()=>r[i]})}}return u.default=r,Object.freeze(u)}const v=B(Y),m=`${Z.px}-viewings-list-card-form`,G=({address1:r,address1Label:u="Address ('432 Park Ave', ETC)",addressUrl:i,addressUrlLabel:d="URL for map link ('http://www.website.com')",address2:p,address2Label:c="City, State, Zip ('New York, NY 10019')",address3:b,address3Label:T="Country (United States)",emailOn:g,emailToggleLabel:j="Include Email Address",email:$,emailLabel:H="Email",emailLink:V,emailLinkLabel:O="Email Address",id:t,invalidFields:e,previewDates:h,previewDatesLabel:z="Date(s)",previewHours1:L,previewHours1Label:_="Hours1",previewHours2:D,previewHours2Label:S="Hours2",previewLabel:y="Label ('Preview', 'Opening Night', etc)",previewLabelValue:C,previewOn:o,previewToggleLabel:k="Additional Hours",viewingLabel:E="Label ('Open to public')",viewingLabelValue:N,viewingDates:P,viewingDatesLabel:U="Date(s)",viewingHours1:q,viewingHours1Label:A="Hours1",viewingHours2:R,viewingHours2Label:M="Hours2"})=>{const[l,f]=v.useState(o==="true"),[n,I]=v.useState(g==="true");return v.useEffect(()=>{f(o==="true")},[o]),a.jsxs(a.Fragment,{children:[a.jsx(s.default,{id:`viewingLabel-${t}`,name:"viewingLabelValue",defaultValue:N,labelText:E,size:"sm",invalid:!!e?.viewingLabelValue,invalidText:e?.viewingLabelValue}),a.jsx(s.default,{id:`viewingDates-${t}`,name:"viewingDates",defaultValue:P,labelText:U,size:"sm",invalid:!!e?.viewingDates,invalidText:e?.viewingDates}),a.jsx(s.default,{id:`viewingHours1-${t}`,name:"viewingHours1",defaultValue:q,labelText:A,size:"sm",invalid:!!e?.viewingHours1,invalidText:e?.viewingHours1}),a.jsx(s.default,{id:`viewingHours2-${t}`,name:"viewingHours2",defaultValue:R,labelText:M,size:"sm",invalid:!!e?.viewingHours2,invalidText:e?.viewingHours2}),a.jsx(s.default,{id:`previewOn-${t}`,type:"toggle",labelText:k,size:"md",defaultChecked:l,inline:!0,invalid:!!e?.previewOn,invalidText:e?.previewOn,name:"previewOn",onChange:()=>f(x=>!x)}),l?null:a.jsx("input",{type:"hidden",name:"previewOn",value:"false"}),a.jsxs("div",{className:w.default(`${m}__preview-set`,{[`${m}__preview-set--hidden`]:!l}),children:[a.jsx(s.default,{id:`previewLabel-${t}`,name:"previewLabelValue",defaultValue:C,labelText:y,size:"sm",invalid:!!e?.previewLabelValue,invalidText:e?.previewLabelValue,hidden:!l}),a.jsx(s.default,{id:`previewDates-${t}`,name:"previewDates",defaultValue:h,labelText:z,size:"sm",invalid:!!e?.previewDates,invalidText:e?.previewDates,hidden:!l}),a.jsx(s.default,{id:`previewHours1-${t}`,name:"previewHours1",defaultValue:L,labelText:_,size:"sm",invalid:!!e?.previewHours1,invalidText:e?.previewHours1,hidden:!l}),a.jsx(s.default,{id:`previewHours2-${t}`,name:"previewHours2",defaultValue:D,labelText:S,size:"sm",invalid:!!e?.previewHours2,invalidText:e?.previewHours2,hidden:!l})]}),a.jsx(s.default,{id:`address1-${t}`,name:"address1",defaultValue:r,labelText:u,size:"sm",invalid:!!e?.address1,invalidText:e?.address1}),a.jsx(s.default,{id:`address2-${t}`,name:"address2",defaultValue:p,labelText:c,size:"sm",invalid:!!e?.address2,invalidText:e?.address2}),a.jsx(s.default,{id:`address3-${t}`,name:"address3",defaultValue:b,labelText:T,size:"sm",invalid:!!e?.address3,invalidText:e?.address3}),a.jsx(s.default,{id:`addressUrl-${t}`,name:"addressUrl",defaultValue:i,labelText:d,size:"sm",type:"url",invalid:!!e?.addressUrl,invalidText:e?.addressUrl}),a.jsx(s.default,{id:`emailOn-${t}`,type:"toggle",labelText:j,size:"md",defaultChecked:n,inline:!0,invalid:!!e?.emailOn,invalidText:e?.emailOn,name:"emailOn",onChange:()=>I(x=>!x)}),n?null:a.jsx("input",{type:"hidden",name:"emailOn",value:"false"}),a.jsxs("div",{className:w.default(`${m}__preview-set`,{[`${m}__preview-set--hidden`]:!n}),children:[a.jsx(s.default,{id:`email-${t}`,name:"email",defaultValue:$,labelText:H,size:"sm",invalid:!!e?.address2,invalidText:e?.address2,hidden:!n}),a.jsx(s.default,{id:`emailLink-${t}`,name:"emailLink",defaultValue:V,labelText:O,size:"sm",invalid:!!e?.address3,invalidText:e?.address3,hidden:!n})]})]})};exports.default=G;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as d, Fragment as B, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import w from "../../_virtual/
|
|
2
|
+
import w from "../../_virtual/index2.js";
|
|
3
3
|
import * as m from "react";
|
|
4
4
|
import { px as G } from "../../utils/index.js";
|
|
5
5
|
import s from "../../components/Input/Input.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/index.cjs"),r=require("../../utils/constants.cjs"),e=t.distExports.createMedia({breakpoints:r.BREAKPOINTS}),s=e.createMediaStyle();exports.SSRMediaQuery=e;exports.ssrMediaQueryStyle=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("../../_virtual/index2.cjs"),o=require("../../utils/index.cjs"),i=require("../../components/Icon/Icon.cjs"),u=require("../../components/Text/Text.cjs"),x=require("../../components/Text/types.cjs"),f=({children:l,className:a,copyright:n=`© ${o.defaultYear} Phillips Auctioneers, LLC`,id:t,logoHref:s="/",logoLinkComponent:c})=>{const r=c;return e.jsxs("footer",{"data-testid":t||"footer",id:t,className:d.default(`${o.px}-footer`,{className:a}),children:[e.jsx("div",{className:`${o.px}-footer__links`,children:l}),e.jsxs("div",{className:`${o.px}-footer__copyright`,children:[r?e.jsx(r,{href:s,"aria-label":"logoLink","data-testid":"footer-logo",className:`${o.px}-footer__logo`,children:e.jsx(i.default,{icon:"PhillipsLogo",width:"94px"})}):e.jsx("a",{href:s,"aria-label":"logo","data-testid":"footer-logo",className:`${o.px}-footer__logo`,children:e.jsx(i.default,{icon:"PhillipsLogo",width:"94px"})}),e.jsx(u.default,{variant:x.TextVariants.bodySmall,children:n})]})]})};exports.default=f;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import n from "../../_virtual/
|
|
2
|
+
import n from "../../_virtual/index2.js";
|
|
3
3
|
import { px as t, defaultYear as d } from "../../utils/index.js";
|
|
4
|
-
import { TextVariants as p } from "../../components/Text/types.js";
|
|
5
|
-
import h from "../../components/Text/Text.js";
|
|
6
4
|
import l from "../../components/Icon/Icon.js";
|
|
5
|
+
import p from "../../components/Text/Text.js";
|
|
6
|
+
import { TextVariants as h } from "../../components/Text/types.js";
|
|
7
7
|
const u = ({
|
|
8
8
|
children: s,
|
|
9
9
|
className: m,
|
|
@@ -17,7 +17,7 @@ const u = ({
|
|
|
17
17
|
/* @__PURE__ */ o("div", { className: `${t}-footer__links`, children: s }),
|
|
18
18
|
/* @__PURE__ */ i("div", { className: `${t}-footer__copyright`, children: [
|
|
19
19
|
a ? /* @__PURE__ */ o(a, { href: e, "aria-label": "logoLink", "data-testid": "footer-logo", className: `${t}-footer__logo`, children: /* @__PURE__ */ o(l, { icon: "PhillipsLogo", width: "94px" }) }) : /* @__PURE__ */ o("a", { href: e, "aria-label": "logo", "data-testid": "footer-logo", className: `${t}-footer__logo`, children: /* @__PURE__ */ o(l, { icon: "PhillipsLogo", width: "94px" }) }),
|
|
20
|
-
/* @__PURE__ */ o(
|
|
20
|
+
/* @__PURE__ */ o(p, { variant: h.bodySmall, children: c })
|
|
21
21
|
] })
|
|
22
22
|
] });
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),o=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),o=require("../../_virtual/index2.cjs"),t=require("react"),$=require("../../components/Navigation/Navigation.cjs"),S=require("../../patterns/UserManagement/UserManagement.cjs"),G=require("../../providers/SeldonProvider/utils.cjs"),n=require("../../utils/index.cjs"),J=require("./hooks.cjs"),K=require("./utils.cjs"),W=require("../../utils/constants.cjs"),X=require("../../components/Icon/Icon.cjs"),M=require("../../patterns/LanguageSelector/LanguageSelector.cjs"),q=t.createContext(K.defaultHeaderContext),H=t.forwardRef(({logo:d=r.jsx(X.default,{icon:"PhillipsLogo"}),logoHref:u="/",logoLinkComponent:O,className:N,children:i,toggleOpenText:k="Open Menu",toggleCloseText:w="Close Menu",logoText:h="Home Page",disabled:g,bannerRef:l,skipToContentId:m="main",skipLinkLabel:P="Skip to main content",...R},a)=>{const p=n.findChildrenOfType(i,S.default),T=t.isValidElement(p?.[0])?t.cloneElement(p[0],{disabled:g}):"",f=n.findChildrenOfType(i,M.default),x=t.isValidElement(f?.[0])?t.cloneElement(f[0],{disabled:g}):"",[v,z]=t.useState(!1),L=n.findChildrenOfType(i,$.default),I=n.findChildrenExcludingTypes(i,[$.default,S.default,M.default]),{closeMenu:V,handleMenuToggle:A,isMenuOpen:c,toggleText:B}=J.useMobileMenu({toggleOpenText:k,toggleCloseText:w}),[Q,U]=t.useState(null),[_,b]=t.useState(l?.current?l.current.clientHeight:0),E=t.useRef(null);t.useEffect(()=>{const e=l?.current;if(!e)return;b(e.clientHeight);const s=new window.ResizeObserver(()=>{b(e.clientHeight)});return s.observe(e),()=>{s.disconnect()}},[l,_]),t.useEffect(()=>{const e=E.current;if(!e)return;const s=()=>{const F=e.offsetHeight;document.documentElement.style.setProperty("--header-height",`${F}px`)};s();const C=new window.ResizeObserver(s);return C.observe(e),()=>{C.disconnect()}},[]);const D=t.useCallback(e=>{E.current=e,typeof a=="function"?a(e):a&&(a.current=e)},[a]),j=O,y=typeof d=="object"?d:r.jsx("img",{alt:"Phillips","data-testid":"header-logo-img",src:d});return r.jsxs("header",{...R,className:o.default(`${n.px}-header`,N),ref:D,style:{"--banner-height":`${_}px`},children:[m&&r.jsx("a",{href:`#${m}`,className:`${n.px}-header__skip-link`,"data-testid":"skip-to-content",children:P}),r.jsxs("div",{className:`${n.px}-header__top-row`,children:[r.jsx(G.SSRMediaQuery.Media,{greaterThanOrEqual:W.Breakpoints.md,children:x}),r.jsxs("button",{"aria-label":B,"data-testid":"mobile-menu-toggle",type:"button",onClick:A,className:o.default(`${n.px}-header__toggle-btn`,{[`${n.px}-header__toggle-btn--open`]:c}),children:[r.jsx("span",{})," "]}),j?r.jsx(j,{href:u,"aria-label":h,"data-testid":"header-logo",className:`${n.px}-header__logo`,children:y}):r.jsx("a",{href:u,"aria-label":h,"data-testid":"header-logo",className:`${n.px}-header__logo`,children:y}),T]}),r.jsx("div",{className:o.default(`${n.px}-header__nav`,{[`${n.px}-header__nav--closed`]:!c}),children:r.jsxs(q.Provider,{value:{activeSubmenuId:Q,setActiveSubmenuId:U,isMenuOpen:c,isSearchExpanded:v,setIsSearchExpanded:z,closeMenu:V},children:[t.Children.map(L,e=>t.isValidElement(e)?t.cloneElement(e,{children:[...t.Children.toArray(e.props.children),x]}):e),I]})}),r.jsx("div",{className:o.default(`${n.px}-header__overlay`,{[`${n.px}-header__overlay--active`]:v})})]})});H.displayName="Header";exports.HeaderContext=q;exports.default=H;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import c from "../../_virtual/
|
|
3
|
-
import n, {
|
|
4
|
-
import X from "../../components/Icon/Icon.js";
|
|
2
|
+
import c from "../../_virtual/index2.js";
|
|
3
|
+
import n, { forwardRef as K, useState as h, useEffect as N, createContext as W } from "react";
|
|
5
4
|
import w from "../../components/Navigation/Navigation.js";
|
|
6
|
-
import O from "../../patterns/
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
|
|
5
|
+
import O from "../../patterns/UserManagement/UserManagement.js";
|
|
6
|
+
import { SSRMediaQuery as X } from "../../providers/SeldonProvider/utils.js";
|
|
7
|
+
import { findChildrenOfType as u, findChildrenExcludingTypes as Y, px as t } from "../../utils/index.js";
|
|
8
|
+
import { useMobileMenu as Z } from "./hooks.js";
|
|
9
|
+
import { defaultHeaderContext as ee } from "./utils.js";
|
|
10
|
+
import { Breakpoints as te } from "../../utils/constants.js";
|
|
11
|
+
import ne from "../../components/Icon/Icon.js";
|
|
12
|
+
import k from "../../patterns/LanguageSelector/LanguageSelector.js";
|
|
13
|
+
const re = W(ee), ae = K(
|
|
14
14
|
({
|
|
15
|
-
logo: d = /* @__PURE__ */ r(
|
|
15
|
+
logo: d = /* @__PURE__ */ r(ne, { icon: "PhillipsLogo" }),
|
|
16
16
|
logoHref: g = "/",
|
|
17
17
|
logoLinkComponent: P,
|
|
18
18
|
className: R,
|
|
@@ -26,7 +26,7 @@ const re = K(te), ae = W(
|
|
|
26
26
|
skipLinkLabel: j = "Skip to main content",
|
|
27
27
|
...I
|
|
28
28
|
}, a) => {
|
|
29
|
-
const v = u(i,
|
|
29
|
+
const v = u(i, O), T = n.isValidElement(v?.[0]) ? n.cloneElement(v[0], { disabled: f }) : "", b = u(i, k), E = n.isValidElement(b?.[0]) ? n.cloneElement(b[0], { disabled: f }) : "", [$, V] = h(!1), A = u(i, w), B = Y(i, [w, O, k]), { closeMenu: q, handleMenuToggle: Q, isMenuOpen: m, toggleText: U } = Z({
|
|
30
30
|
toggleOpenText: z,
|
|
31
31
|
toggleCloseText: L
|
|
32
32
|
}), [D, F] = h(null), [y, C] = h(s?.current ? s.current.clientHeight : 0), x = n.useRef(null);
|
|
@@ -69,7 +69,7 @@ const re = K(te), ae = W(
|
|
|
69
69
|
children: [
|
|
70
70
|
_ && /* @__PURE__ */ r("a", { href: `#${_}`, className: `${t}-header__skip-link`, "data-testid": "skip-to-content", children: j }),
|
|
71
71
|
/* @__PURE__ */ l("div", { className: `${t}-header__top-row`, children: [
|
|
72
|
-
/* @__PURE__ */ r(
|
|
72
|
+
/* @__PURE__ */ r(X.Media, { greaterThanOrEqual: te.md, children: E }),
|
|
73
73
|
/* @__PURE__ */ l(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phillips/seldon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.273.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/PhillipsAuctionHouse/seldon"
|
|
7
7
|
},
|
|
8
8
|
"type": "module",
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"**/*.scss",
|
|
11
|
+
"**/*.css"
|
|
12
|
+
],
|
|
9
13
|
"main": "./dist/index.cjs",
|
|
10
14
|
"module": "./dist/index.js",
|
|
11
15
|
"types": "./dist/index.d.ts",
|