@phillips/seldon 1.92.0 → 1.94.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/assets/PhillipsLogo.svg.js +2 -2
- package/dist/assets/calendarAlt.svg.js +5 -0
- package/dist/assets/favorite.svg.js +5 -0
- package/dist/assets/icons.d.ts +2 -0
- package/dist/components/Button/Button.js +39 -33
- package/dist/components/Countdown/Countdown.d.ts +4 -0
- package/dist/components/Countdown/Countdown.js +54 -42
- package/dist/components/Countdown/Duration.d.ts +2 -1
- package/dist/components/Countdown/Duration.js +7 -8
- package/dist/components/Detail/Detail.d.ts +2 -0
- package/dist/components/Detail/Detail.js +19 -13
- package/dist/components/Detail/Detail.stories.d.ts +1 -0
- package/dist/components/SeldonImage/SeldonImage.js +27 -26
- package/dist/index.d.ts +3 -0
- package/dist/index.js +205 -194
- package/dist/patterns/BidSnapshot/BidMessage.d.ts +27 -0
- package/dist/patterns/BidSnapshot/BidMessage.js +22 -0
- package/dist/patterns/BidSnapshot/BidMessage.test.d.ts +1 -0
- package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +67 -0
- package/dist/patterns/BidSnapshot/BidSnapshot.js +61 -0
- package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +27 -0
- package/dist/patterns/BidSnapshot/BidSnapshot.test.d.ts +1 -0
- package/dist/patterns/BidSnapshot/index.d.ts +2 -0
- package/dist/patterns/BidSnapshot/types.d.ts +4 -0
- package/dist/patterns/BidSnapshot/types.js +4 -0
- package/dist/patterns/ObjectTile/ObjectTile.d.ts +69 -0
- package/dist/patterns/ObjectTile/ObjectTile.js +94 -0
- package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +41 -0
- package/dist/patterns/ObjectTile/ObjectTile.test.d.ts +1 -0
- package/dist/patterns/ObjectTile/index.d.ts +1 -0
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.d.ts +2 -2
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +17 -17
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.stories.d.ts +3 -3
- package/dist/scss/_vars.scss +5 -1
- package/dist/scss/componentStyles.scss +2 -0
- package/dist/scss/components/Countdown/_countdown.scss +8 -0
- package/dist/scss/components/Countdown/_duration.scss +5 -4
- package/dist/scss/components/Detail/_detail.scss +20 -0
- package/dist/scss/components/SeldonImage/_seldonImage.scss +12 -4
- package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +48 -0
- package/dist/scss/patterns/ObjectTile/_objectTile.scss +61 -0
- 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,210 +1,221 @@
|
|
|
1
|
-
import { PaddingTokens as f, SpacingTokens as s, defaultYear as l, emailValidation as
|
|
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 n, noOp as i, 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
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as T } from "./assets/
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as D } from "./assets/
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as E } from "./assets/icon-footer-
|
|
15
|
-
import { default as Y } from "./assets/
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as q } from "./assets/
|
|
18
|
-
import { default as K } from "./assets/
|
|
19
|
-
import { default as _ } from "./assets/
|
|
20
|
-
import { default as ee } from "./assets/
|
|
3
|
+
import { default as L } from "./assets/arrowPrev.svg.js";
|
|
4
|
+
import { default as b } from "./assets/calendar.svg.js";
|
|
5
|
+
import { default as T } from "./assets/calendarAlt.svg.js";
|
|
6
|
+
import { default as k } from "./assets/chevronDown.svg.js";
|
|
7
|
+
import { default as B } from "./assets/chevronNext.svg.js";
|
|
8
|
+
import { default as w } from "./assets/chevronRight.svg.js";
|
|
9
|
+
import { default as D } from "./assets/close.svg.js";
|
|
10
|
+
import { default as F } from "./assets/favorite.svg.js";
|
|
11
|
+
import { default as M } from "./assets/favoriteOutline.svg.js";
|
|
12
|
+
import { default as O } from "./assets/icon-footer-facebook.svg.js";
|
|
13
|
+
import { default as G } from "./assets/icon-footer-instagram.svg.js";
|
|
14
|
+
import { default as E } from "./assets/icon-footer-linkedin.svg.js";
|
|
15
|
+
import { default as Y } from "./assets/icon-footer-red.svg.js";
|
|
16
|
+
import { default as z } from "./assets/icon-footer-wechat.svg.js";
|
|
17
|
+
import { default as q } from "./assets/instagram.svg.js";
|
|
18
|
+
import { default as K } from "./assets/lock.svg.js";
|
|
19
|
+
import { default as _ } from "./assets/minus.svg.js";
|
|
20
|
+
import { default as ee } from "./assets/PhillipsLogo.svg.js";
|
|
21
|
+
import { default as te } from "./assets/plus.svg.js";
|
|
22
|
+
import { default as ae } from "./assets/react.svg.js";
|
|
21
23
|
import "react";
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { usePendingState as
|
|
28
|
-
import { SSRMediaQuery as
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import { default as
|
|
24
|
+
import { default as se } from "./assets/share.svg.js";
|
|
25
|
+
import { default as de } from "./assets/spotify.svg.js";
|
|
26
|
+
import { default as pe } from "./assets/wechat.svg.js";
|
|
27
|
+
import { default as xe } from "./assets/youtube.svg.js";
|
|
28
|
+
import { default as ie } from "./pages/Page.js";
|
|
29
|
+
import { usePendingState as ce } from "./utils/hooks.js";
|
|
30
|
+
import { SSRMediaQuery as Se, ssrMediaQueryStyle as he } from "./providers/SeldonProvider/utils.js";
|
|
31
|
+
import { AuctionStatus as Pe, SupportedLanguages as be } from "./types/commonTypes.js";
|
|
32
|
+
import { default as Te } from "./components/Button/Button.js";
|
|
33
|
+
import { ButtonVariants as ke } from "./components/Button/types.js";
|
|
34
|
+
import { default as Be } from "./components/IconButton/IconButton.js";
|
|
35
|
+
import { default as we } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
36
|
+
import { default as De } from "./site-furniture/Footer/Footer.js";
|
|
37
|
+
import { Grid as Fe } from "./components/Grid/Grid.js";
|
|
38
|
+
import { default as Me } from "./site-furniture/Header/Header.js";
|
|
39
|
+
import { default as Oe } from "./components/Navigation/Navigation.js";
|
|
40
|
+
import { default as Ge } from "./components/Navigation/NavigationItem/NavigationItem.js";
|
|
41
|
+
import { default as Ee } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
|
|
42
|
+
import { default as Ye } from "./components/Navigation/NavigationList/NavigationList.js";
|
|
43
|
+
import { default as ze } from "./patterns/HeroBanner/HeroBanner.js";
|
|
44
|
+
import { default as qe } from "./components/Input/Input.js";
|
|
45
|
+
import { default as Ke } from "./components/Link/Link.js";
|
|
46
|
+
import { LinkVariants as _e } from "./components/Link/types.js";
|
|
47
|
+
import { default as eo } from "./components/LinkBlock/LinkBlock.js";
|
|
48
|
+
import { default as to } from "./components/LinkList/LinkList.js";
|
|
49
|
+
import { default as ao } from "./components/Row/Row.js";
|
|
50
|
+
import { default as so } from "./components/GridItem/GridItem.js";
|
|
51
|
+
import { GridItemAlign as mo } from "./components/GridItem/types.js";
|
|
52
|
+
import { default as uo } from "./components/Search/Search.js";
|
|
53
|
+
import { default as no } from "./components/Select/Select.js";
|
|
54
|
+
import { default as go } from "./components/SplitPanel/SplitPanel.js";
|
|
55
|
+
import { default as Co } from "./patterns/Subscribe/Subscribe.js";
|
|
56
|
+
import { SubscriptionState as ho } from "./patterns/Subscribe/types.js";
|
|
57
|
+
import { default as Po } from "./patterns/Social/Social.js";
|
|
58
|
+
import { default as Io } from "./patterns/ViewingsList/ViewingsList.js";
|
|
59
|
+
import { default as Ao } from "./components/Modal/Modal.js";
|
|
60
|
+
import { default as vo } from "./components/Drawer/Drawer.js";
|
|
61
|
+
import { default as Vo } from "./components/Pagination/Pagination.js";
|
|
62
|
+
import { default as yo } from "./components/Tags/Tags.js";
|
|
63
|
+
import { default as No } from "./patterns/ViewingsList/StatefulViewingsList.js";
|
|
64
|
+
import { TextVariants as Ho } from "./components/Text/types.js";
|
|
65
|
+
import { default as Ro } from "./components/Text/Text.js";
|
|
66
|
+
import { TextSymbolVariants as Uo } from "./components/TextSymbol/types.js";
|
|
67
|
+
import { default as Wo } from "./components/TextSymbol/TextSymbol.js";
|
|
68
|
+
import { default as Qo } from "./components/Accordion/Accordion.js";
|
|
69
|
+
import { default as jo } from "./components/Accordion/AccordionItem.js";
|
|
70
|
+
import { AccordionItemVariant as Zo, AccordionVariants as qo } from "./components/Accordion/types.js";
|
|
71
|
+
import { default as Ko } from "./patterns/UserManagement/UserManagement.js";
|
|
72
|
+
import { AuthState as _o } from "./patterns/UserManagement/types.js";
|
|
73
|
+
import { default as et } from "./components/Breadcrumb/Breadcrumb.js";
|
|
72
74
|
import "react/jsx-runtime";
|
|
73
75
|
import "./node_modules/classnames/index.js";
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { HeightUnits as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { SeldonProvider as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { DetailListAlignment as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
97
|
-
import { AuctionState as
|
|
98
|
-
import { default as
|
|
99
|
-
import { CountdownVariants as
|
|
76
|
+
import { default as tt } from "./components/Dropdown/Dropdown.js";
|
|
77
|
+
import { default as at } from "./components/Video/Video.js";
|
|
78
|
+
import { default as st } from "./patterns/LanguageSelector/LanguageSelector.js";
|
|
79
|
+
import { default as dt } from "./components/ContentPeek/ContentPeek.js";
|
|
80
|
+
import { HeightUnits as pt } from "./components/ContentPeek/utils.js";
|
|
81
|
+
import { default as xt } from "./components/Collapsible/Collapsible.js";
|
|
82
|
+
import { default as it } from "./components/Collapsible/CollapsibleContent.js";
|
|
83
|
+
import { default as ct } from "./components/Collapsible/CollapsibleTrigger.js";
|
|
84
|
+
import { SeldonProvider as St } from "./providers/SeldonProvider/SeldonProvider.js";
|
|
85
|
+
import { default as Lt } from "./components/PageContentWrapper/PageContentWrapper.js";
|
|
86
|
+
import { default as bt } from "./components/Carousel/Carousel.js";
|
|
87
|
+
import { default as Tt } from "./components/Carousel/CarouselContent.js";
|
|
88
|
+
import { default as kt } from "./components/Carousel/CarouselItem.js";
|
|
89
|
+
import { default as Bt } from "./components/Carousel/CarouselDots.js";
|
|
90
|
+
import { default as wt } from "./components/Detail/Detail.js";
|
|
91
|
+
import { default as Dt } from "./patterns/DetailList/DetailList.js";
|
|
92
|
+
import { DetailListAlignment as Ft } from "./patterns/DetailList/types.js";
|
|
93
|
+
import { default as Mt } from "./components/PinchZoom/PinchZoom.js";
|
|
94
|
+
import { default as Ot } from "./components/Tabs/TabsContainer.js";
|
|
95
|
+
import { default as Gt } from "./components/Tabs/TabsContent.js";
|
|
96
|
+
import { default as Et } from "./components/SeldonImage/SeldonImage.js";
|
|
97
|
+
import { default as Yt } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
|
|
98
|
+
import { default as zt } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
|
|
99
|
+
import { AuctionState as qt } from "./patterns/SaleHeaderBanner/types.js";
|
|
100
|
+
import { default as Kt } from "./components/Countdown/Countdown.js";
|
|
101
|
+
import { CountdownVariants as _t } from "./components/Countdown/types.js";
|
|
102
|
+
import { default as er } from "./patterns/ObjectTile/ObjectTile.js";
|
|
103
|
+
import { default as tr } from "./patterns/BidSnapshot/BidSnapshot.js";
|
|
104
|
+
import { default as ar } from "./patterns/BidSnapshot/BidMessage.js";
|
|
100
105
|
export {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
106
|
+
Qo as Accordion,
|
|
107
|
+
jo as AccordionItem,
|
|
108
|
+
Zo as AccordionItemVariant,
|
|
109
|
+
qo as AccordionVariants,
|
|
105
110
|
S as AccountCircle,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
111
|
+
L as ArrowPrev,
|
|
112
|
+
qt as AuctionState,
|
|
113
|
+
Pe as AuctionStatus,
|
|
114
|
+
_o as AuthState,
|
|
115
|
+
ar as BidMessage,
|
|
116
|
+
tr as BidSnapshot,
|
|
117
|
+
et as Breadcrumb,
|
|
118
|
+
Te as Button,
|
|
119
|
+
ke as ButtonVariants,
|
|
120
|
+
b as Calendar,
|
|
121
|
+
T as CalendarAlt,
|
|
122
|
+
bt as Carousel,
|
|
123
|
+
Tt as CarouselContent,
|
|
124
|
+
Bt as CarouselDots,
|
|
125
|
+
kt as CarouselItem,
|
|
126
|
+
k as ChevronDown,
|
|
127
|
+
B as ChevronNext,
|
|
128
|
+
w as ChevronRight,
|
|
129
|
+
D as Close,
|
|
130
|
+
xt as Collapsible,
|
|
131
|
+
it as CollapsibleContent,
|
|
132
|
+
ct as CollapsibleTrigger,
|
|
133
|
+
dt as ContentPeek,
|
|
134
|
+
pt as ContentPeekHeightUnits,
|
|
135
|
+
Kt as Countdown,
|
|
136
|
+
_t as CountdownVariants,
|
|
137
|
+
wt as Detail,
|
|
138
|
+
Dt as DetailList,
|
|
139
|
+
Ft as DetailListAlignment,
|
|
140
|
+
vo as Drawer,
|
|
141
|
+
tt as Dropdown,
|
|
142
|
+
we as ErrorBoundary,
|
|
143
|
+
O as Facebook,
|
|
144
|
+
F as Favorite,
|
|
145
|
+
M as FavoriteOutline,
|
|
146
|
+
De as Footer,
|
|
147
|
+
G as FooterInstagram,
|
|
148
|
+
z as FooterWeChat,
|
|
149
|
+
Fe as Grid,
|
|
150
|
+
so as GridItem,
|
|
151
|
+
mo as GridItemAlign,
|
|
152
|
+
Me as Header,
|
|
153
|
+
ze as HeroBanner,
|
|
154
|
+
Be as IconButton,
|
|
155
|
+
qe as Input,
|
|
156
|
+
q as Instagram,
|
|
157
|
+
st as LanguageSelector,
|
|
158
|
+
Ke as Link,
|
|
159
|
+
eo as LinkBlock,
|
|
160
|
+
to as LinkList,
|
|
161
|
+
_e as LinkVariants,
|
|
162
|
+
E as LinkedIn,
|
|
163
|
+
K as Lock,
|
|
164
|
+
_ as Minus,
|
|
165
|
+
Ao as Modal,
|
|
166
|
+
Oe as Navigation,
|
|
167
|
+
Ge as NavigationItem,
|
|
168
|
+
Ee as NavigationItemTrigger,
|
|
169
|
+
Ye as NavigationList,
|
|
170
|
+
er as ObjectTile,
|
|
160
171
|
f as PaddingTokens,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
172
|
+
ie as Page,
|
|
173
|
+
Lt as PageContentWrapper,
|
|
174
|
+
Vo as Pagination,
|
|
175
|
+
ee as PhillipsLogo,
|
|
176
|
+
Mt as PinchZoom,
|
|
177
|
+
te as Plus,
|
|
178
|
+
ae as React,
|
|
179
|
+
Y as Reddit,
|
|
180
|
+
ao as Row,
|
|
181
|
+
Se as SSRMediaQuery,
|
|
182
|
+
Yt as SaleHeaderBanner,
|
|
183
|
+
zt as SaleHeaderBrowseAuctions,
|
|
184
|
+
uo as Search,
|
|
185
|
+
Et as SeldonImage,
|
|
186
|
+
St as SeldonProvider,
|
|
187
|
+
no as Select,
|
|
188
|
+
se as Share,
|
|
189
|
+
Po as Social,
|
|
179
190
|
s as SpacingTokens,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
191
|
+
go as SplitPanel,
|
|
192
|
+
de as Spotify,
|
|
193
|
+
No as StatefulViewingsList,
|
|
194
|
+
Co as Subscribe,
|
|
195
|
+
ho as SubscriptionState,
|
|
196
|
+
be as SupportedLanguages,
|
|
197
|
+
Ot as TabsContainer,
|
|
198
|
+
Gt as TabsContent,
|
|
199
|
+
yo as TagsList,
|
|
200
|
+
Ro as Text,
|
|
201
|
+
Uo as TextSymbolVariants,
|
|
202
|
+
Wo as TextSymbols,
|
|
203
|
+
Ho as TextVariants,
|
|
204
|
+
Ko as UserManagement,
|
|
205
|
+
at as Video,
|
|
206
|
+
Io as ViewingsList,
|
|
207
|
+
pe as WeChat,
|
|
208
|
+
xe as Youtube,
|
|
198
209
|
l as defaultYear,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
210
|
+
d as emailValidation,
|
|
211
|
+
m as encodeURLSearchParams,
|
|
212
|
+
p as findChildrenExcludingTypes,
|
|
202
213
|
u as findChildrenOfType,
|
|
203
214
|
x as generatePaddingClassName,
|
|
204
215
|
n as getCommonProps,
|
|
205
216
|
i as noOp,
|
|
206
217
|
g as px,
|
|
207
|
-
|
|
218
|
+
he as ssrMediaQueryStyle,
|
|
208
219
|
c as useNormalizedInputProps,
|
|
209
|
-
|
|
220
|
+
ce as usePendingState
|
|
210
221
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { BidMessageVariants } from './types';
|
|
3
|
+
export interface BidMessageProps extends ComponentProps<'p'> {
|
|
4
|
+
/**
|
|
5
|
+
* Message to display
|
|
6
|
+
*/
|
|
7
|
+
message: string;
|
|
8
|
+
/**
|
|
9
|
+
* show the message icon
|
|
10
|
+
*/
|
|
11
|
+
hasIcon?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Variant type - positive | negative
|
|
14
|
+
*/
|
|
15
|
+
variant?: BidMessageVariants;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* ## Overview
|
|
19
|
+
*
|
|
20
|
+
* Overview of this widget
|
|
21
|
+
*
|
|
22
|
+
* [Figma Link](Add Figma URL here)
|
|
23
|
+
*
|
|
24
|
+
* [Storybook Link](Point back to yourself here)
|
|
25
|
+
*/
|
|
26
|
+
declare const BidMessage: ({ className, hasIcon, message, variant, ...props }: BidMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default BidMessage;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import p from "../../node_modules/classnames/index.js";
|
|
3
|
+
import { getCommonProps as d } from "../../utils/index.js";
|
|
4
|
+
import { TextVariants as f } from "../../components/Text/types.js";
|
|
5
|
+
import g from "../../components/Text/Text.js";
|
|
6
|
+
import { BidMessageVariants as e } from "./types.js";
|
|
7
|
+
const B = ({
|
|
8
|
+
className: r,
|
|
9
|
+
hasIcon: i = !0,
|
|
10
|
+
message: m,
|
|
11
|
+
variant: t = e.positive,
|
|
12
|
+
...a
|
|
13
|
+
}) => {
|
|
14
|
+
const { className: s, ...n } = d(a, "BidMessage"), c = t === e.positive ? /* @__PURE__ */ o("span", { className: `${s}__icon`, children: "🟢" }) : /* @__PURE__ */ o("span", { className: `${s}__icon`, children: "🔴" });
|
|
15
|
+
return /* @__PURE__ */ l(g, { ...n, className: p(s, r), ...a, variant: f.string2, children: [
|
|
16
|
+
i ? c : null,
|
|
17
|
+
m
|
|
18
|
+
] });
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
B as default
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { AuctionStatus, SupportedLanguages } from '../../types/commonTypes';
|
|
3
|
+
export interface BidSnapshotProps extends ComponentProps<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Active bid of current signed in user. - '$1,000'
|
|
6
|
+
*/
|
|
7
|
+
activeBid?: string;
|
|
8
|
+
/**
|
|
9
|
+
* State of the object
|
|
10
|
+
*/
|
|
11
|
+
auctionStatus?: AuctionStatus;
|
|
12
|
+
/**
|
|
13
|
+
* An array of bids for the Object. Should include current bid as last element
|
|
14
|
+
*/
|
|
15
|
+
bids?: string[];
|
|
16
|
+
/**
|
|
17
|
+
* 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
|
+
*/
|
|
19
|
+
bidsLabelText?: (numberOfBids: number) => string;
|
|
20
|
+
/**
|
|
21
|
+
* Current bid text, a string for label of current bid detail
|
|
22
|
+
*/
|
|
23
|
+
currentBidText?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Closing label text, for countdown timer
|
|
26
|
+
*/
|
|
27
|
+
closingText?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Function to modify strings coming from date-fns (Minutes -> Mins etc)
|
|
30
|
+
*/
|
|
31
|
+
formatDurationStr?: (duration: string) => string;
|
|
32
|
+
/**
|
|
33
|
+
* Language selection for the application
|
|
34
|
+
*/
|
|
35
|
+
lang?: keyof typeof SupportedLanguages;
|
|
36
|
+
/**
|
|
37
|
+
* End time for this object
|
|
38
|
+
*/
|
|
39
|
+
lotCloseDate?: Date;
|
|
40
|
+
/**
|
|
41
|
+
* Default Starting bid amount for the object - '$1,000'
|
|
42
|
+
*/
|
|
43
|
+
startingBid: string;
|
|
44
|
+
/**
|
|
45
|
+
* Starting bid text, a string for label of starting bid detail
|
|
46
|
+
*/
|
|
47
|
+
startingBidText?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Sold for label text, a string for label of sold for detail
|
|
50
|
+
*/
|
|
51
|
+
soldForText?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Won for label text, a string for label of won for detail
|
|
54
|
+
*/
|
|
55
|
+
wonForText?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* ## Overview
|
|
59
|
+
*
|
|
60
|
+
* Overview of this widget
|
|
61
|
+
*
|
|
62
|
+
* [Figma Link](https://www.figma.com/design/hMu9IWH5N3KamJy8tLFdyV/EASEL-Compendium%3A-Tokens%2C-Components-%26-Patterns?node-id=16780-34969&node-type=instance&m=dev)
|
|
63
|
+
*
|
|
64
|
+
* [Storybook Link](https://phillips-seldon.netlify.app//?path=/docs/patterns-bidsnapshot--overview)
|
|
65
|
+
*/
|
|
66
|
+
declare const BidSnapshot: import('react').ForwardRefExoticComponent<Omit<BidSnapshotProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
67
|
+
export default BidSnapshot;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsxs as j, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as D } from "react";
|
|
3
|
+
import R from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { getCommonProps as W } from "../../utils/index.js";
|
|
5
|
+
import _ from "../DetailList/DetailList.js";
|
|
6
|
+
import A from "../../components/Detail/Detail.js";
|
|
7
|
+
import { AuctionStatus as t, SupportedLanguages as V } from "../../types/commonTypes.js";
|
|
8
|
+
import k from "../../components/Countdown/Countdown.js";
|
|
9
|
+
import { CountdownVariants as q } from "../../components/Countdown/types.js";
|
|
10
|
+
const z = (s) => s === 1 ? `${s} bid` : `${s} bids`, E = D(
|
|
11
|
+
({
|
|
12
|
+
activeBid: s,
|
|
13
|
+
auctionStatus: n = t.ready,
|
|
14
|
+
bids: a = [],
|
|
15
|
+
bidsLabelText: f = z,
|
|
16
|
+
children: h,
|
|
17
|
+
className: u,
|
|
18
|
+
closingText: g = "Closes in",
|
|
19
|
+
currentBidText: C = "Current bid",
|
|
20
|
+
formatDurationStr: S = (o) => o.replace(/seconds?/, "sec").replace(/minutes?/, "min"),
|
|
21
|
+
lang: $ = "en",
|
|
22
|
+
lotCloseDate: m,
|
|
23
|
+
startingBid: b,
|
|
24
|
+
startingBidText: v = "Starting bid",
|
|
25
|
+
soldForText: N = "Sold for",
|
|
26
|
+
wonForText: w = "Won for",
|
|
27
|
+
...c
|
|
28
|
+
}, x) => {
|
|
29
|
+
const { className: o, ...y } = W(c, "BidSnapshot"), e = a.length > 0, p = e && a[a.length - 1], L = s === p, d = n === t.ready, r = n === t.live, T = n === t.past, B = r && m, P = R(o, u, {
|
|
30
|
+
[`${o}--live`]: r,
|
|
31
|
+
[`${o}--has-bids`]: e
|
|
32
|
+
});
|
|
33
|
+
let i = C;
|
|
34
|
+
return (d || !e) && (i = v), T && e && (i = L ? w : N), /* @__PURE__ */ j("div", { ...y, ...c, ref: x, className: P, children: [
|
|
35
|
+
/* @__PURE__ */ l(_, { hasSeparators: !0, className: `${o}__text`, children: /* @__PURE__ */ l(
|
|
36
|
+
A,
|
|
37
|
+
{
|
|
38
|
+
label: i,
|
|
39
|
+
subLabel: r && a.length > 0 && `(${f(a.length)})`,
|
|
40
|
+
value: p || b,
|
|
41
|
+
hasWrap: !1
|
|
42
|
+
}
|
|
43
|
+
) }),
|
|
44
|
+
s && !d ? h : null,
|
|
45
|
+
B ? /* @__PURE__ */ l(
|
|
46
|
+
k,
|
|
47
|
+
{
|
|
48
|
+
endDateTime: m,
|
|
49
|
+
label: g,
|
|
50
|
+
variant: q.compact,
|
|
51
|
+
locale: V[$],
|
|
52
|
+
formatDurationStr: S
|
|
53
|
+
}
|
|
54
|
+
) : null
|
|
55
|
+
] });
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
E.displayName = "BidSnapshot";
|
|
59
|
+
export {
|
|
60
|
+
E as default
|
|
61
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BidSnapshotProps } from './BidSnapshot';
|
|
2
|
+
import { AuctionStatus } from '../../types/commonTypes';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import('react').ForwardRefExoticComponent<Omit<BidSnapshotProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
|
+
argTypes: {
|
|
7
|
+
auctionStatus: {
|
|
8
|
+
options: string[];
|
|
9
|
+
control: {
|
|
10
|
+
type: "select";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
export declare const Playground: {
|
|
17
|
+
(props: BidSnapshotProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
args: {
|
|
19
|
+
activeBid: string;
|
|
20
|
+
auctionStatus: AuctionStatus;
|
|
21
|
+
bids: string[];
|
|
22
|
+
lotCloseDate: Date;
|
|
23
|
+
lang: import('date-fns').Locale;
|
|
24
|
+
startingBid: string;
|
|
25
|
+
};
|
|
26
|
+
argTypes: {};
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|