@phillips/seldon 1.169.1 → 1.169.2

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,6 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
- import { SaleCardVariants } from './types';
3
2
  import { SaleCardActions } from './SaleCardActions';
3
+ import { SaleCardVariants } from './types';
4
4
  /** * Props for the SaleCard component. */
5
5
  export interface SaleCardProps extends ComponentProps<'div'> {
6
6
  /** * The source URL of the image to be displayed. */
@@ -20,7 +20,7 @@ export interface SaleCardProps extends ComponentProps<'div'> {
20
20
  /** * The text to be displayed for the modal link. */
21
21
  modalButtonText?: string;
22
22
  /** * The callback function to be executed when the modal link is clicked. */
23
- modalButtonOnClick?: () => void;
23
+ modalButtonOnClick?: (event: React.MouseEvent<HTMLElement>) => void;
24
24
  /** * The variant of the SaleCard component.
25
25
  * - 'default': The default style of the SaleCard component.
26
26
  * - 'relatedSaleTile': A variant with a smaller image size and horizontal layout on mobile devices.
@@ -1,15 +1,15 @@
1
1
  import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as E } from "react";
3
- import { getCommonProps as b } from "../../utils/index.js";
4
- import y from "../../node_modules/classnames/index.js";
2
+ import E from "../../node_modules/classnames/index.js";
3
+ import { forwardRef as b } from "react";
4
+ import y from "../../components/Button/Button.js";
5
+ import { ButtonVariants as A } from "../../components/Button/types.js";
6
+ import L from "../../components/SeldonImage/SeldonImage.js";
5
7
  import { TextVariants as e } from "../../components/Text/types.js";
6
8
  import i from "../../components/Text/Text.js";
7
- import A from "../../components/SeldonImage/SeldonImage.js";
8
- import L from "../../components/Button/Button.js";
9
- import { ButtonVariants as T } from "../../components/Button/types.js";
10
- import { SSRMediaQuery as x } from "../../providers/SeldonProvider/utils.js";
9
+ import { SSRMediaQuery as T } from "../../providers/SeldonProvider/utils.js";
10
+ import { getCommonProps as x } from "../../utils/index.js";
11
11
  import { SaleCardVariants as d } from "./types.js";
12
- const I = E(
12
+ const I = b(
13
13
  ({
14
14
  className: p,
15
15
  imageSrc: o,
@@ -25,11 +25,11 @@ const I = E(
25
25
  children: g,
26
26
  ...c
27
27
  }, u) => {
28
- const { className: a, ...v } = b(c, "SaleCard"), S = y(a, p, {
28
+ const { className: a, ...v } = x(c, "SaleCard"), S = E(a, p, {
29
29
  [`${a}--${s}`]: s
30
30
  }), C = { ...v, ...c };
31
31
  return /* @__PURE__ */ m("article", { ...C, className: S, ref: u, children: [
32
- o ? /* @__PURE__ */ r(A, { src: o, alt: _, className: `${a}__image` }) : null,
32
+ o ? /* @__PURE__ */ r(L, { src: o, alt: _, className: `${a}__image` }) : null,
33
33
  /* @__PURE__ */ m("div", { className: `${a}__details`, children: [
34
34
  /* @__PURE__ */ r(i, { variant: e.badge, className: `${a}__auction-type`, children: f }),
35
35
  /* @__PURE__ */ r(i, { variant: e.title3, children: h }),
@@ -38,17 +38,17 @@ const I = E(
38
38
  /* @__PURE__ */ r(i, { variant: e.string2, children: $ }),
39
39
  /* @__PURE__ */ r(i, { variant: e.string2, children: N }),
40
40
  n && l && /* @__PURE__ */ r("div", { className: `${a}__modal-link`, children: /* @__PURE__ */ r(
41
- L,
41
+ y,
42
42
  {
43
43
  onClick: l,
44
- variant: T.tertiary,
44
+ variant: A.tertiary,
45
45
  className: `${a}__modal-link-button`,
46
46
  children: n
47
47
  }
48
48
  ) })
49
49
  ] })
50
50
  ] }),
51
- s !== d.RELATED_SALE_TILE && /* @__PURE__ */ r(x.Media, { greaterThanOrEqual: "md", children: g })
51
+ s !== d.RELATED_SALE_TILE && /* @__PURE__ */ r(T.Media, { greaterThanOrEqual: "md", children: g })
52
52
  ] });
53
53
  }
54
54
  );
@@ -21,3 +21,4 @@ export declare const SaleCardWithPrimaryCTA: () => import("react/jsx-runtime").J
21
21
  export declare const SaleCardWithSecondaryCTA: () => 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
+ export declare const SaleCardWithLink: () => import("react/jsx-runtime").JSX.Element;
@@ -79,6 +79,7 @@
79
79
 
80
80
  &__modal-link-button {
81
81
  padding: 0;
82
+ text-align: left;
82
83
  text-transform: none;
83
84
 
84
85
  @include underline;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.169.1",
3
+ "version": "1.169.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"