@phillips/seldon 1.107.0 → 1.108.1

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.
@@ -1,4 +1,5 @@
1
1
  import { ComponentProps } from 'react';
2
+ import { CountdownProps } from '../../components/Countdown';
2
3
  import { AuctionStatus } from '../../types/commonTypes';
3
4
  export interface SaleHeaderBannerProps extends ComponentProps<'div'> {
4
5
  /**
@@ -33,6 +34,14 @@ export interface SaleHeaderBannerProps extends ComponentProps<'div'> {
33
34
  * Where is the auction taking place?
34
35
  */
35
36
  location: React.ReactNode;
37
+ /**
38
+ * Lots close in text
39
+ */
40
+ countdownTimerLabel?: CountdownProps['label'];
41
+ /**
42
+ * The format of the countdown timer durations, i.e. minutes, hours, days, seconds (this is used for translating the countdown timer
43
+ */
44
+ countdownFormatDuration?: CountdownProps['formatDurationStr'];
36
45
  occurrenceInformation: {
37
46
  /**
38
47
  * Depending on auction state, when does the auction open or close
@@ -1,67 +1,73 @@
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";
1
+ import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
+ import { forwardRef as j } from "react";
3
+ import { getCommonProps as H } from "../../utils/index.js";
4
+ import y from "../../node_modules/classnames/index.js";
5
+ import p from "../../components/Countdown/Countdown.js";
6
+ import D from "../../components/SeldonImage/SeldonImage.js";
7
+ import { AuctionStatus as F } from "../../types/commonTypes.js";
8
8
  import { TextVariants as r } from "../../components/Text/types.js";
9
9
  import t from "../../components/Text/Text.js";
10
- import y from "../../components/PageContentWrapper/PageContentWrapper.js";
11
- const D = C(
10
+ import R from "../../components/PageContentWrapper/PageContentWrapper.js";
11
+ const z = j(
12
12
  ({
13
13
  auctionEndTime: s,
14
- auctionTitle: n,
15
- imageSrcUrl: p,
16
- imageSrcSet: f,
17
- imageSizes: h,
18
- imageLoading: v,
19
- imageFetchPriority: N,
20
- location: g,
21
- auctionState: $,
22
- occurrenceInformation: S,
23
- onClick: F,
24
- children: u,
25
- className: k,
26
- footerElement: w,
27
- headerLabel: x,
28
- ...o
14
+ auctionTitle: i,
15
+ imageSrcUrl: f,
16
+ imageSrcSet: h,
17
+ imageSizes: v,
18
+ imageLoading: N,
19
+ imageFetchPriority: g,
20
+ location: u,
21
+ countdownTimerLabel: S,
22
+ countdownFormatDuration: $,
23
+ auctionState: w,
24
+ occurrenceInformation: k,
25
+ onClick: A,
26
+ children: x,
27
+ className: B,
28
+ footerElement: b,
29
+ headerLabel: C,
30
+ ...n
29
31
  }, c) => {
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,
32
+ const { className: e, ...l } = H(n, "SaleHeaderBanner"), m = w === F.live, d = {
33
+ endDateTime: s,
34
+ label: S,
35
+ formatDurationStr: $
36
+ };
37
+ return /* @__PURE__ */ o("div", { ...l, className: y(e, B), ...n, ref: c, children: [
38
+ m && s ? /* @__PURE__ */ a("div", { className: `${e}__stack__mobile-countdown`, children: /* @__PURE__ */ a(p, { ...d, showBottomBorder: !1 }) }) : null,
39
+ /* @__PURE__ */ a(
40
+ D,
35
41
  {
36
42
  aspectRatio: "16/9",
37
- src: p,
38
- alt: String(n),
43
+ src: f,
44
+ alt: String(i),
39
45
  objectFit: "cover",
40
- className: `${a}__image`,
41
- srcSet: f,
42
- sizes: h,
43
- loading: v,
44
- fetchPriority: N
46
+ className: `${e}__image`,
47
+ srcSet: h,
48
+ sizes: v,
49
+ loading: N,
50
+ fetchPriority: g
45
51
  }
46
52
  ),
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
53
+ /* @__PURE__ */ a(R, { className: `${e}__stack-wrapper`, ...l, ...n, ref: c, children: /* @__PURE__ */ o("div", { className: `${e}__stack`, children: [
54
+ m && s ? /* @__PURE__ */ a("div", { className: `${e}__stack__desktop-countdown`, children: /* @__PURE__ */ a(p, { ...d }) }) : null,
55
+ /* @__PURE__ */ a(t, { variant: r.badge, children: C }),
56
+ /* @__PURE__ */ a(t, { variant: r.title1, children: i }),
57
+ /* @__PURE__ */ a(t, { variant: r.string2, className: `${e}__location`, children: u }),
58
+ /* @__PURE__ */ o("div", { className: `${e}__occurrence-details`, children: [
59
+ k.map(({ date: _, occurrenceLabel: P }) => /* @__PURE__ */ o("div", { className: `${e}__occurrence-details-text`, children: [
60
+ /* @__PURE__ */ a(t, { variant: r.string2, children: P }),
61
+ /* @__PURE__ */ a(t, { variant: r.string2, className: `${e}__date`, children: _ })
62
+ ] }, String(_))),
63
+ x
58
64
  ] }),
59
- w
65
+ b
60
66
  ] }) })
61
67
  ] });
62
68
  }
63
69
  );
