@phillips/seldon 1.212.0 → 1.214.0-beta.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 (151) hide show
  1. package/dist/_virtual/index4.js +2 -2
  2. package/dist/_virtual/index5.js +2 -2
  3. package/dist/_virtual/index6.js +2 -2
  4. package/dist/components/AddToCalendar/AddToCalendar.js +24 -25
  5. package/dist/components/Article/Article.js +17 -17
  6. package/dist/components/Button/Button.d.ts +4 -0
  7. package/dist/components/Button/Button.js +71 -53
  8. package/dist/components/Button/Button.stories.d.ts +7 -1
  9. package/dist/components/ComboBox/ComboBox.js +33 -29
  10. package/dist/components/ComposedModal/ComposedModal.js +33 -33
  11. package/dist/components/ComposedModal/ComposedModal.stories.d.ts +1 -0
  12. package/dist/components/Countdown/Countdown.js +90 -51
  13. package/dist/components/Countdown/Duration.d.ts +3 -1
  14. package/dist/components/Countdown/Duration.js +17 -9
  15. package/dist/components/Countdown/types.d.ts +2 -1
  16. package/dist/components/Countdown/types.js +1 -1
  17. package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +21 -21
  18. package/dist/components/Detail/Detail.d.ts +2 -0
  19. package/dist/components/Detail/Detail.js +26 -15
  20. package/dist/components/Detail/Detail.stories.d.ts +9 -2
  21. package/dist/components/Drawer/DrawerHeader.js +22 -20
  22. package/dist/components/ExitGateCard/ExitGateCard.js +29 -29
  23. package/dist/components/FavoritingTileButton/FavoritingTileButton.js +30 -31
  24. package/dist/components/Filter/Filter.js +36 -34
  25. package/dist/components/Filter/FilterHeader.d.ts +4 -0
  26. package/dist/components/Filter/FilterHeader.js +30 -22
  27. package/dist/components/Input/Input.js +43 -39
  28. package/dist/components/Input/Input.stories.d.ts +16 -0
  29. package/dist/components/Link/Link.js +11 -11
  30. package/dist/components/Link/Link.stories.d.ts +17 -1
  31. package/dist/components/Link/types.d.ts +9 -4
  32. package/dist/components/Link/types.js +3 -3
  33. package/dist/components/LinkBlock/LinkBlock.js +19 -11
  34. package/dist/components/Modal/Modal.d.ts +0 -4
  35. package/dist/components/Modal/Modal.js +6 -6
  36. package/dist/components/Navigation/NavigationItem/NavigationItem.js +31 -23
  37. package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +29 -29
  38. package/dist/components/Navigation/NavigationList/NavigationList.js +5 -5
  39. package/dist/components/ProgressIndicator/ProgressIndicator.js +22 -22
  40. package/dist/components/Search/Search.js +55 -53
  41. package/dist/components/Search/SearchResults/SearchResults.js +16 -16
  42. package/dist/components/Select/Select.d.ts +4 -0
  43. package/dist/components/Select/Select.js +51 -45
  44. package/dist/components/Select/Select.stories.d.ts +1 -0
  45. package/dist/components/Tabs/TabsContainer.js +1 -1
  46. package/dist/components/Tags/Tags.js +32 -30
  47. package/dist/components/Text/Text.js +17 -9
  48. package/dist/components/Text/types.d.ts +42 -1
  49. package/dist/components/Text/types.js +3 -3
  50. package/dist/components/Text/utils.js +40 -7
  51. package/dist/components/TextArea/TextArea.js +38 -34
  52. package/dist/components/Toast/Toast.js +4 -4
  53. package/dist/node_modules/ics/dist/index.js +2 -2
  54. package/dist/node_modules/ics/dist/pipeline/index.js +1 -1
  55. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  56. package/dist/patterns/AccountPageHeader/AccountPageHeader.js +45 -28
  57. package/dist/patterns/BidSnapshot/BidMessage.d.ts +6 -1
  58. package/dist/patterns/BidSnapshot/BidMessage.js +14 -13
  59. package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +7 -1
  60. package/dist/patterns/BidSnapshot/BidSnapshot.js +84 -66
  61. package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +100 -0
  62. package/dist/patterns/CountryPicker/CountryPickerCountryList.js +5 -5
  63. package/dist/patterns/CountryPicker/CountryPickerModal.js +8 -8
  64. package/dist/patterns/CountryPicker/CountryPickerOption.js +22 -20
  65. package/dist/patterns/CountryPicker/CountryPickerTrigger.js +39 -38
  66. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +52 -52
  67. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.stories.d.ts +1 -0
  68. package/dist/patterns/FiltersInline/FilterButton.js +41 -25
  69. package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +50 -52
  70. package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +31 -31
  71. package/dist/patterns/HeroBanner/HeroBanner.js +21 -21
  72. package/dist/patterns/LanguageSelector/LanguageSelector.js +34 -34
  73. package/dist/patterns/ObjectTile/ObjectTile.js +57 -72
  74. package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +36 -0
  75. package/dist/patterns/PhoneNumberInput/PhoneNumberInput.js +7 -6
  76. package/dist/patterns/SaleCard/SaleCard.js +37 -45
  77. package/dist/patterns/SaleCard/SaleCard.stories.d.ts +1 -1
  78. package/dist/patterns/SaleCard/SaleCardActions.js +9 -8
  79. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +49 -49
  80. package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +19 -12
  81. package/dist/patterns/Social/Social.js +20 -20
  82. package/dist/patterns/Subscribe/Subscribe.stories.d.ts +0 -1
  83. package/dist/patterns/TextBanner/TextBanner.js +12 -12
  84. package/dist/patterns/UserManagement/UserManagement.js +13 -13
  85. package/dist/patterns/ViewingDetails/ViewingDetails.d.ts +4 -0
  86. package/dist/patterns/ViewingDetails/ViewingDetails.js +36 -34
  87. package/dist/patterns/ViewingDetails/ViewingDetails.stories.d.ts +2 -0
  88. package/dist/patterns/ViewingDetails/ViewingDetailsMock.d.ts +2 -0
  89. package/dist/scss/_reset.scss +4 -0
  90. package/dist/scss/_type.scss +172 -65
  91. package/dist/scss/_vars.scss +92 -197
  92. package/dist/scss/_vars.scss.js +94 -199
  93. package/dist/scss/componentStyles.scss +178 -0
  94. package/dist/scss/components/Accordion/_accordion.scss +6 -4
  95. package/dist/scss/components/Breadcrumb/_breadcrumb.scss +1 -1
  96. package/dist/scss/components/Button/_button.scss +33 -7
  97. package/dist/scss/components/ComboBox/_combobox.scss +7 -5
  98. package/dist/scss/components/ComposedModal/_composedModal.scss +0 -4
  99. package/dist/scss/components/Countdown/_countdown.scss +8 -9
  100. package/dist/scss/components/Countdown/_duration.scss +0 -2
  101. package/dist/scss/components/DatePicker/_datePicker.scss +11 -10
  102. package/dist/scss/components/Detail/_detail.scss +15 -6
  103. package/dist/scss/components/Divider/_divider.scss +3 -3
  104. package/dist/scss/components/Drawer/_drawerHeader.scss +0 -7
  105. package/dist/scss/components/Dropdown/_dropdown.scss +2 -2
  106. package/dist/scss/components/FavoritingTileButton/_favoritingTileButton.scss +5 -0
  107. package/dist/scss/components/Filter/_filter.scss +23 -8
  108. package/dist/scss/components/Icon/_icon.stories.scss +1 -1
  109. package/dist/scss/components/IconButton/_iconButton.scss +3 -5
  110. package/dist/scss/components/Input/_input.scss +22 -14
  111. package/dist/scss/components/Link/_link.scss +13 -8
  112. package/dist/scss/components/LinkBlock/_linkBlock.scss +5 -1
  113. package/dist/scss/components/LinkList/_linkList.scss +8 -0
  114. package/dist/scss/components/Modal/_modal.scss +2 -2
  115. package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +33 -14
  116. package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +1 -1
  117. package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +2 -2
  118. package/dist/scss/components/NotificationBanner/_notificationBanner.scss +4 -10
  119. package/dist/scss/components/ProgressIndicator/_progressIndicator.scss +5 -0
  120. package/dist/scss/components/Search/SearchResults/_searchResults.scss +5 -0
  121. package/dist/scss/components/Search/_search.scss +9 -10
  122. package/dist/scss/components/Search/_searchButton.scss +0 -1
  123. package/dist/scss/components/Select/_select.scss +8 -3
  124. package/dist/scss/components/Tabs/_tabs.scss +4 -5
  125. package/dist/scss/components/Tags/_tags.scss +0 -2
  126. package/dist/scss/components/TextArea/_textArea.scss +2 -4
  127. package/dist/scss/components/TextSymbol/_textSymbol.scss +2 -2
  128. package/dist/scss/patterns/AccountPageHeader/_accountPageHeader.scss +4 -0
  129. package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +9 -10
  130. package/dist/scss/patterns/CountryPicker/_countryPickerModal.scss +4 -0
  131. package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +3 -0
  132. package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +4 -7
  133. package/dist/scss/patterns/DetailList/_detailList.scss +4 -0
  134. package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +6 -8
  135. package/dist/scss/patterns/FilterMenu/_filterMenu.scss +2 -1
  136. package/dist/scss/patterns/FiltersInline/_filterButton.scss +11 -2
  137. package/dist/scss/patterns/FiltersInline/_filterDropdownMenu.scss +1 -9
  138. package/dist/scss/patterns/FiltersInline/_filtersInline.scss +5 -0
  139. package/dist/scss/patterns/HeroBanner/_heroBanner.scss +13 -6
  140. package/dist/scss/patterns/ObjectTile/_objectTile.scss +13 -12
  141. package/dist/scss/patterns/PhoneNumberInput/_phoneNumberInput.scss +9 -2
  142. package/dist/scss/patterns/SaleCard/_saleCard.scss +13 -22
  143. package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +16 -3
  144. package/dist/scss/patterns/Social/_social.scss +4 -1
  145. package/dist/scss/patterns/Subscribe/_subscribe.scss +3 -3
  146. package/dist/scss/patterns/TextBanner/_textBanner.scss +9 -3
  147. package/dist/scss/patterns/ViewingDetails/_viewingDetails.scss +15 -3
  148. package/dist/scss/site-furniture/Footer/_footer.scss +8 -2
  149. package/dist/scss/site-furniture/Header/_header.scss +8 -4
  150. package/dist/site-furniture/Footer/Footer.js +4 -4
  151. package/package.json +4 -3
