@phillips/seldon 1.131.0 → 1.132.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BreakpointTokens as f, PaddingTokens as s, SpacingTokens as l, defaultYear as d, emailValidation as m, encodeURLSearchParams as p, findChildrenExcludingTypes as u, findChildrenOfType as x, generatePaddingClassName as n, getCommonProps as i, noOp as g, px as c, useNormalizedInputProps as C } from "./utils/index.js";
2
2
  import { default as h } from "./assets/account_circle.svg.js";
3
- import { default as P } from "./assets/arrowPrev.svg.js";
3
+ import { default as L } from "./assets/arrowPrev.svg.js";
4
4
  import { default as T } from "./assets/calendar.svg.js";
5
5
  import { default as I } from "./assets/calendarAlt.svg.js";
6
6
  import { default as B } from "./assets/CarouselArrowNext.svg.js";
@@ -18,223 +18,227 @@ import { default as J } from "./assets/icon-footer-linkedin.svg.js";
18
18
  import { default as X } from "./assets/icon-footer-red.svg.js";
19
19
  import { default as $ } from "./assets/icon-footer-wechat.svg.js";
20
20
  import { default as te } from "./assets/instagram.svg.js";
21
- import { default as re } from "./assets/lock.svg.js";
22
- import { default as fe } from "./assets/minus.svg.js";
23
- import { default as le } from "./assets/PhillipsLogo.svg.js";
24
- import { default as me } from "./assets/plus.svg.js";
25
- import { default as ue } from "./assets/react.svg.js";
21
+ import { default as oe } from "./assets/lock.svg.js";
22
+ import { default as fe } from "./assets/menu.svg.js";
23
+ import { default as le } from "./assets/minus.svg.js";
24
+ import { default as me } from "./assets/PhillipsLogo.svg.js";
25
+ import { default as ue } from "./assets/plus.svg.js";
26
+ import { default as ne } from "./assets/react.svg.js";
26
27
  import "react";
