@phillips/seldon 1.97.1 → 1.98.1
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/index.js +163 -162
- package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +6 -2
- package/dist/patterns/BidSnapshot/BidSnapshot.js +62 -53
- package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +10 -3
- package/dist/types/commonTypes.d.ts +5 -0
- package/dist/types/commonTypes.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaddingTokens as f, SpacingTokens as s, defaultYear as l, emailValidation as d, encodeURLSearchParams as m, findChildrenExcludingTypes as p, findChildrenOfType as u, generatePaddingClassName as x, getCommonProps as i, noOp as n, px as g, useNormalizedInputProps as c } from "./utils/index.js";
|
|
2
2
|
import { default as S } from "./assets/account_circle.svg.js";
|
|
3
|
-
import { default as
|
|
3
|
+
import { default as h } from "./assets/arrowPrev.svg.js";
|
|
4
4
|
import { default as I } from "./assets/calendar.svg.js";
|
|
5
5
|
import { default as T } from "./assets/calendarAlt.svg.js";
|
|
6
6
|
import { default as B } from "./assets/chevronDown.svg.js";
|
|
@@ -28,199 +28,200 @@ import { default as xe } from "./assets/youtube.svg.js";
|
|
|
28
28
|
import { default as ne } from "./assets/icon-green-circle.svg.js";
|
|
29
29
|
import { default as ce } from "./assets/icon-red-circle.svg.js";
|
|
30
30
|
import { default as Se } from "./pages/Page.js";
|
|
31
|
-
import { usePendingState as
|
|
31
|
+
import { usePendingState as he } from "./utils/hooks.js";
|
|
32
32
|
import { SSRMediaQuery as Ie, ssrMediaQueryStyle as be } from "./providers/SeldonProvider/utils.js";
|
|
33
|
-
import { AuctionStatus as Ae,
|
|
34
|
-
import { default as
|
|
35
|
-
import { ButtonVariants as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { Grid as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { LinkVariants as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { GridItemAlign as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { SelectVariants as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { SubscriptionState as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { TextVariants as
|
|
68
|
-
import { default as
|
|
69
|
-
import { TextSymbolVariants as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { AccordionItemVariant as
|
|
74
|
-
import { default as
|
|
75
|
-
import { AuthState as
|
|
76
|
-
import { default as
|
|
33
|
+
import { AuctionStatus as Ae, LotStatus as Be, SupportedLanguages as Ve } from "./types/commonTypes.js";
|
|
34
|
+
import { default as ve } from "./components/Button/Button.js";
|
|
35
|
+
import { ButtonVariants as Fe } from "./components/Button/types.js";
|
|
36
|
+
import { default as Me } from "./components/IconButton/IconButton.js";
|
|
37
|
+
import { default as He } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
38
|
+
import { default as Re } from "./site-furniture/Footer/Footer.js";
|
|
39
|
+
import { Grid as Oe } from "./components/Grid/Grid.js";
|
|
40
|
+
import { default as Ee } from "./site-furniture/Header/Header.js";
|
|
41
|
+
import { default as Qe } from "./components/Navigation/Navigation.js";
|
|
42
|
+
import { default as je } from "./components/Navigation/NavigationItem/NavigationItem.js";
|
|
43
|
+
import { default as Ze } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
|
|
44
|
+
import { default as Je } from "./components/Navigation/NavigationList/NavigationList.js";
|
|
45
|
+
import { default as Xe } from "./patterns/HeroBanner/HeroBanner.js";
|
|
46
|
+
import { default as $e } from "./components/Input/Input.js";
|
|
47
|
+
import { default as tt } from "./components/Link/Link.js";
|
|
48
|
+
import { LinkVariants as rt } from "./components/Link/types.js";
|
|
49
|
+
import { default as ft } from "./components/LinkBlock/LinkBlock.js";
|
|
50
|
+
import { default as lt } from "./components/LinkList/LinkList.js";
|
|
51
|
+
import { default as mt } from "./components/Row/Row.js";
|
|
52
|
+
import { default as ut } from "./components/GridItem/GridItem.js";
|
|
53
|
+
import { GridItemAlign as it } from "./components/GridItem/types.js";
|
|
54
|
+
import { default as gt } from "./components/Search/Search.js";
|
|
55
|
+
import { default as Ct } from "./components/Select/Select.js";
|
|
56
|
+
import { SelectVariants as Lt } from "./components/Select/types.js";
|
|
57
|
+
import { default as Pt } from "./components/SplitPanel/SplitPanel.js";
|
|
58
|
+
import { default as bt } from "./patterns/Subscribe/Subscribe.js";
|
|
59
|
+
import { SubscriptionState as At } from "./patterns/Subscribe/types.js";
|
|
60
|
+
import { default as Vt } from "./patterns/Social/Social.js";
|
|
61
|
+
import { default as vt } from "./patterns/ViewingsList/ViewingsList.js";
|
|
62
|
+
import { default as Ft } from "./components/Modal/Modal.js";
|
|
63
|
+
import { default as Mt } from "./components/Drawer/Drawer.js";
|
|
64
|
+
import { default as Ht } from "./components/Pagination/Pagination.js";
|
|
65
|
+
import { default as Rt } from "./components/Tags/Tags.js";
|
|
66
|
+
import { default as Ot } from "./patterns/ViewingsList/StatefulViewingsList.js";
|
|
67
|
+
import { TextVariants as Et } from "./components/Text/types.js";
|
|
68
|
+
import { default as Qt } from "./components/Text/Text.js";
|
|
69
|
+
import { TextSymbolVariants as jt } from "./components/TextSymbol/types.js";
|
|
70
|
+
import { default as Zt } from "./components/TextSymbol/TextSymbol.js";
|
|
71
|
+
import { default as Jt } from "./components/Accordion/Accordion.js";
|
|
72
|
+
import { default as Xt } from "./components/Accordion/AccordionItem.js";
|
|
73
|
+
import { AccordionItemVariant as $t, AccordionVariants as eo } from "./components/Accordion/types.js";
|
|
74
|
+
import { default as oo } from "./patterns/UserManagement/UserManagement.js";
|
|
75
|
+
import { AuthState as ao } from "./patterns/UserManagement/types.js";
|
|
76
|
+
import { default as so } from "./components/Breadcrumb/Breadcrumb.js";
|
|
77
77
|
import "react/jsx-runtime";
|
|
78
78
|
import "./node_modules/classnames/index.js";
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { HeightUnits as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { SeldonProvider as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { DetailListAlignment as
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as
|
|
99
|
-
import { default as
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { AuctionState as
|
|
103
|
-
import { default as
|
|
104
|
-
import { default as
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as
|
|
107
|
-
import { default as
|
|
108
|
-
import { CountdownVariants as
|
|
109
|
-
import { default as
|
|
110
|
-
import { default as
|
|
111
|
-
import { default as
|
|
112
|
-
import { BidMessageVariants as
|
|
79
|
+
import { default as mo } from "./components/Dropdown/Dropdown.js";
|
|
80
|
+
import { default as uo } from "./components/Video/Video.js";
|
|
81
|
+
import { default as io } from "./patterns/LanguageSelector/LanguageSelector.js";
|
|
82
|
+
import { default as go } from "./components/ContentPeek/ContentPeek.js";
|
|
83
|
+
import { HeightUnits as Co } from "./components/ContentPeek/utils.js";
|
|
84
|
+
import { default as Lo } from "./components/Collapsible/Collapsible.js";
|
|
85
|
+
import { default as Po } from "./components/Collapsible/CollapsibleContent.js";
|
|
86
|
+
import { default as bo } from "./components/Collapsible/CollapsibleTrigger.js";
|
|
87
|
+
import { SeldonProvider as Ao } from "./providers/SeldonProvider/SeldonProvider.js";
|
|
88
|
+
import { default as Vo } from "./components/PageContentWrapper/PageContentWrapper.js";
|
|
89
|
+
import { default as vo } from "./components/Carousel/Carousel.js";
|
|
90
|
+
import { default as Fo } from "./components/Carousel/CarouselContent.js";
|
|
91
|
+
import { default as Mo } from "./components/Carousel/CarouselItem.js";
|
|
92
|
+
import { default as Ho } from "./components/Carousel/CarouselDots.js";
|
|
93
|
+
import { default as Ro } from "./components/Detail/Detail.js";
|
|
94
|
+
import { default as Oo } from "./patterns/DetailList/DetailList.js";
|
|
95
|
+
import { DetailListAlignment as Eo } from "./patterns/DetailList/types.js";
|
|
96
|
+
import { default as Qo } from "./components/PinchZoom/PinchZoom.js";
|
|
97
|
+
import { default as jo } from "./components/Tabs/TabsContainer.js";
|
|
98
|
+
import { default as Zo } from "./components/Tabs/TabsContent.js";
|
|
99
|
+
import { default as Jo } from "./components/SeldonImage/SeldonImage.js";
|
|
100
|
+
import { default as Xo } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
|
|
101
|
+
import { default as $o } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
|
|
102
|
+
import { AuctionState as tr } from "./patterns/SaleHeaderBanner/types.js";
|
|
103
|
+
import { default as rr } from "./patterns/FilterMenu/FilterMenu.js";
|
|
104
|
+
import { default as fr } from "./components/Filter/Filter.js";
|
|
105
|
+
import { default as lr } from "./components/Filter/FilterInput.js";
|
|
106
|
+
import { default as mr } from "./components/Filter/FilterHeader.js";
|
|
107
|
+
import { default as ur } from "./components/Countdown/Countdown.js";
|
|
108
|
+
import { CountdownVariants as ir } from "./components/Countdown/types.js";
|
|
109
|
+
import { default as gr } from "./patterns/ObjectTile/ObjectTile.js";
|
|
110
|
+
import { default as Cr } from "./patterns/BidSnapshot/BidSnapshot.js";
|
|
111
|
+
import { default as Lr } from "./patterns/BidSnapshot/BidMessage.js";
|
|
112
|
+
import { BidMessageVariants as Pr, BidStatusEnum as Ir } from "./patterns/BidSnapshot/types.js";
|
|
113
113
|
export {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
Jt as Accordion,
|
|
115
|
+
Xt as AccordionItem,
|
|
116
|
+
$t as AccordionItemVariant,
|
|
117
|
+
eo as AccordionVariants,
|
|
118
118
|
S as AccountCircle,
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
h as ArrowPrev,
|
|
120
|
+
tr as AuctionState,
|
|
121
121
|
Ae as AuctionStatus,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
122
|
+
ao as AuthState,
|
|
123
|
+
Lr as BidMessage,
|
|
124
|
+
Pr as BidMessageVariants,
|
|
125
|
+
Cr as BidSnapshot,
|
|
126
|
+
Ir as BidStatusEnum,
|
|
127
|
+
so as Breadcrumb,
|
|
128
|
+
ve as Button,
|
|
129
|
+
Fe as ButtonVariants,
|
|
130
130
|
I as Calendar,
|
|
131
131
|
T as CalendarAlt,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
vo as Carousel,
|
|
133
|
+
Fo as CarouselContent,
|
|
134
|
+
Ho as CarouselDots,
|
|
135
|
+
Mo as CarouselItem,
|
|
136
136
|
B as ChevronDown,
|
|
137
137
|
k as ChevronNext,
|
|
138
138
|
w as ChevronRight,
|
|
139
139
|
y as Close,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
140
|
+
Lo as Collapsible,
|
|
141
|
+
Po as CollapsibleContent,
|
|
142
|
+
bo as CollapsibleTrigger,
|
|
143
|
+
go as ContentPeek,
|
|
144
|
+
Co as ContentPeekHeightUnits,
|
|
145
|
+
ur as Countdown,
|
|
146
|
+
ir as CountdownVariants,
|
|
147
|
+
Ro as Detail,
|
|
148
|
+
Oo as DetailList,
|
|
149
|
+
Eo as DetailListAlignment,
|
|
150
|
+
Mt as Drawer,
|
|
151
|
+
mo as Dropdown,
|
|
152
|
+
He as ErrorBoundary,
|
|
153
153
|
G as Facebook,
|
|
154
154
|
D as Favorite,
|
|
155
155
|
N as FavoriteOutline,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
fr as Filter,
|
|
157
|
+
mr as FilterHeader,
|
|
158
|
+
lr as FilterInput,
|
|
159
|
+
rr as FilterMenu,
|
|
160
|
+
Re as Footer,
|
|
161
161
|
U as FooterInstagram,
|
|
162
162
|
z as FooterWeChat,
|
|
163
163
|
ne as GreenCircle,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
164
|
+
Oe as Grid,
|
|
165
|
+
ut as GridItem,
|
|
166
|
+
it as GridItemAlign,
|
|
167
|
+
Ee as Header,
|
|
168
|
+
Xe as HeroBanner,
|
|
169
|
+
Me as IconButton,
|
|
170
|
+
$e as Input,
|
|
171
171
|
q as Instagram,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
io as LanguageSelector,
|
|
173
|
+
tt as Link,
|
|
174
|
+
ft as LinkBlock,
|
|
175
|
+
lt as LinkList,
|
|
176
|
+
rt as LinkVariants,
|
|
177
177
|
W as LinkedIn,
|
|
178
178
|
K as Lock,
|
|
179
|
+
Be as LotStatus,
|
|
179
180
|
_ as Minus,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
181
|
+
Ft as Modal,
|
|
182
|
+
Qe as Navigation,
|
|
183
|
+
je as NavigationItem,
|
|
184
|
+
Ze as NavigationItemTrigger,
|
|
185
|
+
Je as NavigationList,
|
|
186
|
+
gr as ObjectTile,
|
|
186
187
|
f as PaddingTokens,
|
|
187
188
|
Se as Page,
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
Vo as PageContentWrapper,
|
|
190
|
+
Ht as Pagination,
|
|
190
191
|
ee as PhillipsLogo,
|
|
191
|
-
|
|
192
|
+
Qo as PinchZoom,
|
|
192
193
|
oe as Plus,
|
|
193
194
|
ae as React,
|
|
194
195
|
ce as RedCircle,
|
|
195
196
|
Y as Reddit,
|
|
196
|
-
|
|
197
|
+
mt as Row,
|
|
197
198
|
Ie as SSRMediaQuery,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
199
|
+
Xo as SaleHeaderBanner,
|
|
200
|
+
$o as SaleHeaderBrowseAuctions,
|
|
201
|
+
gt as Search,
|
|
202
|
+
Jo as SeldonImage,
|
|
203
|
+
Ao as SeldonProvider,
|
|
204
|
+
Ct as Select,
|
|
205
|
+
Lt as SelectVariants,
|
|
205
206
|
se as Share,
|
|
206
|
-
|
|
207
|
+
Vt as Social,
|
|
207
208
|
s as SpacingTokens,
|
|
208
|
-
|
|
209
|
+
Pt as SplitPanel,
|
|
209
210
|
de as Spotify,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
211
|
+
Ot as StatefulViewingsList,
|
|
212
|
+
bt as Subscribe,
|
|
213
|
+
At as SubscriptionState,
|
|
214
|
+
Ve as SupportedLanguages,
|
|
215
|
+
jo as TabsContainer,
|
|
216
|
+
Zo as TabsContent,
|
|
217
|
+
Rt as TagsList,
|
|
218
|
+
Qt as Text,
|
|
219
|
+
jt as TextSymbolVariants,
|
|
220
|
+
Zt as TextSymbols,
|
|
221
|
+
Et as TextVariants,
|
|
222
|
+
oo as UserManagement,
|
|
223
|
+
uo as Video,
|
|
224
|
+
vt as ViewingsList,
|
|
224
225
|
pe as WeChat,
|
|
225
226
|
xe as Youtube,
|
|
226
227
|
l as defaultYear,
|
|
@@ -234,5 +235,5 @@ export {
|
|
|
234
235
|
g as px,
|
|
235
236
|
be as ssrMediaQueryStyle,
|
|
236
237
|
c as useNormalizedInputProps,
|
|
237
|
-
|
|
238
|
+
he as usePendingState
|
|
238
239
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { LotStatus, SupportedLanguages } from '../../types/commonTypes';
|
|
3
3
|
import { BidStatusEnum } from './types';
|
|
4
4
|
export interface BidSnapshotProps extends ComponentProps<'div'> {
|
|
5
5
|
/**
|
|
@@ -9,7 +9,7 @@ export interface BidSnapshotProps extends ComponentProps<'div'> {
|
|
|
9
9
|
/**
|
|
10
10
|
* State of the object
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
lotStatus?: LotStatus;
|
|
13
13
|
/**
|
|
14
14
|
* 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.
|
|
15
15
|
*/
|
|
@@ -54,6 +54,10 @@ export interface BidSnapshotProps extends ComponentProps<'div'> {
|
|
|
54
54
|
* Starting bid text, a string for label of starting bid detail
|
|
55
55
|
*/
|
|
56
56
|
startingBidText?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Sold For amount
|
|
59
|
+
* */
|
|
60
|
+
soldPrice?: number;
|
|
57
61
|
/**
|
|
58
62
|
* Sold for label text, a string for label of sold for detail
|
|
59
63
|
*/
|
|
@@ -1,67 +1,76 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import { getCommonProps as
|
|
1
|
+
import { jsxs as u, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as V } from "react";
|
|
3
|
+
import k from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { getCommonProps as q, findChildrenOfType as z, findChildrenExcludingTypes as A } from "../../utils/index.js";
|
|
5
5
|
import F from "../DetailList/DetailList.js";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import { CountdownVariants as
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
const K = (o) => o === 1 ? `${o} bid` : `${o} bids`, Q = A(
|
|
6
|
+
import p from "../../components/Detail/Detail.js";
|
|
7
|
+
import { LotStatus as m, SupportedLanguages as G } from "../../types/commonTypes.js";
|
|
8
|
+
import H from "../../components/Countdown/Countdown.js";
|
|
9
|
+
import { CountdownVariants as I } from "../../components/Countdown/types.js";
|
|
10
|
+
import C from "./BidMessage.js";
|
|
11
|
+
const J = (a) => a === 1 ? `${a} bid` : `${a} bids`, K = V(
|
|
13
12
|
({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
bidsLabelText:
|
|
17
|
-
children:
|
|
18
|
-
className:
|
|
19
|
-
closingText:
|
|
20
|
-
currency:
|
|
21
|
-
currentBid:
|
|
22
|
-
currentBidText:
|
|
23
|
-
formatDurationStr:
|
|
24
|
-
lang:
|
|
13
|
+
lotStatus: a = m.ready,
|
|
14
|
+
bidStatus: f,
|
|
15
|
+
bidsLabelText: v = J,
|
|
16
|
+
children: c,
|
|
17
|
+
className: L,
|
|
18
|
+
closingText: S = "Closes in",
|
|
19
|
+
currency: i = "$",
|
|
20
|
+
currentBid: s,
|
|
21
|
+
currentBidText: g = "Current bid",
|
|
22
|
+
formatDurationStr: x = (o) => o.replace(/seconds?/, "sec").replace(/minutes?/, "min"),
|
|
23
|
+
lang: N = "en",
|
|
25
24
|
lotCloseDate: d,
|
|
26
|
-
numberOfBids:
|
|
27
|
-
startingBid:
|
|
28
|
-
startingBidText:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
numberOfBids: h = 0,
|
|
26
|
+
startingBid: r,
|
|
27
|
+
startingBidText: T = "Starting bid",
|
|
28
|
+
soldPrice: e,
|
|
29
|
+
soldForText: w = "Sold for",
|
|
30
|
+
wonForText: y = "Won for",
|
|
31
|
+
...$
|
|
32
32
|
}, W) => {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
[`${
|
|
36
|
-
[`${s}--has-bids`]: n
|
|
33
|
+
const { className: o, ...j } = q($, "BidSnapshot"), l = s !== null && h > 0, b = a === m.ready, n = a === m.live, D = a === m.past, M = n && d, R = z(c, C), _ = A(c, [C]), E = k(o, L, {
|
|
34
|
+
[`${o}--live`]: n,
|
|
35
|
+
[`${o}--has-bids`]: l
|
|
37
36
|
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
37
|
+
return /* @__PURE__ */ u("div", { ...j, ...$, ref: W, className: E, children: [
|
|
38
|
+
/* @__PURE__ */ u(F, { hasSeparators: !0, className: `${o}__text`, children: [
|
|
39
|
+
D && l && e ? /* @__PURE__ */ t(
|
|
40
|
+
p,
|
|
41
|
+
{
|
|
42
|
+
label: f ? y : w,
|
|
43
|
+
value: `${i}${e == null ? void 0 : e.toLocaleString()}`,
|
|
44
|
+
hasWrap: !1
|
|
45
|
+
}
|
|
46
|
+
) : null,
|
|
47
|
+
n && l ? /* @__PURE__ */ t(
|
|
48
|
+
p,
|
|
49
|
+
{
|
|
50
|
+
label: g,
|
|
51
|
+
subLabel: `(${v(h)})`,
|
|
52
|
+
value: `${i}${s == null ? void 0 : s.toLocaleString()}`,
|
|
53
|
+
hasWrap: !1
|
|
54
|
+
}
|
|
55
|
+
) : null,
|
|
56
|
+
b || n && !l ? /* @__PURE__ */ t(p, { label: T, value: `${i}${r == null ? void 0 : r.toLocaleString()}`, hasWrap: !1 }) : null
|
|
57
|
+
] }),
|
|
58
|
+
f && !b ? R : null,
|
|
59
|
+
_,
|
|
60
|
+
M ? /* @__PURE__ */ t(
|
|
61
|
+
H,
|
|
53
62
|
{
|
|
54
63
|
endDateTime: d,
|
|
55
|
-
label:
|
|
56
|
-
variant:
|
|
57
|
-
locale:
|
|
58
|
-
formatDurationStr:
|
|
64
|
+
label: S,
|
|
65
|
+
variant: I.compact,
|
|
66
|
+
locale: G[N],
|
|
67
|
+
formatDurationStr: x
|
|
59
68
|
}
|
|
60
69
|
) : null
|
|
61
70
|
] });
|
|
62
71
|
}
|
|
63
72
|
);
|
|
64
|
-
|
|
73
|
+
K.displayName = "BidSnapshot";
|
|
65
74
|
export {
|
|
66
|
-
|
|
75
|
+
K as default
|
|
67
76
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BidSnapshotProps } from './BidSnapshot';
|
|
2
|
-
import {
|
|
2
|
+
import { LotStatus } from '../../types/commonTypes';
|
|
3
3
|
import { BidStatusEnum } from './types';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: import('react').ForwardRefExoticComponent<Omit<BidSnapshotProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
7
|
argTypes: {
|
|
8
|
-
|
|
8
|
+
lotStatus: {
|
|
9
9
|
options: string[];
|
|
10
10
|
control: {
|
|
11
11
|
type: "select";
|
|
@@ -19,11 +19,12 @@ export declare const Playground: {
|
|
|
19
19
|
args: {
|
|
20
20
|
currency: string;
|
|
21
21
|
numberOfBids: number;
|
|
22
|
-
|
|
22
|
+
lotStatus: LotStatus;
|
|
23
23
|
currentBid: number;
|
|
24
24
|
lotCloseDate: Date;
|
|
25
25
|
lang: import('date-fns').Locale;
|
|
26
26
|
startingBid: number;
|
|
27
|
+
soldPrice: number;
|
|
27
28
|
};
|
|
28
29
|
argTypes: {
|
|
29
30
|
bidStatus: {
|
|
@@ -32,5 +33,11 @@ export declare const Playground: {
|
|
|
32
33
|
type: string;
|
|
33
34
|
};
|
|
34
35
|
};
|
|
36
|
+
auctionStatus: {
|
|
37
|
+
options: typeof LotStatus;
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
35
42
|
};
|
|
36
43
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
var e = /* @__PURE__ */ ((r) => (r.en = "en", r.zh = "zh", r))(e || {}), v = /* @__PURE__ */ ((r) => (r.ready = "READY", r.live = "LIVE", r.past = "PAST", r))(v || {});
|
|
1
|
+
var e = /* @__PURE__ */ ((r) => (r.en = "en", r.zh = "zh", r))(e || {}), v = /* @__PURE__ */ ((r) => (r.ready = "READY", r.live = "LIVE", r.past = "PAST", r))(v || {}), E = /* @__PURE__ */ ((r) => (r.ready = "READY", r.live = "LIVE", r.past = "PAST", r))(E || {});
|
|
2
2
|
export {
|
|
3
3
|
v as AuctionStatus,
|
|
4
|
+
E as LotStatus,
|
|
4
5
|
e as SupportedLanguages
|
|
5
6
|
};
|