@phillips/seldon 1.192.0 → 1.193.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.
@@ -5,38 +5,38 @@ import y from "../../components/Button/Button.js";
5
5
  import { ButtonVariants as A } from "../../components/Button/types.js";
6
6
  import L from "../../components/SeldonImage/SeldonImage.js";
7
7
  import { TextVariants as e } from "../../components/Text/types.js";
8
- import i from "../../components/Text/Text.js";
8
+ import s from "../../components/Text/Text.js";
9
9
  import { SSRMediaQuery as T } from "../../providers/SeldonProvider/utils.js";
10
10
  import { getCommonProps as x } from "../../utils/index.js";
11
- import { SaleCardVariants as d } from "./types.js";
11
+ import { SaleCardVariants as _ } from "./types.js";
12
12
  const I = b(
13
13
  ({
14
14
  className: p,
15
- imageSrc: o,
16
- imageAlt: _ = "Auction Image",
17
- auctionType: f,
15
+ imageSrc: t,
16
+ imageAlt: f = "Auction Image",
17
+ auctionType: N,
18
18
  titleText: h,
19
- date: N,
20
- location: $,
21
- badgeText: t,
19
+ date: $,
20
+ location: g,
21
+ badgeText: o,
22
22
  modalButtonOnClick: l,
23
23
  modalButtonText: n,
24
- variant: s = d.DEFAULT,
25
- children: g,
26
- ...c
24
+ variant: i = _.DEFAULT,
25
+ children: c,
26
+ ...d
27
27
  }, u) => {
28
- const { className: a, ...v } = x(c, "SaleCard"), S = E(a, p, {
29
- [`${a}--${s}`]: s
30
- }), C = { ...v, ...c };
28
+ const { className: a, ...v } = x(d, "SaleCard"), S = E(a, p, {
29
+ [`${a}--${i}`]: i
30
+ }), C = { ...v, ...d };
31
31
  return /* @__PURE__ */ m("article", { ...C, className: S, ref: u, children: [
32
- o ? /* @__PURE__ */ r(L, { src: o, alt: _, className: `${a}__image` }) : null,
32
+ t ? /* @__PURE__ */ r(L, { src: t, alt: f, className: `${a}__image` }) : null,
33
33
  /* @__PURE__ */ m("div", { className: `${a}__details`, children: [
34
- /* @__PURE__ */ r(i, { variant: e.badge, className: `${a}__auction-type`, children: f }),
35
- /* @__PURE__ */ r(i, { variant: e.title3, children: h }),
36
- t && /* @__PURE__ */ r(i, { variant: e.badge, className: `${a}__badge`, children: t }),
34
+ /* @__PURE__ */ r(s, { variant: e.badge, className: `${a}__auction-type`, children: N }),
35
+ /* @__PURE__ */ r(s, { variant: e.title3, children: h }),
36
+ o && /* @__PURE__ */ r(s, { variant: e.badge, className: `${a}__badge`, children: o }),
37
37
  /* @__PURE__ */ m("div", { className: `${a}__info`, children: [
38
- /* @__PURE__ */ r(i, { variant: e.string2, children: $ }),
39
- /* @__PURE__ */ r(i, { variant: e.string2, children: N }),
38
+ /* @__PURE__ */ r(s, { variant: e.string2, children: g }),
39
+ /* @__PURE__ */ r(s, { variant: e.string2, children: $ }),
40
40
  n && l && /* @__PURE__ */ r("div", { className: `${a}__modal-link`, children: /* @__PURE__ */ r(
41
41
  y,
42
42
  {
@@ -48,7 +48,7 @@ const I = b(
48
48
  ) })
49
49
  ] })
50
50
  ] }),
51
- s !== d.RELATED_SALE_TILE && /* @__PURE__ */ r(T.Media, { greaterThanOrEqual: "md", children: g })
51
+ i !== _.RELATED_SALE_TILE && c && /* @__PURE__ */ r("div", { className: `${a}__ctas`, children: /* @__PURE__ */ r(T.Media, { greaterThanOrEqual: "md", children: c }) })
52
52
  ] });
53
53
  }
54
54
  );
@@ -20,7 +20,6 @@
20
20
  min-width: 100%;
21
21
 
22
22
  @include media($breakpoint-md) {
23
- aspect-ratio: 107/60;
24
23
  min-width: auto;
25
24
  }
26
25
 
@@ -43,6 +42,18 @@
43
42
  }
44
43
  }
45
44
 
45
+ &__ctas {
46
+ flex: 0 0 0%;
47
+
48
+ @include media($breakpoint-md) {
49
+ flex-basis: 191px;
50
+ }
51
+
52
+ @include media($breakpoint-lg) {
53
+ flex-basis: 280px;
54
+ }
55
+ }
56
+
46
57
  &__date_info {
47
58
  display: flex;
48
59
  flex-direction: row;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.192.0",
3
+ "version": "1.193.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"