@phillips/seldon 1.95.0 → 1.96.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.
- package/dist/components/Countdown/Countdown.js +13 -13
- package/dist/components/Row/Row.d.ts +0 -3
- package/dist/components/Select/Select.js +1 -2
- package/dist/index.js +34 -32
- package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +17 -9
- package/dist/patterns/BidSnapshot/BidSnapshot.js +45 -42
- package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +5 -3
- package/dist/patterns/BidSnapshot/index.d.ts +1 -0
- package/dist/patterns/ObjectTile/ObjectTile.d.ts +1 -4
- package/dist/patterns/ObjectTile/ObjectTile.js +25 -25
- package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +2 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as N, useState as L, useEffect as
|
|
3
|
-
import { getCommonProps as
|
|
2
|
+
import { forwardRef as N, useState as L, useEffect as g } from "react";
|
|
3
|
+
import { getCommonProps as v } from "../../utils/index.js";
|
|
4
4
|
import x from "../../node_modules/classnames/index.js";
|
|
5
5
|
import { SupportedLanguages as j } from "../../types/commonTypes.js";
|
|
6
|
-
import { CountdownVariants as
|
|
6
|
+
import { CountdownVariants as i } from "./types.js";
|
|
7
7
|
import { Duration as s } from "./Duration.js";
|
|
8
8
|
import { zhCN as z } from "../../node_modules/date-fns/locale/zh-CN.js";
|
|
9
9
|
import { enUS as P } from "../../node_modules/date-fns/locale/en-US.js";
|
|
@@ -16,19 +16,19 @@ const E = N(
|
|
|
16
16
|
endDateTime: n,
|
|
17
17
|
formatDurationStr: a,
|
|
18
18
|
label: l = "Lots Close in",
|
|
19
|
-
intervalDescription: f
|
|
19
|
+
intervalDescription: f,
|
|
20
20
|
className: p,
|
|
21
21
|
locale: h = "en",
|
|
22
|
-
variant:
|
|
23
|
-
...
|
|
22
|
+
variant: c = i.default,
|
|
23
|
+
...u
|
|
24
24
|
}, C) => {
|
|
25
|
-
const { className:
|
|
25
|
+
const { className: m, ...w } = v(u, "Countdown"), [r, y] = L(/* @__PURE__ */ new Date()), t = h === j.zh ? z : P, o = {
|
|
26
26
|
days: S(n, r),
|
|
27
27
|
hours: _(n, r) % 24,
|
|
28
28
|
minutes: $(n, r) % 60,
|
|
29
29
|
seconds: b(n, r) % 60 % 60
|
|
30
30
|
};
|
|
31
|
-
return
|
|
31
|
+
return g(() => {
|
|
32
32
|
const I = setInterval(() => {
|
|
33
33
|
y(/* @__PURE__ */ new Date());
|
|
34
34
|
}, 1e3);
|
|
@@ -37,20 +37,20 @@ const E = N(
|
|
|
37
37
|
"div",
|
|
38
38
|
{
|
|
39
39
|
...w,
|
|
40
|
-
className: x(
|
|
41
|
-
[`${
|
|
40
|
+
className: x(m, p, {
|
|
41
|
+
[`${m}--compact`]: c === i.compact
|
|
42
42
|
}),
|
|
43
|
-
...
|
|
43
|
+
...u,
|
|
44
44
|
ref: C,
|
|
45
45
|
children: [
|
|
46
|
-
/* @__PURE__ */ d("div", { className: `${
|
|
46
|
+
/* @__PURE__ */ d("div", { className: `${m}__countdown-container`, role: "timer", "aria-label": l, children: [
|
|
47
47
|
/* @__PURE__ */ e("span", { children: l }),
|
|
48
48
|
o.days > 0 ? /* @__PURE__ */ e(s, { duration: o, unit: "days", locale: t, formatDurationStr: a }) : null,
|
|
49
49
|
o.days > 0 || o.hours > 0 ? /* @__PURE__ */ e(s, { duration: o, unit: "hours", locale: t }) : null,
|
|
50
50
|
o.days === 0 ? /* @__PURE__ */ e(s, { duration: o, unit: "minutes", locale: t, formatDurationStr: a }) : null,
|
|
51
51
|
o.days === 0 && o.hours === 0 ? /* @__PURE__ */ e(s, { duration: o, unit: "seconds", locale: t, formatDurationStr: a }) : null
|
|
52
52
|
] }),
|
|
53
|
-
|
|
53
|
+
c === i.default ? /* @__PURE__ */ e("span", { children: f }) : null
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { PaddingTokens } from '../../utils';
|
|
3
|
-
import { default as GridItem, GridItemProps } from '../GridItem/GridItem';
|
|
4
3
|
export interface RowProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
|
-
/** These children can be an array of GridItem components */
|
|
6
|
-
children: React.ReactElement<GridItemProps, typeof GridItem> | React.ReactElement<GridItemProps, typeof GridItem>[];
|
|
7
4
|
/**
|
|
8
5
|
* Optional element to render as the top-level component e.g. 'div', 'span', CustomComponent, etc. Defaults to 'section'.
|
|
9
6
|
*/
|
|
@@ -34,8 +34,7 @@ const F = k.forwardRef(
|
|
|
34
34
|
[`${e}-input--invalid`]: t.invalid,
|
|
35
35
|
[`${e}-input--warn`]: t.warn,
|
|
36
36
|
[`${a}__wrapper`]: a
|
|
37
|
-
}), R = i(`${e}-input__input`, {
|
|
38
|
-
className: a,
|
|
37
|
+
}), R = i(a, `${e}-input__input`, {
|
|
39
38
|
[`${e}-input__select--tertiary`]: _ === c.tertiary
|
|
40
39
|
}), g = i(`${e}-select-container`, {
|
|
41
40
|
[`${e}-select-container--show__icon`]: l
|
package/dist/index.js
CHANGED
|
@@ -3,12 +3,12 @@ import { default as S } from "./assets/account_circle.svg.js";
|
|
|
3
3
|
import { default as L } from "./assets/arrowPrev.svg.js";
|
|
4
4
|
import { default as b } from "./assets/calendar.svg.js";
|
|
5
5
|
import { default as T } from "./assets/calendarAlt.svg.js";
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
6
|
+
import { default as V } from "./assets/chevronDown.svg.js";
|
|
7
|
+
import { default as B } from "./assets/chevronNext.svg.js";
|
|
8
8
|
import { default as w } from "./assets/chevronRight.svg.js";
|
|
9
9
|
import { default as D } from "./assets/close.svg.js";
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
10
|
+
import { default as N } from "./assets/favorite.svg.js";
|
|
11
|
+
import { default as H } from "./assets/favoriteOutline.svg.js";
|
|
12
12
|
import { default as O } from "./assets/icon-footer-facebook.svg.js";
|
|
13
13
|
import { default as G } from "./assets/icon-footer-instagram.svg.js";
|
|
14
14
|
import { default as E } from "./assets/icon-footer-linkedin.svg.js";
|
|
@@ -30,12 +30,12 @@ import { usePendingState as ce } from "./utils/hooks.js";
|
|
|
30
30
|
import { SSRMediaQuery as Se, ssrMediaQueryStyle as he } from "./providers/SeldonProvider/utils.js";
|
|
31
31
|
import { AuctionStatus as Pe, SupportedLanguages as be } from "./types/commonTypes.js";
|
|
32
32
|
import { default as Te } from "./components/Button/Button.js";
|
|
33
|
-
import { ButtonVariants as
|
|
34
|
-
import { default as
|
|
33
|
+
import { ButtonVariants as Ve } from "./components/Button/types.js";
|
|
34
|
+
import { default as Be } from "./components/IconButton/IconButton.js";
|
|
35
35
|
import { default as we } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
36
36
|
import { default as De } from "./site-furniture/Footer/Footer.js";
|
|
37
|
-
import { Grid as
|
|
38
|
-
import { default as
|
|
37
|
+
import { Grid as Ne } from "./components/Grid/Grid.js";
|
|
38
|
+
import { default as He } from "./site-furniture/Header/Header.js";
|
|
39
39
|
import { default as Oe } from "./components/Navigation/Navigation.js";
|
|
40
40
|
import { default as Ge } from "./components/Navigation/NavigationItem/NavigationItem.js";
|
|
41
41
|
import { default as Ee } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
|
|
@@ -57,11 +57,11 @@ import { default as ho } from "./patterns/Subscribe/Subscribe.js";
|
|
|
57
57
|
import { SubscriptionState as Po } from "./patterns/Subscribe/types.js";
|
|
58
58
|
import { default as Io } from "./patterns/Social/Social.js";
|
|
59
59
|
import { default as Ao } from "./patterns/ViewingsList/ViewingsList.js";
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
60
|
+
import { default as ko } from "./components/Modal/Modal.js";
|
|
61
|
+
import { default as vo } from "./components/Drawer/Drawer.js";
|
|
62
62
|
import { default as yo } from "./components/Pagination/Pagination.js";
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
63
|
+
import { default as Mo } from "./components/Tags/Tags.js";
|
|
64
|
+
import { default as Fo } from "./patterns/ViewingsList/StatefulViewingsList.js";
|
|
65
65
|
import { TextVariants as Ro } from "./components/Text/types.js";
|
|
66
66
|
import { default as Uo } from "./components/Text/Text.js";
|
|
67
67
|
import { TextSymbolVariants as Wo } from "./components/TextSymbol/types.js";
|
|
@@ -85,12 +85,12 @@ import { default as St } from "./components/Collapsible/CollapsibleTrigger.js";
|
|
|
85
85
|
import { SeldonProvider as Lt } from "./providers/SeldonProvider/SeldonProvider.js";
|
|
86
86
|
import { default as bt } from "./components/PageContentWrapper/PageContentWrapper.js";
|
|
87
87
|
import { default as Tt } from "./components/Carousel/Carousel.js";
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
88
|
+
import { default as Vt } from "./components/Carousel/CarouselContent.js";
|
|
89
|
+
import { default as Bt } from "./components/Carousel/CarouselItem.js";
|
|
90
90
|
import { default as wt } from "./components/Carousel/CarouselDots.js";
|
|
91
91
|
import { default as Dt } from "./components/Detail/Detail.js";
|
|
92
|
-
import { default as
|
|
93
|
-
import { DetailListAlignment as
|
|
92
|
+
import { default as Nt } from "./patterns/DetailList/DetailList.js";
|
|
93
|
+
import { DetailListAlignment as Ht } from "./patterns/DetailList/types.js";
|
|
94
94
|
import { default as Ot } from "./components/PinchZoom/PinchZoom.js";
|
|
95
95
|
import { default as Gt } from "./components/Tabs/TabsContainer.js";
|
|
96
96
|
import { default as Et } from "./components/Tabs/TabsContent.js";
|
|
@@ -103,6 +103,7 @@ import { CountdownVariants as er } from "./components/Countdown/types.js";
|
|
|
103
103
|
import { default as tr } from "./patterns/ObjectTile/ObjectTile.js";
|
|
104
104
|
import { default as ar } from "./patterns/BidSnapshot/BidSnapshot.js";
|
|
105
105
|
import { default as sr } from "./patterns/BidSnapshot/BidMessage.js";
|
|
106
|
+
import { BidMessageVariants as dr } from "./patterns/BidSnapshot/types.js";
|
|
106
107
|
export {
|
|
107
108
|
jo as Accordion,
|
|
108
109
|
Zo as AccordionItem,
|
|
@@ -114,18 +115,19 @@ export {
|
|
|
114
115
|
Pe as AuctionStatus,
|
|
115
116
|
et as AuthState,
|
|
116
117
|
sr as BidMessage,
|
|
118
|
+
dr as BidMessageVariants,
|
|
117
119
|
ar as BidSnapshot,
|
|
118
120
|
tt as Breadcrumb,
|
|
119
121
|
Te as Button,
|
|
120
|
-
|
|
122
|
+
Ve as ButtonVariants,
|
|
121
123
|
b as Calendar,
|
|
122
124
|
T as CalendarAlt,
|
|
123
125
|
Tt as Carousel,
|
|
124
|
-
|
|
126
|
+
Vt as CarouselContent,
|
|
125
127
|
wt as CarouselDots,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
128
|
+
Bt as CarouselItem,
|
|
129
|
+
V as ChevronDown,
|
|
130
|
+
B as ChevronNext,
|
|
129
131
|
w as ChevronRight,
|
|
130
132
|
D as Close,
|
|
131
133
|
it as Collapsible,
|
|
@@ -136,23 +138,23 @@ export {
|
|
|
136
138
|
_t as Countdown,
|
|
137
139
|
er as CountdownVariants,
|
|
138
140
|
Dt as Detail,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
Nt as DetailList,
|
|
142
|
+
Ht as DetailListAlignment,
|
|
143
|
+
vo as Drawer,
|
|
142
144
|
at as Dropdown,
|
|
143
145
|
we as ErrorBoundary,
|
|
144
146
|
O as Facebook,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
+
N as Favorite,
|
|
148
|
+
H as FavoriteOutline,
|
|
147
149
|
De as Footer,
|
|
148
150
|
G as FooterInstagram,
|
|
149
151
|
z as FooterWeChat,
|
|
150
|
-
|
|
152
|
+
Ne as Grid,
|
|
151
153
|
so as GridItem,
|
|
152
154
|
mo as GridItemAlign,
|
|
153
|
-
|
|
155
|
+
He as Header,
|
|
154
156
|
ze as HeroBanner,
|
|
155
|
-
|
|
157
|
+
Be as IconButton,
|
|
156
158
|
qe as Input,
|
|
157
159
|
q as Instagram,
|
|
158
160
|
dt as LanguageSelector,
|
|
@@ -163,7 +165,7 @@ export {
|
|
|
163
165
|
E as LinkedIn,
|
|
164
166
|
K as Lock,
|
|
165
167
|
_ as Minus,
|
|
166
|
-
|
|
168
|
+
ko as Modal,
|
|
167
169
|
Oe as Navigation,
|
|
168
170
|
Ge as NavigationItem,
|
|
169
171
|
Ee as NavigationItemTrigger,
|
|
@@ -192,13 +194,13 @@ export {
|
|
|
192
194
|
s as SpacingTokens,
|
|
193
195
|
Co as SplitPanel,
|
|
194
196
|
de as Spotify,
|
|
195
|
-
|
|
197
|
+
Fo as StatefulViewingsList,
|
|
196
198
|
ho as Subscribe,
|
|
197
199
|
Po as SubscriptionState,
|
|
198
200
|
be as SupportedLanguages,
|
|
199
201
|
Gt as TabsContainer,
|
|
200
202
|
Et as TabsContent,
|
|
201
|
-
|
|
203
|
+
Mo as TagsList,
|
|
202
204
|
Uo as Text,
|
|
203
205
|
Wo as TextSymbolVariants,
|
|
204
206
|
Qo as TextSymbols,
|
|
@@ -2,21 +2,25 @@ import { ComponentProps } from 'react';
|
|
|
2
2
|
import { AuctionStatus, SupportedLanguages } from '../../types/commonTypes';
|
|
3
3
|
export interface BidSnapshotProps extends ComponentProps<'div'> {
|
|
4
4
|
/**
|
|
5
|
-
* Active bid of current signed in user. - '
|
|
5
|
+
* Active bid of current signed in user. - '1000'
|
|
6
6
|
*/
|
|
7
|
-
activeBid?:
|
|
7
|
+
activeBid?: number | null;
|
|
8
8
|
/**
|
|
9
9
|
* State of the object
|
|
10
10
|
*/
|
|
11
11
|
auctionStatus?: AuctionStatus;
|
|
12
|
-
/**
|
|
13
|
-
* An array of bids for the Object. Should include current bid as last element
|
|
14
|
-
*/
|
|
15
|
-
bids?: string[];
|
|
16
12
|
/**
|
|
17
13
|
* Bids label text, a fucntion for label of bids amoutn (2 bids, 3 bids, etc) where the number is the length of the bids array.
|
|
18
14
|
*/
|
|
19
15
|
bidsLabelText?: (numberOfBids: number) => string;
|
|
16
|
+
/**
|
|
17
|
+
* Currency to use for object - '$'
|
|
18
|
+
*/
|
|
19
|
+
currency?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* The current highest bid for the object - '1000'
|
|
22
|
+
*/
|
|
23
|
+
currentBid?: number | null;
|
|
20
24
|
/**
|
|
21
25
|
* Current bid text, a string for label of current bid detail
|
|
22
26
|
*/
|
|
@@ -36,11 +40,15 @@ export interface BidSnapshotProps extends ComponentProps<'div'> {
|
|
|
36
40
|
/**
|
|
37
41
|
* End time for this object
|
|
38
42
|
*/
|
|
39
|
-
lotCloseDate?: Date;
|
|
43
|
+
lotCloseDate?: Date | null;
|
|
44
|
+
/**
|
|
45
|
+
* Number of bids for each lot
|
|
46
|
+
*/
|
|
47
|
+
numberOfBids?: number;
|
|
40
48
|
/**
|
|
41
|
-
* Default Starting bid amount for the object - '
|
|
49
|
+
* Default Starting bid amount for the object - '1000'
|
|
42
50
|
*/
|
|
43
|
-
startingBid
|
|
51
|
+
startingBid?: number | null;
|
|
44
52
|
/**
|
|
45
53
|
* Starting bid text, a string for label of starting bid detail
|
|
46
54
|
*/
|
|
@@ -1,61 +1,64 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import { getCommonProps as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { AuctionStatus as t, SupportedLanguages as
|
|
8
|
-
import
|
|
9
|
-
import { CountdownVariants as
|
|
10
|
-
const
|
|
1
|
+
import { jsxs as W, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as _ } from "react";
|
|
3
|
+
import A from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { getCommonProps as V } from "../../utils/index.js";
|
|
5
|
+
import k from "../DetailList/DetailList.js";
|
|
6
|
+
import q from "../../components/Detail/Detail.js";
|
|
7
|
+
import { AuctionStatus as t, SupportedLanguages as z } from "../../types/commonTypes.js";
|
|
8
|
+
import E from "../../components/Countdown/Countdown.js";
|
|
9
|
+
import { CountdownVariants as F } from "../../components/Countdown/types.js";
|
|
10
|
+
const G = (s) => s === 1 ? `${s} bid` : `${s} bids`, H = _(
|
|
11
11
|
({
|
|
12
12
|
activeBid: s,
|
|
13
|
-
auctionStatus:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
auctionStatus: e = t.ready,
|
|
14
|
+
bidsLabelText: h = G,
|
|
15
|
+
children: $,
|
|
16
|
+
className: b,
|
|
17
|
+
closingText: u = "Closes in",
|
|
18
|
+
currency: S = "$",
|
|
19
|
+
currentBid: a,
|
|
19
20
|
currentBidText: C = "Current bid",
|
|
20
|
-
formatDurationStr:
|
|
21
|
-
lang:
|
|
21
|
+
formatDurationStr: g = (o) => o.replace(/seconds?/, "sec").replace(/minutes?/, "min"),
|
|
22
|
+
lang: v = "en",
|
|
22
23
|
lotCloseDate: m,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
numberOfBids: p = 0,
|
|
25
|
+
startingBid: L,
|
|
26
|
+
startingBidText: N = "Starting bid",
|
|
27
|
+
soldForText: w = "Sold for",
|
|
28
|
+
wonForText: x = "Won for",
|
|
27
29
|
...c
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[`${o}--
|
|
30
|
+
}, y) => {
|
|
31
|
+
var f;
|
|
32
|
+
const { className: o, ...T } = V(c, "BidSnapshot"), i = a !== null && p > 0, P = s === a, d = e === t.ready, n = e === t.live, j = e === t.past, D = n && m, R = A(o, b, {
|
|
33
|
+
[`${o}--live`]: n,
|
|
34
|
+
[`${o}--has-bids`]: i
|
|
32
35
|
});
|
|
33
|
-
let
|
|
34
|
-
return (d || !
|
|
35
|
-
/* @__PURE__ */ l(
|
|
36
|
-
|
|
36
|
+
let r = C;
|
|
37
|
+
return (d || !i) && (r = N), j && i && (r = P ? x : w), /* @__PURE__ */ W("div", { ...T, ...c, ref: y, className: R, children: [
|
|
38
|
+
/* @__PURE__ */ l(k, { hasSeparators: !0, className: `${o}__text`, children: /* @__PURE__ */ l(
|
|
39
|
+
q,
|
|
37
40
|
{
|
|
38
|
-
label:
|
|
39
|
-
subLabel:
|
|
40
|
-
value:
|
|
41
|
+
label: r,
|
|
42
|
+
subLabel: n && a && `(${h(p)})`,
|
|
43
|
+
value: `${S}${(f = a || L) == null ? void 0 : f.toLocaleString()}`,
|
|
41
44
|
hasWrap: !1
|
|
42
45
|
}
|
|
43
46
|
) }),
|
|
44
|
-
s && !d ?
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
s && !d ? $ : null,
|
|
48
|
+
D ? /* @__PURE__ */ l(
|
|
49
|
+
E,
|
|
47
50
|
{
|
|
48
51
|
endDateTime: m,
|
|
49
|
-
label:
|
|
50
|
-
variant:
|
|
51
|
-
locale:
|
|
52
|
-
formatDurationStr:
|
|
52
|
+
label: u,
|
|
53
|
+
variant: F.compact,
|
|
54
|
+
locale: z[v],
|
|
55
|
+
formatDurationStr: g
|
|
53
56
|
}
|
|
54
57
|
) : null
|
|
55
58
|
] });
|
|
56
59
|
}
|
|
57
60
|
);
|
|
58
|
-
|
|
61
|
+
H.displayName = "BidSnapshot";
|
|
59
62
|
export {
|
|
60
|
-
|
|
63
|
+
H as default
|
|
61
64
|
};
|
|
@@ -16,12 +16,14 @@ export default meta;
|
|
|
16
16
|
export declare const Playground: {
|
|
17
17
|
(props: BidSnapshotProps): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
args: {
|
|
19
|
-
activeBid:
|
|
19
|
+
activeBid: number;
|
|
20
|
+
currency: string;
|
|
21
|
+
numberOfBids: number;
|
|
20
22
|
auctionStatus: AuctionStatus;
|
|
21
|
-
|
|
23
|
+
currentBid: number;
|
|
22
24
|
lotCloseDate: Date;
|
|
23
25
|
lang: import('date-fns').Locale;
|
|
24
|
-
startingBid:
|
|
26
|
+
startingBid: number;
|
|
25
27
|
};
|
|
26
28
|
argTypes: {};
|
|
27
29
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { ComponentProps, ElementType } from 'react';
|
|
2
|
-
type ObjectTileElement = ElementType<Omit<ObjectTileProps, 'imageUrl' | 'lotNumber' | 'referenceNumber'> & {
|
|
3
|
-
'data-testid': string;
|
|
4
|
-
}>;
|
|
5
2
|
export interface ObjectTileProps extends ComponentProps<'a'> {
|
|
6
3
|
/**
|
|
7
4
|
* Optional Object badge.
|
|
@@ -10,7 +7,7 @@ export interface ObjectTileProps extends ComponentProps<'a'> {
|
|
|
10
7
|
/**
|
|
11
8
|
* Optional Element to render at the top level.
|
|
12
9
|
*/
|
|
13
|
-
element?:
|
|
10
|
+
element?: ElementType<ComponentProps<'a'>>;
|
|
14
11
|
/**
|
|
15
12
|
* Estimate for object.
|
|
16
13
|
*/
|
|
@@ -9,25 +9,25 @@ import D from "../../components/Detail/Detail.js";
|
|
|
9
9
|
import R from "../../components/SeldonImage/SeldonImage.js";
|
|
10
10
|
const S = y(
|
|
11
11
|
({
|
|
12
|
-
badgeText:
|
|
13
|
-
className:
|
|
12
|
+
badgeText: p,
|
|
13
|
+
className: f,
|
|
14
14
|
children: $,
|
|
15
15
|
element: r,
|
|
16
|
-
estimate:
|
|
16
|
+
estimate: t,
|
|
17
17
|
estimateLabelText: N = "Estimate",
|
|
18
|
-
favoriteElement:
|
|
18
|
+
favoriteElement: m,
|
|
19
19
|
imageAlt: u = "Brought to you by Phillips",
|
|
20
20
|
imageUrl: g = "",
|
|
21
|
-
lotNumber:
|
|
22
|
-
makerText:
|
|
23
|
-
modelText:
|
|
24
|
-
referenceNumber:
|
|
25
|
-
titleText:
|
|
21
|
+
lotNumber: b,
|
|
22
|
+
makerText: o,
|
|
23
|
+
modelText: c,
|
|
24
|
+
referenceNumber: _,
|
|
25
|
+
titleText: d,
|
|
26
26
|
withdrawnText: n,
|
|
27
|
-
...
|
|
28
|
-
},
|
|
29
|
-
const { className: a, ...j } = O(
|
|
30
|
-
return /* @__PURE__ */ s(k, { ...j, className: C(a,
|
|
27
|
+
...h
|
|
28
|
+
}, v) => {
|
|
29
|
+
const { className: a, ...j } = O(h, "ObjectTile"), k = r != null ? r : "a";
|
|
30
|
+
return /* @__PURE__ */ s(k, { ...j, className: C(a, f), ...h, ref: v, children: [
|
|
31
31
|
/* @__PURE__ */ e(
|
|
32
32
|
R,
|
|
33
33
|
{
|
|
@@ -38,48 +38,48 @@ const S = y(
|
|
|
38
38
|
src: g
|
|
39
39
|
}
|
|
40
40
|
),
|
|
41
|
-
n ? null : /* @__PURE__ */ e(i, { className: `${a}__badge`, variant: l.badge, children:
|
|
41
|
+
n ? null : /* @__PURE__ */ e(i, { className: `${a}__badge`, variant: l.badge, children: p }),
|
|
42
42
|
/* @__PURE__ */ s("div", { className: `${a}__lot-number-like`, children: [
|
|
43
|
-
/* @__PURE__ */ e(i, { className: `${a}__lot-number`, variant: l.heading3, element: "p", children:
|
|
44
|
-
|
|
43
|
+
/* @__PURE__ */ e(i, { className: `${a}__lot-number`, variant: l.heading3, element: "p", children: b }),
|
|
44
|
+
m && /* @__PURE__ */ e(m, {})
|
|
45
45
|
] }),
|
|
46
46
|
n ? /* @__PURE__ */ e(i, { className: `${a}__withdrawn`, variant: l.heading4, children: n }) : /* @__PURE__ */ s(x, { children: [
|
|
47
47
|
/* @__PURE__ */ s("div", { className: `${a}__meta`, children: [
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
o ? /* @__PURE__ */ e(i, { className: `${a}__maker`, variant: l.heading3, children: o }) : null,
|
|
49
|
+
d ? /* @__PURE__ */ e(
|
|
50
50
|
i,
|
|
51
51
|
{
|
|
52
52
|
className: `${a}__title ${a}__token-fix`,
|
|
53
53
|
variant: l.heading4,
|
|
54
54
|
element: "cite",
|
|
55
|
-
children:
|
|
55
|
+
children: d
|
|
56
56
|
}
|
|
57
57
|
) : null,
|
|
58
|
-
|
|
58
|
+
_ ? /* @__PURE__ */ e(
|
|
59
59
|
i,
|
|
60
60
|
{
|
|
61
61
|
className: `${a}__reference-number ${a}__token-fix`,
|
|
62
62
|
variant: l.heading4,
|
|
63
63
|
element: "p",
|
|
64
|
-
children:
|
|
64
|
+
children: _
|
|
65
65
|
}
|
|
66
66
|
) : null,
|
|
67
|
-
|
|
67
|
+
c ? /* @__PURE__ */ e(
|
|
68
68
|
i,
|
|
69
69
|
{
|
|
70
70
|
className: `${a}__model ${a}__token-fix`,
|
|
71
71
|
variant: l.heading4,
|
|
72
72
|
element: "p",
|
|
73
|
-
children:
|
|
73
|
+
children: c
|
|
74
74
|
}
|
|
75
75
|
) : null
|
|
76
76
|
] }),
|
|
77
|
-
|
|
77
|
+
t ? /* @__PURE__ */ e(P, { hasSeparators: !0, className: `${a}__estimate ${a}__section`, children: /* @__PURE__ */ e(
|
|
78
78
|
D,
|
|
79
79
|
{
|
|
80
80
|
className: `${a}__estimate__label`,
|
|
81
81
|
label: N,
|
|
82
|
-
value:
|
|
82
|
+
value: t,
|
|
83
83
|
hasWrap: !1
|
|
84
84
|
}
|
|
85
85
|
) }) : null,
|