@phillips/seldon 1.183.0 → 1.184.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.
@@ -1,22 +1,22 @@
1
- import { jsxs as c, jsx as l } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as u } from "react";
3
3
  import { getCommonProps as h } from "../../utils/index.js";
4
4
  import x from "../../node_modules/classnames/index.js";
5
5
  import $ from "../SeldonImage/SeldonImage.js";
6
- import { TextVariants as e } from "../Text/types.js";
7
- import r from "../Text/Text.js";
6
+ import { TextVariants as l } from "../Text/types.js";
7
+ import n from "../Text/Text.js";
8
8
  import "../Link/types.js";
9
9
  import v from "../Link/Link.js";
10
10
  const b = u(
11
- ({ className: d, imageSrc: a, label: n, header: o, description: m, linkElement: f = v, linkLabel: s, linkHref: p, ...i }, _) => {
11
+ ({ className: p, imageSrc: r, label: a, header: o, description: m, linkElement: d = v, linkLabel: s, linkHref: f, ...i }, _) => {
12
12
  const { className: t, ...N } = h(i, "Article");
13
- return /* @__PURE__ */ c("article", { ...N, className: x(t, d), ...i, ref: _, children: [
14
- a ? /* @__PURE__ */ l($, { aspectRatio: "16/9", src: a, alt: "bull" }) : null,
13
+ return /* @__PURE__ */ c("article", { ...N, className: x(t, p), ...i, ref: _, children: [
14
+ r ? /* @__PURE__ */ e($, { aspectRatio: "16/9", src: r, alt: "bull" }) : null,
15
15
  /* @__PURE__ */ c("div", { className: `${t}__content`, children: [
16
- n ? /* @__PURE__ */ l(r, { variant: e.label, className: `${t}__content-label`, children: n }) : null,
17
- o ? /* @__PURE__ */ l(r, { variant: e.heading3, className: `${t}__content-title`, children: o }) : null,
18
- m ? /* @__PURE__ */ l(r, { variant: e.body2, className: `${t}__content-description`, children: m }) : null,
19
- s ? /* @__PURE__ */ l(f, { href: p, className: `${t}__content-link`, children: s }) : null
16
+ a ? /* @__PURE__ */ e(n, { variant: l.label, className: `${t}__content-label`, children: a }) : null,
17
+ o ? /* @__PURE__ */ e(n, { variant: l.heading3, className: `${t}__content-title`, children: o }) : null,
18
+ m ? /* @__PURE__ */ e(n, { variant: l.body2, className: `${t}__content-description`, element: "p", children: m }) : null,
19
+ s ? /* @__PURE__ */ e(d, { href: f, className: `${t}__content-link`, children: s }) : null
20
20
  ] })
21
21
  ] });
22
22
  }
@@ -1,30 +1,22 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as x } from "react";
3
- import { getCommonProps as d, px as N } from "../../utils/index.js";
4
- import { TextVariants as T } from "./types.js";
5
- import { determineDefaultTextElement as C, determineTextClassName as u } from "./utils.js";
6
- import r from "../../node_modules/classnames/index.js";
7
- const $ = x(
8
- ({ children: a, className: n, element: l, variant: e = T.body2, align: m, isSkeletonLoading: p, ...o }, f) => {
9
- const c = l || C(e), { className: t, ...i } = d(o, "Text");
10
- return /* @__PURE__ */ s(
11
- c,
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as c } from "react";
3
+ import { getCommonProps as i, px as d } from "../../utils/index.js";
4
+ import { TextVariants as N } from "./types.js";
5
+ import { determineDefaultTextElement as T, determineTextClassName as C } from "./utils.js";
6
+ import u from "../../node_modules/classnames/index.js";
7
+ const $ = c(
8
+ ({ children: e, className: a, element: n, variant: m = N.body2, align: o, isSkeletonLoading: l, ...t }, p) => {
9
+ const f = n || T(m), { className: s, ...x } = i(t, "Text");
10
+ return /* @__PURE__ */ r(
11
+ f,
12
12
  {
13
- ...i,
14
- className: r(t, n, u(e), {
15
- [`${t}--${m}`]: !!m
13
+ ...x,
14
+ className: u(s, a, C(m), {
15
+ [`${s}--${o}`]: !!o
16
16
  }),
17
- ref: f,
18
- ...o,
19
- children: /* @__PURE__ */ s(
20
- "span",
21
- {
22
- className: r({
23
- [`${N}-skeleton`]: p
24
- }),
25
- children: a
26
- }
27
- )
17
+ ref: p,
18
+ ...t,
19
+ children: l ? /* @__PURE__ */ r("span", { className: `${d}-skeleton`, children: e }) : e
28
20
  }
29
21
  );
30
22
  }
@@ -1,10 +1,10 @@
1
- import { px as s } from "../../utils/index.js";
2
- import { TextVariants as t } from "./types.js";
3
- const i = (e = t.body1) => `${s}-text--${e.charAt(0).toLowerCase() + e.slice(1)}`, u = (e = t.body1) => {
4
- const r = e.toLowerCase();
5
- return e === t.blockquote ? "blockquote" : e.includes("body") ? "p" : e.includes("string") || e.includes("title") ? "span" : e === t.label ? "label" : r.includes("heading") ? `h${isNaN(parseInt(e.slice(-1))) ? 3 : parseInt(e.slice(-1))}` : "span";
1
+ import { px as n } from "../../utils/index.js";
2
+ import { TextVariants as r } from "./types.js";
3
+ const o = (e = r.body1) => `${n}-text--${e.charAt(0).toLowerCase() + e.slice(1)}`, u = (e = r.body1) => {
4
+ let t = e.toLowerCase();
5
+ return e === r.blockquote ? "blockquote" : e.includes("body") || e.includes("string") || e.includes("title") ? "span" : e === r.label ? "label" : t.includes("heading") ? (t = t.replace("italic", ""), `h${isNaN(parseInt(t.slice(-1))) ? 3 : parseInt(t.slice(-1))}`) : "span";
6
6
  };
7
7
  export {
8
8
  u as determineDefaultTextElement,
9
- i as determineTextClassName
9
+ o as determineTextClassName
10
10
  };
@@ -1,12 +1,12 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { forwardRef as e } from "react";
3
- import { getCommonProps as t } from "../../utils/index.js";
4
- const c = e(({ children: a, ...o }) => {
5
- const { className: s, ...r } = t(o, "SaleCardActions");
6
- return /* @__PURE__ */ m("div", { className: `${s}__ctas`, ...r, children: a });
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as t } from "react";
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 });
7
7
  });
8
- c.displayName = "SaleCardActions";
8
+ i.displayName = "SaleCardActions";
9
9
  export {
10
- c as SaleCardActions,
11
- c as default
10
+ i as SaleCardActions,
11
+ i as default
12
12
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as a, jsxs as _ } from "react/jsx-runtime";
2
- import $ from "../../node_modules/classnames/index.js";
2
+ import v from "../../node_modules/classnames/index.js";
3
3
  import { forwardRef as b } from "react";
4
4
  import "../../components/Link/types.js";
5
5
  import g from "../../components/Link/Link.js";
@@ -10,28 +10,35 @@ const y = b(
10
10
  ({
11
11
  className: p,
12
12
  children: m,
13
- label: o,
14
- sessionTimesLabel: s,
13
+ label: s,
14
+ sessionTimesLabel: o,
15
15
  sessionTimes: n,
16
16
  viewingTimes: t,
17
17
  location: c,
18
18
  mapLink: d,
19
19
  onClose: V,
20
- linkElement: f = g,
20
+ linkElement: N = g,
21
21
  ...h
22
- }, N) => {
23
- const { className: r, ...v } = x(h, "ViewingDetails");
24
- return /* @__PURE__ */ a("div", { ...v, ...h, className: $(r, p), ref: N, children: /* @__PURE__ */ _("div", { className: `${r}__content`, children: [
25
- m && /* @__PURE__ */ a("div", { className: `${r}__children`, children: m }),
26
- s && /* @__PURE__ */ a(l, { variant: i.heading4, children: s }),
27
- n && n.length > 0 && n.map((e) => /* @__PURE__ */ _("div", { children: [
28
- e.sessionLabel && /* @__PURE__ */ a(l, { variant: i.heading5, className: `${r}__label`, children: e.sessionLabel }),
29
- e.sessionTime && /* @__PURE__ */ a(l, { variant: i.body2, className: `${r}__text`, children: e.sessionTime })
30
- ] }, `${e.sessionLabel ?? ""}-${e.sessionTime ?? ""}`)),
22
+ }, 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 }),
31
26
  o && /* @__PURE__ */ a(l, { variant: i.heading4, children: o }),
32
- t && t.length > 0 && t.map((e) => /* @__PURE__ */ a(l, { variant: i.body2, className: `${r}__label`, children: e }, e)),
33
- c && /* @__PURE__ */ a(l, { variant: i.body2, className: `${r}__location`, children: c }),
34
- d && /* @__PURE__ */ a(l, { variant: i.body2, className: `${r}__map-link`, children: /* @__PURE__ */ a(f, { href: d, children: "(Map)" }) })
27
+ n && n.length > 0 && n.map((r) => /* @__PURE__ */ _(
28
+ "div",
29
+ {
30
+ className: `${e}__session`,
31
+ 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
+ ]
35
+ },
36
+ `${r.sessionLabel ?? ""}-${r.sessionTime ?? ""}`
37
+ )),
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)" }) })
35
42
  ] }) });
36
43
  }
37
44
  );
@@ -22,22 +22,29 @@
22
22
  }
23
23
  }
