@phillips/seldon 1.122.2 → 1.123.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.
@@ -1,74 +1,74 @@
1
- import { jsxs as g, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as S, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as V } from "react";
3
3
  import k from "../../node_modules/classnames/index.js";
4
4
  import { getCommonProps as q, findChildrenOfType as z, findChildrenExcludingTypes as D } from "../../utils/index.js";
5
5
  import F from "../DetailList/DetailList.js";
6
6
  import d from "../../components/Detail/Detail.js";
7
- import { LotStatus as t, SupportedLanguages as G } from "../../types/commonTypes.js";
7
+ import { LotStatus as n, SupportedLanguages as G } from "../../types/commonTypes.js";
8
8
  import H from "../../components/Countdown/Countdown.js";
9
9
  import { CountdownVariants as J } from "../../components/Countdown/types.js";
10
10
  import { BidStatusEnum as K } from "./types.js";
11
- import S from "./BidMessage.js";
12
- import { isAfter as v } from "../../node_modules/date-fns/isAfter.js";
11
+ import v from "./BidMessage.js";
12
+ import { isAfter as L } from "../../node_modules/date-fns/isAfter.js";
13
13
  import { differenceInMinutes as Q } from "../../node_modules/date-fns/differenceInMinutes.js";
14
14
  const U = (o) => o === 1 ? `${o} bid` : `${o} bids`, X = V(
15
15
  ({
16
- lotStatus: o = t.ready,
16
+ lotStatus: o = n.ready,
17
17
  bidStatus: p,
18
- bidsLabelText: L = U,
18
+ bidsLabelText: w = U,
19
19
  children: c,
20
- className: w,
21
- closingText: C = "Closes in",
22
- currency: r = "$",
20
+ className: C,
21
+ closingText: x = "Closes in",
22
+ currency: t = "$",
23
23
  currentBid: f,
24
- currentBidText: x = "Current bid",
25
- formatDurationStr: N = (s) => s.replace(/seconds?/, "sec").replace(/minutes?/, "min"),
26
- lang: T = "en",
27
- saleCloseDate: i,
28
- lotCloseDate: l,
24
+ currentBidText: N = "Current bid",
25
+ formatDurationStr: T = (s) => s.replace(/seconds?/, "sec").replace(/minutes?/, "min"),
26
+ lang: W = "en",
27
+ saleCloseDate: r,
28
+ lotCloseDate: i,
29
29
  numberOfBids: h = 0,
30
- startingBid: W,
31
- startingBidText: y = "Starting bid",
30
+ startingBid: y,
31
+ startingBidText: B = "Starting bid",
32
32
  soldPrice: u,
33
- soldForText: B = "Sold for",
34
- wonForText: M = "Won for",
33
+ soldForText: M = "Sold for",
34
+ wonForText: j = "Won for",
35
35
  ...$
36
- }, j) => {
37
- const { className: s, ...E } = q($, "BidSnapshot"), a = f !== null && h > 0, b = o === t.ready, e = o === t.live, P = o === t.past, m = /* @__PURE__ */ new Date(), R = e && l && v(l, m) && i && (Q(i, m) < 60 || v(m, i)), _ = z(c, S), A = D(c, [S]), I = k(s, w, {
38
- [`${s}--live`]: e,
39
- [`${s}--has-bids`]: a
36
+ }, E) => {
37
+ const { className: s, ...P } = q($, "BidSnapshot"), l = f !== null && h > 0, b = o === n.ready, a = o === n.live, g = o === n.past, m = /* @__PURE__ */ new Date(), R = a && i && L(i, m) && r && (Q(r, m) < 60 || L(m, r)), _ = z(c, v), A = D(c, [v]), I = k(s, C, {
38
+ [`${s}--live`]: a,
39
+ [`${s}--has-bids`]: l || g
40
40
  });
41
- return /* @__PURE__ */ g("div", { ...E, ...$, ref: j, className: I, children: [
42
- /* @__PURE__ */ g(F, { hasSeparators: !0, className: `${s}__text`, children: [
43
- P && a ? /* @__PURE__ */ n(
41
+ return /* @__PURE__ */ S("div", { ...P, ...$, ref: E, className: I, children: [
42
+ /* @__PURE__ */ S(F, { hasSeparators: !0, className: `${s}__text`, children: [
43
+ g ? /* @__PURE__ */ e(
44
44
  d,
45
45
  {
46
- label: p === K.Won ? M : B,
47
- value: u ? `${r}${u?.toLocaleString()}` : "",
46
+ label: p === K.Won ? j : M,
47
+ value: u ? `${t}${u?.toLocaleString()}` : "",
48
48
  hasWrap: !1
49
49
  }
50
50
  ) : null,
51
- e && a ? /* @__PURE__ */ n(
51
+ a && l ? /* @__PURE__ */ e(
52
52
  d,
53
53
  {
54
- label: x,
55
- subLabel: `(${L(h)})`,
56
- value: `${r}${f?.toLocaleString()}`,
54
+ label: N,
55
+ subLabel: `(${w(h)})`,
56
+ value: `${t}${f?.toLocaleString()}`,
57
57
  hasWrap: !1
58
58
  }
59
59
  ) : null,
60
- b || e && !a ? /* @__PURE__ */ n(d, { label: y, value: `${r}${W?.toLocaleString()}`, hasWrap: !1 }) : null
60
+ b || a && !l ? /* @__PURE__ */ e(d, { label: B, value: `${t}${y?.toLocaleString()}`, hasWrap: !1 }) : null
61
61
  ] }),
62
62
  p && !b ? _ : null,
63
63
  A,
64
- R ? /* @__PURE__ */ n(
64
+ R ? /* @__PURE__ */ e(
65
65
  H,
66
66
  {
67
- endDateTime: l,
68
- label: C,
67
+ endDateTime: i,
68
+ label: x,
69
69
  variant: J.compact,
70
- locale: G[T],
71
- formatDurationStr: N,
70
+ locale: G[W],
71
+ formatDurationStr: T,
72
72
  showBottomBorder: !1
73
73
  }
74
74
  ) : null
@@ -39,8 +39,9 @@
39
39
 
40
40
  .#{$px}-object-tile__lot-badge {
41
41
  display: inline-block;
42
- left: 4%;
43
- position: absolute;
42
+ padding-left: $spacing-xsm;
43
+ position: relative;
44
+ transform: translateY(15%);
44
45
 
45
46
  svg {
46
47
  height: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.122.2",
3
+ "version": "1.123.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"