27
- import { default as ne } from "./assets/share.svg.js";
28
- import { default as ge } from "./assets/spotify.svg.js";
29
- import { default as Ce } from "./assets/wechat.svg.js";
30
- import { default as he } from "./assets/youtube.svg.js";
31
- import { default as Pe } from "./assets/icon-green-circle.svg.js";
32
- import { default as Te } from "./assets/icon-red-circle.svg.js";
33
- import { default as Ie } from "./pages/Page.js";
34
- import { usePendingState as Be } from "./utils/hooks.js";
35
- import { SSRMediaQuery as Ve, ssrMediaQueryStyle as ve } from "./providers/SeldonProvider/utils.js";
36
- import { AuctionStatus as ye, LotStatus as Me, SupportedLanguages as Ne } from "./types/commonTypes.js";
37
- import { default as He } from "./components/Button/Button.js";
38
- import { ButtonVariants as Ge } from "./components/Button/types.js";
39
- import { default as Ue } from "./components/IconButton/IconButton.js";
40
- import { default as We } from "./components/ErrorBoundary/ErrorBoundary.js";
41
- import { default as Ye } from "./site-furniture/Footer/Footer.js";
42
- import { Grid as ze } from "./components/Grid/Grid.js";
43
- import { default as qe } from "./site-furniture/Header/Header.js";
44
- import { default as Ke } from "./components/Navigation/Navigation.js";
45
- import { default as _e } from "./components/Navigation/NavigationItem/NavigationItem.js";
46
- import { default as et } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
47
- import { default as ot } from "./components/Navigation/NavigationList/NavigationList.js";
48
- import { default as at } from "./patterns/HeroBanner/HeroBanner.js";
49
- import { default as st } from "./components/Input/Input.js";
50
- import { default as dt } from "./components/Link/Link.js";
51
- import { LinkVariants as pt } from "./components/Link/types.js";
52
- import { default as xt } from "./components/LinkBlock/LinkBlock.js";
53
- import { default as it } from "./components/LinkList/LinkList.js";
54
- import { default as ct } from "./components/Row/Row.js";
55
- import { default as St } from "./components/GridItem/GridItem.js";
56
- import { GridItemAlign as Lt } from "./components/GridItem/types.js";
57
- import { default as At } from "./components/Search/Search.js";
58
- import { default as kt } from "./components/Select/Select.js";
59
- import { SelectVariants as bt } from "./components/Select/types.js";
60
- import { default as wt } from "./components/SplitPanel/SplitPanel.js";
61
- import { default as vt } from "./patterns/Subscribe/Subscribe.js";
62
- import { SubscriptionState as yt } from "./patterns/Subscribe/types.js";
63
- import { default as Nt } from "./patterns/Social/Social.js";
64
- import { default as Ht } from "./patterns/ViewingsList/ViewingsList.js";
65
- import { default as Gt } from "./components/Modal/Modal.js";
66
- import { default as Ut } from "./components/Drawer/Drawer.js";
67
- import { default as Wt } from "./components/Pagination/Pagination.js";
68
- import { Tag as Yt, default as jt } from "./components/Tags/Tags.js";
69
- import { default as Zt } from "./patterns/ViewingsList/StatefulViewingsList.js";
70
- import { TextAlignments as Jt, TextVariants as Kt } from "./components/Text/types.js";
71
- import { default as _t } from "./components/Text/Text.js";
72
- import { TextSymbolVariants as eo } from "./components/TextSymbol/types.js";
73
- import { default as oo } from "./components/TextSymbol/TextSymbol.js";
74
- import { default as ao } from "./components/Accordion/Accordion.js";
75
- import { default as so } from "./components/Accordion/AccordionItem.js";
76
- import { AccordionItemVariant as mo, AccordionVariants as po } from "./components/Accordion/types.js";
77
- import { default as xo } from "./patterns/UserManagement/UserManagement.js";
78
- import { AuthState as io } from "./patterns/UserManagement/types.js";
79
- import { default as co } from "./components/Breadcrumb/Breadcrumb.js";
28
+ import { default as ge } from "./assets/share.svg.js";
29
+ import { default as Ce } from "./assets/spotify.svg.js";
30
+ import { default as he } from "./assets/wechat.svg.js";
31
+ import { default as Le } from "./assets/youtube.svg.js";
32
+ import { default as Te } from "./assets/icon-green-circle.svg.js";
33
+ import { default as Ie } from "./assets/icon-red-circle.svg.js";
34
+ import { default as Be } from "./pages/Page.js";
35
+ import { usePendingState as Ve } from "./utils/hooks.js";
36
+ import { SSRMediaQuery as Fe, ssrMediaQueryStyle as ye } from "./providers/SeldonProvider/utils.js";
37
+ import { AuctionStatus as Ne, LotStatus as De, SupportedLanguages as He } from "./types/commonTypes.js";
38
+ import { default as Ge } from "./components/Button/Button.js";
39
+ import { ButtonVariants as Ue } from "./components/Button/types.js";
40
+ import { default as We } from "./components/IconButton/IconButton.js";
41
+ import { default as Ye } from "./components/ErrorBoundary/ErrorBoundary.js";
42
+ import { default as ze } from "./site-furniture/Footer/Footer.js";
43
+ import { Grid as qe } from "./components/Grid/Grid.js";
44
+ import { default as Ke } from "./site-furniture/Header/Header.js";
45
+ import { default as _e } from "./components/Navigation/Navigation.js";
46
+ import { default as et } from "./components/Navigation/NavigationItem/NavigationItem.js";
47
+ import { default as rt } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
48
+ import { default as at } from "./components/Navigation/NavigationList/NavigationList.js";
49
+ import { default as st } from "./patterns/HeroBanner/HeroBanner.js";
50
+ import { default as dt } from "./components/Input/Input.js";
51
+ import { default as pt } from "./components/Link/Link.js";
52
+ import { LinkVariants as xt } from "./components/Link/types.js";
53
+ import { default as it } from "./components/LinkBlock/LinkBlock.js";
54
+ import { default as ct } from "./components/LinkList/LinkList.js";
55
+ import { default as St } from "./components/Row/Row.js";
56
+ import { default as At } from "./components/GridItem/GridItem.js";
57
+ import { GridItemAlign as Pt } from "./components/GridItem/types.js";
58
+ import { default as kt } from "./components/Search/Search.js";
59
+ import { default as bt } from "./components/Select/Select.js";
60
+ import { SelectVariants as wt } from "./components/Select/types.js";
61
+ import { default as vt } from "./components/SplitPanel/SplitPanel.js";
62
+ import { default as yt } from "./patterns/Subscribe/Subscribe.js";
63
+ import { SubscriptionState as Nt } from "./patterns/Subscribe/types.js";
64
+ import { default as Ht } from "./patterns/Social/Social.js";
65
+ import { default as Gt } from "./patterns/ViewingsList/ViewingsList.js";
66
+ import { default as Ut } from "./components/Modal/Modal.js";
67
+ import { default as Wt } from "./components/Drawer/Drawer.js";
68
+ import { default as Yt } from "./components/Pagination/Pagination.js";
69
+ import { Tag as zt, default as Zt } from "./components/Tags/Tags.js";
70
+ import { default as Jt } from "./patterns/ViewingsList/StatefulViewingsList.js";
71
+ import { TextAlignments as Xt, TextVariants as _t } from "./components/Text/types.js";
72
+ import { default as er } from "./components/Text/Text.js";
73
+ import { TextSymbolVariants as rr } from "./components/TextSymbol/types.js";
74
+ import { default as ar } from "./components/TextSymbol/TextSymbol.js";
75
+ import { default as sr } from "./components/Accordion/Accordion.js";
76
+ import { default as dr } from "./components/Accordion/AccordionItem.js";
77
+ import { AccordionItemVariant as pr, AccordionVariants as ur } from "./components/Accordion/types.js";
78
+ import { default as nr } from "./patterns/UserManagement/UserManagement.js";
79
+ import { AuthState as gr } from "./patterns/UserManagement/types.js";
80
+ import { default as Cr } from "./components/Breadcrumb/Breadcrumb.js";
80
81
  import "react/jsx-runtime";
