@phillips/seldon 1.215.0 → 1.217.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 (165) hide show
  1. package/dist/components/Accordion/Accordion.stories.d.ts +1 -1
  2. package/dist/components/Accordion/AccordionItem.js +101 -105
  3. package/dist/components/Accordion/types.d.ts +9 -3
  4. package/dist/components/Accordion/types.js +1 -1
  5. package/dist/components/Accordion/utils.d.ts +3 -3
  6. package/dist/components/Accordion/utils.js +7 -7
  7. package/dist/components/AddToCalendar/AddToCalendar.js +24 -25
  8. package/dist/components/Article/Article.js +17 -17
  9. package/dist/components/Breadcrumb/BreadcrumbItem.js +13 -13
  10. package/dist/components/Button/Button.d.ts +4 -0
  11. package/dist/components/Button/Button.js +71 -53
  12. package/dist/components/Button/Button.stories.d.ts +7 -1
  13. package/dist/components/ComboBox/ComboBox.js +33 -29
  14. package/dist/components/ComposedModal/ComposedModal.js +33 -33
  15. package/dist/components/ComposedModal/ComposedModal.stories.d.ts +1 -0
  16. package/dist/components/Countdown/Countdown.js +90 -51
  17. package/dist/components/Countdown/Duration.d.ts +3 -1
  18. package/dist/components/Countdown/Duration.js +17 -9
  19. package/dist/components/Countdown/types.d.ts +2 -1
  20. package/dist/components/Countdown/types.js +1 -1
  21. package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +21 -21
  22. package/dist/components/Detail/Detail.d.ts +2 -0
  23. package/dist/components/Detail/Detail.js +27 -16
  24. package/dist/components/Detail/Detail.stories.d.ts +35 -2
  25. package/dist/components/Detail/index.d.ts +1 -0
  26. package/dist/components/Detail/types.d.ts +5 -0
  27. package/dist/components/Detail/types.js +4 -0
  28. package/dist/components/Drawer/DrawerHeader.js +22 -20
  29. package/dist/components/ExitGateCard/ExitGateCard.js +29 -29
  30. package/dist/components/FavoritingTileButton/FavoritingTileButton.js +30 -31
  31. package/dist/components/Filter/Filter.js +36 -34
  32. package/dist/components/Filter/FilterHeader.d.ts +4 -0
  33. package/dist/components/Filter/FilterHeader.js +30 -22
  34. package/dist/components/Input/Input.js +43 -39
  35. package/dist/components/Input/Input.stories.d.ts +16 -0
  36. package/dist/components/Link/Link.js +17 -18
  37. package/dist/components/Link/Link.stories.d.ts +17 -1
  38. package/dist/components/Link/types.d.ts +9 -4
  39. package/dist/components/Link/types.js +3 -3
  40. package/dist/components/LinkBlock/LinkBlock.js +19 -11
  41. package/dist/components/Modal/Modal.d.ts +0 -4
  42. package/dist/components/Modal/Modal.js +6 -6
  43. package/dist/components/Navigation/NavigationItem/NavigationItem.js +31 -23
  44. package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +37 -39
  45. package/dist/components/Navigation/NavigationList/NavigationList.js +5 -5
  46. package/dist/components/Pagination/Pagination.js +22 -21
  47. package/dist/components/ProgressIndicator/ProgressIndicator.js +22 -22
  48. package/dist/components/Search/Search.js +55 -53
  49. package/dist/components/Search/SearchResults/SearchResults.js +16 -16
  50. package/dist/components/Select/Select.d.ts +4 -0
  51. package/dist/components/Select/Select.js +51 -45
  52. package/dist/components/Select/Select.stories.d.ts +1 -0
  53. package/dist/components/Tabs/TabsContainer.js +1 -1
  54. package/dist/components/Tags/Tags.js +32 -30
  55. package/dist/components/Text/Text.js +17 -9
  56. package/dist/components/Text/types.d.ts +42 -1
  57. package/dist/components/Text/types.js +3 -3
  58. package/dist/components/Text/utils.js +40 -7
  59. package/dist/components/TextArea/TextArea.js +38 -34
  60. package/dist/components/Toast/Toast.js +4 -4
  61. package/dist/index.js +192 -190
  62. package/dist/patterns/AccountPageHeader/AccountPageHeader.js +45 -28
  63. package/dist/patterns/BidSnapshot/BidMessage.d.ts +6 -1
  64. package/dist/patterns/BidSnapshot/BidMessage.js +14 -13
  65. package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +11 -1
  66. package/dist/patterns/BidSnapshot/BidSnapshot.js +76 -64
  67. package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +114 -0
  68. package/dist/patterns/CountryPicker/CountryPickerCountryList.js +5 -5
  69. package/dist/patterns/CountryPicker/CountryPickerModal.js +8 -8
  70. package/dist/patterns/CountryPicker/CountryPickerOption.js +22 -20
  71. package/dist/patterns/CountryPicker/CountryPickerTrigger.js +39 -38
  72. package/dist/patterns/DetailList/DetailList.d.ts +7 -2
  73. package/dist/patterns/DetailList/DetailList.js +25 -24
  74. package/dist/patterns/DetailList/DetailList.stories.d.ts +1 -0
  75. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +52 -52
  76. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.stories.d.ts +1 -0
  77. package/dist/patterns/FiltersInline/FilterButton.js +41 -25
  78. package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +50 -52
  79. package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +31 -31
  80. package/dist/patterns/HeroBanner/HeroBanner.js +21 -21
  81. package/dist/patterns/LanguageSelector/LanguageSelector.js +26 -28
  82. package/dist/patterns/ObjectTile/ObjectTile.js +66 -73
  83. package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +36 -0
  84. package/dist/patterns/PhoneNumberInput/PhoneNumberInput.js +7 -6
  85. package/dist/patterns/SaleCard/SaleCard.js +31 -39
  86. package/dist/patterns/SaleCard/SaleCard.stories.d.ts +1 -1
  87. package/dist/patterns/SaleCard/SaleCardActions.js +9 -8
  88. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +49 -49
  89. package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +19 -12
  90. package/dist/patterns/Social/Social.js +22 -22
  91. package/dist/patterns/Subscribe/Subscribe.js +57 -55
  92. package/dist/patterns/Subscribe/Subscribe.stories.d.ts +0 -1
  93. package/dist/patterns/TextBanner/TextBanner.js +12 -12
  94. package/dist/patterns/UserManagement/UserManagement.js +13 -13
  95. package/dist/patterns/ViewingDetails/ViewingDetails.d.ts +4 -0
  96. package/dist/patterns/ViewingDetails/ViewingDetails.js +36 -34
  97. package/dist/patterns/ViewingDetails/ViewingDetails.stories.d.ts +2 -0
  98. package/dist/patterns/ViewingDetails/ViewingDetailsMock.d.ts +2 -0
  99. package/dist/scss/_reset.scss +4 -0
  100. package/dist/scss/_type.scss +172 -65
  101. package/dist/scss/_vars.scss +92 -197
  102. package/dist/scss/_vars.scss.js +94 -199
  103. package/dist/scss/componentStyles.scss +181 -0
  104. package/dist/scss/components/Accordion/_accordion.scss +14 -28
  105. package/dist/scss/components/AddToCalendar/_addToCalendar.scss +0 -4
  106. package/dist/scss/components/Breadcrumb/_breadcrumb.scss +8 -1
  107. package/dist/scss/components/Button/_button.scss +40 -7
  108. package/dist/scss/components/ComboBox/_combobox.scss +7 -5
  109. package/dist/scss/components/ComposedModal/_composedModal.scss +0 -4
  110. package/dist/scss/components/Countdown/_countdown.scss +8 -9
  111. package/dist/scss/components/Countdown/_duration.scss +0 -2
  112. package/dist/scss/components/DatePicker/_datePicker.scss +11 -10
  113. package/dist/scss/components/Detail/_detail.scss +15 -6
  114. package/dist/scss/components/Divider/_divider.scss +3 -3
  115. package/dist/scss/components/Drawer/_drawerHeader.scss +0 -7
  116. package/dist/scss/components/Dropdown/_dropdown.scss +2 -2
  117. package/dist/scss/components/FavoritingTileButton/_favoritingTileButton.scss +5 -0
  118. package/dist/scss/components/Filter/_filter.scss +13 -10
  119. package/dist/scss/components/Icon/_icon.stories.scss +1 -1
  120. package/dist/scss/components/IconButton/_iconButton.scss +3 -5
  121. package/dist/scss/components/Input/_input.scss +22 -14
  122. package/dist/scss/components/Link/_link.scss +29 -8
  123. package/dist/scss/components/LinkBlock/_linkBlock.scss +5 -1
  124. package/dist/scss/components/LinkList/_linkList.scss +6 -0
  125. package/dist/scss/components/Modal/_modal.scss +2 -2
  126. package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +30 -14
  127. package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +2 -2
  128. package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +5 -4
  129. package/dist/scss/components/NotificationBanner/_notificationBanner.scss +10 -21
  130. package/dist/scss/components/Pagination/_pagination.scss +17 -1
  131. package/dist/scss/components/ProgressIndicator/_progressIndicator.scss +5 -0
  132. package/dist/scss/components/Search/SearchResults/_searchResults.scss +5 -0
  133. package/dist/scss/components/Search/_search.scss +3 -11
  134. package/dist/scss/components/Search/_searchButton.scss +0 -1
  135. package/dist/scss/components/Select/_select.scss +8 -3
  136. package/dist/scss/components/Tabs/_tabs.scss +1 -6
  137. package/dist/scss/components/Tags/_tags.scss +1 -2
  138. package/dist/scss/components/TextArea/_textArea.scss +2 -4
  139. package/dist/scss/components/TextSymbol/_textSymbol.scss +1 -4
  140. package/dist/scss/patterns/AccountPageHeader/_accountPageHeader.scss +4 -0
  141. package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +12 -11
  142. package/dist/scss/patterns/CountryPicker/_countryPickerModal.scss +4 -0
  143. package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +3 -0
  144. package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +4 -7
  145. package/dist/scss/patterns/DetailList/_detailList.scss +8 -2
  146. package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +6 -8
  147. package/dist/scss/patterns/FilterMenu/_filterMenu.scss +2 -1
  148. package/dist/scss/patterns/FiltersInline/_filterButton.scss +12 -2
  149. package/dist/scss/patterns/FiltersInline/_filterDropdownMenu.scss +1 -9
  150. package/dist/scss/patterns/FiltersInline/_filtersInline.scss +5 -0
  151. package/dist/scss/patterns/HeroBanner/_heroBanner.scss +5 -6
  152. package/dist/scss/patterns/LanguageSelector/_languageSelector.scss +4 -0
  153. package/dist/scss/patterns/ObjectTile/_objectTile.scss +13 -12
  154. package/dist/scss/patterns/PhoneNumberInput/_phoneNumberInput.scss +9 -2
  155. package/dist/scss/patterns/SaleCard/_saleCard.scss +7 -23
  156. package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +16 -3
  157. package/dist/scss/patterns/Social/_social.scss +5 -1
  158. package/dist/scss/patterns/Subscribe/_subscribe.scss +0 -12
  159. package/dist/scss/patterns/TextBanner/_textBanner.scss +9 -3
  160. package/dist/scss/patterns/ViewingDetails/_viewingDetails.scss +15 -3
  161. package/dist/scss/site-furniture/Footer/_footer.scss +24 -4
  162. package/dist/scss/site-furniture/Header/_header.scss +12 -4
  163. package/dist/site-furniture/Footer/Footer.js +4 -4
  164. package/dist/site-furniture/Header/Header.js +76 -57
  165. package/package.json +4 -3