24
24
 
25
- h1.#{$px}-text,
26
- blockquote.#{$px}-text {
25
+ .#{$px}-text--blockquote,
26
+ .#{$px}-text--heading1,
27
+ .#{$px}-text--snwHeadingHero1,
28
+ .#{$px}-text--snwHeadingHero2 {
27
29
  margin-bottom: $spacing-lg;
28
30
  }
29
31
 
30
- h2.#{$px}-text {
32
+ .#{$px}-text--heading2 {
31
33
  margin-bottom: $spacing-lg;
32
34
  }
33
- h3.#{$px}-text {
35
+
36
+ .#{$px}-text--heading3,
37
+ .#{$px}-text--heading3Italic {
34
38
  margin-bottom: $spacing-md;
35
39
  }
36
- h4.#{$px}-text,
37
- h5.#{$px}-text,
38
- h6.#{$px}-text {
40
+
41
+ .#{$px}-text--heading4,
42
+ .#{$px}-text--heading4Italic,
43
+ .#{$px}-text--heading5,
44
+ .#{$px}-text--heading6 {
39
45
  margin-bottom: $spacing-sm;
40
46
  }
47
+
41
48
  p.#{$px}-text {
42
49
  margin-bottom: $spacing-md;
43
50
  }
@@ -68,7 +68,8 @@
68
68
 