81
82
  import "./node_modules/classnames/index.js";
82
- import { default as So } from "./components/Dropdown/Dropdown.js";
83
- import { default as Lo } from "./components/Video/Video.js";
84
- import { default as Ao } from "./patterns/LanguageSelector/LanguageSelector.js";
85
- import { default as ko } from "./components/ContentPeek/ContentPeek.js";
86
- import { HeightUnits as bo } from "./components/ContentPeek/utils.js";
87
- import { default as wo } from "./components/Collapsible/Collapsible.js";
88
- import { default as vo } from "./components/Collapsible/CollapsibleContent.js";
89
- import { default as yo } from "./components/Collapsible/CollapsibleTrigger.js";
90
- import { SeldonProvider as No } from "./providers/SeldonProvider/SeldonProvider.js";
91
- import { default as Ho } from "./components/PageContentWrapper/PageContentWrapper.js";
92
- import { default as Go } from "./components/Carousel/Carousel.js";
93
- import { default as Uo } from "./components/Carousel/CarouselArrows.js";
94
- import { default as Wo } from "./components/Carousel/CarouselContent.js";
95
- import { default as Yo } from "./components/Carousel/CarouselItem.js";
96
- import { default as zo } from "./components/Carousel/CarouselDots.js";
97
- import { default as qo } from "./components/Detail/Detail.js";
98
- import { default as Ko } from "./patterns/DetailList/DetailList.js";
99
- import { DetailListAlignment as _o } from "./patterns/DetailList/types.js";
100
- import { default as er } from "./components/PinchZoom/PinchZoom.js";
101
- import { default as or } from "./components/Tabs/TabsContainer.js";
102
- import { default as ar } from "./components/Tabs/TabsContent.js";
103
- import { default as sr } from "./components/SeldonImage/SeldonImage.js";
104
- import { default as dr } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
105
- import { default as pr } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
106
- import { default as xr } from "./patterns/FilterMenu/FilterMenu.js";
107
- import { default as ir } from "./components/Filter/Filter.js";
108
- import { default as cr } from "./components/Filter/FilterInput.js";
109
- import { default as Sr } from "./components/Filter/FilterHeader.js";
110
- import { default as Lr } from "./components/Countdown/Countdown.js";
111
- import { CountdownVariants as Ar } from "./components/Countdown/types.js";
112
- import { default as kr } from "./patterns/ObjectTile/ObjectTile.js";
113
- import { default as br } from "./patterns/BidSnapshot/BidSnapshot.js";
114
- import { default as wr } from "./patterns/BidSnapshot/BidMessage.js";
115
- import { BidMessageVariants as vr, BidStatusEnum as Fr } from "./patterns/BidSnapshot/types.js";
116
- import { default as Mr } from "./components/Article/Article.js";
83
+ import { default as hr } from "./components/Dropdown/Dropdown.js";
84
+ import { default as Lr } from "./components/Video/Video.js";
85
+ import { default as Tr } from "./patterns/LanguageSelector/LanguageSelector.js";
86
+ import { default as Ir } from "./components/ContentPeek/ContentPeek.js";
87
+ import { HeightUnits as Br } from "./components/ContentPeek/utils.js";
88
+ import { default as Vr } from "./components/Collapsible/Collapsible.js";
89
+ import { default as Fr } from "./components/Collapsible/CollapsibleContent.js";
90
+ import { default as Mr } from "./components/Collapsible/CollapsibleTrigger.js";
91
+ import { SeldonProvider as Dr } from "./providers/SeldonProvider/SeldonProvider.js";
92
+ import { default as Rr } from "./components/PageContentWrapper/PageContentWrapper.js";
93
+ import { default as Or } from "./components/Carousel/Carousel.js";
94
+ import { default as Er } from "./components/Carousel/CarouselArrows.js";
95
+ import { default as Qr } from "./components/Carousel/CarouselContent.js";
96
+ import { default as jr } from "./components/Carousel/CarouselItem.js";
97
+ import { default as Zr } from "./components/Carousel/CarouselDots.js";
98
+ import { default as Jr } from "./components/Detail/Detail.js";
99
+ import { default as Xr } from "./patterns/DetailList/DetailList.js";
100
+ import { DetailListAlignment as $r } from "./patterns/DetailList/types.js";
101
+ import { default as to } from "./components/PinchZoom/PinchZoom.js";
102
+ import { default as oo } from "./components/Tabs/TabsContainer.js";
103
+ import { default as fo } from "./components/Tabs/TabsContent.js";
104
+ import { default as lo } from "./components/SeldonImage/SeldonImage.js";
105
+ import { default as po } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
106
+ import { default as xo } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
107
+ import { default as io } from "./patterns/FilterMenu/FilterMenu.js";
108
+ import { default as co } from "./components/Filter/Filter.js";
109
+ import { default as So } from "./components/Filter/FilterInput.js";
110
+ import { default as Ao } from "./components/Filter/FilterHeader.js";
111
+ import { default as Po } from "./components/Countdown/Countdown.js";
112
+ import { CountdownVariants as ko } from "./components/Countdown/types.js";
113
+ import { default as bo } from "./patterns/ObjectTile/ObjectTile.js";
114
+ import { default as wo } from "./patterns/BidSnapshot/BidSnapshot.js";
115
+ import { default as vo } from "./patterns/BidSnapshot/BidMessage.js";
116
+ import { BidMessageVariants as yo, BidStatusEnum as Mo } from "./patterns/BidSnapshot/types.js";
117
+ import { default as Do } from "./components/Article/Article.js";
118
+ import { default as Ro } from "./components/TextArea/TextArea.js";
117
119
  export {
118
- ao as Accordion,
119
- so as AccordionItem,
120
- mo as AccordionItemVariant,
121
- po as AccordionVariants,
120
+ sr as Accordion,
121
+ dr as AccordionItem,
122
+ pr as AccordionItemVariant,
123
+ ur as AccordionVariants,
122
124
  h as AccountCircle,
123
- P as ArrowPrev,
124
- Mr as Article,
125
- ye as AuctionStatus,
126
- io as AuthState,
127
- wr as BidMessage,
128
- vr as BidMessageVariants,
129
- br as BidSnapshot,
130
- Fr as BidStatusEnum,
131
- co as Breadcrumb,
125
+ L as ArrowPrev,
126
+ Do as Article,
127
+ Ne as AuctionStatus,
128
+ gr as AuthState,
129
+ vo as BidMessage,
130
+ yo as BidMessageVariants,
131
+ wo as BidSnapshot,
132
+ Mo as BidStatusEnum,
133
+ Cr as Breadcrumb,
132
134
  f as BreakpointTokens,
133
- He as Button,
134
- Ge as ButtonVariants,
135
+ Ge as Button,
136
+ Ue as ButtonVariants,
135
137
  T as Calendar,
136
138
  I as CalendarAlt,
137
- Go as Carousel,
139
+ Or as Carousel,
138
140
  B as CarouselArrowNext,
139
141
  V as CarouselArrowPrev,
140
- Uo as CarouselArrows,
141
- Wo as CarouselContent,
142
- zo as CarouselDots,
143
- Yo as CarouselItem,
142
+ Er as CarouselArrows,
143
+ Qr as CarouselContent,
144
+ Zr as CarouselDots,
145
+ jr as CarouselItem,
144
146
  F as Checkmark,
145
147
  M as ChevronDown,
146
148
  D as ChevronNext,
147
149
  R as ChevronRight,
148
150
  O as Close,
149
- wo as Collapsible,
150
- vo as CollapsibleContent,
151
- yo as CollapsibleTrigger,
152
- ko as ContentPeek,
153
- bo as ContentPeekHeightUnits,
154
- Lr as Countdown,
155
- Ar as CountdownVariants,
156
- qo as Detail,
157
- Ko as DetailList,
158
- _o as DetailListAlignment,
159
- Ut as Drawer,
160
- So as Dropdown,
161
- We as ErrorBoundary,
151
+ Vr as Collapsible,
152
+ Fr as CollapsibleContent,
153
+ Mr as CollapsibleTrigger,
154
+ Ir as ContentPeek,
155
+ Br as ContentPeekHeightUnits,
156
+ Po as Countdown,
157
+ ko as CountdownVariants,
158
+ Jr as Detail,
159
+ Xr as DetailList,
160
+ $r as DetailListAlignment,
161
+ Wt as Drawer,
162
+ hr as Dropdown,
163
+ Ye as ErrorBoundary,
162
164
  j as Facebook,
163
165
  E as Favorite,
164
166
  Q as FavoriteOutline,
165
- ir as Filter,
166
- Sr as FilterHeader,
167
- cr as FilterInput,
168
- xr as FilterMenu,
169
- Ye as Footer,
167
+ co as Filter,
168
+ Ao as FilterHeader,
169
+ So as FilterInput,
170
+ io as FilterMenu,
171
+ ze as Footer,
170
172
  Z as FooterInstagram,
171
173
  $ as FooterWeChat,
172
- Pe as GreenCircle,
173
- ze as Grid,
174
- St as GridItem,
175
- Lt as GridItemAlign,
176
- qe as Header,
177
- at as HeroBanner,
178
- Ue as IconButton,
179
- st as Input,
174
+ Te as GreenCircle,
175
+ qe as Grid,
176
+ At as GridItem,
177
+ Pt as GridItemAlign,
178
+ Ke as Header,
179
+ st as HeroBanner,
180
+ We as IconButton,
181
+ dt as Input,
180
182
  te as Instagram,
181
- Ao as LanguageSelector,
182
- dt as Link,
183
- xt as LinkBlock,
184
- it as LinkList,
185
- pt as LinkVariants,
183
+ Tr as LanguageSelector,
184
+ pt as Link,
185
+ it as LinkBlock,
186
+ ct as LinkList,
187
+ xt as LinkVariants,
186
188
  J as LinkedIn,
187
- re as Lock,
188
- Me as LotStatus,
189
- fe as Minus,
190
- Gt as Modal,
191
- Ke as Navigation,
192
- _e as NavigationItem,
193
- et as NavigationItemTrigger,
194
- ot as NavigationList,
195
- kr as ObjectTile,
189
+ oe as Lock,
190
+ De as LotStatus,
191
+ fe as Menu,
192
+ le as Minus,
193
+ Ut as Modal,
194
+ _e as Navigation,
195
+ et as NavigationItem,
196
+ rt as NavigationItemTrigger,
197
+ at as NavigationList,
198
+ bo as ObjectTile,
196
199
  s as PaddingTokens,
197
- Ie as Page,
198
- Ho as PageContentWrapper,
199
- Wt as Pagination,
200
- le as PhillipsLogo,
201
- er as PinchZoom,
202
- me as Plus,
203
- ue as React,
204
- Te as RedCircle,
200
+ Be as Page,
201
+ Rr as PageContentWrapper,
202
+ Yt as Pagination,
203
+ me as PhillipsLogo,
204
+ to as PinchZoom,
205
+ ue as Plus,
206
+ ne as React,
207
+ Ie as RedCircle,
205
208
  X as Reddit,
206
- ct as Row,
207
- Ve as SSRMediaQuery,
208
- dr as SaleHeaderBanner,
209
- pr as SaleHeaderBrowseAuctions,
210
- At as Search,
211
- sr as SeldonImage,
212
- No as SeldonProvider,
213
- kt as Select,
214
- bt as SelectVariants,
215
- ne as Share,
216
- Nt as Social,
209
+ St as Row,
210
+ Fe as SSRMediaQuery,
211
+ po as SaleHeaderBanner,
212
+ xo as SaleHeaderBrowseAuctions,
213
+ kt as Search,
214
+ lo as SeldonImage,
215
+ Dr as SeldonProvider,
216
+ bt as Select,
217
+ wt as SelectVariants,
218
+ ge as Share,
219
+ Ht as Social,
217
220
  l as SpacingTokens,
218
- wt as SplitPanel,
219
- ge as Spotify,
220
- Zt as StatefulViewingsList,
221
- vt as Subscribe,
222
- yt as SubscriptionState,
223
- Ne as SupportedLanguages,
224
- or as TabsContainer,
225
- ar as TabsContent,
226
- Yt as Tag,
227
- jt as TagsList,
228
- _t as Text,
229
- Jt as TextAlignments,
230
- eo as TextSymbolVariants,
231
- oo as TextSymbols,
232
- Kt as TextVariants,
233
- xo as UserManagement,
234
- Lo as Video,
235
- Ht as ViewingsList,
236
- Ce as WeChat,
237
- he as Youtube,
221
+ vt as SplitPanel,
222
+ Ce as Spotify,
223
+ Jt as StatefulViewingsList,
224
+ yt as Subscribe,
225
+ Nt as SubscriptionState,
226
+ He as SupportedLanguages,
227
+ oo as TabsContainer,
228
+ fo as TabsContent,
229
+ zt as Tag,
230
+ Zt as TagsList,
231
+ er as Text,
232
+ Xt as TextAlignments,
233
+ Ro as TextArea,
234
+ rr as TextSymbolVariants,
235
+ ar as TextSymbols,
236
+ _t as TextVariants,
237
+ nr as UserManagement,
238
+ Lr as Video,
239
+ Gt as ViewingsList,
240
+ he as WeChat,
241
+ Le as Youtube,
238
242
  d as defaultYear,
239
243
  m as emailValidation,
240
244
  p as encodeURLSearchParams,
@@ -244,7 +248,7 @@ export {
244
248
  i as getCommonProps,
245
249
  g as noOp,
246
250
  c as px,
247
- ve as ssrMediaQueryStyle,
251
+ ye as ssrMediaQueryStyle,
248
252
  C as useNormalizedInputProps,
249
- Be as usePendingState
253
+ Ve as usePendingState
250
254
  };
@@ -17,6 +17,10 @@ export interface SubscribeProps extends React.HTMLAttributes<HTMLFormElement> {
17
17
  * Optional element to render in place of a form e.g. Remix Form, etc
18
18
  */
19
19
  element?: React.ElementType<SubscribeProps>;
20
+ /**
21
+ * A unique `id` for the `<Subscribe>`
22
+ */
23
+ id: string;
20
24
  /**
21
25
  * Subscribe input label
22
26
  */
@@ -63,5 +67,5 @@ export interface SubscribeProps extends React.HTMLAttributes<HTMLFormElement> {
63
67
  *
64
68
  * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-subscribe--overview)
65
69
  */
66
- declare const Subscribe: ({ autoFocus, blurb, buttonText, buttonProps, className, element: Element, inputLabelText, inputPlaceholder, title, loadingText, invalidText, errorText, successText, privacyText, subscriptionState, ...props }: SubscribeProps) => import("react/jsx-runtime").JSX.Element;
70
+ declare const Subscribe: ({ autoFocus, blurb, buttonText, buttonProps, className, element: Element, inputLabelText, inputPlaceholder, title, loadingText, invalidText, errorText, successText, privacyText, subscriptionState, id, ...props }: SubscribeProps) => import("react/jsx-runtime").JSX.Element;
67
71
  export default Subscribe;
@@ -1,66 +1,68 @@
1
- import { jsxs as C, jsx as n } from "react/jsx-runtime";
2
- import I from "../../node_modules/classnames/index.js";
3
- import { getCommonProps as L } from "../../utils/index.js";
4
- import S from "../../components/Input/Input.js";
5
- import T from "../../components/Button/Button.js";
1
+ import { jsxs as I, jsx as n } from "react/jsx-runtime";
2
+ import L from "../../node_modules/classnames/index.js";
3
+ import { getCommonProps as S } from "../../utils/index.js";
4
+ import T from "../../components/Input/Input.js";
5
+ import j from "../../components/Button/Button.js";
6
6
  import { SubscriptionState as o } from "./types.js";
7
- import { ButtonVariants as j } from "../../components/Button/types.js";
8
- const k = ({
9
- autoFocus: m = !0,
10
- blurb: a,
11
- buttonText: c = "Sign Up",
7
+ import { ButtonVariants as w } from "../../components/Button/types.js";
8
+ const z = ({
9
+ autoFocus: c = !0,
10
+ blurb: s,
11
+ buttonText: u = "Sign Up",
12
12
  buttonProps: d,
13
- className: s,
14
- element: u = "form",
15
- inputLabelText: p = "Enter Your Email Address To Sign Up*",
16
- inputPlaceholder: f = "example@email.com",
17
- title: g = "Never Miss A Moment",
18
- loadingText: _ = "Loading...",
19
- invalidText: h = "",
20
- errorText: v = "An error occurred. Please try again.",
21
- successText: x,
22
- privacyText: i = "By signing up, you agree to receive email communications from Phillips.",
13
+ className: i,
14
+ element: p = "form",
15
+ inputLabelText: f = "Enter Your Email Address To Sign Up*",
16
+ inputPlaceholder: g = "example@email.com",
17
+ title: _ = "Never Miss A Moment",
18
+ loadingText: h = "Loading...",
19
+ invalidText: v = "",
20
+ errorText: x = "An error occurred. Please try again.",
21
+ successText: N,
22
+ privacyText: t = "By signing up, you agree to receive email communications from Phillips.",
23
23
  subscriptionState: e = o.Default,
24
- ...t
24
+ id: a,
25
+ ...l
25
26
  }) => {
26
- const { className: r, ...N } = L(t, "Subscribe"), y = e === o.Invalid, $ = e === o.Loading, b = e === o.Success, E = e === o.Error, P = {
27
- invalid: h,
28
- success: x,
29
- loading: _,
30
- error: v
31
- }, l = e !== o.Default ? P[e] : "", A = b || $, B = y || E;
32
- return /* @__PURE__ */ C(u, { ...N, className: I(r, s), noValidate: !0, ...t, children: [
33
- /* @__PURE__ */ n("h3", { className: `${r}__title`, children: g }),
34
- a ? /* @__PURE__ */ n("p", { className: `${r}__blurb`, children: a }) : null,
27
+ const { className: r, ...$ } = S({ id: a, ...l }, "Subscribe"), y = e === o.Invalid, b = e === o.Loading, E = e === o.Success, P = e === o.Error, A = {
28
+ invalid: v,
29
+ success: N,
30
+ loading: h,
31
+ error: x
32
+ }, m = e !== o.Default ? A[e] : "", B = E || b, C = y || P;
33
+ return /* @__PURE__ */ I(p, { id: a, ...$, className: L(r, i), noValidate: !0, ...l, children: [
34
+ /* @__PURE__ */ n("h3", { className: `${r}__title`, children: _ }),
35
+ s ? /* @__PURE__ */ n("p", { className: `${r}__blurb`, children: s }) : null,
35
36
  /* @__PURE__ */ n(
36
- S,
37
+ T,
37
38
  {
38
- autoFocus: m,
39
+ autoFocus: c,
39
40
  className: `${r}__input`,
40
41
  type: "email",
41
42
  name: "email",
42
- placeholder: f,
43
- labelText: p,
44
- invalid: B,
45
- invalidText: l,
46
- warn: A,
47
- warnText: l,
48
- required: !0
43
+ placeholder: g,
44
+ labelText: f,
45
+ invalid: C,
46
+ invalidText: m,
47
+ warn: B,
48
+ warnText: m,
49
+ required: !0,
50
+ id: `${a}-input`
49
51
  }
50
52
  ),
51
53
  /* @__PURE__ */ n(
52
- T,
54
+ j,
53
55
  {
54
- className: `${r}__button ${s}`,
55
- variant: j.secondary,
56
+ className: `${r}__button ${i}`,
57
+ variant: w.secondary,
56
58
  type: "submit",
57
59
  ...d,
58
- children: c
60
+ children: u
59
61
  }
60
62
  ),
61
- i ? /* @__PURE__ */ n("p", { className: `${r}__privacy`, children: i }) : null
63
+ t ? /* @__PURE__ */ n("p", { className: `${r}__privacy`, children: t }) : null
62
64
  ] });
63
65
  };
64
66
  export {
65
- k as default
67
+ z as default
66
68
  };
@@ -2,7 +2,7 @@ import { SubscribeProps } from './Subscribe';
2
2
  import { SubscriptionState } from './types';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ autoFocus, blurb, buttonText, buttonProps, className, element: Element, inputLabelText, inputPlaceholder, title, loadingText, invalidText, errorText, successText, privacyText, subscriptionState, ...props }: SubscribeProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ autoFocus, blurb, buttonText, buttonProps, className, element: Element, inputLabelText, inputPlaceholder, title, loadingText, invalidText, errorText, successText, privacyText, subscriptionState, id, ...props }: SubscribeProps) => import("react/jsx-runtime").JSX.Element;
6
6
  };
7
7
  export default meta;
8
8
  export declare const Playground: {
@@ -103,10 +103,9 @@ $snwHeaderLink: 'snwHeaderLink';
103
103
  $snwFlyoutLink: 'snwFlyoutLink';
104
104
  $snwHeadingHero1: 'snwHeadingHero1';
105
105
  $snwHeadingHero2: 'snwHeadingHero2';
106
- $text-tokens:
107
- $button, $link, $email, $label, $badge, $blockquote, $heading1, $heading2, $heading3, $heading4, $heading5, $title1,
108
- $title2, $title3, $title4, $body1, $body2, $body3, $string1, $string2, $string3, $snwFlyoutLink, $snwHeaderLink,
109
- $snwHeadingHero1, $snwHeadingHero2;
106
+ $text-tokens: $button, $link, $email, $label, $badge, $blockquote, $heading1, $heading2, $heading3, $heading4, $heading5,
107
+ $title1, $title2, $title3, $title4, $body1, $body2, $body3, $string1, $string2, $string3, $snwFlyoutLink,
108
+ $snwHeaderLink, $snwHeadingHero1, $snwHeadingHero2;
110
109
 
111
110
  ////////////////////////
112
111
  /// Breakpoint TOKENS to be used for min-width comparisons, make sure they match BREAKPOINTS in constants.ts
@@ -63,3 +63,4 @@
63
63
  @use 'site-furniture/Header/header';
64
64
  @use 'site-furniture/Footer/footer';
65
65
  @use 'components/Article/article';
66
+ @use 'components/TextArea/textArea';