@@ -18,7 +18,7 @@ export declare const SaleCardPlayground: {
18
18
  export declare const SaleCardRelated: () => import("react/jsx-runtime").JSX.Element;
19
19
  export declare const SaleCardWithPrimaryAndSecondaryCTA: () => import("react/jsx-runtime").JSX.Element;
20
20
  export declare const SaleCardWithPrimaryCTA: () => import("react/jsx-runtime").JSX.Element;
21
- export declare const SaleCardWithSecondaryCTA: () => import("react/jsx-runtime").JSX.Element;
21
+ export declare const SaleCardWithRegistrationStatus: () => import("react/jsx-runtime").JSX.Element;
22
22
  export declare const SaleCardWithDownloadLink: () => import("react/jsx-runtime").JSX.Element;
23
23
  export declare const SaleCardNoCTA: () => import("react/jsx-runtime").JSX.Element;
24
24
  export declare const SaleCardWithLink: () => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,13 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as t } from "react";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as e } from "react";
3
3
  import { getCommonProps as c } from "../../utils/index.js";
4
- const i = t(({ children: a, ...o }, s) => {
5
- const { className: r, ...m } = c(o, "SaleCardActions");
6
- return /* @__PURE__ */ e("div", { className: `${r}__ctas`, ...m, ref: s, children: a });
4
+ import i from "../../components/Text/Text.js";
5
+ const l = e(({ children: o, ...a }, r) => {
6
+ const { className: s, ...m } = c(a, "SaleCardActions");
7
+ return /* @__PURE__ */ t(i, { className: `${s}__ctas`, ...m, ref: r, children: o });
7
8
  });
8
- i.displayName = "SaleCardActions";
9
+ l.displayName = "SaleCardActions";
9
10
  export {
10
- i as SaleCardActions,
11
- i as default
11
+ l as SaleCardActions,
12
+ l as default
12
13
  };
@@ -1,4 +1,4 @@
1
- import { jsxs as n, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as R } from "react";
3
3
  import { getCommonProps as D } from "../../utils/index.js";
4
4
  import F from "../../node_modules/classnames/index.js";
@@ -6,69 +6,69 @@ import f from "../../components/Countdown/Countdown.js";
6
6
  import O from "../../components/SeldonImage/SeldonImage.js";
7
7
  import { AuctionStatus as q } from "../../types/commonTypes.js";
8
8
  import { TextVariants as r } from "../../components/Text/types.js";
9
- import t from "../../components/Text/Text.js";
9
+ import l from "../../components/Text/Text.js";
10
10
  import z from "../../components/PageContentWrapper/PageContentWrapper.js";
11
- import { SSRMediaQuery as g } from "../../providers/SeldonProvider/utils.js";
11
+ import { SSRMediaQuery as u } from "../../providers/SeldonProvider/utils.js";
12
12
  const A = R(
13
13
  ({
14
- auctionEndTime: i,
15
- auctionTitle: o,
16
- badgeText: c,
17
- imageSrcUrl: v,
18
- imageSrcSet: N,
19
- imageSizes: u,
20
- imageLoading: S,
21
- imageFetchPriority: $,
22
- location: w,
23
- countdownTimerLabel: B,
24
- countdownFormatDuration: b,
25
- auctionState: k,
26
- occurrenceInformation: x,
14
+ auctionEndTime: s,
15
+ auctionTitle: n,
16
+ badgeText: o,
17
+ imageSrcUrl: N,
18
+ imageSrcSet: v,
19
+ imageSizes: g,
20
+ imageLoading: $,
21
+ imageFetchPriority: S,
22
+ location: b,
23
+ countdownTimerLabel: M,
24
+ countdownFormatDuration: w,
25
+ auctionState: B,
26
+ occurrenceInformation: k,
27
27
  onClick: I,
28
- children: C,
29
- className: P,
30
- footerElement: j,
31
- headerLabel: y,
32
- showTimer: l,
33
- getCurrentDateTime: H,
34
- ...s
28
+ children: x,
29
+ className: C,
30
+ footerElement: P,
31
+ headerLabel: j,
32
+ showTimer: c,
33
+ getCurrentDateTime: y,
34
+ ...t
35
35
  }, m) => {
36
- const { className: e, ...d } = D(s, "SaleHeaderBanner"), _ = k === q.live, p = {
37
- endDateTime: i,
38
- label: B,
39
- formatDurationStr: b,
40
- getCurrentDateTime: H
36
+ const { className: e, ...d } = D(t, "SaleHeaderBanner"), _ = B === q.live, h = {
37
+ endDateTime: s,
38
+ label: M,
39
+ formatDurationStr: w,
40
+ getCurrentDateTime: y
41
41
  };
42
- return /* @__PURE__ */ n("div", { ...d, className: F(e, P), ...s, ref: m, children: [
43
- _ && i && l ? /* @__PURE__ */ a(g.Media, { lessThan: "md", children: /* @__PURE__ */ a("div", { className: `${e}__stack__countdown`, children: /* @__PURE__ */ a(f, { ...p, showBottomBorder: !1 }) }) }) : null,
42
+ return /* @__PURE__ */ i("div", { ...d, className: F(e, C), ...t, ref: m, children: [
43
+ _ && s && c ? /* @__PURE__ */ a(u.Media, { lessThan: "md", children: /* @__PURE__ */ a("div", { className: `${e}__stack__countdown`, children: /* @__PURE__ */ a(f, { ...h, showBottomBorder: !1 }) }) }) : null,
44
44
  /* @__PURE__ */ a(
45
45
  O,
46
46
  {
47
47
  aspectRatio: "16/9",
48
- src: v,
49
- alt: String(o),
48
+ src: N,
49
+ alt: String(n),
50
50
  objectFit: "cover",
51
51
  className: `${e}__image`,
52
- srcSet: N,
53
- sizes: u,
54
- loading: S,
55
- fetchPriority: $
52
+ srcSet: v,
53
+ sizes: g,
54
+ loading: $,
55
+ fetchPriority: S
56
56
  }
57
57
  ),
58
- /* @__PURE__ */ a(z, { className: `${e}__stack-wrapper`, ...d, ...s, ref: m, children: /* @__PURE__ */ n("div", { className: `${e}__stack`, children: [
59
- _ && i && l ? /* @__PURE__ */ a(g.Media, { greaterThanOrEqual: "md", children: /* @__PURE__ */ a("div", { className: `${e}__stack__countdown`, children: /* @__PURE__ */ a(f, { ...p }) }) }) : null,
60
- /* @__PURE__ */ a(t, { variant: r.badge, children: y }),
61
- /* @__PURE__ */ a(t, { variant: r.title1, children: o }),
62
- c && /* @__PURE__ */ a(t, { variant: r.badge, className: `${e}__badge`, children: c }),
63
- /* @__PURE__ */ a(t, { variant: r.string2, className: `${e}__location`, children: w }),
64
- /* @__PURE__ */ n("div", { className: `${e}__occurrence-details`, children: [
65
- x.map(({ date: h, occurrenceLabel: M }) => /* @__PURE__ */ n("div", { className: `${e}__occurrence-details-text`, children: [
66
- /* @__PURE__ */ a(t, { variant: r.string2, children: M }),
67
- /* @__PURE__ */ a(t, { variant: r.string2, className: `${e}__date`, children: h })
68
- ] }, String(h))),
69
- C
58
+ /* @__PURE__ */ a(z, { className: `${e}__stack-wrapper`, ...d, ...t, ref: m, children: /* @__PURE__ */ i("div", { className: `${e}__stack`, children: [
59
+ _ && s && c ? /* @__PURE__ */ a(u.Media, { greaterThanOrEqual: "md", children: /* @__PURE__ */ a("div", { className: `${e}__stack__countdown`, children: /* @__PURE__ */ a(f, { ...h }) }) }) : null,
60
+ /* @__PURE__ */ a(l, { variant: r.labelMedium, className: `${e}__header-label`, children: j }),
61
+ /* @__PURE__ */ a(l, { className: `${e}__title`, variant: r.headingLarge, children: n }),
62
+ o && /* @__PURE__ */ a(l, { variant: r.badge, className: `${e}__badge`, children: o }),
63
+ /* @__PURE__ */ a(l, { variant: r.labelMedium, className: `${e}__location`, children: b }),
64
+ /* @__PURE__ */ i("div", { className: `${e}__occurrence-details`, children: [
65
+ k.map(({ date: p, occurrenceLabel: H }) => /* @__PURE__ */ i("div", { className: `${e}__occurrence-details-text`, children: [
66
+ /* @__PURE__ */ a(l, { variant: r.labelMedium, children: H }),
67
+ /* @__PURE__ */ a(l, { variant: r.labelMedium, className: `${e}__date`, children: p })
68
+ ] }, String(p))),
69
+ x
70
70
  ] }),
71
- j
71
+ P
72
72
  ] }) })
73
73
  ] });
74
74
  }
@@ -1,20 +1,27 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as i } from "react";
3
- import { getCommonProps as m } from "../../utils/index.js";
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ import { getCommonProps as i } from "../../utils/index.js";
4
4
  import { TextVariants as n } from "../../components/Text/types.js";
5
5
  import l from "../../components/Text/Text.js";
6
6
  import "../../components/Link/types.js";
7
7
  import c from "../../components/Link/Link.js";
8
- const d = i(
9
- ({ ctaText: r = "View Calendar", ctaLabel: a = "Browse Upcoming Sale", className: f, ...o }, p) => {
10
- const { className: s } = m(o, "SaleHeaderBanner");
11
- return /* @__PURE__ */ t("div", { className: `${s}__occurrence-details-text`, children: [
12
- /* @__PURE__ */ e(l, { variant: n.string2, children: a }),
13
- /* @__PURE__ */ e(c, { href: "/calendar", children: r })
14
- ] });
8
+ import d from "../../node_modules/classnames/index.js";
9
+ const f = m(
10
+ ({ ctaText: a = "View Calendar", ctaLabel: o = "Browse Upcoming Sale", className: p, ...s }, u) => {
11
+ const { className: e } = i(s, "SaleHeaderBanner");
12
+ return /* @__PURE__ */ t(
13
+ "div",
14
+ {
15
+ className: d(`${e}__occurrence-details-text`, `${e}__browse-auctions-text`),
16
+ children: [
17
+ /* @__PURE__ */ r(l, { variant: n.labelMedium, children: o }),
18
+ /* @__PURE__ */ r(c, { href: "/calendar", children: a })
19
+ ]
20
+ }
21
+ );
15
22
  }
16
23
  );
17
- d.displayName = "SaleHeaderBrowseAuctions";
24
+ f.displayName = "SaleHeaderBrowseAuctions";
18
25
  export {
19
- d as default
26
+ f as default
20
27
  };
@@ -1,29 +1,29 @@
1
- import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
- import f from "../../node_modules/classnames/index.js";
3
- import { getCommonProps as p } from "../../utils/index.js";
4
- import d from "../../components/Button/Button.js";
5
- import { forwardRef as N } from "react";
6
- import { ButtonVariants as u } from "../../components/Button/types.js";
7
- import { TextVariants as h } from "../../components/Text/types.js";
8
- import x from "../../components/Text/Text.js";
9
- const b = N(
1
+ import { jsxs as f, jsx as a } from "react/jsx-runtime";
2
+ import p from "../../node_modules/classnames/index.js";
3
+ import { getCommonProps as u } from "../../utils/index.js";
4
+ import N from "../../components/Button/Button.js";
5
+ import { forwardRef as h } from "react";
6
+ import { ButtonVariants as v } from "../../components/Button/types.js";
7
+ import { TextVariants as t } from "../../components/Text/types.js";
8
+ import m from "../../components/Text/Text.js";
9
+ const x = h(
10
10
  ({
11
- className: t,
12
- children: e,
13
- titleText: m = "Never Miss A Moment",
14
- buttonText: s = "Subscribe To Our Newsletter",
15
- onSubscribeClick: i,
11
+ className: e,
12
+ children: i,
13
+ titleText: s = "Never miss a moment",
14
+ buttonText: n = "Subscribe to our newsletter",
15
+ onSubscribeClick: l,
16
16
  ...o
17
- }, n) => {
18
- const { className: r, ...c } = p(o, "Social");
19
- return /* @__PURE__ */ l("div", { ref: n, ...c, className: f(r, t), ...o, children: [
20
- /* @__PURE__ */ a(x, { variant: h.heading4, className: `${r}__header`, children: m }),
21
- /* @__PURE__ */ a(d, { onClick: i, variant: u.tertiary, className: `${r}__button`, children: s }),
22
- e
17
+ }, c) => {
18
+ const { className: r, ...d } = u(o, "Social");
19
+ return /* @__PURE__ */ f("div", { ref: c, ...d, className: p(r, e), ...o, children: [
20
+ /* @__PURE__ */ a(m, { variant: t.headingSmall, className: `${r}__header`, children: s }),
21
+ /* @__PURE__ */ a(N, { onClick: l, variant: v.tertiary, className: `${r}__button`, children: /* @__PURE__ */ a(m, { variant: t.linkMedium, children: n }) }),
22
+ i
23
23
  ] });
24
24
  }
25
25
  );
26
- b.displayName = "Social";
26
+ x.displayName = "Social";
27
27
  export {
28
- b as default
28
+ x as default
29
29
  };
@@ -1,83 +1,85 @@
1
- import { jsxs as C, jsx as a } from "react/jsx-runtime";
2
- import * as I from "react";
3
- import L from "../../node_modules/classnames/index.js";
4
- import { getCommonProps as T } from "../../utils/index.js";
1
+ import { jsxs as I, jsx as o } from "react/jsx-runtime";
2
+ import * as L from "react";
3
+ import M from "../../node_modules/classnames/index.js";
4
+ import { getCommonProps as V } from "../../utils/index.js";
5
5
  import j from "../../components/Input/Input.js";
6
6
  import D from "../../components/Button/Button.js";
7
- import { SubscriptionState as o } from "./types.js";
8
- import { ButtonVariants as M } from "../../components/Button/types.js";
9
- const R = I.forwardRef(
7
+ import { SubscriptionState as r } from "./types.js";
8
+ import { ButtonVariants as R } from "../../components/Button/types.js";
9
+ import { TextVariants as d } from "../../components/Text/types.js";
10
+ import i from "../../components/Text/Text.js";
11
+ const U = L.forwardRef(
10
12
  ({
11
- autoFocus: c = !0,
12
- blurb: s,
13
- buttonText: d = "Sign Up",
14
- buttonProps: u,
15
- className: i,
16
- element: p = "form",
17
- inputLabelText: f = "Enter Your Email Address To Sign Up*",
18
- inputPlaceholder: g = "example@email.com",
19
- title: _ = "Never Miss A Moment",
20
- loadingText: N = "Loading...",
21
- invalidText: h = "",
22
- errorText: v = "An error occurred. Please try again.",
23
- successText: x,
24
- privacyText: t = "By signing up, you agree to receive email communications from Phillips.",
25
- subscriptionState: e = o.Default,
13
+ autoFocus: u = !0,
14
+ blurb: t,
15
+ buttonText: p = "Sign Up",
16
+ buttonProps: f,
17
+ className: m,
18
+ element: g = "form",
19
+ inputLabelText: x = "Enter Your Email Address To Sign Up*",
20
+ inputPlaceholder: v = "example@email.com",
21
+ title: h = "Never Miss A Moment",
22
+ loadingText: y = "Loading...",
23
+ invalidText: N = "",
24
+ errorText: _ = "An error occurred. Please try again.",
25
+ successText: b,
26
+ privacyText: s = "By signing up, you agree to receive email communications from Phillips.",
27
+ subscriptionState: e = r.Default,
26
28
  id: n,
27
- ...m
28
- }, y) => {
29
- const { className: r, ...$ } = T({ id: n, ...m }, "Subscribe"), b = e === o.Invalid, E = e === o.Loading, P = e === o.Success, S = e === o.Error, w = {
30
- invalid: h,
31
- success: x,
32
- loading: N,
33
- error: v
34
- }, l = e !== o.Default ? w[e] : "", A = P || E, B = b || S;
35
- return /* @__PURE__ */ C(
36
- p,
29
+ ...l
30
+ }, S) => {
31
+ const { className: a, ...T } = V({ id: n, ...l }, "Subscribe"), $ = e === r.Invalid, E = e === r.Loading, P = e === r.Success, w = e === r.Error, A = {
32
+ invalid: N,
33
+ success: b,
34
+ loading: y,
35
+ error: _
36
+ }, c = e !== r.Default ? A[e] : "", B = P || E, C = $ || w;
37
+ return /* @__PURE__ */ I(
38
+ g,
37
39
  {
38
40
  id: n,
39
- ...$,
40
- className: L(r, i),
41
+ ...T,
42
+ className: M(a, m),
41
43
  noValidate: !0,
42
- ref: y,
43
- ...m,
44
+ ref: S,
45
+ ...l,
44
46
  children: [
45
- /* @__PURE__ */ a("h3", { className: `${r}__title`, children: _ }),
46
- s ? /* @__PURE__ */ a("p", { className: `${r}__blurb`, children: s }) : null,
47
- /* @__PURE__ */ a(
47
+ /* @__PURE__ */ o(i, { variant: d.headingSmall, className: `${a}__title`, children: h }),
48
+ t ? /* @__PURE__ */ o(i, { variant: d.bodyMedium, children: t }) : null,
49
+ /* @__PURE__ */ o(
48
50
  j,
49
51
  {
50
- autoFocus: c,
51
- className: `${r}__input`,
52
+ autoFocus: u,
53
+ className: `${a}__input`,
52
54
  type: "email",
53
55
  name: "email",
54
- placeholder: g,
55
- labelText: f,
56
- invalid: B,
57
- invalidText: l,
58
- warn: A,
59
- warnText: l,
56
+ placeholder: v,
57
+ labelText: x,
58
+ invalid: C,
59
+ invalidText: c,
60
+ warn: B,
61
+ warnText: c,
60
62
  required: !0,
61
63
  id: `${n}-input`
62
64
  }
63
65
  ),
64
- /* @__PURE__ */ a(
66
+ /* @__PURE__ */ o(
65
67
  D,
66
68
  {
67
- className: `${r}__button ${i}`,
68
- variant: M.secondary,
69
+ className: `${a}__button ${m}`,
70
+ variant: R.secondary,
69
71
  type: "submit",
70
- ...u,
71
- children: d
72
+ ...f,
73
+ children: p
72
74
  }
73
75
  ),
74
- t ? /* @__PURE__ */ a("p", { className: `${r}__privacy`, children: t }) : null
76
+ s ? /* @__PURE__ */ o(i, { element: "p", children: s }) : null
75
77
  ]
76
78
  }
77
79
  );
78
80
  }
79
81
  );
80
- R.displayName = "Subscribe";
82
+ U.displayName = "Subscribe";
81
83
  export {
82
- R as default
84
+ U as default
83
85
  };
@@ -15,7 +15,6 @@ export declare const Playground: {
15
15
  blurb: string;
16
16
  subscriptionState: SubscriptionState;
17
17
  invalidText: string;
18
- warn: boolean;
19
18
  successText: string;
20
19
  };
21
20
  };
@@ -1,15 +1,15 @@
1
- import { jsx as r, jsxs as l } from "react/jsx-runtime";
2
- import { forwardRef as c } from "react";
3
- import { getCommonProps as p } from "../../utils/index.js";
4
- import n from "../../node_modules/classnames/index.js";
5
- import { TextVariants as d } from "../../components/Text/types.js";
6
- import f from "../../components/Text/Text.js";
7
- const x = c(
8
- ({ headerText: o, className: t, description: a, ...s }, m) => {
9
- const { className: e, ...i } = p(s, "TextBanner");
10
- return /* @__PURE__ */ r("header", { ...i, className: n(e, t), ref: m, ...s, children: /* @__PURE__ */ l("span", { className: n(`${e}__content-wrapper`), children: [
11
- /* @__PURE__ */ r(f, { variant: d.snwHeadingHero1, children: o }),
12
- a ? /* @__PURE__ */ r("p", { className: `${e}__text-description`, children: a }) : null
1
+ import { jsx as a, jsxs as i } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import { getCommonProps as d } from "../../utils/index.js";
4
+ import s from "../../node_modules/classnames/index.js";
5
+ import { TextVariants as f } from "../../components/Text/types.js";
6
+ import t from "../../components/Text/Text.js";
7
+ const x = p(
8
+ ({ headerText: n, className: o, description: r, ...m }, l) => {
9
+ const { className: e, ...c } = d(m, "TextBanner");
10
+ return /* @__PURE__ */ a("header", { ...c, className: s(e, o), ref: l, ...m, children: /* @__PURE__ */ i("span", { className: s(`${e}__content-wrapper`), children: [
11
+ /* @__PURE__ */ a(t, { className: `${e}__header-text`, variant: f.displaySmall, children: n }),
12
+ r ? /* @__PURE__ */ a(t, { element: "p", children: r }) : null
13
13
  ] }) });
14
14
  }
15
15
  );
@@ -1,30 +1,30 @@
1
- import { jsx as o, Fragment as x, jsxs as s } from "react/jsx-runtime";
1
+ import { jsx as o, Fragment as x, jsxs as m } from "react/jsx-runtime";
2
2
  import { forwardRef as A } from "react";
3
3
  import { getCommonProps as w, noOp as C } from "../../utils/index.js";
4
4
  import $ from "../../node_modules/classnames/index.js";
5
- import { AuthState as t } from "./types.js";
6
- import { TextVariants as i } from "../../components/Text/types.js";
7
- import r from "../../components/Text/Text.js";
8
- import m from "../../components/Icon/Icon.js";
5
+ import { AuthState as a } from "./types.js";
6
+ import { TextVariants as s } from "../../components/Text/types.js";
7
+ import i from "../../components/Text/Text.js";
8
+ import r from "../../components/Icon/Icon.js";
9
9
  const b = A(
10
10
  ({
11
11
  accountDetailsLinkComponent: l = "a",
12
12
  className: d,
13
13
  onLogin: g = C,
14
- authState: a = t.LoggedOut,
14
+ authState: t = a.LoggedOut,
15
15
  loginLabel: h = "Login",
16
16
  accountLabel: u = "Account",
17
17
  href: f = "/account",
18
18
  disabled: e = !1,
19
19
  ...c
20
20
  }, p) => {
21
- const { className: n, ...N } = w(c, "UserManagement"), _ = a === t.LoggedIn, L = a !== t.Loading;
22
- return /* @__PURE__ */ o("div", { ...N, className: $(n, d), ...c, ref: p, children: L && /* @__PURE__ */ o(x, { children: _ ? /* @__PURE__ */ s(l, { className: `${n}__login`, href: f, disabled: e, children: [
23
- /* @__PURE__ */ o(m, { icon: "Account", className: `${n}__account-icon`, height: "100%", width: "100%" }),
24
- /* @__PURE__ */ o(r, { variant: i.body3, children: u })
25
- ] }) : /* @__PURE__ */ s("button", { className: `${n}__login`, onClick: g, disabled: e, children: [
26
- /* @__PURE__ */ o(m, { icon: "Account", className: `${n}__account-icon`, height: "100%", width: "100%" }),
27
- /* @__PURE__ */ o(r, { variant: i.body3, children: h })
21
+ const { className: n, ...N } = w(c, "UserManagement"), _ = t === a.LoggedIn, L = t !== a.Loading;
22
+ return /* @__PURE__ */ o("div", { ...N, className: $(n, d), ...c, ref: p, children: L && /* @__PURE__ */ o(x, { children: _ ? /* @__PURE__ */ m(l, { className: `${n}__login`, href: f, disabled: e, children: [
23
+ /* @__PURE__ */ o(r, { icon: "Account", className: `${n}__account-icon`, height: "100%", width: "100%" }),
24
+ /* @__PURE__ */ o(i, { variant: s.bodySmall, children: u })
25
+ ] }) : /* @__PURE__ */ m("button", { className: `${n}__login`, onClick: g, disabled: e, children: [
26
+ /* @__PURE__ */ o(r, { icon: "Account", className: `${n}__account-icon`, height: "100%", width: "100%" }),
27
+ /* @__PURE__ */ o(i, { variant: s.bodySmall, children: h })
28
28
  ] }) }) });
29
29
  }
30
30
  );
@@ -27,6 +27,10 @@ export interface ViewingDetailsProps extends ComponentProps<'div'> {
27
27
  * Session Times data array
28
28
  */
29
29
  sessionTimes?: ViewingSessionProps[];
30
+ /**
31
+ * Viewing Times label text for Viewings Details
32
+ */
33
+ viewingTimesLabel?: string;
30
34
  /**
31
35
  * Viewing Times string array
32
36
  */
@@ -1,48 +1,50 @@
1
- import { jsx as a, jsxs as _ } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as h } from "react/jsx-runtime";
2
2
  import v from "../../node_modules/classnames/index.js";
3
- import { forwardRef as b } from "react";
4
- import "../../components/Link/types.js";
5
- import g from "../../components/Link/Link.js";
6
- import { TextVariants as i } from "../../components/Text/types.js";
7
- import l from "../../components/Text/Text.js";
8
- import { getCommonProps as x } from "../../utils/index.js";
9
- const y = b(
3
+ import { forwardRef as x } from "react";
4
+ import { LinkVariants as u } from "../../components/Link/types.js";
5
+ import V from "../../components/Link/Link.js";
6
+ import { TextVariants as r } from "../../components/Text/types.js";
7
+ import i from "../../components/Text/Text.js";
8
+ import { getCommonProps as b } from "../../utils/index.js";
9
+ const k = x(
10
10
  ({
11
- className: p,
12
- children: m,
13
- label: s,
14
- sessionTimesLabel: o,
15
- sessionTimes: n,
16
- viewingTimes: t,
17
- location: c,
18
- mapLink: d,
19
- onClose: V,
20
- linkElement: N = g,
21
- ...h
11
+ className: N,
12
+ children: s,
13
+ label: p,
14
+ sessionTimesLabel: t,
15
+ sessionTimes: m,
16
+ viewingTimes: n,
17
+ viewingTimesLabel: c,
18
+ location: d,
19
+ mapLink: o,
20
+ onClose: M,
21
+ linkElement: $ = V,
22
+ ..._
22
23
  }, f) => {
23
- const { className: e, ...$ } = x(h, "ViewingDetails");
24
- return /* @__PURE__ */ a("div", { ...$, ...h, className: v(e, p), ref: f, children: /* @__PURE__ */ _("div", { className: `${e}__content`, children: [
25
- m && /* @__PURE__ */ a("div", { className: `${e}__children`, children: m }),
26
- o && /* @__PURE__ */ a(l, { variant: i.heading4, children: o }),
27
- n && n.length > 0 && n.map((r) => /* @__PURE__ */ _(
24
+ const { className: a, ...g } = b(_, "ViewingDetails");
25
+ return /* @__PURE__ */ e("div", { ...g, ..._, className: v(a, N), ref: f, children: /* @__PURE__ */ h("div", { className: `${a}__content`, children: [
26
+ /* @__PURE__ */ e(i, { variant: r.headingMedium, className: `${a}__title`, children: p }),
27
+ s && /* @__PURE__ */ e("div", { className: `${a}__children`, children: s }),
28
+ t && /* @__PURE__ */ e(i, { variant: r.headingSmall, className: `${a}__heading`, children: t }),
29
+ m && m.length > 0 && m.map((l) => /* @__PURE__ */ h(
28
30
  "div",
29
31
  {
30
- className: `${e}__session`,
32
+ className: `${a}__session`,
31
33
  children: [
32
- r.sessionLabel && /* @__PURE__ */ a(l, { variant: i.heading5, className: `${e}__label`, children: r.sessionLabel }),
33
- r.sessionTime && /* @__PURE__ */ a(l, { variant: i.body2, className: `${e}__text`, children: r.sessionTime })
34
+ l.sessionLabel && /* @__PURE__ */ e(i, { variant: r.labelMedium, className: `${a}__label`, children: l.sessionLabel }),
35
+ l.sessionTime && /* @__PURE__ */ e(i, { className: `${a}__text`, children: l.sessionTime })
34
36
  ]
35
37
  },
36
- `${r.sessionLabel ?? ""}-${r.sessionTime ?? ""}`
38
+ `${l.sessionLabel ?? ""}-${l.sessionTime ?? ""}`
37
39
  )),
38
- s && /* @__PURE__ */ a(l, { variant: i.heading4, children: s }),
39
- t && t.length > 0 && t.map((r) => /* @__PURE__ */ a(l, { variant: i.body2, className: `${e}__label`, children: r }, r)),
40
- c && /* @__PURE__ */ a(l, { variant: i.body2, className: `${e}__location`, children: c }),
41
- d && /* @__PURE__ */ a(l, { variant: i.body2, className: `${e}__map-link`, children: /* @__PURE__ */ a(N, { href: d, children: "(Map)" }) })
40
+ c && /* @__PURE__ */ e(i, { variant: r.headingSmall, className: `${a}__heading`, children: c }),
41
+ n && n.length > 0 && n.map((l) => /* @__PURE__ */ e(i, { className: `${a}__viewing-time`, children: l }, l)),
42
+ d && /* @__PURE__ */ e(i, { className: `${a}__location`, children: d }),
43
+ o && /* @__PURE__ */ e(i, { className: `${a}__map-link`, children: /* @__PURE__ */ e($, { href: o, variant: u.linkMedium, children: "(Map)" }) })
42
44
  ] }) });
43
45
  }
44
46
  );
45
- y.displayName = "ViewingDetails";
47
+ k.displayName = "ViewingDetails";
46
48
  export {
47
- y as default
49
+ k as default
48
50
  };
@@ -14,6 +14,7 @@ export declare const Playground: {
14
14
  sessionTime: string;
15
15
  }[];
16
16
  viewingTimes: string[];
17
+ viewingTimesLabel: string;
17
18
  location: string;
18
19
  mapLink: string;
19
20
  };
@@ -34,6 +35,7 @@ export declare const CenterAlignText: {
34
35
  sessionTime: string;
35
36
  }[];
36
37
  viewingTimes: string[];
38
+ viewingTimesLabel: string;
37
39
  location: string;
38
40
  mapLink: string;
39
41
  };
@@ -7,6 +7,7 @@ export declare const viewingDetailsProps: {
7
7
  sessionTime: string;
8
8
  }[];
9
9
  viewingTimes: string[];
10
+ viewingTimesLabel: string;
10
11
  location: string;
11
12
  mapLink: string;
12
13
  };
@@ -24,6 +25,7 @@ export declare const viewingDetailsWithChildrenProps: {
24
25
  sessionTime: string;
25
26
  }[];
26
27
  viewingTimes: string[];
28
+ viewingTimesLabel: string;
27
29
  location: string;
28
30
  mapLink: string;
29
31
  };
@@ -58,3 +58,7 @@ li {
58
58
  #root {
59
59
  isolation: isolate;
60
60
  }
61
+
62
+ label {
63
+ cursor: inherit;
64
+ }