@phillips/seldon 1.235.2 → 1.237.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.
|
@@ -6,7 +6,7 @@ import { TextVariants as a } from "../Text/types.js";
|
|
|
6
6
|
import o from "../Text/Text.js";
|
|
7
7
|
const x = N(
|
|
8
8
|
({ className: c = "", hasWrap: d = !0, label: b, subLabel: m, value: _, variant: e = "md", ...t }, f) => {
|
|
9
|
-
const { className: l, ...p } = h(t, "Detail"), i = e === "sm" ? a.labelSmall : e === "lg" ? a.labelLarge : a.labelMedium, u = e === "sm" ? a.
|
|
9
|
+
const { className: l, ...p } = h(t, "Detail"), i = e === "sm" ? a.labelSmall : e === "lg" ? a.labelLarge : a.labelMedium, u = e === "sm" ? a.labelSmall : e === "lg" ? a.bodyLarge : a.labelMedium;
|
|
10
10
|
return /* @__PURE__ */ n("div", { ...p, className: r(l, c), ...t, ref: f, children: [
|
|
11
11
|
/* @__PURE__ */ n(
|
|
12
12
|
"div",
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as i, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import u from "../../node_modules/classnames/index.js";
|
|
3
3
|
import { forwardRef as L } from "react";
|
|
4
|
-
import
|
|
5
|
-
import { ButtonVariants as
|
|
6
|
-
import
|
|
4
|
+
import T from "../../components/Button/Button.js";
|
|
5
|
+
import { ButtonVariants as A } from "../../components/Button/types.js";
|
|
6
|
+
import I from "../../components/SeldonImage/SeldonImage.js";
|
|
7
7
|
import { TextVariants as r } from "../../components/Text/types.js";
|
|
8
|
-
import
|
|
9
|
-
import { SSRMediaQuery as
|
|
8
|
+
import e from "../../components/Text/Text.js";
|
|
9
|
+
import { SSRMediaQuery as k } from "../../providers/SeldonProvider/utils.js";
|
|
10
10
|
import { getCommonProps as x } from "../../utils/index.js";
|
|
11
11
|
import { SaleCardVariants as f, SaleCardImageDisplay as P } from "./types.js";
|
|
12
12
|
const R = L(
|
|
13
13
|
({
|
|
14
14
|
className: p,
|
|
15
15
|
imageSrc: s,
|
|
16
|
-
imageAlt:
|
|
17
|
-
auctionType:
|
|
18
|
-
titleText:
|
|
19
|
-
date:
|
|
20
|
-
location:
|
|
16
|
+
imageAlt: S = "Auction Image",
|
|
17
|
+
auctionType: h,
|
|
18
|
+
titleText: N,
|
|
19
|
+
date: $,
|
|
20
|
+
location: v,
|
|
21
21
|
badgeText: o,
|
|
22
22
|
modalButtonOnClick: n,
|
|
23
23
|
modalButtonText: t,
|
|
24
|
-
variant:
|
|
24
|
+
variant: m = f.DEFAULT,
|
|
25
25
|
children: c,
|
|
26
26
|
imageDisplay: d = P.LEFT,
|
|
27
27
|
..._
|
|
28
|
-
},
|
|
29
|
-
const { className: a, ...
|
|
30
|
-
[`${a}--${
|
|
28
|
+
}, g) => {
|
|
29
|
+
const { className: a, ...C } = x(_, "SaleCard"), E = u(a, p, {
|
|
30
|
+
[`${a}--${m}`]: m,
|
|
31
31
|
[`${a}--image-${d}`]: d
|
|
32
|
-
}),
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
s ? /* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */ e
|
|
37
|
-
/* @__PURE__ */ e
|
|
38
|
-
o && /* @__PURE__ */ e
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */ e
|
|
41
|
-
/* @__PURE__ */ e
|
|
42
|
-
t && n && /* @__PURE__ */
|
|
32
|
+
}), b = { ...C, ..._ };
|
|
33
|
+
return /* @__PURE__ */ i("article", { ...b, className: E, ref: g, children: [
|
|
34
|
+
s ? /* @__PURE__ */ l(I, { src: s, alt: S, className: `${a}__image` }) : null,
|
|
35
|
+
/* @__PURE__ */ i("div", { className: `${a}__details`, children: [
|
|
36
|
+
/* @__PURE__ */ l(e, { variant: r.labelSmall, children: h }),
|
|
37
|
+
/* @__PURE__ */ l(e, { variant: r.headingSmall, className: `${a}__title`, children: N }),
|
|
38
|
+
o && /* @__PURE__ */ l(e, { variant: r.badgeSmall, className: `${a}__badge`, children: o }),
|
|
39
|
+
/* @__PURE__ */ i("div", { className: `${a}__info`, children: [
|
|
40
|
+
/* @__PURE__ */ l(e, { variant: r.labelSmall, children: v }),
|
|
41
|
+
/* @__PURE__ */ l(e, { variant: r.labelSmall, children: $ }),
|
|
42
|
+
t && n && /* @__PURE__ */ l("div", { className: `${a}__modal-link`, children: /* @__PURE__ */ l(T, { onClick: n, variant: A.link, linkSize: "sm", children: t }) })
|
|
43
43
|
] })
|
|
44
44
|
] }),
|
|
45
|
-
|
|
45
|
+
m !== f.RELATED_SALE_TILE && c && /* @__PURE__ */ l("div", { className: `${a}__ctas`, children: /* @__PURE__ */ l(k.Media, { greaterThanOrEqual: "snw-mobile", children: c }) })
|
|
46
46
|
] });
|
|
47
47
|
}
|
|
48
48
|
);
|
|
@@ -46,6 +46,16 @@
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
&--primary.#{$px}-link,
|
|
50
|
+
&--secondary.#{$px}-link,
|
|
51
|
+
&--ghost.#{$px}-link {
|
|
52
|
+
font-variation-settings: 'wght' 600;
|
|
53
|
+
|
|
54
|
+
.#{$px}-text {
|
|
55
|
+
font-variation-settings: 'wght' 600;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
49
59
|
&:not(.#{$px}-button--link) {
|
|
50
60
|
&.#{$px}-button--primary {
|
|
51
61
|
color: $white-100;
|