@phillips/seldon 1.92.0 → 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.
Files changed (42) hide show
  1. package/dist/assets/PhillipsLogo.svg.js +2 -2
  2. package/dist/assets/favorite.svg.js +5 -0
  3. package/dist/assets/icons.d.ts +1 -0
  4. package/dist/components/Countdown/Countdown.d.ts +4 -0
  5. package/dist/components/Countdown/Countdown.js +54 -42
  6. package/dist/components/Countdown/Duration.d.ts +2 -1
  7. package/dist/components/Countdown/Duration.js +7 -8
  8. package/dist/components/Detail/Detail.d.ts +2 -0
  9. package/dist/components/Detail/Detail.js +19 -13
  10. package/dist/components/Detail/Detail.stories.d.ts +1 -0
  11. package/dist/components/SeldonImage/SeldonImage.js +27 -26
  12. package/dist/index.d.ts +3 -0
  13. package/dist/index.js +199 -190
  14. package/dist/patterns/BidSnapshot/BidMessage.d.ts +27 -0
  15. package/dist/patterns/BidSnapshot/BidMessage.js +22 -0
  16. package/dist/patterns/BidSnapshot/BidMessage.test.d.ts +1 -0
  17. package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +67 -0
  18. package/dist/patterns/BidSnapshot/BidSnapshot.js +61 -0
  19. package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +27 -0
  20. package/dist/patterns/BidSnapshot/BidSnapshot.test.d.ts +1 -0
  21. package/dist/patterns/BidSnapshot/index.d.ts +2 -0
  22. package/dist/patterns/BidSnapshot/types.d.ts +4 -0
  23. package/dist/patterns/BidSnapshot/types.js +4 -0
  24. package/dist/patterns/ObjectTile/ObjectTile.d.ts +69 -0
  25. package/dist/patterns/ObjectTile/ObjectTile.js +94 -0
  26. package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +41 -0
  27. package/dist/patterns/ObjectTile/ObjectTile.test.d.ts +1 -0
  28. package/dist/patterns/ObjectTile/index.d.ts +1 -0
  29. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.d.ts +2 -2
  30. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +17 -17
  31. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.stories.d.ts +3 -3
  32. package/dist/scss/_vars.scss +5 -1
  33. package/dist/scss/componentStyles.scss +2 -0
  34. package/dist/scss/components/Countdown/_countdown.scss +8 -0
  35. package/dist/scss/components/Countdown/_duration.scss +5 -4
  36. package/dist/scss/components/Detail/_detail.scss +20 -0
  37. package/dist/scss/components/SeldonImage/_seldonImage.scss +12 -4
  38. package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +48 -0
  39. package/dist/scss/patterns/ObjectTile/_objectTile.scss +61 -0
  40. package/dist/types/commonTypes.d.ts +5 -0
  41. package/dist/types/commonTypes.js +2 -1
  42. 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 m, encodeURLSearchParams as p, findChildrenExcludingTypes as d, findChildrenOfType as u, generatePaddingClassName as x, getCommonProps as n, noOp as i, px as g, useNormalizedInputProps as c } from "./utils/index.js";
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 P } from "./assets/arrowPrev.svg.js";
4
- import { default as I } from "./assets/calendar.svg.js";
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 v } from "./assets/chevronRight.svg.js";
8
- import { default as y } from "./assets/close.svg.js";
9
- import { default as D } from "./assets/favoriteOutline.svg.js";
10
- import { default as H } from "./assets/icon-footer-facebook.svg.js";
11
- import { default as F } from "./assets/icon-footer-instagram.svg.js";
12
- import { default as U } from "./assets/icon-footer-linkedin.svg.js";
13
- import { default as O } from "./assets/icon-footer-red.svg.js";
14
- import { default as E } from "./assets/icon-footer-wechat.svg.js";
15
- import { default as Y } from "./assets/instagram.svg.js";
16
- import { default as Z } from "./assets/lock.svg.js";
17
- import { default as q } from "./assets/minus.svg.js";
18
- import { default as K } from "./assets/PhillipsLogo.svg.js";
19
- import { default as _ } from "./assets/plus.svg.js";
20
- import { default as ee } from "./assets/react.svg.js";
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 te } from "./assets/share.svg.js";
23
- import { default as ae } from "./assets/spotify.svg.js";
24
- import { default as se } from "./assets/wechat.svg.js";
25
- import { default as me } from "./assets/youtube.svg.js";
26
- import { default as de } from "./pages/Page.js";
27
- import { usePendingState as xe } from "./utils/hooks.js";
28
- import { SSRMediaQuery as ie, ssrMediaQueryStyle as ge } from "./providers/SeldonProvider/utils.js";
29
- import { default as Ce } from "./components/Button/Button.js";
30
- import { ButtonVariants as Le } from "./components/Button/types.js";
31
- import { default as he } from "./components/IconButton/IconButton.js";
32
- import { default as be } from "./components/ErrorBoundary/ErrorBoundary.js";
33
- import { default as ke } from "./site-furniture/Footer/Footer.js";
34
- import { Grid as Ve } from "./components/Grid/Grid.js";
35
- import { default as we } from "./site-furniture/Header/Header.js";
36
- import { default as Be } from "./components/Navigation/Navigation.js";
37
- import { default as Ne } from "./components/Navigation/NavigationItem/NavigationItem.js";
38
- import { default as Re } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
39
- import { default as Me } from "./components/Navigation/NavigationList/NavigationList.js";
40
- import { default as Ge } from "./patterns/HeroBanner/HeroBanner.js";
41
- import { default as We } from "./components/Input/Input.js";
42
- import { default as Qe } from "./components/Link/Link.js";
43
- import { LinkVariants as ze } from "./components/Link/types.js";
44
- import { default as je } from "./components/LinkBlock/LinkBlock.js";
45
- import { default as Je } from "./components/LinkList/LinkList.js";
46
- import { default as Xe } from "./components/Row/Row.js";
47
- import { default as $e } from "./components/GridItem/GridItem.js";
48
- import { GridItemAlign as oo } from "./components/GridItem/types.js";
49
- import { default as ro } from "./components/Search/Search.js";
50
- import { default as fo } from "./components/Select/Select.js";
51
- import { default as lo } from "./components/SplitPanel/SplitPanel.js";
52
- import { default as po } from "./patterns/Subscribe/Subscribe.js";
53
- import { SubscriptionState as xo } from "./patterns/Subscribe/types.js";
54
- import { default as io } from "./patterns/Social/Social.js";
55
- import { default as co } from "./patterns/ViewingsList/ViewingsList.js";
56
- import { default as So } from "./components/Modal/Modal.js";
57
- import { default as Po } from "./components/Drawer/Drawer.js";
58
- import { default as Io } from "./components/Pagination/Pagination.js";
59
- import { default as To } from "./components/Tags/Tags.js";
60
- import { default as Ao } from "./patterns/ViewingsList/StatefulViewingsList.js";
61
- import { TextVariants as vo } from "./components/Text/types.js";
62
- import { default as yo } from "./components/Text/Text.js";
63
- import { TextSymbolVariants as Do } from "./components/TextSymbol/types.js";
64
- import { default as Ho } from "./components/TextSymbol/TextSymbol.js";
65
- import { default as Fo } from "./components/Accordion/Accordion.js";
66
- import { default as Uo } from "./components/Accordion/AccordionItem.js";
67
- import { AccordionItemVariant as Oo, AccordionVariants as Wo } from "./components/Accordion/types.js";
68
- import { default as Qo } from "./patterns/UserManagement/UserManagement.js";
69
- import { AuthState as zo } from "./patterns/UserManagement/types.js";
70
- import { SupportedLanguages as jo } from "./types/commonTypes.js";
71
- import { default as Jo } from "./components/Breadcrumb/Breadcrumb.js";
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 Xo } from "./components/Dropdown/Dropdown.js";
75
- import { default as $o } from "./components/Video/Video.js";
76
- import { default as ot } from "./patterns/LanguageSelector/LanguageSelector.js";
77
- import { default as rt } from "./components/ContentPeek/ContentPeek.js";
78
- import { HeightUnits as ft } from "./components/ContentPeek/utils.js";
79
- import { default as lt } from "./components/Collapsible/Collapsible.js";
80
- import { default as pt } from "./components/Collapsible/CollapsibleContent.js";
81
- import { default as ut } from "./components/Collapsible/CollapsibleTrigger.js";
82
- import { SeldonProvider as nt } from "./providers/SeldonProvider/SeldonProvider.js";
83
- import { default as gt } from "./components/PageContentWrapper/PageContentWrapper.js";
84
- import { default as Ct } from "./components/Carousel/Carousel.js";
85
- import { default as Lt } from "./components/Carousel/CarouselContent.js";
86
- import { default as ht } from "./components/Carousel/CarouselItem.js";
87
- import { default as bt } from "./components/Carousel/CarouselDots.js";
88
- import { default as kt } from "./components/Detail/Detail.js";
89
- import { default as Vt } from "./patterns/DetailList/DetailList.js";
90
- import { DetailListAlignment as wt } from "./patterns/DetailList/types.js";
91
- import { default as Bt } from "./components/PinchZoom/PinchZoom.js";
92
- import { default as Nt } from "./components/Tabs/TabsContainer.js";
93
- import { default as Rt } from "./components/Tabs/TabsContent.js";
94
- import { default as Mt } from "./components/SeldonImage/SeldonImage.js";
95
- import { default as Gt } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
96
- import { default as Wt } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
97
- import { AuctionState as Qt } from "./patterns/SaleHeaderBanner/types.js";
98
- import { default as zt } from "./components/Countdown/Countdown.js";
99
- import { CountdownVariants as jt } from "./components/Countdown/types.js";
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
- Fo as Accordion,
102
- Uo as AccordionItem,
103
- Oo as AccordionItemVariant,
104
- Wo as AccordionVariants,
105
+ Wo as Accordion,
106
+ Qo as AccordionItem,
107
+ jo as AccordionItemVariant,
108
+ zo as AccordionVariants,
105
109
  S as AccountCircle,
