@phillips/seldon 1.133.3 → 1.133.5
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.
|
@@ -3,21 +3,21 @@ import { memo as z, forwardRef as F } from "react";
|
|
|
3
3
|
import I from "../../node_modules/classnames/index.js";
|
|
4
4
|
import { getCommonProps as L } from "../../utils/index.js";
|
|
5
5
|
import { TextVariants as l } from "../../components/Text/types.js";
|
|
6
|
-
import
|
|
6
|
+
import n from "../../components/Text/Text.js";
|
|
7
7
|
import R from "../DetailList/DetailList.js";
|
|
8
8
|
import V from "../../components/Detail/Detail.js";
|
|
9
9
|
import W from "../../components/SeldonImage/SeldonImage.js";
|
|
10
10
|
const w = z(
|
|
11
11
|
F(
|
|
12
12
|
({
|
|
13
|
-
badgeText:
|
|
13
|
+
badgeText: f,
|
|
14
14
|
className: $,
|
|
15
15
|
children: N,
|
|
16
16
|
element: g,
|
|
17
|
-
estimate:
|
|
17
|
+
estimate: i,
|
|
18
18
|
estimateLabelText: b = "Estimate",
|
|
19
|
-
estimateOnRequestText:
|
|
20
|
-
badgeElement:
|
|
19
|
+
estimateOnRequestText: m,
|
|
20
|
+
badgeElement: r,
|
|
21
21
|
favoriteElement: o,
|
|
22
22
|
imageAlt: u = "Brought to you by Phillips",
|
|
23
23
|
imageUrl: v = "",
|
|
@@ -31,10 +31,10 @@ const w = z(
|
|
|
31
31
|
referenceNumber: d,
|
|
32
32
|
titleText: h,
|
|
33
33
|
withdrawnText: t,
|
|
34
|
-
...
|
|
34
|
+
...p
|
|
35
35
|
}, x) => {
|
|
36
|
-
const { className: e, ...C } = L(
|
|
37
|
-
return /* @__PURE__ */ s(D, { ...C, className: I(e, $), ...
|
|
36
|
+
const { className: e, ...C } = L(p, "ObjectTile"), D = g ?? "a", E = i || m;
|
|
37
|
+
return /* @__PURE__ */ s(D, { ...C, className: I(e, $), ...p, ref: x, children: [
|
|
38
38
|
/* @__PURE__ */ a(
|
|
39
39
|
W,
|
|
40
40
|
{
|
|
@@ -49,17 +49,17 @@ const w = z(
|
|
|
49
49
|
fetchPriority: P
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
t ? null : /* @__PURE__ */ a(
|
|
52
|
+
t ? null : /* @__PURE__ */ a(n, { element: "span", className: `${e}__badge`, variant: l.badge, children: f }),
|
|
53
53
|
/* @__PURE__ */ s("div", { className: `${e}__lot-number-like`, children: [
|
|
54
|
-
/* @__PURE__ */ a(
|
|
55
|
-
|
|
54
|
+
/* @__PURE__ */ a(n, { element: "span", className: `${e}__lot-number`, variant: l.heading4, children: S }),
|
|
55
|
+
r && /* @__PURE__ */ a("div", { className: `${e}__lot-badge`, children: /* @__PURE__ */ a(r, {}) }),
|
|
56
56
|
o && /* @__PURE__ */ a(o, {})
|
|
57
57
|
] }),
|
|
58
|
-
t ? /* @__PURE__ */ a(
|
|
58
|
+
t ? /* @__PURE__ */ a(n, { element: "span", className: `${e}__withdrawn`, variant: l.heading4, children: t }) : /* @__PURE__ */ s(O, { children: [
|
|
59
59
|
/* @__PURE__ */ s("div", { className: `${e}__meta`, children: [
|
|
60
|
-
c ? /* @__PURE__ */ a(
|
|
60
|
+
c ? /* @__PURE__ */ a(n, { element: "span", className: `${e}__maker`, variant: l.heading4, children: c }) : null,
|
|
61
61
|
h ? /* @__PURE__ */ a(
|
|
62
|
-
|
|
62
|
+
n,
|
|
63
63
|
{
|
|
64
64
|
className: `${e}__title ${e}__token-fix ${e}__token-fix--no-transform`,
|
|
65
65
|
variant: l.heading4,
|
|
@@ -68,20 +68,20 @@ const w = z(
|
|
|
68
68
|
}
|
|
69
69
|
) : null,
|
|
70
70
|
d ? /* @__PURE__ */ a(
|
|
71
|
-
|
|
71
|
+
n,
|
|
72
72
|
{
|
|
73
73
|
className: `${e}__reference-number ${e}__token-fix`,
|
|
74
74
|
variant: l.heading4,
|
|
75
|
-
element: "
|
|
75
|
+
element: "span",
|
|
76
76
|
children: d
|
|
77
77
|
}
|
|
78
78
|
) : null,
|
|
79
79
|
_ ? /* @__PURE__ */ a(
|
|
80
|
-
|
|
80
|
+
n,
|
|
81
81
|
{
|
|
82
82
|
className: `${e}__model ${e}__token-fix`,
|
|
83
83
|
variant: l.heading4,
|
|
84
|
-
element: "
|
|
84
|
+
element: "span",
|
|
85
85
|
children: _
|
|
86
86
|
}
|
|
87
87
|
) : null
|
|
@@ -91,7 +91,7 @@ const w = z(
|
|
|
91
91
|
{
|
|
92
92
|
className: `${e}__estimate__label`,
|
|
93
93
|
label: b,
|
|
94
|
-
value:
|
|
94
|
+
value: i || m,
|
|
95
95
|
hasWrap: !1
|
|
96
96
|
}
|
|
97
97
|
) }) : null,
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
// ⚛️ Components
|
|
9
9
|
@use 'components/Button/button';
|
|
10
10
|
@use 'components/IconButton/iconButton';
|
|
11
|
+
@use 'components/Icon/icon';
|
|
11
12
|
@use 'components/Grid/grid';
|
|
12
13
|
@use 'components/Navigation/navigation';
|
|
13
14
|
@use 'components/Navigation/NavigationItem/navigationItem';
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
&__badge {
|
|
15
15
|
color: $widget-red;
|
|
16
|
+
display: block; // Ensures the badge can be sized correctly
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
&__badge:empty {
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
.#{$px}-object-tile__lot-badge {
|
|
50
|
-
display:
|
|
51
|
+
display: block;
|
|
51
52
|
padding-left: $spacing-xsm;
|
|
52
53
|
position: relative;
|
|
53
54
|
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
& .#{$px}-object-tile__lot-number {
|
|
66
|
-
display:
|
|
67
|
+
display: block;
|
|
67
68
|
margin-bottom: 0;
|
|
68
69
|
padding-top: 2px;
|
|
69
70
|
}
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
& .#{$px}-object-tile__maker,
|
|
72
73
|
& .#{$px}-object-tile__model,
|
|
73
74
|
& .#{$px}-object-tile__reference-number {
|
|
75
|
+
display: block;
|
|
74
76
|
margin-bottom: 0;
|
|
75
77
|
}
|
|
76
78
|
|
|
@@ -80,6 +82,7 @@
|
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
&__meta {
|
|
85
|
+
display: block;
|
|
83
86
|
margin-bottom: $spacing-sm;
|
|
84
87
|
}
|
|
85
88
|
|