@phillips/seldon 1.110.1 → 1.110.3

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