@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 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 B } from "./assets/chevronDown.svg.js";
7
- import { default as k } from "./assets/chevronNext.svg.js";
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 Ae, LotStatus as Be, SupportedLanguages as Ve } from "./types/commonTypes.js";
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 At } from "./patterns/Subscribe/types.js";
60
- import { default as Vt } from "./patterns/Social/Social.js";
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 Ao } from "./providers/SeldonProvider/SeldonProvider.js";
88
- import { default as Vo } from "./components/PageContentWrapper/PageContentWrapper.js";
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 { AuctionState as tr } from "./patterns/SaleHeaderBanner/types.js";
103
- import { default as rr } from "./patterns/FilterMenu/FilterMenu.js";
104
- import { default as fr } from "./components/Filter/Filter.js";
105
- import { default as lr } from "./components/Filter/FilterInput.js";
106
- import { default as mr } from "./components/Filter/FilterHeader.js";
107
- import { default as ur } from "./components/Countdown/Countdown.js";
108
- import { CountdownVariants as ir } from "./components/Countdown/types.js";
109
- import { default as gr } from "./patterns/ObjectTile/ObjectTile.js";
110
- import { default as Cr } from "./patterns/BidSnapshot/BidSnapshot.js";
111
- import { default as Lr } from "./patterns/BidSnapshot/BidMessage.js";
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
- tr as AuctionState,
121
- Ae as AuctionStatus,
119
+ Be as AuctionStatus,
122
120
  ao as AuthState,
123
- Lr as BidMessage,
124
- Pr as BidMessageVariants,
125
- Cr as BidSnapshot,
126
- Ir as BidStatusEnum,
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
- B as ChevronDown,
137
- k as ChevronNext,
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
- ur as Countdown,
146
- ir as CountdownVariants,
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
- fr as Filter,
157
- mr as FilterHeader,
158
- lr as FilterInput,
159
- rr as FilterMenu,
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
- Be as LotStatus,
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
- gr as ObjectTile,
184
+ ir as ObjectTile,
187
185
  f as PaddingTokens,
188
186
  Se as Page,
189
- Vo as PageContentWrapper,
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
- Ao as SeldonProvider,
201
+ Bo as SeldonProvider,
204
202
  Ct as Select,
205
203
  Lt as SelectVariants,
206
204
  se as Share,
207
- Vt as Social,
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
- At as SubscriptionState,
214
- Ve as SupportedLanguages,
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 t } from "../../_virtual/index6.js";
1
+ import { __module as t } from "../../_virtual/index5.js";
2
2
  /*!
3
3
  Copyright (c) 2015 Jed Watson.
4
4
  Based on code that is Copyright 2013-2015, Facebook, Inc.
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../../../_virtual/index5.js";
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
- * What text should the CTA button display?
51
+ * The label for the header
52
52
  */
