@phillips/seldon 1.100.2 → 1.101.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.
|
@@ -28,6 +28,14 @@ export interface ObjectTileProps extends ComponentProps<'a'> {
|
|
|
28
28
|
* Image URL for the object.
|
|
29
29
|
*/
|
|
30
30
|
imageUrl?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Image srcset for the object. [https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset]
|
|
33
|
+
*/
|
|
34
|
+
imageSrcSet?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Image sizes for the object. [https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes]
|
|
37
|
+
*/
|
|
38
|
+
imageSizes?: string;
|
|
31
39
|
/**
|
|
32
40
|
* Object Lot number.
|
|
33
41
|
*/
|
|
@@ -1,94 +1,98 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import { getCommonProps as
|
|
1
|
+
import { jsxs as i, jsx as a, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as O } from "react";
|
|
3
|
+
import P from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { getCommonProps as S } from "../../utils/index.js";
|
|
5
5
|
import { TextVariants as l } from "../../components/Text/types.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
6
|
+
import s from "../../components/Text/Text.js";
|
|
7
|
+
import D from "../DetailList/DetailList.js";
|
|
8
|
+
import R from "../../components/Detail/Detail.js";
|
|
9
|
+
import z from "../../components/SeldonImage/SeldonImage.js";
|
|
10
|
+
const B = O(
|
|
11
11
|
({
|
|
12
12
|
badgeText: p,
|
|
13
13
|
className: f,
|
|
14
14
|
children: $,
|
|
15
15
|
element: r,
|
|
16
|
-
estimate:
|
|
16
|
+
estimate: n,
|
|
17
17
|
estimateLabelText: N = "Estimate",
|
|
18
18
|
favoriteElement: m,
|
|
19
19
|
imageAlt: u = "Brought to you by Phillips",
|
|
20
20
|
imageUrl: g = "",
|
|
21
|
-
|
|
21
|
+
imageSrcSet: b,
|
|
22
|
+
imageSizes: v,
|
|
23
|
+
lotNumber: j,
|
|
22
24
|
makerText: o,
|
|
23
25
|
modelText: c,
|
|
24
26
|
referenceNumber: _,
|
|
25
27
|
titleText: d,
|
|
26
|
-
withdrawnText:
|
|
28
|
+
withdrawnText: t,
|
|
27
29
|
...h
|
|
28
|
-
},
|
|
29
|
-
const { className:
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
30
|
+
}, k) => {
|
|
31
|
+
const { className: e, ...x } = S(h, "ObjectTile"), y = r != null ? r : "a";
|
|
32
|
+
return /* @__PURE__ */ i(y, { ...x, className: P(e, f), ...h, ref: k, children: [
|
|
33
|
+
/* @__PURE__ */ a(
|
|
34
|
+
z,
|
|
33
35
|
{
|
|
34
36
|
alt: u,
|
|
35
37
|
aspectRatio: "1/1",
|
|
36
|
-
className: `${
|
|
38
|
+
className: `${e}__img`,
|
|
37
39
|
objectFit: "cover",
|
|
38
|
-
src: g
|
|
40
|
+
src: g,
|
|
41
|
+
srcSet: b,
|
|
42
|
+
sizes: v
|
|
39
43
|
}
|
|
40
44
|
),
|
|
41
|
-
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
m && /* @__PURE__ */
|
|
45
|
+
t ? null : /* @__PURE__ */ a(s, { className: `${e}__badge`, variant: l.badge, children: p }),
|
|
46
|
+
/* @__PURE__ */ i("div", { className: `${e}__lot-number-like`, children: [
|
|
47
|
+
/* @__PURE__ */ a(s, { className: `${e}__lot-number`, variant: l.heading3, element: "p", children: j }),
|
|
48
|
+
m && /* @__PURE__ */ a(m, {})
|
|
45
49
|
] }),
|
|
46
|
-
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
o ? /* @__PURE__ */
|
|
49
|
-
d ? /* @__PURE__ */
|
|
50
|
-
|
|
50
|
+
t ? /* @__PURE__ */ a(s, { className: `${e}__withdrawn`, variant: l.heading4, children: t }) : /* @__PURE__ */ i(C, { children: [
|
|
51
|
+
/* @__PURE__ */ i("div", { className: `${e}__meta`, children: [
|
|
52
|
+
o ? /* @__PURE__ */ a(s, { className: `${e}__maker`, variant: l.heading3, children: o }) : null,
|
|
53
|
+
d ? /* @__PURE__ */ a(
|
|
54
|
+
s,
|
|
51
55
|
{
|
|
52
|
-
className: `${
|
|
56
|
+
className: `${e}__title ${e}__token-fix`,
|
|
53
57
|
variant: l.heading4,
|
|
54
58
|
element: "cite",
|
|
55
59
|
children: d
|
|
56
60
|
}
|
|
57
61
|
) : null,
|
|
58
|
-
_ ? /* @__PURE__ */
|
|
59
|
-
|
|
62
|
+
_ ? /* @__PURE__ */ a(
|
|
63
|
+
s,
|
|
60
64
|
{
|
|
61
|
-
className: `${
|
|
65
|
+
className: `${e}__reference-number ${e}__token-fix`,
|
|
62
66
|
variant: l.heading4,
|
|
63
67
|
element: "p",
|
|
64
68
|
children: _
|
|
65
69
|
}
|
|
66
70
|
) : null,
|
|
67
|
-
c ? /* @__PURE__ */
|
|
68
|
-
|
|
71
|
+
c ? /* @__PURE__ */ a(
|
|
72
|
+
s,
|
|
69
73
|
{
|
|
70
|
-
className: `${
|
|
74
|
+
className: `${e}__model ${e}__token-fix`,
|
|
71
75
|
variant: l.heading4,
|
|
72
76
|
element: "p",
|
|
73
77
|
children: c
|
|
74
78
|
}
|
|
75
79
|
) : null
|
|
76
80
|
] }),
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
n ? /* @__PURE__ */ a(D, { hasSeparators: !0, className: `${e}__estimate ${e}__section`, children: /* @__PURE__ */ a(
|
|
82
|
+
R,
|
|
79
83
|
{
|
|
80
|
-
className: `${
|
|
84
|
+
className: `${e}__estimate__label`,
|
|
81
85
|
label: N,
|
|
82
|
-
value:
|
|
86
|
+
value: n,
|
|
83
87
|
hasWrap: !1
|
|
84
88
|
}
|
|
85
89
|
) }) : null,
|
|
86
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ a("div", { className: `${e}__section`, children: $ })
|
|
87
91
|
] })
|
|
88
92
|
] });
|
|
89
93
|
}
|
|
90
94
|
);
|
|
91
|
-
|
|
95
|
+
B.displayName = "ObjectTile";
|
|
92
96
|
export {
|
|
93
|
-
|
|
97
|
+
B as default
|
|
94
98
|
};
|