@phillips/seldon 1.91.1 → 1.93.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/favorite.svg.js +5 -0
- package/dist/assets/icons.d.ts +1 -0
- 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/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +56 -42
- package/dist/components/Navigation/NavigationList/NavigationList.d.ts +4 -0
- package/dist/components/Navigation/NavigationList/NavigationList.js +40 -30
- package/dist/components/SeldonImage/SeldonImage.js +27 -26
- package/dist/index.d.ts +3 -0
- package/dist/index.js +199 -190
- 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/LanguageSelector/LanguageSelector.js +41 -41
- package/dist/patterns/LanguageSelector/utils.d.ts +7 -0
- package/dist/patterns/LanguageSelector/utils.js +7 -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/site-furniture/Header/Header.d.ts +4 -0
- package/dist/site-furniture/Header/Header.js +39 -39
- package/dist/site-furniture/Header/hooks.d.ts +9 -0
- package/dist/site-furniture/Header/hooks.js +8 -0
- package/dist/site-furniture/Header/utils.js +2 -1
- 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,219 @@
|
|
|
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
|
|
3
|
+
import { default as L } from "./assets/arrowPrev.svg.js";
|
|
4
|
+
import { default as b } from "./assets/calendar.svg.js";
|
|
5
5
|
import { default as T } from "./assets/chevronDown.svg.js";
|
|
6
6
|
import { default as A } from "./assets/chevronNext.svg.js";
|
|
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/
|
|
7
|
+
import { default as B } from "./assets/chevronRight.svg.js";
|
|
8
|
+
import { default as w } from "./assets/close.svg.js";
|
|
9
|
+
import { default as D } from "./assets/favorite.svg.js";
|
|
10
|
+
import { default as F } from "./assets/favoriteOutline.svg.js";
|
|
11
|
+
import { default as M } from "./assets/icon-footer-facebook.svg.js";
|
|
12
|
+
import { default as O } from "./assets/icon-footer-instagram.svg.js";
|
|
13
|
+
import { default as G } from "./assets/icon-footer-linkedin.svg.js";
|
|
14
|
+
import { default as E } from "./assets/icon-footer-red.svg.js";
|
|
15
|
+
import { default as Y } from "./assets/icon-footer-wechat.svg.js";
|
|
16
|
+
import { default as z } from "./assets/instagram.svg.js";
|
|
17
|
+
import { default as q } from "./assets/lock.svg.js";
|
|
18
|
+
import { default as K } from "./assets/minus.svg.js";
|
|
19
|
+
import { default as _ } from "./assets/PhillipsLogo.svg.js";
|
|
20
|
+
import { default as ee } from "./assets/plus.svg.js";
|
|
21
|
+
import { default as te } from "./assets/react.svg.js";
|
|
21
22
|
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
|
|
23
|
+
import { default as ae } from "./assets/share.svg.js";
|
|
24
|
+
import { default as se } from "./assets/spotify.svg.js";
|
|
25
|
+
import { default as de } from "./assets/wechat.svg.js";
|
|
26
|
+
import { default as pe } from "./assets/youtube.svg.js";
|
|
27
|
+
import { default as xe } from "./pages/Page.js";
|
|
28
|
+
import { usePendingState as ie } from "./utils/hooks.js";
|
|
29
|
+
import { SSRMediaQuery as ce, ssrMediaQueryStyle as Ce } from "./providers/SeldonProvider/utils.js";
|
|
30
|
+
import { AuctionStatus as he, SupportedLanguages as Le } from "./types/commonTypes.js";
|
|
31
|
+
import { default as be } from "./components/Button/Button.js";
|
|
32
|
+
import { ButtonVariants as Te } from "./components/Button/types.js";
|
|
33
|
+
import { default as Ae } from "./components/IconButton/IconButton.js";
|
|
34
|
+
import { default as Be } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
35
|
+
import { default as we } from "./site-furniture/Footer/Footer.js";
|
|
36
|
+
import { Grid as De } from "./components/Grid/Grid.js";
|
|
37
|
+
import { default as Fe } from "./site-furniture/Header/Header.js";
|
|
38
|
+
import { default as Me } from "./components/Navigation/Navigation.js";
|
|
39
|
+
import { default as Oe } from "./components/Navigation/NavigationItem/NavigationItem.js";
|
|
40
|
+
import { default as Ge } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
|
|
41
|
+
import { default as Ee } from "./components/Navigation/NavigationList/NavigationList.js";
|
|
42
|
+
import { default as Ye } from "./patterns/HeroBanner/HeroBanner.js";
|
|
43
|
+
import { default as ze } from "./components/Input/Input.js";
|
|
44
|
+
import { default as qe } from "./components/Link/Link.js";
|
|
45
|
+
import { LinkVariants as Ke } from "./components/Link/types.js";
|
|
46
|
+
import { default as _e } from "./components/LinkBlock/LinkBlock.js";
|
|
47
|
+
import { default as eo } from "./components/LinkList/LinkList.js";
|
|
48
|
+
import { default as to } from "./components/Row/Row.js";
|
|
49
|
+
import { default as ao } from "./components/GridItem/GridItem.js";
|
|
50
|
+
import { GridItemAlign as so } from "./components/GridItem/types.js";
|
|
51
|
+
import { default as mo } from "./components/Search/Search.js";
|
|
52
|
+
import { default as uo } from "./components/Select/Select.js";
|
|
53
|
+
import { default as no } from "./components/SplitPanel/SplitPanel.js";
|
|
54
|
+
import { default as go } from "./patterns/Subscribe/Subscribe.js";
|
|
55
|
+
import { SubscriptionState as Co } from "./patterns/Subscribe/types.js";
|
|
56
|
+
import { default as ho } from "./patterns/Social/Social.js";
|
|
57
|
+
import { default as Po } from "./patterns/ViewingsList/ViewingsList.js";
|
|
58
|
+
import { default as Io } from "./components/Modal/Modal.js";
|
|
59
|
+
import { default as ko } from "./components/Drawer/Drawer.js";
|
|
60
|
+
import { default as vo } from "./components/Pagination/Pagination.js";
|
|
61
|
+
import { default as Vo } from "./components/Tags/Tags.js";
|
|
62
|
+
import { default as yo } from "./patterns/ViewingsList/StatefulViewingsList.js";
|
|
63
|
+
import { TextVariants as No } from "./components/Text/types.js";
|
|
64
|
+
import { default as Ho } from "./components/Text/Text.js";
|
|
65
|
+
import { TextSymbolVariants as Ro } from "./components/TextSymbol/types.js";
|
|
66
|
+
import { default as Uo } from "./components/TextSymbol/TextSymbol.js";
|
|
67
|
+
import { default as Wo } from "./components/Accordion/Accordion.js";
|
|
68
|
+
import { default as Qo } from "./components/Accordion/AccordionItem.js";
|
|
69
|
+
import { AccordionItemVariant as jo, AccordionVariants as zo } from "./components/Accordion/types.js";
|
|
70
|
+
import { default as qo } from "./patterns/UserManagement/UserManagement.js";
|
|
71
|
+
import { AuthState as Ko } from "./patterns/UserManagement/types.js";
|
|
72
|
+
import { default as _o } from "./components/Breadcrumb/Breadcrumb.js";
|
|
72
73
|
import "react/jsx-runtime";
|
|
73
74
|
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
|
|
75
|
+
import { default as et } from "./components/Dropdown/Dropdown.js";
|
|
76
|
+
import { default as tt } from "./components/Video/Video.js";
|
|
77
|
+
import { default as at } from "./patterns/LanguageSelector/LanguageSelector.js";
|
|
78
|
+
import { default as st } from "./components/ContentPeek/ContentPeek.js";
|
|
79
|
+
import { HeightUnits as dt } from "./components/ContentPeek/utils.js";
|
|
80
|
+
import { default as pt } from "./components/Collapsible/Collapsible.js";
|
|
81
|
+
import { default as xt } from "./components/Collapsible/CollapsibleContent.js";
|
|
82
|
+
import { default as it } from "./components/Collapsible/CollapsibleTrigger.js";
|
|
83
|
+
import { SeldonProvider as ct } from "./providers/SeldonProvider/SeldonProvider.js";
|
|
84
|
+
import { default as St } from "./components/PageContentWrapper/PageContentWrapper.js";
|
|
85
|
+
import { default as Lt } from "./components/Carousel/Carousel.js";
|
|
86
|
+
import { default as bt } from "./components/Carousel/CarouselContent.js";
|
|
87
|
+
import { default as Tt } from "./components/Carousel/CarouselItem.js";
|
|
88
|
+
import { default as At } from "./components/Carousel/CarouselDots.js";
|
|
89
|
+
import { default as Bt } from "./components/Detail/Detail.js";
|
|
90
|
+
import { default as wt } from "./patterns/DetailList/DetailList.js";
|
|
91
|
+
import { DetailListAlignment as Dt } from "./patterns/DetailList/types.js";
|
|
92
|
+
import { default as Ft } from "./components/PinchZoom/PinchZoom.js";
|
|
93
|
+
import { default as Mt } from "./components/Tabs/TabsContainer.js";
|
|
94
|
+
import { default as Ot } from "./components/Tabs/TabsContent.js";
|
|
95
|
+
import { default as Gt } from "./components/SeldonImage/SeldonImage.js";
|
|
96
|
+
import { default as Et } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
|
|
97
|
+
import { default as Yt } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
|
|
98
|
+
import { AuctionState as zt } from "./patterns/SaleHeaderBanner/types.js";
|
|
99
|
+
import { default as qt } from "./components/Countdown/Countdown.js";
|
|
100
|
+
import { CountdownVariants as Kt } from "./components/Countdown/types.js";
|
|
101
|
+
import { default as _t } from "./patterns/ObjectTile/ObjectTile.js";
|
|
102
|
+
import { default as er } from "./patterns/BidSnapshot/BidSnapshot.js";
|
|
103
|
+
import { default as tr } from "./patterns/BidSnapshot/BidMessage.js";
|
|
100
104
|
export {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
+
Wo as Accordion,
|
|
106
|
+
Qo as AccordionItem,
|
|
107
|
+
jo as AccordionItemVariant,
|
|
108
|
+
zo as AccordionVariants,
|
|
105
109
|
S as AccountCircle,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
L as ArrowPrev,
|
|
111
|
+
zt as AuctionState,
|
|
112
|
+
he as AuctionStatus,
|
|
113
|
+
Ko as AuthState,
|
|
114
|
+
tr as BidMessage,
|
|
115
|
+
er as BidSnapshot,
|
|
116
|
+
_o as Breadcrumb,
|
|
117
|
+
be as Button,
|
|
118
|
+
Te as ButtonVariants,
|
|
119
|
+
b as Calendar,
|
|
120
|
+
Lt as Carousel,
|
|
121
|
+
bt as CarouselContent,
|
|
122
|
+
At as CarouselDots,
|
|
123
|
+
Tt as CarouselItem,
|
|
117
124
|
T as ChevronDown,
|
|
118
125
|
A as ChevronNext,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
D as
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
q as
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
126
|
+
B as ChevronRight,
|
|
127
|
+
w as Close,
|
|
128
|
+
pt as Collapsible,
|
|
129
|
+
xt as CollapsibleContent,
|
|
130
|
+
it as CollapsibleTrigger,
|
|
131
|
+
st as ContentPeek,
|
|
132
|
+
dt as ContentPeekHeightUnits,
|
|
133
|
+
qt as Countdown,
|
|
134
|
+
Kt as CountdownVariants,
|
|
135
|
+
Bt as Detail,
|
|
136
|
+
wt as DetailList,
|
|
137
|
+
Dt as DetailListAlignment,
|
|
138
|
+
ko as Drawer,
|
|
139
|
+
et as Dropdown,
|
|
140
|
+
Be as ErrorBoundary,
|
|
141
|
+
M as Facebook,
|
|
142
|
+
D as Favorite,
|
|
143
|
+
F as FavoriteOutline,
|
|
144
|
+
we as Footer,
|
|
145
|
+
O as FooterInstagram,
|
|
146
|
+
Y as FooterWeChat,
|
|
147
|
+
De as Grid,
|
|
148
|
+
ao as GridItem,
|
|
149
|
+
so as GridItemAlign,
|
|
150
|
+
Fe as Header,
|
|
151
|
+
Ye as HeroBanner,
|
|
152
|
+
Ae as IconButton,
|
|
153
|
+
ze as Input,
|
|
154
|
+
z as Instagram,
|
|
155
|
+
at as LanguageSelector,
|
|
156
|
+
qe as Link,
|
|
157
|
+
_e as LinkBlock,
|
|
158
|
+
eo as LinkList,
|
|
159
|
+
Ke as LinkVariants,
|
|
160
|
+
G as LinkedIn,
|
|
161
|
+
q as Lock,
|
|
162
|
+
K as Minus,
|
|
163
|
+
Io as Modal,
|
|
164
|
+
Me as Navigation,
|
|
165
|
+
Oe as NavigationItem,
|
|
166
|
+
Ge as NavigationItemTrigger,
|
|
167
|
+
Ee as NavigationList,
|
|
168
|
+
_t as ObjectTile,
|
|
160
169
|
f as PaddingTokens,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
170
|
+
xe as Page,
|
|
171
|
+
St as PageContentWrapper,
|
|
172
|
+
vo as Pagination,
|
|
173
|
+
_ as PhillipsLogo,
|
|
174
|
+
Ft as PinchZoom,
|
|
175
|
+
ee as Plus,
|
|
176
|
+
te as React,
|
|
177
|
+
E as Reddit,
|
|
178
|
+
to as Row,
|
|
179
|
+
ce as SSRMediaQuery,
|
|
180
|
+
Et as SaleHeaderBanner,
|
|
181
|
+
Yt as SaleHeaderBrowseAuctions,
|
|
182
|
+
mo as Search,
|
|
183
|
+
Gt as SeldonImage,
|
|
184
|
+
ct as SeldonProvider,
|
|
185
|
+
uo as Select,
|
|
186
|
+
ae as Share,
|
|
187
|
+
ho as Social,
|
|
179
188
|
s as SpacingTokens,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
189
|
+
no as SplitPanel,
|
|
190
|
+
se as Spotify,
|
|
191
|
+
yo as StatefulViewingsList,
|
|
192
|
+
go as Subscribe,
|
|
193
|
+
Co as SubscriptionState,
|
|
194
|
+
Le as SupportedLanguages,
|
|
195
|
+
Mt as TabsContainer,
|
|
196
|
+
Ot as TabsContent,
|
|
197
|
+
Vo as TagsList,
|
|
198
|
+
Ho as Text,
|
|
199
|
+
Ro as TextSymbolVariants,
|
|
200
|
+
Uo as TextSymbols,
|
|
201
|
+
No as TextVariants,
|
|
202
|
+
qo as UserManagement,
|
|
203
|
+
tt as Video,
|
|
204
|
+
Po as ViewingsList,
|
|
205
|
+
de as WeChat,
|
|
206
|
+
pe as Youtube,
|
|
198
207
|
l as defaultYear,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
208
|
+
d as emailValidation,
|
|
209
|
+
m as encodeURLSearchParams,
|
|
210
|
+
p as findChildrenExcludingTypes,
|
|
202
211
|
u as findChildrenOfType,
|
|
203
212
|
x as generatePaddingClassName,
|
|
204
213
|
n as getCommonProps,
|
|
205
214
|
i as noOp,
|
|
206
215
|
g as px,
|
|
207
|
-
|
|
216
|
+
Ce as ssrMediaQueryStyle,
|
|
208
217
|
c as useNormalizedInputProps,
|
|
209
|
-
|
|
218
|
+
ie as usePendingState
|
|
210
219
|
};
|
|
@@ -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 {};
|