@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.
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/components/AddToCalendar/AddToCalendar.js +24 -25
- package/dist/components/Article/Article.js +17 -17
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Button/Button.js +71 -53
- package/dist/components/Button/Button.stories.d.ts +7 -1
- package/dist/components/ComboBox/ComboBox.js +33 -29
- package/dist/components/ComposedModal/ComposedModal.js +33 -33
- package/dist/components/ComposedModal/ComposedModal.stories.d.ts +1 -0
- package/dist/components/Countdown/Countdown.js +90 -51
- package/dist/components/Countdown/Duration.d.ts +3 -1
- package/dist/components/Countdown/Duration.js +17 -9
- package/dist/components/Countdown/types.d.ts +2 -1
- package/dist/components/Countdown/types.js +1 -1
- package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +21 -21
- package/dist/components/Detail/Detail.d.ts +2 -0
- package/dist/components/Detail/Detail.js +26 -15
- package/dist/components/Detail/Detail.stories.d.ts +9 -2
- package/dist/components/Drawer/DrawerHeader.js +22 -20
- package/dist/components/ExitGateCard/ExitGateCard.js +29 -29
- package/dist/components/FavoritingTileButton/FavoritingTileButton.js +30 -31
- package/dist/components/Filter/Filter.js +36 -34
- package/dist/components/Filter/FilterHeader.d.ts +4 -0
- package/dist/components/Filter/FilterHeader.js +30 -22
- package/dist/components/Input/Input.js +43 -39
- package/dist/components/Input/Input.stories.d.ts +16 -0
- package/dist/components/Link/Link.js +11 -11
- package/dist/components/Link/Link.stories.d.ts +17 -1
- package/dist/components/Link/types.d.ts +9 -4
- package/dist/components/Link/types.js +3 -3
- package/dist/components/LinkBlock/LinkBlock.js +19 -11
- package/dist/components/Modal/Modal.d.ts +0 -4
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Navigation/NavigationItem/NavigationItem.js +31 -23
- package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +29 -29
- package/dist/components/Navigation/NavigationList/NavigationList.js +5 -5
- package/dist/components/ProgressIndicator/ProgressIndicator.js +22 -22
- package/dist/components/Search/Search.js +55 -53
- package/dist/components/Search/SearchResults/SearchResults.js +16 -16
- package/dist/components/Select/Select.d.ts +4 -0
- package/dist/components/Select/Select.js +51 -45
- package/dist/components/Select/Select.stories.d.ts +1 -0
- package/dist/components/Tabs/TabsContainer.js +1 -1
- package/dist/components/Tags/Tags.js +32 -30
- package/dist/components/Text/Text.js +17 -9
- package/dist/components/Text/types.d.ts +42 -1
- package/dist/components/Text/types.js +3 -3
- package/dist/components/Text/utils.js +40 -7
- package/dist/components/TextArea/TextArea.js +38 -34
- package/dist/components/Toast/Toast.js +4 -4
- package/dist/node_modules/ics/dist/index.js +2 -2
- package/dist/node_modules/ics/dist/pipeline/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/patterns/AccountPageHeader/AccountPageHeader.js +45 -28
- package/dist/patterns/BidSnapshot/BidMessage.d.ts +6 -1
- package/dist/patterns/BidSnapshot/BidMessage.js +14 -13
- package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +7 -1
- package/dist/patterns/BidSnapshot/BidSnapshot.js +84 -66
- package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +100 -0
- package/dist/patterns/CountryPicker/CountryPickerCountryList.js +5 -5
- package/dist/patterns/CountryPicker/CountryPickerModal.js +8 -8
- package/dist/patterns/CountryPicker/CountryPickerOption.js +22 -20
- package/dist/patterns/CountryPicker/CountryPickerTrigger.js +39 -38
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +52 -52
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.stories.d.ts +1 -0
- package/dist/patterns/FiltersInline/FilterButton.js +41 -25
- package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +50 -52
- package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +31 -31
- package/dist/patterns/HeroBanner/HeroBanner.js +21 -21
- package/dist/patterns/LanguageSelector/LanguageSelector.js +34 -34
- package/dist/patterns/ObjectTile/ObjectTile.js +57 -72
- package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +36 -0
- package/dist/patterns/PhoneNumberInput/PhoneNumberInput.js +7 -6
- package/dist/patterns/SaleCard/SaleCard.js +37 -45
- package/dist/patterns/SaleCard/SaleCard.stories.d.ts +1 -1
- package/dist/patterns/SaleCard/SaleCardActions.js +9 -8
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +49 -49
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +19 -12
- package/dist/patterns/Social/Social.js +20 -20
- package/dist/patterns/Subscribe/Subscribe.stories.d.ts +0 -1
- package/dist/patterns/TextBanner/TextBanner.js +12 -12
- package/dist/patterns/UserManagement/UserManagement.js +13 -13
- package/dist/patterns/ViewingDetails/ViewingDetails.d.ts +4 -0
- package/dist/patterns/ViewingDetails/ViewingDetails.js +36 -34
- package/dist/patterns/ViewingDetails/ViewingDetails.stories.d.ts +2 -0
- package/dist/patterns/ViewingDetails/ViewingDetailsMock.d.ts +2 -0
- package/dist/scss/_reset.scss +4 -0
- package/dist/scss/_type.scss +172 -65
- package/dist/scss/_vars.scss +92 -197
- package/dist/scss/_vars.scss.js +94 -199
- package/dist/scss/componentStyles.scss +178 -0
- package/dist/scss/components/Accordion/_accordion.scss +6 -4
- package/dist/scss/components/Breadcrumb/_breadcrumb.scss +1 -1
- package/dist/scss/components/Button/_button.scss +33 -7
- package/dist/scss/components/ComboBox/_combobox.scss +7 -5
- package/dist/scss/components/ComposedModal/_composedModal.scss +0 -4
- package/dist/scss/components/Countdown/_countdown.scss +8 -9
- package/dist/scss/components/Countdown/_duration.scss +0 -2
- package/dist/scss/components/DatePicker/_datePicker.scss +11 -10
- package/dist/scss/components/Detail/_detail.scss +15 -6
- package/dist/scss/components/Divider/_divider.scss +3 -3
- package/dist/scss/components/Drawer/_drawerHeader.scss +0 -7
- package/dist/scss/components/Dropdown/_dropdown.scss +2 -2
- package/dist/scss/components/FavoritingTileButton/_favoritingTileButton.scss +5 -0
- package/dist/scss/components/Filter/_filter.scss +23 -8
- package/dist/scss/components/Icon/_icon.stories.scss +1 -1
- package/dist/scss/components/IconButton/_iconButton.scss +3 -5
- package/dist/scss/components/Input/_input.scss +22 -14
- package/dist/scss/components/Link/_link.scss +13 -8
- package/dist/scss/components/LinkBlock/_linkBlock.scss +5 -1
- package/dist/scss/components/LinkList/_linkList.scss +8 -0
- package/dist/scss/components/Modal/_modal.scss +2 -2
- package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +33 -14
- package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +1 -1
- package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +2 -2
- package/dist/scss/components/NotificationBanner/_notificationBanner.scss +4 -10
- package/dist/scss/components/ProgressIndicator/_progressIndicator.scss +5 -0
- package/dist/scss/components/Search/SearchResults/_searchResults.scss +5 -0
- package/dist/scss/components/Search/_search.scss +9 -10
- package/dist/scss/components/Search/_searchButton.scss +0 -1
- package/dist/scss/components/Select/_select.scss +8 -3
- package/dist/scss/components/Tabs/_tabs.scss +4 -5
- package/dist/scss/components/Tags/_tags.scss +0 -2
- package/dist/scss/components/TextArea/_textArea.scss +2 -4
- package/dist/scss/components/TextSymbol/_textSymbol.scss +2 -2
- package/dist/scss/patterns/AccountPageHeader/_accountPageHeader.scss +4 -0
- package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +9 -10
- package/dist/scss/patterns/CountryPicker/_countryPickerModal.scss +4 -0
- package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +3 -0
- package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +4 -7
- package/dist/scss/patterns/DetailList/_detailList.scss +4 -0
- package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +6 -8
- package/dist/scss/patterns/FilterMenu/_filterMenu.scss +2 -1
- package/dist/scss/patterns/FiltersInline/_filterButton.scss +11 -2
- package/dist/scss/patterns/FiltersInline/_filterDropdownMenu.scss +1 -9
- package/dist/scss/patterns/FiltersInline/_filtersInline.scss +5 -0
- package/dist/scss/patterns/HeroBanner/_heroBanner.scss +13 -6
- package/dist/scss/patterns/ObjectTile/_objectTile.scss +13 -12
- package/dist/scss/patterns/PhoneNumberInput/_phoneNumberInput.scss +9 -2
- package/dist/scss/patterns/SaleCard/_saleCard.scss +13 -22
- package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +16 -3
- package/dist/scss/patterns/Social/_social.scss +4 -1
- package/dist/scss/patterns/Subscribe/_subscribe.scss +3 -3
- package/dist/scss/patterns/TextBanner/_textBanner.scss +9 -3
- package/dist/scss/patterns/ViewingDetails/_viewingDetails.scss +15 -3
- package/dist/scss/site-furniture/Footer/_footer.scss +8 -2
- package/dist/scss/site-furniture/Header/_header.scss +8 -4
- package/dist/site-furniture/Footer/Footer.js +4 -4
- package/package.json +4 -3
|
@@ -1,20 +1,27 @@
|
|
|
1
|
-
import { jsxs as t, jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
24
|
+
f.displayName = "SaleHeaderBrowseAuctions";
|
|
18
25
|
export {
|
|
19
|
-
|
|
26
|
+
f as default
|
|
20
27
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import { ButtonVariants as
|
|
7
|
-
import { TextVariants as
|
|
8
|
-
import
|
|
9
|
-
const b =
|
|
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:
|
|
12
|
-
children:
|
|
13
|
-
titleText:
|
|
14
|
-
buttonText:
|
|
15
|
-
onSubscribeClick:
|
|
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
|
-
},
|
|
18
|
-
const { className:
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
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
|
);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
5
|
-
import { TextVariants as
|
|
6
|
-
import
|
|
7
|
-
const x =
|
|
8
|
-
({ headerText:
|
|
9
|
-
const { className: e, ...
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
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
|
|
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
|
|
6
|
-
import { TextVariants as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
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:
|
|
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"), _ =
|
|
22
|
-
return /* @__PURE__ */ o("div", { ...N, className: $(n, d), ...c, ref: p, children: L && /* @__PURE__ */ o(x, { children: _ ? /* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */ o(
|
|
24
|
-
/* @__PURE__ */ o(
|
|
25
|
-
] }) : /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */ o(
|
|
27
|
-
/* @__PURE__ */ o(
|
|
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
|
|
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
|
|
4
|
-
import "../../components/Link/types.js";
|
|
5
|
-
import
|
|
6
|
-
import { TextVariants as
|
|
7
|
-
import
|
|
8
|
-
import { getCommonProps as
|
|
9
|
-
const
|
|
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:
|
|
12
|
-
children:
|
|
13
|
-
label:
|
|
14
|
-
sessionTimesLabel:
|
|
15
|
-
sessionTimes:
|
|
16
|
-
viewingTimes:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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:
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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: `${
|
|
32
|
+
className: `${a}__session`,
|
|
31
33
|
children: [
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
`${
|
|
38
|
+
`${l.sessionLabel ?? ""}-${l.sessionTime ?? ""}`
|
|
37
39
|
)),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
47
|
+
k.displayName = "ViewingDetails";
|
|
46
48
|
export {
|
|
47
|
-
|
|
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
|
};
|
package/dist/scss/_reset.scss
CHANGED
package/dist/scss/_type.scss
CHANGED
|
@@ -110,131 +110,238 @@
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
@mixin
|
|
114
|
-
|
|
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
|
-
|
|
120
|
-
|
|
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
|
-
|
|
124
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
128
|
+
@mixin body-styles($font-size, $font-weight: 400, $text-transform: unset, $font-style: unset) {
|
|
129
|
+
@include Montserrat;
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
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
|
-
|
|
168
|
+
@mixin text($token, $font-weight: 400, $text-transform: unset, $font-style: unset, $text-decoration: unset) {
|
|
136
169
|
@if $token == 'blockquote' {
|
|
137
|
-
@include
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
170
|
-
|
|
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 == '
|
|
175
|
-
@include
|
|
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 == '
|
|
179
|
-
@include
|
|
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
|
|
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
|
|
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
|
|
214
|
+
@include body-styles($font-size-body-small, $font-weight, $text-transform, $font-style);
|
|
193
215
|
}
|
|
194
216
|
|
|
195
|
-
|
|
196
|
-
|
|
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 == '
|
|
201
|
-
@include
|
|
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 == '
|
|
205
|
-
@include
|
|
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
|
|
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
|
|
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
|
|
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
|
}
|