106
- P as ArrowPrev,
107
- Qt as AuctionState,
108
- zo as AuthState,
109
- Jo as Breadcrumb,
110
- Ce as Button,
111
- Le as ButtonVariants,
112
- I as Calendar,
113
- Ct as Carousel,
114
- Lt as CarouselContent,
115
- bt as CarouselDots,
116
- ht as CarouselItem,
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
- v as ChevronRight,
120
- y as Close,
121
- lt as Collapsible,
122
- pt as CollapsibleContent,
123
- ut as CollapsibleTrigger,
124
- rt as ContentPeek,
125
- ft as ContentPeekHeightUnits,
126
- zt as Countdown,
127
- jt as CountdownVariants,
128
- kt as Detail,
129
- Vt as DetailList,
130
- wt as DetailListAlignment,
131
- Po as Drawer,
132
- Xo as Dropdown,
133
- be as ErrorBoundary,
134
- H as Facebook,
135
- D as FavoriteOutline,
136
- ke as Footer,
137
- F as FooterInstagram,
138
- E as FooterWeChat,
139
- Ve as Grid,
140
- $e as GridItem,
141
- oo as GridItemAlign,
142
- we as Header,
143
- Ge as HeroBanner,
144
- he as IconButton,
145
- We as Input,
146
- Y as Instagram,
147
- ot as LanguageSelector,
148
- Qe as Link,
149
- je as LinkBlock,
150
- Je as LinkList,
151
- ze as LinkVariants,
152
- U as LinkedIn,
153
- Z as Lock,
154
- q as Minus,
155
- So as Modal,
156
- Be as Navigation,
157
- Ne as NavigationItem,
158
- Re as NavigationItemTrigger,
159
- Me as NavigationList,
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
- de as Page,
162
- gt as PageContentWrapper,
163
- Io as Pagination,
164
- K as PhillipsLogo,
165
- Bt as PinchZoom,
166
- _ as Plus,
167
- ee as React,
168
- O as Reddit,
169
- Xe as Row,
170
- ie as SSRMediaQuery,
171
- Gt as SaleHeaderBanner,
172
- Wt as SaleHeaderBrowseAuctions,
173
- ro as Search,
174
- Mt as SeldonImage,
175
- nt as SeldonProvider,
176
- fo as Select,
177
- te as Share,
178
- io as Social,
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
- lo as SplitPanel,
181
- ae as Spotify,
182
- Ao as StatefulViewingsList,
183
- po as Subscribe,
184
- xo as SubscriptionState,
185
- jo as SupportedLanguages,
186
- Nt as TabsContainer,
187
- Rt as TabsContent,
188
- To as TagsList,
189
- yo as Text,
190
- Do as TextSymbolVariants,
191
- Ho as TextSymbols,
192
- vo as TextVariants,
193
- Qo as UserManagement,
194
- $o as Video,
195
- co as ViewingsList,
196
- se as WeChat,
197
- me as Youtube,
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
- m as emailValidation,
200
- p as encodeURLSearchParams,
201
- d as findChildrenExcludingTypes,
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
- ge as ssrMediaQueryStyle,
216
+ Ce as ssrMediaQueryStyle,
208
217
  c as useNormalizedInputProps,
209
- xe as usePendingState
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 {};
@@ -0,0 +1,2 @@
1
+ export { default as BidSnapshot, type BidSnapshotProps } from './BidSnapshot';
2
+ export { default as BidMessage } from './BidMessage';
@@ -0,0 +1,4 @@
1
+ export declare enum BidMessageVariants {
2
+ positive = "POSITIVE",
3
+ negative = "NEGATIVE"
4
+ }