69
69
  & .#{$px}-object-tile__maker,
70
70
  & .#{$px}-object-tile__model,
71
- & .#{$px}-object-tile__reference-number {
71
+ & .#{$px}-object-tile__reference-number,
72
+ & .#{$px}-object-tile__title {
72
73
  display: block;
73
74
  margin-bottom: 0;
74
75
  }
@@ -5,17 +5,20 @@
5
5
  align-items: flex-start;
6
6
  display: flex;
7
7
  flex-direction: column;
8
- justify-content: space-between;
8
+ gap: $spacing-md;
9
+ justify-content: center;
9
10
  max-width: none;
10
- padding: 40px 48px;
11
+ padding: $spacing-lg $spacing-md;
11
12
 
12
13
  h1 {
13
14
  white-space: nowrap;
14
15
  }
15
16
 
16
17
  h1,
17
- p {
18
+ p,
19
+ span {
18
20
  color: $pure-black;
21
+ margin: 0;
19
22
  max-width: 100%;
20
23
  min-height: 48px;
21
24
  text-align: left;
@@ -26,7 +29,8 @@
26
29
  flex-direction: row;
27
30
 
28
31
  h1,
29
- p {
32
+ p,
33
+ span {
30
34
  max-width: 50%;
31
35
  width: 50%;
32
36
  }
@@ -15,9 +15,14 @@
15
15
  }
16
16
 
17
17
  &__label {
18
+ display: block;
18
19
  margin-bottom: 0;
19
20
  }
20
21
 
22
+ &__session {
23
+ margin-bottom: $spacing-sm;
24
+ }
25
+
21
26
  &__close-icon {
22
27
  cursor: pointer;
23
28
  position: absolute;
@@ -30,6 +35,7 @@
30
35
  }
31
36
 
32
37
  &__location {
38
+ display: block;
33
39
  margin-bottom: $spacing-xsm;
34
40
  margin-top: $spacing-md;
35
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.183.0",
3
+ "version": "1.184.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"