@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.
Files changed (44) hide show
  1. package/dist/assets/PhillipsLogo.svg.js +2 -2
  2. package/dist/assets/calendarAlt.svg.js +5 -0
  3. package/dist/assets/favorite.svg.js +5 -0
  4. package/dist/assets/icons.d.ts +2 -0
  5. package/dist/components/Button/Button.js +39 -33
  6. package/dist/components/Countdown/Countdown.d.ts +4 -0
  7. package/dist/components/Countdown/Countdown.js +54 -42
  8. package/dist/components/Countdown/Duration.d.ts +2 -1
  9. package/dist/components/Countdown/Duration.js +7 -8
  10. package/dist/components/Detail/Detail.d.ts +2 -0
  11. package/dist/components/Detail/Detail.js +19 -13
  12. package/dist/components/Detail/Detail.stories.d.ts +1 -0
  13. package/dist/components/SeldonImage/SeldonImage.js +27 -26
  14. package/dist/index.d.ts +3 -0
  15. package/dist/index.js +205 -194
  16. package/dist/patterns/BidSnapshot/BidMessage.d.ts +27 -0
  17. package/dist/patterns/BidSnapshot/BidMessage.js +22 -0
  18. package/dist/patterns/BidSnapshot/BidMessage.test.d.ts +1 -0
  19. package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +67 -0
  20. package/dist/patterns/BidSnapshot/BidSnapshot.js +61 -0
  21. package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +27 -0
  22. package/dist/patterns/BidSnapshot/BidSnapshot.test.d.ts +1 -0
  23. package/dist/patterns/BidSnapshot/index.d.ts +2 -0
  24. package/dist/patterns/BidSnapshot/types.d.ts +4 -0
  25. package/dist/patterns/BidSnapshot/types.js +4 -0
  26. package/dist/patterns/ObjectTile/ObjectTile.d.ts +69 -0
  27. package/dist/patterns/ObjectTile/ObjectTile.js +94 -0
  28. package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +41 -0
  29. package/dist/patterns/ObjectTile/ObjectTile.test.d.ts +1 -0
  30. package/dist/patterns/ObjectTile/index.d.ts +1 -0
  31. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.d.ts +2 -2
  32. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +17 -17
  33. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.stories.d.ts +3 -3
  34. package/dist/scss/_vars.scss +5 -1
  35. package/dist/scss/componentStyles.scss +2 -0
  36. package/dist/scss/components/Countdown/_countdown.scss +8 -0
  37. package/dist/scss/components/Countdown/_duration.scss +5 -4
  38. package/dist/scss/components/Detail/_detail.scss +20 -0
  39. package/dist/scss/components/SeldonImage/_seldonImage.scss +12 -4
  40. package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +48 -0
  41. package/dist/scss/patterns/ObjectTile/_objectTile.scss +61 -0
  42. package/dist/types/commonTypes.d.ts +5 -0
  43. package/dist/types/commonTypes.js +2 -1
  44. 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 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";
5
- import { default as T } from "./assets/chevronDown.svg.js";
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";
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 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";
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 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";
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
- Fo as Accordion,
102
- Uo as AccordionItem,
103
- Oo as AccordionItemVariant,
104
- Wo as AccordionVariants,
106
+ Qo as Accordion,
107
+ jo as AccordionItem,
108
+ Zo as AccordionItemVariant,
109
+ qo as AccordionVariants,
105
110
  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,
117
- T as ChevronDown,
118
- 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,
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
- 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,
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
- 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,
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
- m as emailValidation,
200
- p as encodeURLSearchParams,
201
- d as findChildrenExcludingTypes,
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
- ge as ssrMediaQueryStyle,
218
+ he as ssrMediaQueryStyle,
208
219
  c as useNormalizedInputProps,
209
- xe as usePendingState
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 {};
@@ -0,0 +1,2 @@
1
+ export { default as BidSnapshot, type BidSnapshotProps } from './BidSnapshot';
2
+ export { default as BidMessage } from './BidMessage';