@phillips/seldon 1.274.0 → 1.275.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/components/Article/Article.cjs +1 -1
- package/dist/components/Article/Article.js +17 -16
- package/dist/components/Card/Card.cjs +1 -1
- package/dist/components/Card/Card.js +14 -11
- package/dist/components/ExitGateCard/ExitGateCard.cjs +1 -1
- package/dist/components/ExitGateCard/ExitGateCard.js +18 -17
- package/dist/components/SeldonImage/SeldonImage.cjs +1 -1
- package/dist/components/SeldonImage/SeldonImage.d.ts +1 -1
- package/dist/components/SeldonImage/SeldonImage.js +45 -44
- package/dist/components/SeldonImage/SeldonImage.stories.d.ts +73 -6
- package/dist/components/SeldonImage/index.d.ts +1 -0
- package/dist/components/SeldonImage/types.cjs +1 -0
- package/dist/components/SeldonImage/types.d.ts +6 -0
- package/dist/components/SeldonImage/types.js +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +55 -53
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.cjs +1 -1
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +35 -34
- package/dist/patterns/ObjectTile/ObjectTile.cjs +1 -1
- package/dist/patterns/ObjectTile/ObjectTile.js +31 -30
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.cjs +1 -1
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +32 -31
- package/dist/scss/components/SeldonImage/_seldonImage.scss +21 -0
- package/dist/static/test-image-1200x1600.jpg +0 -0
- package/dist/static/test-image-1600x1600.jpg +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaddingTokens as o, SpacingTokens as r, defaultYear as a, emailValidation as f, encodeURLSearchParams as s, findChildrenExcludingTypes as l, findChildrenOfType as d, focusElementById as
|
|
1
|
+
import { PaddingTokens as o, SpacingTokens as r, defaultYear as a, emailValidation as f, encodeURLSearchParams as s, findChildrenExcludingTypes as l, findChildrenOfType as d, focusElementById as p, generatePaddingClassName as m, getCommonProps as u, noOp as i, px as n, useNormalizedInputProps as x } from "./utils/index.js";
|
|
2
2
|
import { default as c } from "./pages/Page.js";
|
|
3
3
|
import { SSRMediaQuery as C, ssrMediaQueryStyle as B } from "./providers/SeldonProvider/utils.js";
|
|
4
4
|
import { usePendingState as P } from "./utils/hooks.js";
|
|
@@ -21,7 +21,7 @@ import { default as oe } from "./components/Navigation/Navigation.js";
|
|
|
21
21
|
import { default as ae } from "./components/Navigation/NavigationItem/NavigationItem.js";
|
|
22
22
|
import { default as se } from "./components/Navigation/NavigationList/NavigationList.js";
|
|
23
23
|
import { default as de } from "./components/Navigation/NavigationSubmenu/NavigationSubmenu.js";
|
|
24
|
-
import { default as
|
|
24
|
+
import { default as me } from "./components/Pagination/Pagination.js";
|
|
25
25
|
import { default as ie } from "./components/Row/Row.js";
|
|
26
26
|
import { default as xe } from "./components/Search/Search.js";
|
|
27
27
|
import { default as ce } from "./components/Select/Select.js";
|
|
@@ -47,7 +47,7 @@ import { default as tt } from "./components/Accordion/Accordion.js";
|
|
|
47
47
|
import { default as rt } from "./components/Accordion/AccordionItem.js";
|
|
48
48
|
import { default as ft } from "./patterns/AccountPageHeader/AccountPageHeader.js";
|
|
49
49
|
import { default as lt } from "./components/AddToCalendar/AddToCalendar.js";
|
|
50
|
-
import { default as
|
|
50
|
+
import { default as pt } from "./components/Article/Article.js";
|
|
51
51
|
import { default as ut } from "./components/Banner/Banner.js";
|
|
52
52
|
import { default as nt } from "./patterns/BidSnapshot/BidMessage.js";
|
|
53
53
|
import { default as gt } from "./patterns/BidSnapshot/BidSnapshot.js";
|
|
@@ -74,7 +74,7 @@ import { default as to } from "./components/Divider/Divider.js";
|
|
|
74
74
|
import { default as ro } from "./components/Dropdown/Dropdown.js";
|
|
75
75
|
import { default as fo } from "./components/ExitGateCard/ExitGateCard.js";
|
|
76
76
|
import { default as lo } from "./patterns/FavoritesCollectionTile/FavoritesCollectionTile.js";
|
|
77
|
-
import { default as
|
|
77
|
+
import { default as mo } from "./components/FavoritingTileButton/FavoritingTileButton.js";
|
|
78
78
|
import { default as io } from "./components/Filter/Filter.js";
|
|
79
79
|
import { default as xo } from "./components/Filter/FilterHeader.js";
|
|
80
80
|
import { default as co } from "./components/Filter/FilterInput.js";
|
|
@@ -101,53 +101,55 @@ import { default as or } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAucti
|
|
|
101
101
|
import { default as ar } from "./components/SeldonImage/SeldonImage.js";
|
|
102
102
|
import { default as sr } from "./components/Tabs/TabsContainer.js";
|
|
103
103
|
import { default as dr } from "./components/Tabs/TabsContent.js";
|
|
104
|
-
import { default as
|
|
104
|
+
import { default as mr } from "./components/Text/Text.js";
|
|
105
105
|
import { default as ir } from "./components/TextArea/TextArea.js";
|
|
106
106
|
import { default as xr } from "./components/TextSymbol/TextSymbol.js";
|
|
107
107
|
import { default as cr } from "./components/Toast/Toast.js";
|
|
108
108
|
import { default as Cr } from "./patterns/ViewingDetails/ViewingDetails.js";
|
|
109
109
|
import { AccordionVariants as Tr } from "./components/Accordion/types.js";
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
110
|
+
import { AspectRatio as br } from "./components/SeldonImage/types.js";
|
|
111
|
+
import { BannerMediaSize as Lr, BannerVariants as Vr } from "./components/Banner/types.js";
|
|
112
|
+
import { BidMessageVariants as yr, BidStatusEnum as Dr } from "./patterns/BidSnapshot/types.js";
|
|
113
|
+
import { Breakpoints as kr } from "./utils/constants.js";
|
|
114
|
+
import { CardVariants as Mr } from "./components/Card/types.js";
|
|
115
|
+
import { HeightUnits as wr } from "./components/ContentPeek/utils.js";
|
|
116
|
+
import { DefaultButtonLabels as Hr, LoadingState as Rr } from "./patterns/ProgressWizard/types.js";
|
|
117
|
+
import { DetailListAlignment as Er } from "./components/DetailList/types.js";
|
|
118
|
+
import { DetailVariants as Ur } from "./components/Detail/types.js";
|
|
119
|
+
import { FilterButton as Or } from "./patterns/FiltersInline/FilterButton.js";
|
|
120
|
+
import { FilterButtonIconType as jr, FilterButtonType as Yr } from "./patterns/FiltersInline/types.js";
|
|
121
|
+
import { SaleCardImageDisplay as qr, SaleCardVariants as Jr } from "./patterns/SaleCard/types.js";
|
|
122
|
+
import { TextAlignments as Xr, TextVariants as _r } from "./components/Text/types.js";
|
|
123
|
+
import { TextSymbolVariants as ea } from "./components/TextSymbol/types.js";
|
|
124
|
+
import { ToastProvider as oa } from "./components/Toast/ToastContextProvider.js";
|
|
125
|
+
import { getProgressBarMetrics as aa } from "./components/ProgressBar/utils.js";
|
|
126
|
+
import { useHistoryManagement as sa } from "./patterns/ProgressWizard/hooks/useHistoryManagement.js";
|
|
127
|
+
import { useReducedMotion as da } from "./utils/useReducedMotion.js";
|
|
128
|
+
import { useToast as ma } from "./components/Toast/useToast.js";
|
|
128
129
|
export {
|
|
129
130
|
tt as Accordion,
|
|
130
131
|
rt as AccordionItem,
|
|
131
132
|
Tr as AccordionVariants,
|
|
132
133
|
ft as AccountPageHeader,
|
|
133
134
|
lt as AddToCalendar,
|
|
134
|
-
|
|
135
|
+
pt as Article,
|
|
136
|
+
br as AspectRatio,
|
|
135
137
|
I as AuctionStatus,
|
|
136
138
|
Re as AuthState,
|
|
137
139
|
ut as Banner,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
Lr as BannerMediaSize,
|
|
141
|
+
Vr as BannerVariants,
|
|
140
142
|
nt as BidMessage,
|
|
141
|
-
|
|
143
|
+
yr as BidMessageVariants,
|
|
142
144
|
gt as BidSnapshot,
|
|
143
|
-
|
|
145
|
+
Dr as BidStatusEnum,
|
|
144
146
|
St as Breadcrumb,
|
|
145
|
-
|
|
147
|
+
kr as Breakpoints,
|
|
146
148
|
y as Button,
|
|
147
149
|
v as ButtonSizes,
|
|
148
150
|
k as ButtonVariants,
|
|
149
151
|
Bt as Card,
|
|
150
|
-
|
|
152
|
+
Mr as CardVariants,
|
|
151
153
|
Pt as Carousel,
|
|
152
154
|
It as CarouselArrows,
|
|
153
155
|
Vt as CarouselContent,
|
|
@@ -159,28 +161,28 @@ export {
|
|
|
159
161
|
Rt as ComboBox,
|
|
160
162
|
Et as ComposedModal,
|
|
161
163
|
Ut as ContentPeek,
|
|
162
|
-
|
|
164
|
+
wr as ContentPeekHeightUnits,
|
|
163
165
|
Ot as Countdown,
|
|
164
166
|
$e as CountdownVariants,
|
|
165
167
|
jt as CountryPicker,
|
|
166
|
-
|
|
168
|
+
Hr as DefaultButtonLabels,
|
|
167
169
|
Zt as DescriptiveRadioButton,
|
|
168
170
|
Jt as DescriptiveRadioButtonGroup,
|
|
169
171
|
Xt as Detail,
|
|
170
172
|
$t as DetailList,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
+
Er as DetailListAlignment,
|
|
174
|
+
Ur as DetailVariants,
|
|
173
175
|
to as Divider,
|
|
174
176
|
w as Drawer,
|
|
175
177
|
ro as Dropdown,
|
|
176
178
|
H as ErrorBoundary,
|
|
177
179
|
fo as ExitGateCard,
|
|
178
180
|
lo as FavoritesCollectionTile,
|
|
179
|
-
|
|
181
|
+
mo as FavoritingTileButton,
|
|
180
182
|
io as Filter,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
183
|
+
Or as FilterButton,
|
|
184
|
+
jr as FilterButtonIconType,
|
|
185
|
+
Yr as FilterButtonType,
|
|
184
186
|
xo as FilterHeader,
|
|
185
187
|
co as FilterInput,
|
|
186
188
|
Co as FilterMenu,
|
|
@@ -200,7 +202,7 @@ export {
|
|
|
200
202
|
_ as LinkList,
|
|
201
203
|
q as LinkVariants,
|
|
202
204
|
Ao as Loader,
|
|
203
|
-
|
|
205
|
+
Rr as LoadingState,
|
|
204
206
|
L as LotStatus,
|
|
205
207
|
ee as Modal,
|
|
206
208
|
oe as Navigation,
|
|
@@ -214,7 +216,7 @@ export {
|
|
|
214
216
|
o as PaddingTokens,
|
|
215
217
|
c as Page,
|
|
216
218
|
Ze as PageContentWrapper,
|
|
217
|
-
|
|
219
|
+
me as Pagination,
|
|
218
220
|
Ho as PhoneNumberInput,
|
|
219
221
|
zo as Pictogram,
|
|
220
222
|
Go as PinchZoom,
|
|
@@ -226,8 +228,8 @@ export {
|
|
|
226
228
|
C as SSRMediaQuery,
|
|
227
229
|
Ko as SaleCard,
|
|
228
230
|
_o as SaleCardActions,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
+
qr as SaleCardImageDisplay,
|
|
232
|
+
Jr as SaleCardVariants,
|
|
231
233
|
er as SaleHeaderBanner,
|
|
232
234
|
or as SaleHeaderBrowseAuctions,
|
|
233
235
|
xe as Search,
|
|
@@ -246,15 +248,15 @@ export {
|
|
|
246
248
|
dr as TabsContent,
|
|
247
249
|
be as Tag,
|
|
248
250
|
Ie as TagsList,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
+
mr as Text,
|
|
252
|
+
Xr as TextAlignments,
|
|
251
253
|
ir as TextArea,
|
|
252
254
|
ve as TextBanner,
|
|
253
|
-
|
|
255
|
+
ea as TextSymbolVariants,
|
|
254
256
|
xr as TextSymbols,
|
|
255
|
-
|
|
257
|
+
_r as TextVariants,
|
|
256
258
|
cr as Toast,
|
|
257
|
-
|
|
259
|
+
oa as ToastProvider,
|
|
258
260
|
Ee as UserManagement,
|
|
259
261
|
Ve as Video,
|
|
260
262
|
Cr as ViewingDetails,
|
|
@@ -264,16 +266,16 @@ export {
|
|
|
264
266
|
s as encodeURLSearchParams,
|
|
265
267
|
l as findChildrenExcludingTypes,
|
|
266
268
|
d as findChildrenOfType,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
+
p as focusElementById,
|
|
270
|
+
m as generatePaddingClassName,
|
|
269
271
|
u as getCommonProps,
|
|
270
|
-
|
|
272
|
+
aa as getProgressBarMetrics,
|
|
271
273
|
i as noOp,
|
|
272
274
|
n as px,
|
|
273
275
|
B as ssrMediaQueryStyle,
|
|
274
|
-
|
|
276
|
+
sa as useHistoryManagement,
|
|
275
277
|
x as useNormalizedInputProps,
|
|
276
278
|
P as usePendingState,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
+
da as useReducedMotion,
|
|
280
|
+
ma as useToast
|
|
279
281
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),m=require("../../node_modules/@radix-ui/react-popover/dist/index.cjs"),u=require("../../_virtual/index2.cjs"),p=require("react"),B=require("../../components/Link/Link.cjs"),G=require("../../utils/index.cjs"),l=require("../../components/Text/Text.cjs"),c=require("../../components/Text/types.cjs"),y=require("../../components/Icon/Icon.cjs"),H=require("../../components/SeldonImage/SeldonImage.cjs"),J=({baseClassName:t,iconSize:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),m=require("../../node_modules/@radix-ui/react-popover/dist/index.cjs"),u=require("../../_virtual/index2.cjs"),p=require("react"),B=require("../../components/Link/Link.cjs"),G=require("../../utils/index.cjs"),l=require("../../components/Text/Text.cjs"),c=require("../../components/Text/types.cjs"),y=require("../../components/Icon/Icon.cjs"),H=require("../../components/SeldonImage/SeldonImage.cjs"),J=require("../../components/SeldonImage/types.cjs"),Q=({baseClassName:t,iconSize:r,createFirstListText:i,onClick:s})=>e.jsx("button",{type:"button",className:`${t}__create-variant`,"data-testid":"create-list","aria-label":i,onClick:n=>{n.stopPropagation(),s?.(n)},children:e.jsx("span",{className:u.default(`${t}__empty`,`${t}__empty--create-list`),children:e.jsxs("span",{className:`${t}__empty__content`,children:[e.jsx(y.default,{icon:"Add",width:r,height:r,color:"$gray-75",className:u.default(`${t}__icon`,`${t}__icon-circle`),"aria-hidden":"true"}),e.jsx(l.default,{className:`${t}__text`,variant:c.TextVariants.bodyMedium,children:i})]})})}),g=({baseClassName:t,iconSize:r,text:i,ariaLabel:s,dataTestId:n})=>e.jsx("div",{className:`${t}__media-container`,"data-testid":n,"aria-label":s,role:"region",children:e.jsx("div",{className:u.default(`${t}__empty`,`${t}__empty--bg`),children:e.jsxs("div",{className:`${t}__empty__content`,children:[e.jsx(y.default,{icon:"Favorite",width:r,height:r,color:"$gray-75",className:u.default(`${t}__icon`),"aria-hidden":"true"}),e.jsx(l.default,{className:`${t}__text`,variant:c.TextVariants.bodyMedium,children:i})]})})}),U=({baseClassName:t,imageRef:r,listAriaLabel:i,name:s,imageSrc:n})=>e.jsx("div",{className:`${t}__media-container`,ref:r,"aria-label":i,"data-testid":"list",role:"region",children:e.jsx(H.default,{alt:s,aspectRatio:J.AspectRatio.Square,className:`${t}__media`,objectFit:"contain",src:n,style:{cursor:"pointer"}})}),W=p.memo(p.forwardRef(({id:t,className:r,count:i,name:s,imageSrc:n,variant:x,element:b=B.default,href:N,emptyFavoritesText:L="You have not added any objects to your Favorites yet.",emptyListsText:q="You have not added any objects to your List yet.",createFirstListText:T="Create your first List.",editListText:w="Edit List",deleteListText:V="Delete List",onEdit:M,onDelete:k,formatlotStr:$=(a,h=a===1?"Lot":"Lots")=>`${a} ${h}`,linkClassName:I,iconSize:d=22,menuAriaLabel:R="Manage List",favoritesAriaLabel:E="Favorites",emptyListAriaLabel:P="Empty List",listAriaLabel:F="List",...f},C)=>{const{className:a,...h}=G.getCommonProps({id:t,...f},"FavoritesCollectionTile"),A=p.useRef(null),_=s&&i!==null&&i!==void 0,j=i===0,v=x==="lists",D=x==="create",O=x==="favorites"&&j,Y=_&&j&&v,K=()=>D?e.jsx(Q,{baseClassName:a,iconSize:d,createFirstListText:T,onClick:f.onClick}):e.jsxs(b,{href:N,className:u.default(`${a}__media-link`,I),tabIndex:0,children:[O&&e.jsx(g,{baseClassName:a,iconSize:d,text:L,ariaLabel:E,dataTestId:"favorites"}),Y&&e.jsx(g,{baseClassName:a,iconSize:d,text:q,ariaLabel:P,dataTestId:"empty-list"}),!j&&_&&e.jsx(U,{baseClassName:a,imageRef:A,listAriaLabel:F,name:s,imageSrc:n,iconSize:d})]});return e.jsx("div",{...h,className:u.default(a,r),ref:C,id:t,children:e.jsxs("div",{className:`${a}__content`,children:[e.jsxs("div",{className:`${a}__header`,children:[e.jsxs("div",{className:`${a}__info`,children:[_&&e.jsx(l.default,{element:"span",className:`${a}__count`,variant:c.TextVariants.labelMedium,children:$&&_&&$(i)}),s&&e.jsx(l.default,{element:"h3",className:`${a}__title`,variant:c.TextVariants.bodyMedium,children:s})]}),_&&v&&e.jsxs(m.Root,{children:[e.jsx(m.Trigger,{asChild:!0,children:e.jsx("div",{className:`${a}__actions`,"data-testid":"menu-trigger",tabIndex:0,role:"button","aria-label":R,"aria-haspopup":"menu",onKeyDown:o=>{o.key==="Enter"&&(o.preventDefault(),o.stopPropagation(),o.target.click())},children:e.jsx("div",{className:`${a}__icon-rotate`,children:e.jsx(y.default,{icon:"Icon",width:d,height:d,color:"$gray-75",className:`${a}__icon-button`,"aria-hidden":"true"})})})}),e.jsx(m.Portal,{children:e.jsx(m.Content,{avoidCollisions:!0,collisionPadding:10,sideOffset:5,align:"start",alignOffset:5,className:`${a}__popover-content`,children:e.jsxs("div",{className:`${a}__dropdown`,"data-testid":"dropdown-menu",children:[e.jsx("button",{className:`${a}__dropdown--item`,onClick:o=>M?.(t,o),type:"button",children:e.jsx(l.default,{variant:c.TextVariants.bodyMedium,children:w})}),e.jsx("button",{className:`${a}__dropdown--item`,onClick:o=>k?.(t,o),type:"button",children:e.jsx(l.default,{variant:c.TextVariants.bodyMedium,children:V})})]})})})]})]}),K()]})})}));exports.default=W;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { Root as
|
|
1
|
+
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { Root as K, Trigger as B, Portal as G, Content as H } from "../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
3
3
|
import _ from "../../_virtual/index2.js";
|
|
4
4
|
import { memo as J, forwardRef as Q, useRef as U } from "react";
|
|
5
5
|
import W from "../../components/Link/Link.js";
|
|
@@ -8,7 +8,8 @@ import l from "../../components/Text/Text.js";
|
|
|
8
8
|
import { TextVariants as m } from "../../components/Text/types.js";
|
|
9
9
|
import $ from "../../components/Icon/Icon.js";
|
|
10
10
|
import Z from "../../components/SeldonImage/SeldonImage.js";
|
|
11
|
-
|
|
11
|
+
import { AspectRatio as S } from "../../components/SeldonImage/types.js";
|
|
12
|
+
const z = ({
|
|
12
13
|
baseClassName: e,
|
|
13
14
|
iconSize: r,
|
|
14
15
|
createFirstListText: a,
|
|
@@ -23,7 +24,7 @@ const S = ({
|
|
|
23
24
|
onClick: (n) => {
|
|
24
25
|
n.stopPropagation(), o?.(n);
|
|
25
26
|
},
|
|
26
|
-
children: /* @__PURE__ */ t("span", { className: _(`${e}__empty`, `${e}__empty--create-list`), children: /* @__PURE__ */
|
|
27
|
+
children: /* @__PURE__ */ t("span", { className: _(`${e}__empty`, `${e}__empty--create-list`), children: /* @__PURE__ */ d("span", { className: `${e}__empty__content`, children: [
|
|
27
28
|
/* @__PURE__ */ t(
|
|
28
29
|
$,
|
|
29
30
|
{
|
|
@@ -44,7 +45,7 @@ const S = ({
|
|
|
44
45
|
text: a,
|
|
45
46
|
ariaLabel: o,
|
|
46
47
|
dataTestId: n
|
|
47
|
-
}) => /* @__PURE__ */ t("div", { className: `${e}__media-container`, "data-testid": n, "aria-label": o, role: "region", children: /* @__PURE__ */ t("div", { className: _(`${e}__empty`, `${e}__empty--bg`), children: /* @__PURE__ */
|
|
48
|
+
}) => /* @__PURE__ */ t("div", { className: `${e}__media-container`, "data-testid": n, "aria-label": o, role: "region", children: /* @__PURE__ */ t("div", { className: _(`${e}__empty`, `${e}__empty--bg`), children: /* @__PURE__ */ d("div", { className: `${e}__empty__content`, children: [
|
|
48
49
|
/* @__PURE__ */ t(
|
|
49
50
|
$,
|
|
50
51
|
{
|
|
@@ -57,7 +58,7 @@ const S = ({
|
|
|
57
58
|
}
|
|
58
59
|
),
|
|
59
60
|
/* @__PURE__ */ t(l, { className: `${e}__text`, variant: m.bodyMedium, children: a })
|
|
60
|
-
] }) }) }),
|
|
61
|
+
] }) }) }), tt = ({
|
|
61
62
|
baseClassName: e,
|
|
62
63
|
imageRef: r,
|
|
63
64
|
listAriaLabel: a,
|
|
@@ -75,7 +76,7 @@ const S = ({
|
|
|
75
76
|
Z,
|
|
76
77
|
{
|
|
77
78
|
alt: o,
|
|
78
|
-
aspectRatio:
|
|
79
|
+
aspectRatio: S.Square,
|
|
79
80
|
className: `${e}__media`,
|
|
80
81
|
objectFit: "contain",
|
|
81
82
|
src: n,
|
|
@@ -85,7 +86,7 @@ const S = ({
|
|
|
85
86
|
}
|
|
86
87
|
)
|
|
87
88
|
}
|
|
88
|
-
),
|
|
89
|
+
), _t = J(
|
|
89
90
|
Q(
|
|
90
91
|
({
|
|
91
92
|
id: e,
|
|
@@ -93,7 +94,7 @@ const S = ({
|
|
|
93
94
|
count: a,
|
|
94
95
|
name: o,
|
|
95
96
|
imageSrc: n,
|
|
96
|
-
variant:
|
|
97
|
+
variant: h,
|
|
97
98
|
element: b = W,
|
|
98
99
|
href: L,
|
|
99
100
|
emptyFavoritesText: w = "You have not added any objects to your Favorites yet.",
|
|
@@ -102,25 +103,25 @@ const S = ({
|
|
|
102
103
|
editListText: I = "Edit List",
|
|
103
104
|
deleteListText: M = "Delete List",
|
|
104
105
|
onEdit: E,
|
|
105
|
-
onDelete:
|
|
106
|
-
formatlotStr:
|
|
107
|
-
linkClassName:
|
|
106
|
+
onDelete: R,
|
|
107
|
+
formatlotStr: f = (i, u = i === 1 ? "Lot" : "Lots") => `${i} ${u}`,
|
|
108
|
+
linkClassName: F,
|
|
108
109
|
iconSize: c = 22,
|
|
109
|
-
menuAriaLabel:
|
|
110
|
+
menuAriaLabel: P = "Manage List",
|
|
110
111
|
favoritesAriaLabel: T = "Favorites",
|
|
111
112
|
emptyListAriaLabel: V = "Empty List",
|
|
112
113
|
listAriaLabel: j = "List",
|
|
113
|
-
...
|
|
114
|
+
...v
|
|
114
115
|
}, C) => {
|
|
115
|
-
const { className: i, ...u } = X({ id: e, ...
|
|
116
|
-
|
|
116
|
+
const { className: i, ...u } = X({ id: e, ...v }, "FavoritesCollectionTile"), A = U(null), p = o && a !== null && a !== void 0, y = a === 0, g = h === "lists", D = h === "create", O = h === "favorites" && y, Y = p && y && g, q = () => D ? /* @__PURE__ */ t(
|
|
117
|
+
z,
|
|
117
118
|
{
|
|
118
119
|
baseClassName: i,
|
|
119
120
|
iconSize: c,
|
|
120
121
|
createFirstListText: k,
|
|
121
|
-
onClick:
|
|
122
|
+
onClick: v.onClick
|
|
122
123
|
}
|
|
123
|
-
) : /* @__PURE__ */
|
|
124
|
+
) : /* @__PURE__ */ d(b, { href: L, className: _(`${i}__media-link`, F), tabIndex: 0, children: [
|
|
124
125
|
O && /* @__PURE__ */ t(
|
|
125
126
|
N,
|
|
126
127
|
{
|
|
@@ -141,11 +142,11 @@ const S = ({
|
|
|
141
142
|
dataTestId: "empty-list"
|
|
142
143
|
}
|
|
143
144
|
),
|
|
144
|
-
!y &&
|
|
145
|
-
|
|
145
|
+
!y && p && /* @__PURE__ */ t(
|
|
146
|
+
tt,
|
|
146
147
|
{
|
|
147
148
|
baseClassName: i,
|
|
148
|
-
imageRef:
|
|
149
|
+
imageRef: A,
|
|
149
150
|
listAriaLabel: j,
|
|
150
151
|
name: o,
|
|
151
152
|
imageSrc: n,
|
|
@@ -153,13 +154,13 @@ const S = ({
|
|
|
153
154
|
}
|
|
154
155
|
)
|
|
155
156
|
] });
|
|
156
|
-
return /* @__PURE__ */ t("div", { ...u, className: _(i, r), ref: C, id: e, children: /* @__PURE__ */
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
-
|
|
157
|
+
return /* @__PURE__ */ t("div", { ...u, className: _(i, r), ref: C, id: e, children: /* @__PURE__ */ d("div", { className: `${i}__content`, children: [
|
|
158
|
+
/* @__PURE__ */ d("div", { className: `${i}__header`, children: [
|
|
159
|
+
/* @__PURE__ */ d("div", { className: `${i}__info`, children: [
|
|
160
|
+
p && /* @__PURE__ */ t(l, { element: "span", className: `${i}__count`, variant: m.labelMedium, children: f && p && f(a) }),
|
|
160
161
|
o && /* @__PURE__ */ t(l, { element: "h3", className: `${i}__title`, variant: m.bodyMedium, children: o })
|
|
161
162
|
] }),
|
|
162
|
-
|
|
163
|
+
p && g && /* @__PURE__ */ d(K, { children: [
|
|
163
164
|
/* @__PURE__ */ t(B, { asChild: !0, children: /* @__PURE__ */ t(
|
|
164
165
|
"div",
|
|
165
166
|
{
|
|
@@ -167,10 +168,10 @@ const S = ({
|
|
|
167
168
|
"data-testid": "menu-trigger",
|
|
168
169
|
tabIndex: 0,
|
|
169
170
|
role: "button",
|
|
170
|
-
"aria-label":
|
|
171
|
+
"aria-label": P,
|
|
171
172
|
"aria-haspopup": "menu",
|
|
172
|
-
onKeyDown: (
|
|
173
|
-
|
|
173
|
+
onKeyDown: (s) => {
|
|
174
|
+
s.key === "Enter" && (s.preventDefault(), s.stopPropagation(), s.target.click());
|
|
174
175
|
},
|
|
175
176
|
children: /* @__PURE__ */ t("div", { className: `${i}__icon-rotate`, children: /* @__PURE__ */ t(
|
|
176
177
|
$,
|
|
@@ -194,12 +195,12 @@ const S = ({
|
|
|
194
195
|
align: "start",
|
|
195
196
|
alignOffset: 5,
|
|
196
197
|
className: `${i}__popover-content`,
|
|
197
|
-
children: /* @__PURE__ */
|
|
198
|
+
children: /* @__PURE__ */ d("div", { className: `${i}__dropdown`, "data-testid": "dropdown-menu", children: [
|
|
198
199
|
/* @__PURE__ */ t(
|
|
199
200
|
"button",
|
|
200
201
|
{
|
|
201
202
|
className: `${i}__dropdown--item`,
|
|
202
|
-
onClick: (
|
|
203
|
+
onClick: (s) => E?.(e, s),
|
|
203
204
|
type: "button",
|
|
204
205
|
children: /* @__PURE__ */ t(l, { variant: m.bodyMedium, children: I })
|
|
205
206
|
}
|
|
@@ -208,7 +209,7 @@ const S = ({
|
|
|
208
209
|
"button",
|
|
209
210
|
{
|
|
210
211
|
className: `${i}__dropdown--item`,
|
|
211
|
-
onClick: (
|
|
212
|
+
onClick: (s) => R?.(e, s),
|
|
212
213
|
type: "button",
|
|
213
214
|
children: /* @__PURE__ */ t(l, { variant: m.bodyMedium, children: M })
|
|
214
215
|
}
|
|
@@ -218,11 +219,11 @@ const S = ({
|
|
|
218
219
|
) })
|
|
219
220
|
] })
|
|
220
221
|
] }),
|
|
221
|
-
|
|
222
|
+
q()
|
|
222
223
|
] }) });
|
|
223
224
|
}
|
|
224
225
|
)
|
|
225
226
|
);
|
|
226
227
|
export {
|
|
227
|
-
|
|
228
|
+
_t as default
|
|
228
229
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),x=require("react"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),x=require("react"),D=require("../../_virtual/index2.cjs"),O=require("../../utils/index.cjs"),M=require("../../components/Detail/types.cjs"),k=require("../../components/SeldonImage/SeldonImage.cjs"),z=require("../../components/SeldonImage/types.cjs"),s=require("../../components/Text/Text.cjs"),l=require("../../components/Text/types.cjs"),A=require("../../components/DetailList/DetailList.cjs"),F=require("../../components/Detail/Detail.cjs"),h=x.memo(x.forwardRef(({badgeText:j,className:f,children:$,element:g,estimate:t,estimateLabelText:p="Estimate",estimateOnRequestText:i,badgeElement:r,favoriteElement:c,imageAlt:N="Brought to you by Phillips",imageUrl:b="",imageSrcSet:v,imageSizes:S,imageLoading:q,imageFetchPriority:y,imageBlocked:V,lotNumber:T,makerText:m,modelText:d,referenceNumber:o,titleText:u,withdrawnText:n,..._},E)=>{const{className:a,...P}=O.getCommonProps(_,"ObjectTile"),R=g??"a",C=t||i;return e.jsxs(R,{...P,className:D.default(a,f),..._,ref:E,children:[e.jsx(k.default,{alt:N,aspectRatio:z.AspectRatio.Square,className:`${a}__img`,objectFit:"contain",src:b,srcSet:v,sizes:S,loading:q,fetchPriority:y,imageBlocked:V}),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]}),C?e.jsx(A.default,{hasSeparators:!0,className:`${a}__estimate ${a}__section`,variant:M.DetailVariants.sm,children:e.jsx(F.default,{className:`${a}__estimate__label`,label:p,value:t||i,hasWrap:!1})}):null,e.jsx("div",{className:`${a}__section`,children:$})]})]})}));h.displayName="ObjectTile";exports.default=h;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { jsxs as m, jsx as e, Fragment as
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import { getCommonProps as
|
|
5
|
-
import { DetailVariants as
|
|
6
|
-
import
|
|
1
|
+
import { jsxs as m, jsx as e, Fragment as V } from "react/jsx-runtime";
|
|
2
|
+
import { memo as k, forwardRef as z } from "react";
|
|
3
|
+
import A from "../../_virtual/index2.js";
|
|
4
|
+
import { getCommonProps as F } from "../../utils/index.js";
|
|
5
|
+
import { DetailVariants as I } from "../../components/Detail/types.js";
|
|
6
|
+
import L from "../../components/SeldonImage/SeldonImage.js";
|
|
7
|
+
import { AspectRatio as W } from "../../components/SeldonImage/types.js";
|
|
7
8
|
import l from "../../components/Text/Text.js";
|
|
8
9
|
import { TextVariants as s } from "../../components/Text/types.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const B =
|
|
12
|
-
|
|
10
|
+
import q from "../../components/DetailList/DetailList.js";
|
|
11
|
+
import w from "../../components/Detail/Detail.js";
|
|
12
|
+
const B = k(
|
|
13
|
+
z(
|
|
13
14
|
({
|
|
14
|
-
badgeText:
|
|
15
|
-
className:
|
|
15
|
+
badgeText: f,
|
|
16
|
+
className: N,
|
|
16
17
|
children: g,
|
|
17
|
-
element:
|
|
18
|
-
estimate:
|
|
19
|
-
estimateLabelText:
|
|
18
|
+
element: u,
|
|
19
|
+
estimate: i,
|
|
20
|
+
estimateLabelText: $ = "Estimate",
|
|
20
21
|
estimateOnRequestText: t,
|
|
21
22
|
badgeElement: r,
|
|
22
23
|
favoriteElement: o,
|
|
23
|
-
imageAlt:
|
|
24
|
+
imageAlt: b = "Brought to you by Phillips",
|
|
24
25
|
imageUrl: v = "",
|
|
25
26
|
imageSrcSet: S,
|
|
26
27
|
imageSizes: j,
|
|
@@ -32,16 +33,16 @@ const B = z(
|
|
|
32
33
|
modelText: _,
|
|
33
34
|
referenceNumber: d,
|
|
34
35
|
titleText: h,
|
|
35
|
-
withdrawnText:
|
|
36
|
+
withdrawnText: n,
|
|
36
37
|
...p
|
|
37
38
|
}, D) => {
|
|
38
|
-
const { className: a, ...x } =
|
|
39
|
-
return /* @__PURE__ */ m(O, { ...x, className:
|
|
39
|
+
const { className: a, ...x } = F(p, "ObjectTile"), O = u ?? "a", R = i || t;
|
|
40
|
+
return /* @__PURE__ */ m(O, { ...x, className: A(a, N), ...p, ref: D, children: [
|
|
40
41
|
/* @__PURE__ */ e(
|
|
41
|
-
|
|
42
|
+
L,
|
|
42
43
|
{
|
|
43
|
-
alt:
|
|
44
|
-
aspectRatio:
|
|
44
|
+
alt: b,
|
|
45
|
+
aspectRatio: W.Square,
|
|
45
46
|
className: `${a}__img`,
|
|
46
47
|
objectFit: "contain",
|
|
47
48
|
src: v,
|
|
@@ -52,13 +53,13 @@ const B = z(
|
|
|
52
53
|
imageBlocked: P
|
|
53
54
|
}
|
|
54
55
|
),
|
|
55
|
-
|
|
56
|
+
n ? null : /* @__PURE__ */ e(l, { element: "span", className: `${a}__badge`, variant: s.badgeSmall, children: f }),
|
|
56
57
|
/* @__PURE__ */ m("div", { className: `${a}__lot-number-like`, children: [
|
|
57
58
|
/* @__PURE__ */ e(l, { element: "span", className: `${a}__lot-number`, variant: s.headingSmall, children: C }),
|
|
58
59
|
r && /* @__PURE__ */ e("div", { className: `${a}__lot-badge`, children: /* @__PURE__ */ e(r, {}) }),
|
|
59
60
|
o && /* @__PURE__ */ e(o, {})
|
|
60
61
|
] }),
|
|
61
|
-
|
|
62
|
+
n ? /* @__PURE__ */ e(l, { element: "span", className: `${a}__withdrawn`, variant: s.headingSmall, children: n }) : /* @__PURE__ */ m(V, { children: [
|
|
62
63
|
/* @__PURE__ */ m("div", { className: `${a}__meta`, children: [
|
|
63
64
|
c ? /* @__PURE__ */ e(l, { element: "span", className: `${a}__maker`, variant: s.headingSmall, children: c }) : null,
|
|
64
65
|
h ? /* @__PURE__ */ e(l, { element: "cite", className: `${a}__title`, variant: s.headingExtraSmall, children: h }) : null,
|
|
@@ -73,18 +74,18 @@ const B = z(
|
|
|
73
74
|
) : null,
|
|
74
75
|
_ ? /* @__PURE__ */ e(l, { className: `${a}__model`, variant: s.headingExtraSmall, element: "span", children: _ }) : null
|
|
75
76
|
] }),
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
R ? /* @__PURE__ */ e(
|
|
78
|
+
q,
|
|
78
79
|
{
|
|
79
80
|
hasSeparators: !0,
|
|
80
81
|
className: `${a}__estimate ${a}__section`,
|
|
81
|
-
variant:
|
|
82
|
+
variant: I.sm,
|
|
82
83
|
children: /* @__PURE__ */ e(
|
|
83
|
-
|
|
84
|
+
w,
|
|
84
85
|
{
|
|
85
86
|
className: `${a}__estimate__label`,
|
|
86
|
-
label:
|
|
87
|
-
value:
|
|
87
|
+
label: $,
|
|
88
|
+
value: i || t,
|
|
88
89
|
hasWrap: !1
|
|
89
90
|
}
|
|
90
91
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),A=require("react"),z=require("../../utils/index.cjs"),H=require("../../_virtual/index2.cjs"),O=require("../../types/commonTypes.cjs"),x=require("../../providers/SeldonProvider/utils.cjs"),t=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"),s=require("../../components/Text/types.cjs"),r=require("../../components/Text/Text.cjs"),F=require("../../components/SeldonImage/SeldonImage.cjs"),L=require("../../components/SeldonImage/types.cjs"),f=A.forwardRef(({auctionEndTime:n,auctionTitle:i,badgeText:l,imageSrcUrl:p,imageSrcSet:v,imageSizes:g,imageLoading:q,imageFetchPriority:S,location:N,countdownTimerLabel:$,countdownFormatDuration:b,auctionState:M,occurrenceInformation:B,onClick:Q,children:y,className:T,footerElement:R,headerLabel:V,showTimer:c,getCurrentDateTime:k,...d},w)=>{const{className:a,...C}=z.getCommonProps(d,"SaleHeaderBanner"),o=M===O.AuctionStatus.live,u={endDateTime:n,label:$,formatDurationStr:b,getCurrentDateTime:k};return e.jsxs("div",{...C,className:H.default(a,T),...d,ref:w,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(t.default,{variant:j.BannerVariants.top,children:[e.jsx(t.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(t.default.Eyebrow,{variant:s.TextVariants.labelMedium,className:`${a}__header-label`,children:V}),e.jsx(t.default.Title,{variant:s.TextVariants.headingLarge,element:"h1",className:`${a}__title`,children:i}),l&&e.jsx(r.default,{variant:s.TextVariants.badge,className:`${a}__badge`,children:l}),e.jsx(r.default,{variant:s.TextVariants.labelMedium,className:`${a}__location`,children:N}),e.jsxs("div",{className:`${a}__occurrence-details`,children:[B.map(({date:m,occurrenceLabel:P})=>e.jsxs("div",{className:`${a}__occurrence-details-text`,children:[e.jsx(r.default,{variant:s.TextVariants.labelMedium,children:P}),e.jsx(r.default,{variant:s.TextVariants.labelMedium,className:`${a}__date`,children:m})]},String(m))),y]}),R]})})}),e.jsx(t.default.Media,{size:j.BannerMediaSize.half,className:`${a}__image`,children:e.jsx(F.default,{aspectRatio:L.AspectRatio.Landscape,src:p,alt:String(i),objectFit:"cover",srcSet:v,sizes:g,loading:q,fetchPriority:S})})]})]})});f.displayName="SaleHeaderBanner";exports.default=f;
|