53
- ctaLabel?: React.ReactNode;
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 s, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as b } from "react";
3
- import { getCommonProps as j } from "../../utils/index.js";
4
- import H from "../../node_modules/classnames/index.js";
5
- import f from "../../components/Countdown/Countdown.js";
6
- import R from "../../components/SeldonImage/SeldonImage.js";
7
- import { AuctionStatus as h } from "../../types/commonTypes.js";
8
- import { TextVariants as t } from "../../components/Text/types.js";
9
- import o from "../../components/Text/Text.js";
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
- import D from "../../components/Button/Button.js";
12
- const F = b(
11
+ const D = C(
13
12
  ({
14
- auctionEndTime: a,
13
+ auctionEndTime: s,
15
14
  auctionTitle: n,
16
- imageSrcUrl: N,
17
- imageSrcSet: g,
18
- imageSizes: v,
19
- imageLoading: $,
20
- imageFetchPriority: u,
21
- location: B,
22
- auctionState: l,
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
- ctaLabel: w = "Register to Bid",
25
- onClick: x,
26
- children: k,
27
- className: C,
28
- ...i
23
+ onClick: F,
24
+ children: u,
25
+ className: k,
26
+ footerElement: w,
27
+ headerLabel: x,
28
+ ...o
29
29
  }, c) => {
30
- const { className: e, ...m } = j(i, "SaleHeaderBanner"), d = l === h.live, _ = l === h.past;
31
- return /* @__PURE__ */ s("div", { ...m, className: H(e, C), ...i, ref: c, children: [
32
- d && a ? /* @__PURE__ */ r("div", { className: `${e}__stack__mobile-countdown`, children: /* @__PURE__ */ r(f, { endDateTime: a, showBottomBorder: !1 }) }) : null,
33
- /* @__PURE__ */ r(
34
- R,
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: N,
37
+ src: p,
38
38
  alt: String(n),
39
39
  objectFit: "cover",
40
- className: `${e}__image`,
41
- srcSet: g,
42
- sizes: v,
43
- loading: $,
44
- fetchPriority: u
40
+ className: `${a}__image`,
41
+ srcSet: f,
42
+ sizes: h,
43
+ loading: v,
44
+ fetchPriority: N
45
45
  }
46
46
  ),
47
- /* @__PURE__ */ r(y, { className: `${e}__stack-wrapper`, ...m, ...i, ref: c, children: /* @__PURE__ */ s("div", { className: `${e}__stack`, children: [
48
- d && a ? /* @__PURE__ */ r("div", { className: `${e}__stack__desktop-countdown`, children: /* @__PURE__ */ r(f, { endDateTime: a }) }) : null,
49
- /* @__PURE__ */ r(o, { variant: t.title1, children: n }),
50
- /* @__PURE__ */ r(o, { variant: t.string2, className: `${e}__location`, children: B }),
51
- /* @__PURE__ */ s("div", { className: `${e}__occurrence-details`, children: [
52
- S.map(({ date: p, occurrenceLabel: P }) => /* @__PURE__ */ s("div", { className: `${e}__occurrence-details-text`, children: [
53
- /* @__PURE__ */ r(o, { variant: t.string2, children: P }),
54
- /* @__PURE__ */ r(o, { variant: t.string2, className: `${e}__date`, children: p })
55
- ] }, String(p))),
56
- _ ? k : null
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
- _ ? null : /* @__PURE__ */ r(D, { className: `${e}__cta`, onClick: x, children: w })
59
+ w
59
60
  ] }) })
60
61
  ] });
61
62
  }
62
63
  );
63
- F.displayName = "SaleHeaderBanner";
64
+ D.displayName = "SaleHeaderBanner";
64
65
  export {
65
- F as default
66
+ D as default
66
67
  };
@@ -16,6 +16,7 @@ export declare const Playground: {
16
16
  location: string;
17
17
  auctionState: AuctionStatus;
18
18
  imageSrcUrl: string;
19
+ headerLabel: string;
19
20
  };
20
21
  argTypes: {
21
22
  auctionState: {
@@ -1,3 +1,2 @@
1
1
  export { default as SaleHeaderBanner, type SaleHeaderBannerProps } from './SaleHeaderBanner';
2
2
  export { default as SaleHeaderBrowseAuctions, type SaleHeaderBrowseAuctionsProps } from './SaleHeaderBrowseAuctions';
3
- export { AuctionState } from './types';
@@ -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-md;
66
+ padding-right: $spacing-xsm;
61
67
  }
62
68
 
63
69
  &:not(:first-child) {
64
70
  border-left: 1px solid $keyline-gray;
65
- padding: 0 $spacing-md;
71
+ padding-left: $spacing-xsm;
66
72
  }
67
73
  }
68
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.102.0",
3
+ "version": "1.103.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"
@@ -1,5 +0,0 @@
1
- export declare enum AuctionState {
2
- preSale = "PRESALE",
3
- openForBidding = "OPEN_FOR_BIDDING",
4
- past = "PAST"
5
- }
@@ -1,4 +0,0 @@
1
- var p = /* @__PURE__ */ ((r) => (r.preSale = "PRESALE", r.openForBidding = "OPEN_FOR_BIDDING", r.past = "PAST", r))(p || {});
2
- export {
3
- p as AuctionState
4
- };