64
- D.displayName = "SaleHeaderBanner";
70
+ z.displayName = "SaleHeaderBanner";
65
71
  export {
66
- D as default
72
+ z as default
67
73
  };
@@ -43,6 +43,10 @@
43
43
  @mixin gridMargins {
44
44
  margin: 0 $spacing-md;
45
45
 
46
+ @media (min-width: $breakpoint-md) {
47
+ margin: 0 $spacing-xxxl;
48
+ }
49
+
46
50
  @media (min-width: $breakpoint-lg) {
47
51
  margin: 0 $spacing-lg;
48
52
  }
@@ -323,6 +323,7 @@ $snowflake-menu-padding: 1.25rem;
323
323
  --spacing-lg: 2.75rem;
324
324
  --spacing-xl: 3.75rem;
325
325
  --spacing-xxl: 4.75rem;
326
+ --spacing-xxxl: 5.75rem;
326
327
 
327
328
  @media (min-width: $breakpoint-md) {
328
329
  --spacing-micro: 0.25rem;
@@ -332,6 +333,7 @@ $snowflake-menu-padding: 1.25rem;
332
333
  --spacing-lg: 3rem;
333
334
  --spacing-xl: 4rem;
334
335
  --spacing-xxl: 5rem;
336
+ --spacing-xxxl: 6rem;
335
337
  }
336
338
 
337
339
  @media (min-width: $breakpoint-xl) {
@@ -342,6 +344,7 @@ $snowflake-menu-padding: 1.25rem;
342
344
  --spacing-lg: 3.75rem;
343
345
  --spacing-xl: 5rem;
344
346
  --spacing-xxl: 5.25rem;
347
+ --spacing-xxxl: 6.25rem;
345
348
  }
346
349
  }
347
350
 
@@ -352,7 +355,8 @@ $spacing-md: var(--spacing-md);
352
355
  $spacing-lg: var(--spacing-lg);
353
356
  $spacing-xl: var(--spacing-xl);
354
357
  $spacing-xxl: var(--spacing-xl);
355
- $spacing-sizes: micro, xsm, sm, md, lg, xl, xxl;
358
+ $spacing-xxxl: var(--spacing-xxxl);
359
+ $spacing-sizes: micro, xsm, sm, md, lg, xl, xxl, xxxl;
356
360
 
357
361
  // PADDING
358
362
  $padding-micro: var(--spacing-micro);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.107.0",
3
+ "version": "1.108.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"
@@ -121,7 +121,7 @@
121
121
  "ts-node": "^10.9.2",
122
122
  "type-fest": "^4.27.0",
123
123
  "typescript": "^5.5.4",
124
- "vite": "^5.4.6",
124
+ "vite": "^5.4.14",
125
125
  "vite-plugin-dts": "^4.2.4",
126
126
  "vite-plugin-svgr": "^4.2.0",
127
127
  "vite-tsconfig-paths": "^4.3.2",