@phillips/seldon 1.105.1 → 1.105.2

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