@phillips/seldon 1.102.0 → 1.103.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/index.js +37 -39
- package/dist/node_modules/exenv/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.d.ts +6 -2
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +49 -48
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.stories.d.ts +1 -0
- package/dist/patterns/SaleHeaderBanner/index.d.ts +0 -1
- package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +9 -3
- package/package.json +1 -1
- package/dist/patterns/SaleHeaderBanner/types.d.ts +0 -5
- package/dist/patterns/SaleHeaderBanner/types.js +0 -4
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { default as S } from "./assets/account_circle.svg.js";
|
|
|
3
3
|
import { default as h } from "./assets/arrowPrev.svg.js";
|
|
4
4
|
import { default as I } from "./assets/calendar.svg.js";
|
|
5
5
|
import { default as T } from "./assets/calendarAlt.svg.js";
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
6
|
+
import { default as V } from "./assets/chevronDown.svg.js";
|
|
7
|
+
import { default as A } from "./assets/chevronNext.svg.js";
|
|
8
8
|
import { default as w } from "./assets/chevronRight.svg.js";
|
|
9
9
|
import { default as y } from "./assets/close.svg.js";
|
|
10
10
|
import { default as D } from "./assets/favorite.svg.js";
|
|
@@ -30,7 +30,7 @@ import { default as ce } from "./assets/icon-red-circle.svg.js";
|
|
|
30
30
|
import { default as Se } from "./pages/Page.js";
|
|
31
31
|
import { usePendingState as he } from "./utils/hooks.js";
|
|
32
32
|
import { SSRMediaQuery as Ie, ssrMediaQueryStyle as be } from "./providers/SeldonProvider/utils.js";
|
|
33
|
-
import { AuctionStatus as
|
|
33
|
+
import { AuctionStatus as Be, LotStatus as Ve, SupportedLanguages as ke } from "./types/commonTypes.js";
|
|
34
34
|
import { default as ve } from "./components/Button/Button.js";
|
|
35
35
|
import { ButtonVariants as Fe } from "./components/Button/types.js";
|
|
36
36
|
import { default as Me } from "./components/IconButton/IconButton.js";
|
|
@@ -56,8 +56,8 @@ import { default as Ct } from "./components/Select/Select.js";
|
|
|
56
56
|
import { SelectVariants as Lt } from "./components/Select/types.js";
|
|
57
57
|
import { default as Pt } from "./components/SplitPanel/SplitPanel.js";
|
|
58
58
|
import { default as bt } from "./patterns/Subscribe/Subscribe.js";
|
|
59
|
-
import { SubscriptionState as
|
|
60
|
-
import { default as
|
|
59
|
+
import { SubscriptionState as Bt } from "./patterns/Subscribe/types.js";
|
|
60
|
+
import { default as kt } from "./patterns/Social/Social.js";
|
|
61
61
|
import { default as vt } from "./patterns/ViewingsList/ViewingsList.js";
|
|
62
62
|
import { default as Ft } from "./components/Modal/Modal.js";
|
|
63
63
|
import { default as Mt } from "./components/Drawer/Drawer.js";
|
|
@@ -84,8 +84,8 @@ import { HeightUnits as Co } from "./components/ContentPeek/utils.js";
|
|
|
84
84
|
import { default as Lo } from "./components/Collapsible/Collapsible.js";
|
|
85
85
|
import { default as Po } from "./components/Collapsible/CollapsibleContent.js";
|
|
86
86
|
import { default as bo } from "./components/Collapsible/CollapsibleTrigger.js";
|
|
87
|
-
import { SeldonProvider as
|
|
88
|
-
import { default as
|
|
87
|
+
import { SeldonProvider as Bo } from "./providers/SeldonProvider/SeldonProvider.js";
|
|
88
|
+
import { default as ko } from "./components/PageContentWrapper/PageContentWrapper.js";
|
|
89
89
|
import { default as vo } from "./components/Carousel/Carousel.js";
|
|
90
90
|
import { default as Fo } from "./components/Carousel/CarouselContent.js";
|
|
91
91
|
import { default as Mo } from "./components/Carousel/CarouselItem.js";
|
|
@@ -99,17 +99,16 @@ import { default as Zo } from "./components/Tabs/TabsContent.js";
|
|
|
99
99
|
import { default as Jo } from "./components/SeldonImage/SeldonImage.js";
|
|
100
100
|
import { default as Xo } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
|
|
101
101
|
import { default as $o } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
|
|
102
|
-
import {
|
|
103
|
-
import { default as rr } from "./
|
|
104
|
-
import { default as fr } from "./components/Filter/
|
|
105
|
-
import { default as lr } from "./components/Filter/
|
|
106
|
-
import { default as mr } from "./components/
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import { default as gr } from "./patterns/
|
|
110
|
-
import { default as Cr } from "./patterns/BidSnapshot/
|
|
111
|
-
import {
|
|
112
|
-
import { BidMessageVariants as Pr, BidStatusEnum as Ir } from "./patterns/BidSnapshot/types.js";
|
|
102
|
+
import { default as tr } from "./patterns/FilterMenu/FilterMenu.js";
|
|
103
|
+
import { default as rr } from "./components/Filter/Filter.js";
|
|
104
|
+
import { default as fr } from "./components/Filter/FilterInput.js";
|
|
105
|
+
import { default as lr } from "./components/Filter/FilterHeader.js";
|
|
106
|
+
import { default as mr } from "./components/Countdown/Countdown.js";
|
|
107
|
+
import { CountdownVariants as ur } from "./components/Countdown/types.js";
|
|
108
|
+
import { default as ir } from "./patterns/ObjectTile/ObjectTile.js";
|
|
109
|
+
import { default as gr } from "./patterns/BidSnapshot/BidSnapshot.js";
|
|
110
|
+
import { default as Cr } from "./patterns/BidSnapshot/BidMessage.js";
|
|
111
|
+
import { BidMessageVariants as Lr, BidStatusEnum as hr } from "./patterns/BidSnapshot/types.js";
|
|
113
112
|
export {
|
|
114
113
|
Jt as Accordion,
|
|
115
114
|
Xt as AccordionItem,
|
|
@@ -117,13 +116,12 @@ export {
|
|
|
117
116
|
eo as AccordionVariants,
|
|
118
117
|
S as AccountCircle,
|
|
119
118
|
h as ArrowPrev,
|
|
120
|
-
|
|
121
|
-
Ae as AuctionStatus,
|
|
119
|
+
Be as AuctionStatus,
|
|
122
120
|
ao as AuthState,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
121
|
+
Cr as BidMessage,
|
|
122
|
+
Lr as BidMessageVariants,
|
|
123
|
+
gr as BidSnapshot,
|
|
124
|
+
hr as BidStatusEnum,
|
|
127
125
|
so as Breadcrumb,
|
|
128
126
|
ve as Button,
|
|
129
127
|
Fe as ButtonVariants,
|
|
@@ -133,8 +131,8 @@ export {
|
|
|
133
131
|
Fo as CarouselContent,
|
|
134
132
|
Ho as CarouselDots,
|
|
135
133
|
Mo as CarouselItem,
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
V as ChevronDown,
|
|
135
|
+
A as ChevronNext,
|
|
138
136
|
w as ChevronRight,
|
|
139
137
|
y as Close,
|
|
140
138
|
Lo as Collapsible,
|
|
@@ -142,8 +140,8 @@ export {
|
|
|
142
140
|
bo as CollapsibleTrigger,
|
|
143
141
|
go as ContentPeek,
|
|
144
142
|
Co as ContentPeekHeightUnits,
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
mr as Countdown,
|
|
144
|
+
ur as CountdownVariants,
|
|
147
145
|
Ro as Detail,
|
|
148
146
|
Oo as DetailList,
|
|
149
147
|
Eo as DetailListAlignment,
|
|
@@ -153,10 +151,10 @@ export {
|
|
|
153
151
|
G as Facebook,
|
|
154
152
|
D as Favorite,
|
|
155
153
|
N as FavoriteOutline,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
rr as Filter,
|
|
155
|
+
lr as FilterHeader,
|
|
156
|
+
fr as FilterInput,
|
|
157
|
+
tr as FilterMenu,
|
|
160
158
|
Re as Footer,
|
|
161
159
|
U as FooterInstagram,
|
|
162
160
|
z as FooterWeChat,
|
|
@@ -176,17 +174,17 @@ export {
|
|
|
176
174
|
rt as LinkVariants,
|
|
177
175
|
W as LinkedIn,
|
|
178
176
|
K as Lock,
|
|
179
|
-
|
|
177
|
+
Ve as LotStatus,
|
|
180
178
|
_ as Minus,
|
|
181
179
|
Ft as Modal,
|
|
182
180
|
Qe as Navigation,
|
|
183
181
|
je as NavigationItem,
|
|
184
182
|
Ze as NavigationItemTrigger,
|
|
185
183
|
Je as NavigationList,
|
|
186
|
-
|
|
184
|
+
ir as ObjectTile,
|
|
187
185
|
f as PaddingTokens,
|
|
188
186
|
Se as Page,
|
|
189
|
-
|
|
187
|
+
ko as PageContentWrapper,
|
|
190
188
|
Ht as Pagination,
|
|
191
189
|
ee as PhillipsLogo,
|
|
192
190
|
Qo as PinchZoom,
|
|
@@ -200,18 +198,18 @@ export {
|
|
|
200
198
|
$o as SaleHeaderBrowseAuctions,
|
|
201
199
|
gt as Search,
|
|
202
200
|
Jo as SeldonImage,
|
|
203
|
-
|
|
201
|
+
Bo as SeldonProvider,
|
|
204
202
|
Ct as Select,
|
|
205
203
|
Lt as SelectVariants,
|
|
206
204
|
se as Share,
|
|
207
|
-
|
|
205
|
+
kt as Social,
|
|
208
206
|
s as SpacingTokens,
|
|
209
207
|
Pt as SplitPanel,
|
|
210
208
|
de as Spotify,
|
|
211
209
|
Ot as StatefulViewingsList,
|
|
212
210
|
bt as Subscribe,
|
|
213
|
-
|
|
214
|
-
|
|
211
|
+
Bt as SubscriptionState,
|
|
212
|
+
ke as SupportedLanguages,
|
|
215
213
|
jo as TabsContainer,
|
|
216
214
|
Zo as TabsContent,
|
|
217
215
|
Rt as TagsList,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as e } from "../../../../_virtual/
|
|
1
|
+
import { __module as e } from "../../../../_virtual/index6.js";
|
|
2
2
|
import { __require as o } from "./cjs/react-is.production.min.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.development.js";
|
|
4
4
|
var r;
|
|
@@ -48,9 +48,13 @@ export interface SaleHeaderBannerProps extends ComponentProps<'div'> {
|
|
|
48
48
|
*/
|
|
49
49
|
auctionState: AuctionStatus;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* The label for the header
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
headerLabel: React.ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* An element to be rendered at the bottom of the banner
|
|
56
|
+
*/
|
|
57
|
+
footerElement?: React.ReactNode;
|
|
54
58
|
/**
|
|
55
59
|
* What action does the CTA take?
|
|
56
60
|
*/
|
|
@@ -1,66 +1,67 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { AuctionStatus as
|
|
8
|
-
import { TextVariants as
|
|
9
|
-
import
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as C } from "react";
|
|
3
|
+
import { getCommonProps as b } from "../../utils/index.js";
|
|
4
|
+
import P from "../../node_modules/classnames/index.js";
|
|
5
|
+
import _ from "../../components/Countdown/Countdown.js";
|
|
6
|
+
import j from "../../components/SeldonImage/SeldonImage.js";
|
|
7
|
+
import { AuctionStatus as H } from "../../types/commonTypes.js";
|
|
8
|
+
import { TextVariants as r } from "../../components/Text/types.js";
|
|
9
|
+
import t from "../../components/Text/Text.js";
|
|
10
10
|
import y from "../../components/PageContentWrapper/PageContentWrapper.js";
|
|
11
|
-
|
|
12
|
-
const F = b(
|
|
11
|
+
const D = C(
|
|
13
12
|
({
|
|
14
|
-
auctionEndTime:
|
|
13
|
+
auctionEndTime: s,
|
|
15
14
|
auctionTitle: n,
|
|
16
|
-
imageSrcUrl:
|
|
17
|
-
imageSrcSet:
|
|
18
|
-
imageSizes:
|
|
19
|
-
imageLoading:
|
|
20
|
-
imageFetchPriority:
|
|
21
|
-
location:
|
|
22
|
-
auctionState:
|
|
15
|
+
imageSrcUrl: p,
|
|
16
|
+
imageSrcSet: f,
|
|
17
|
+
imageSizes: h,
|
|
18
|
+
imageLoading: v,
|
|
19
|
+
imageFetchPriority: N,
|
|
20
|
+
location: g,
|
|
21
|
+
auctionState: $,
|
|
23
22
|
occurrenceInformation: S,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
onClick: F,
|
|
24
|
+
children: u,
|
|
25
|
+
className: k,
|
|
26
|
+
footerElement: w,
|
|
27
|
+
headerLabel: x,
|
|
28
|
+
...o
|
|
29
29
|
}, c) => {
|
|
30
|
-
const { className:
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
|
|
30
|
+
const { className: a, ...l } = b(o, "SaleHeaderBanner"), m = $ === H.live;
|
|
31
|
+
return /* @__PURE__ */ i("div", { ...l, className: P(a, k), ...o, ref: c, children: [
|
|
32
|
+
m && s ? /* @__PURE__ */ e("div", { className: `${a}__stack__mobile-countdown`, children: /* @__PURE__ */ e(_, { endDateTime: s, showBottomBorder: !1 }) }) : null,
|
|
33
|
+
/* @__PURE__ */ e(
|
|
34
|
+
j,
|
|
35
35
|
{
|
|
36
36
|
aspectRatio: "16/9",
|
|
37
|
-
src:
|
|
37
|
+
src: p,
|
|
38
38
|
alt: String(n),
|
|
39
39
|
objectFit: "cover",
|
|
40
|
-
className: `${
|
|
41
|
-
srcSet:
|
|
42
|
-
sizes:
|
|
43
|
-
loading:
|
|
44
|
-
fetchPriority:
|
|
40
|
+
className: `${a}__image`,
|
|
41
|
+
srcSet: f,
|
|
42
|
+
sizes: h,
|
|
43
|
+
loading: v,
|
|
44
|
+
fetchPriority: N
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
56
|
-
|
|
47
|
+
/* @__PURE__ */ e(y, { className: `${a}__stack-wrapper`, ...l, ...o, ref: c, children: /* @__PURE__ */ i("div", { className: `${a}__stack`, children: [
|
|
48
|
+
m && s ? /* @__PURE__ */ e("div", { className: `${a}__stack__desktop-countdown`, children: /* @__PURE__ */ e(_, { endDateTime: s }) }) : null,
|
|
49
|
+
/* @__PURE__ */ e(t, { variant: r.badge, children: x }),
|
|
50
|
+
/* @__PURE__ */ e(t, { variant: r.title1, children: n }),
|
|
51
|
+
/* @__PURE__ */ e(t, { variant: r.string2, className: `${a}__location`, children: g }),
|
|
52
|
+
/* @__PURE__ */ i("div", { className: `${a}__occurrence-details`, children: [
|
|
53
|
+
S.map(({ date: d, occurrenceLabel: B }) => /* @__PURE__ */ i("div", { className: `${a}__occurrence-details-text`, children: [
|
|
54
|
+
/* @__PURE__ */ e(t, { variant: r.string2, children: B }),
|
|
55
|
+
/* @__PURE__ */ e(t, { variant: r.string2, className: `${a}__date`, children: d })
|
|
56
|
+
] }, String(d))),
|
|
57
|
+
u
|
|
57
58
|
] }),
|
|
58
|
-
|
|
59
|
+
w
|
|
59
60
|
] }) })
|
|
60
61
|
] });
|
|
61
62
|
}
|
|
62
63
|
);
|
|
63
|
-
|
|
64
|
+
D.displayName = "SaleHeaderBanner";
|
|
64
65
|
export {
|
|
65
|
-
|
|
66
|
+
D as default
|
|
66
67
|
};
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
|
|
49
49
|
&__occurrence-details {
|
|
50
50
|
display: flex;
|
|
51
|
-
margin-bottom: 1.5rem;
|
|
52
51
|
|
|
53
52
|
&-text {
|
|
54
53
|
align-items: flex-start;
|
|
@@ -56,13 +55,20 @@
|
|
|
56
55
|
flex-direction: column;
|
|
57
56
|
gap: 4px;
|
|
58
57
|
|
|
58
|
+
&::before,
|
|
59
|
+
&::after {
|
|
60
|
+
content: '';
|
|
61
|
+
display: block;
|
|
62
|
+
height: 1rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
59
65
|
&:first-child {
|
|
60
|
-
padding-right: $spacing-
|
|
66
|
+
padding-right: $spacing-xsm;
|
|
61
67
|
}
|
|
62
68
|
|
|
63
69
|
&:not(:first-child) {
|
|
64
70
|
border-left: 1px solid $keyline-gray;
|
|
65
|
-
padding:
|
|
71
|
+
padding-left: $spacing-xsm;
|
|
66
72
|
}
|
|
67
73
|
}
|
|
68
74
|
}
|
package/package.json
CHANGED