@phillips/seldon 1.230.0 → 1.230.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.
|
@@ -21,17 +21,17 @@ const A = z(
|
|
|
21
21
|
label: d = "Lots Close in",
|
|
22
22
|
intervalDescription: N,
|
|
23
23
|
className: b,
|
|
24
|
-
locale:
|
|
25
|
-
showBottomBorder:
|
|
26
|
-
variant:
|
|
24
|
+
locale: g = "en",
|
|
25
|
+
showBottomBorder: $ = !0,
|
|
26
|
+
variant: a = c.default,
|
|
27
27
|
getCurrentDateTime: e = () => /* @__PURE__ */ new Date(),
|
|
28
28
|
...p
|
|
29
29
|
}, L) => {
|
|
30
|
-
const { className:
|
|
31
|
-
days: y(o,
|
|
32
|
-
hours: I(o,
|
|
33
|
-
minutes: x(o,
|
|
34
|
-
seconds: (C(o,
|
|
30
|
+
const { className: n, ...M } = E(p, "Countdown"), [r, V] = P(e() || /* @__PURE__ */ new Date()), i = g === H.zh ? U : k, s = {
|
|
31
|
+
days: y(o, r) > 0 ? y(o, r) : 0,
|
|
32
|
+
hours: I(o, r) > 0 ? I(o, r) % 24 : 0,
|
|
33
|
+
minutes: x(o, r) > 0 ? x(o, r) % 60 : 0,
|
|
34
|
+
seconds: (C(o, r) > 0 ? C(o, r) % 60 : 0) % 60
|
|
35
35
|
};
|
|
36
36
|
S(() => {
|
|
37
37
|
const u = setInterval(() => {
|
|
@@ -42,28 +42,29 @@ const A = z(
|
|
|
42
42
|
const j = _(() => {
|
|
43
43
|
const u = e();
|
|
44
44
|
return !!u && new Date(o).getTime() > u.getTime();
|
|
45
|
-
}, [o, e]), v = q(o,
|
|
45
|
+
}, [o, e]), v = q(o, r) <= 3 * 60 * 1e3, l = a === c.sm ? w.labelSmall : w.labelMedium;
|
|
46
46
|
return j ? /* @__PURE__ */ h(
|
|
47
47
|
"div",
|
|
48
48
|
{
|
|
49
|
+
"data-chromatic": "ignore",
|
|
49
50
|
...M,
|
|
50
|
-
className: F(
|
|
51
|
-
[`${
|
|
52
|
-
[`${
|
|
53
|
-
[`${
|
|
54
|
-
[`${
|
|
51
|
+
className: F(n, b, {
|
|
52
|
+
[`${n}--compact`]: a === c.compact,
|
|
53
|
+
[`${n}--sm`]: a === c.sm,
|
|
54
|
+
[`${n}--show-bottom-border`]: $,
|
|
55
|
+
[`${n}--closing-lot`]: v
|
|
55
56
|
}),
|
|
56
57
|
...p,
|
|
57
58
|
ref: L,
|
|
58
59
|
children: [
|
|
59
|
-
/* @__PURE__ */ h("div", { className: `${
|
|
60
|
+
/* @__PURE__ */ h("div", { className: `${n}__countdown-container`, role: "timer", "aria-label": d, children: [
|
|
60
61
|
/* @__PURE__ */ t(R, { variant: l, children: d }),
|
|
61
62
|
s.days > 0 ? /* @__PURE__ */ t(
|
|
62
63
|
f,
|
|
63
64
|
{
|
|
64
65
|
duration: s,
|
|
65
66
|
unit: "days",
|
|
66
|
-
locale:
|
|
67
|
+
locale: i,
|
|
67
68
|
formatDurationStr: m,
|
|
68
69
|
textVariant: l
|
|
69
70
|
}
|
|
@@ -73,7 +74,7 @@ const A = z(
|
|
|
73
74
|
{
|
|
74
75
|
duration: s,
|
|
75
76
|
unit: "hours",
|
|
76
|
-
locale:
|
|
77
|
+
locale: i,
|
|
77
78
|
formatDurationStr: m,
|
|
78
79
|
textVariant: l
|
|
79
80
|
}
|
|
@@ -83,7 +84,7 @@ const A = z(
|
|
|
83
84
|
{
|
|
84
85
|
duration: s,
|
|
85
86
|
unit: "minutes",
|
|
86
|
-
locale:
|
|
87
|
+
locale: i,
|
|
87
88
|
formatDurationStr: m,
|
|
88
89
|
textVariant: l
|
|
89
90
|
}
|
|
@@ -93,13 +94,13 @@ const A = z(
|
|
|
93
94
|
{
|
|
94
95
|
duration: s,
|
|
95
96
|
unit: "seconds",
|
|
96
|
-
locale:
|
|
97
|
+
locale: i,
|
|
97
98
|
formatDurationStr: m,
|
|
98
99
|
textVariant: l
|
|
99
100
|
}
|
|
100
101
|
) : null
|
|
101
102
|
] }),
|
|
102
|
-
|
|
103
|
+
a === c.default ? /* @__PURE__ */ t("span", { children: N }) : null
|
|
103
104
|
]
|
|
104
105
|
}
|
|
105
106
|
) : null;
|
|
@@ -9,12 +9,12 @@ const T = typeof window > "u", q = P(
|
|
|
9
9
|
({
|
|
10
10
|
className: h,
|
|
11
11
|
aspectRatio: g = "none",
|
|
12
|
-
objectFit:
|
|
12
|
+
objectFit: c = "none",
|
|
13
13
|
hasBlurBackground: v = !1,
|
|
14
14
|
imageClassName: y,
|
|
15
15
|
imageStyle: N,
|
|
16
16
|
src: a,
|
|
17
|
-
alt:
|
|
17
|
+
alt: f,
|
|
18
18
|
srcSet: o,
|
|
19
19
|
sizes: r,
|
|
20
20
|
loading: E,
|
|
@@ -45,13 +45,14 @@ const T = typeof window > "u", q = P(
|
|
|
45
45
|
}, [b]), /* @__PURE__ */ C(
|
|
46
46
|
"div",
|
|
47
47
|
{
|
|
48
|
+
"data-chromatic": "ignore",
|
|
48
49
|
ref: x,
|
|
49
50
|
className: s(e, h, {
|
|
50
51
|
[`${e}--aspect-ratio-${g.replace("/", "-")}`]: g !== "none",
|
|
51
52
|
[`${e}--error-image`]: i === "error" || n
|
|
52
53
|
}),
|
|
53
54
|
role: "img",
|
|
54
|
-
"aria-label":
|
|
55
|
+
"aria-label": f,
|
|
55
56
|
...u,
|
|
56
57
|
...$,
|
|
57
58
|
children: [
|
|
@@ -70,14 +71,14 @@ const T = typeof window > "u", q = P(
|
|
|
70
71
|
{
|
|
71
72
|
className: s(`${e}-img`, y, {
|
|
72
73
|
[`${e}-img--hidden`]: i === "error" || n,
|
|
73
|
-
[`${e}-img--object-fit-${
|
|
74
|
+
[`${e}-img--object-fit-${c}`]: c !== "none"
|
|
74
75
|
}),
|
|
75
76
|
id: a,
|
|
76
77
|
style: N,
|
|
77
78
|
src: a,
|
|
78
79
|
srcSet: o,
|
|
79
80
|
sizes: r,
|
|
80
|
-
alt:
|
|
81
|
+
alt: f,
|
|
81
82
|
"data-testid": `${$["data-testid"]}-img`,
|
|
82
83
|
ref: p,
|
|
83
84
|
loading: E,
|