@@ -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,25 +1,25 @@
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 d, jsx as r } 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 S } 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 b = 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: s,
13
+ titleText: i = "Never miss a moment",
14
+ buttonText: l = "Subscribe to our newsletter",
15
+ onSubscribeClick: n,
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: a, ...f } = u(o, "Social");
19
+ return /* @__PURE__ */ d("div", { ref: c, ...f, className: p(a, e), ...o, children: [
20
+ /* @__PURE__ */ r(m, { variant: t.headingSmall, className: `${a}__header`, children: i }),
21
+ /* @__PURE__ */ r(N, { onClick: n, variant: S.tertiary, className: `${a}__button`, children: /* @__PURE__ */ r(m, { variant: t.labelSmall, children: l }) }),
22
+ s
23
23
  ] });
24
24
  }
25
25
  );
@@ -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
+ }
@@ -110,131 +110,238 @@
110
110
  }
111
111
  }
112
112
 
113
- @mixin text($token) {
114
- // Labels
115
- @if $token == 'button' {
116
- @include labelText($button);
117
- }
113
+ @mixin display-styles($font-size, $font-weight: 400, $text-transform: unset, $font-style: unset) {
114
+ @include DistinctDisplay;
118
115
 
119
- @if $token == 'link' {
120
- @include labelText($link);
121
- }
116
+ font-size: $font-size;
117
+ font-style: $font-style;
118
+ font-variation-settings: 'wght' $font-weight;
119
+ letter-spacing: 0;
120
+ line-height: 1.2;
121
+ text-transform: $text-transform;
122
+ }
122
123
 
123
- @if $token == 'email' {
124
- @include labelText($email);
125
- }
124
+ @mixin heading-styles($font-size, $font-weight: 400, $text-transform: unset, $font-style: unset) {
125
+ @include display-styles($font-size, $font-weight, $text-transform, $font-style);
126
+ }
126
127
 
127
- @if $token == 'label' {
128
- @include labelText($label);
129
- }
128
+ @mixin body-styles($font-size, $font-weight: 400, $text-transform: unset, $font-style: unset) {
129
+ @include Montserrat;
130
130
 
131
- @if $token == 'badge' {
132
- @include labelText($badge);
133
- }
131
+ font-size: $font-size;
132
+ font-style: $font-style;
133
+ font-variation-settings: 'wght' $font-weight;
134
+ letter-spacing: 0;
135
+ line-height: 1.4;
136
+ text-transform: $text-transform;
137
+ }
138
+
139
+ @mixin label-styles($font-size: $font-size-label-small, $font-weight: 400, $text-transform: unset, $font-style: unset) {
140
+ @include Montserrat;
141
+
142
+ font-size: $font-size;
143
+ font-style: $font-style;
144
+ font-variation-settings: 'wght' $font-weight;
145
+ letter-spacing: 0;
146
+ line-height: 1.2;
147
+ text-transform: $text-transform;
148
+ }
149
+
150
+ @mixin link-styles(
151
+ $font-size,
152
+ $font-weight: 400,
153
+ $text-transform: unset,
154
+ $font-style: unset,
155
+ $text-decoration: underline
156
+ ) {
157
+ @include Montserrat;
158
+
159
+ font-size: $font-size;
160
+ font-style: $font-style;
161
+ font-variation-settings: 'wght' $font-weight;
162
+ letter-spacing: 0;
163
+ line-height: 1.2;
164
+ text-decoration: $text-decoration;
165
+ text-transform: $text-transform;
166
+ }
134
167
 
135
- // Headings
168
+ @mixin text($token, $font-weight: 400, $text-transform: unset, $font-style: unset, $text-decoration: unset) {
136
169
  @if $token == 'blockquote' {
137
- @include hText(
138
- $heading-size1,
139
- $color: $primary-black,
140
- $transform-style: initial,
141
- $line-height: $heading-line-height-size1
142
- );
170
+ @include heading-styles($font-size-heading-large, $font-weight, $text-transform, $font-style);
143
171
  }
144
172
 
145
173
  @if $token == 'heading1' {
146
- @include hText($heading-size1, $line-height: $heading-line-height-size1, $transform-style: capitalize);
174
+ @include heading-styles($font-size-heading-large, $font-weight, $text-transform, $font-style);
147
175
  }
148
176
 
149
177
  @if $token == 'heading2' {
150
- @include hText($heading-size2, $line-height: $heading-line-height-size2, $transform-style: capitalize);
178
+ @include heading-styles($font-size-heading-large, $font-weight, $text-transform, $font-style);
151
179
  }
152
180
 
153
181
  @if $token == 'heading3' {
154
- @include hText($heading-size3, $line-height: $heading-line-height-size3, $transform-style: capitalize);
182
+ @include heading-styles($font-size-heading-medium, $font-weight, $text-transform, $font-style);
155
183
  }
156
184
 
157
185
  @if $token == 'heading4' {
158
- @include hText($heading-size4, $line-height: $heading-line-height-size4, $transform-style: capitalize);
186
+ @include heading-styles($font-size-heading-small, $font-weight, $text-transform, $font-style);
159
187
  }
160
188
 
161
189
  @if $token == 'heading5' {
162
- @include hText($heading-size5, $line-height: $heading-line-height-size5, $transform-style: capitalize);
163
- }
164
-
165
- @if $token == 'title1' {
166
- @include hText($heading-size1, $line-height: $heading-line-height-size1, $transform-style: uppercase);
190
+ @include body-styles($font-size-body-small, $font-weight, $text-transform, $font-style);
167
191
  }
168
192
 
169
- // the title2 token skips heading 2 because it's the same size currently as heading1
170
- @if $token == 'title2' {
171
- @include hText($heading-size3, $line-height: $heading-line-height-size3, $transform-style: uppercase);
193
+ @if $token == 'string1' {
194
+ @include heading-styles($font-size-heading-medium, $font-weight, $text-transform, $font-style);
172
195
  }
173
196
 
174
- @if $token == 'title3' {
175
- @include hText($heading-size4, $line-height: $heading-line-height-size4, $transform-style: uppercase);
197
+ @if $token == 'string2' {
198
+ @include body-styles($font-size-body-small, $font-weight, $text-transform, $font-style);
176
199
  }
177
200
 
178
- @if $token == 'title4' {
179
- @include hText($heading-size5, $line-height: $heading-line-height-size5, $transform-style: uppercase);
201
+ @if $token == 'string3' {
202
+ @include body-styles($font-size-body-small, $font-weight, $text-transform, $font-style);
180
203
  }
181
204
 
182
- // Body
183
205
  @if $token == 'body1' {
184
- @include pText($body-size1, $line-height: $body-line-height-size1);
206
+ @include body-styles($font-size-body-large, $font-weight, $text-transform, $font-style);
185
207
  }
186
208
 
187
209
  @if $token == 'body2' {
188
- @include pText($body-size2, $line-height: $body-line-height-size2);
210
+ @include body-styles($font-size-body-medium, $font-weight, $text-transform, $font-style);
189
211
  }
190
212
 
191
213
  @if $token == 'body3' {
192
- @include pText($body-size3, $line-height: $body-line-height-size3);
214
+ @include body-styles($font-size-body-small, $font-weight, $text-transform, $font-style);
193
215
  }
194
216
 
195
- // String
196
- @if $token == 'string1' {
197
- @include pText($string-size1, $line-height: $string-line-height-size1);
217
+ @if $token == 'link' {
218
+ @include link-styles($font-size: $font-size-link-medium);
198
219
  }
199
220
 
200
- @if $token == 'string2' {
201
- @include pText($string-size2, $line-height: $string-line-height-size2);
221
+ @if $token == 'button' {
222
+ @include body-styles($font-size-body-small, $font-weight, $text-transform, $font-style);
202
223
  }
203
224
 
204
- @if $token == 'string3' {
205
- @include pText($string-size3, $line-height: $string-line-height-size3);
225
+ @if $token == 'badge' {
226
+ @include label-styles($font-size: $font-size-label-small, $font-weight: 400, $text-transform: uppercase);
206
227
  }
207
228
 
208
- // SNW
209
229
  @if $token == 'snwHeaderLink' {
230
+ @include link-styles(
231
+ $font-size: $font-size-link-stylised,
232
+ $font-weight: 600,
233
+ $text-transform: uppercase,
234
+ $text-decoration: unset
235
+ );
210
236
  @include DistinctDisplay;
211
237
 
212
- font-size: $snw-header-link-size;
213
- font-variation-settings: 'wght' 400;
214
238
  letter-spacing: 1px;
215
- line-height: $snw-header-link-line-height;
216
- text-transform: uppercase;
217
239
  }
218
240
 
219
241
  @if $token == 'snwFlyoutLink' {
220
- @include Montserrat;
221
-
222
- font-size: $snw-flyout-link-size;
223
- font-variation-settings: 'wght' 400;
224
- letter-spacing: 1px;
225
- line-height: $snw-flyout-link-line-height;
226
- text-transform: capitalize;
242
+ @include link-styles($font-size: $font-size-link-large, $text-decoration: unset);
227
243
  }
228
244
 
229
245
  @if $token == 'snwHeadingHero1' {
230
- @include hText($snw-heading-hero-size1, $line-height: $snw-heading-hero-line-height1, $transform-style: uppercase);
246
+ @include display-styles($font-size-display-small, $font-weight, $text-transform: uppercase, $font-style: unset);
231
247
 
232
248
  text-align: center;
233
249
  }
234
250
 
235
251
  @if $token == 'snwHeadingHero2' {
236
- @include hText($snw-heading-hero-size2, $line-height: $snw-heading-hero-line-height2, $transform-style: uppercase);
252
+ @include heading-styles($font-size-heading-large, $font-weight, uppercase, $font-style);
237
253
 
238
254
  text-align: center;
239
255
  }
256
+
257
+ @if $token == 'title1' {
258
+ @include heading-styles($font-size-heading-large, $font-weight, uppercase, $font-style);
259
+ }
260
+
261
+ @if $token == 'title2' {
262
+ @include heading-styles($font-size-heading-medium, $font-weight, uppercase, $font-style);
263
+ }
264
+
265
+ @if $token == 'title3' {
266
+ @include heading-styles($font-size-heading-small, $font-weight, uppercase, $font-style);
267
+ }
268
+
269
+ @if $token == 'title4' {
270
+ @include body-styles($font-size-body-small, $font-weight, uppercase, $font-style);
271
+ }
272
+
273
+ @if $token == 'email' {
274
+ @include labelText($email);
275
+ }
276
+
277
+ @if $token == 'label' {
278
+ @include labelText($label);
279
+ }
280
+
281
+ @if $token == $displayMedium {
282
+ @include display-styles($font-size-display-medium, $font-weight, $text-transform: uppercase, $font-style: unset);
283
+ }
284
+
285
+ @if $token == $displaySmall {
286
+ @include display-styles($font-size-display-small, $font-weight, $text-transform: uppercase, $font-style: unset);
287
+ }
288
+
289
+ @if $token == $headingLarge {
290
+ @include heading-styles($font-size-heading-large, $font-weight, $text-transform, $font-style);
291
+ }
292
+
293
+ @if $token == $headingMedium {
294
+ @include heading-styles($font-size-heading-medium, $font-weight, $text-transform, $font-style);
295
+ }
296
+
297
+ @if $token == $headingSmall {
298
+ @include heading-styles($font-size-heading-small, $font-weight, $text-transform, $font-style);
299
+ }
300
+
301
+ @if $token == $headingExtraSmall {
302
+ @include heading-styles($font-size-heading-extra-small, $font-weight, $text-transform, $font-style);
303
+ }
304
+
305
+ @if $token == $bodyLarge {
306
+ @include body-styles($font-size-body-large, $font-weight, $text-transform, $font-style);
307
+ }
308
+
309
+ @if $token == $bodyMedium {
310
+ @include body-styles($font-size-body-medium, $font-weight, $text-transform, $font-style);
311
+ }
312
+
313
+ @if $token == $bodySmall {
314
+ @include body-styles($font-size-body-small, $font-weight, $text-transform, $font-style);
315
+ }
316
+
317
+ @if $token == $labelLarge {
318
+ @include label-styles($font-size: $font-size-label-large);
319
+ }
320
+
321
+ @if $token == $labelMedium {
322
+ @include label-styles($font-size: $font-size-label-medium);
323
+ }
324
+
325
+ @if $token == $labelSmall {
326
+ @include label-styles($font-size: $font-size-label-small);
327
+ }
328
+
329
+ @if $token == $linkStylised {
330
+ @include link-styles($font-size: $font-size-link-stylised, $text-transform: uppercase, $text-decoration: unset);
331
+ @include DistinctDisplay;
332
+
333
+ letter-spacing: 1px;
334
+ }
335
+
336
+ @if $token == $linkLarge {
337
+ @include link-styles($font-size-link-large);
338
+ }
339
+
340
+ @if $token == $linkMedium {
341
+ @include link-styles($font-size-link-medium);
342
+ }
343
+
344
+ @if $token == $linkSmall {
345
+ @include link-styles($font-size-link-small);
346
+ }
240
347
  }