@phillips/seldon 1.92.0 → 1.93.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 (42) hide show
  1. package/dist/assets/PhillipsLogo.svg.js +2 -2
  2. package/dist/assets/favorite.svg.js +5 -0
  3. package/dist/assets/icons.d.ts +1 -0
  4. package/dist/components/Countdown/Countdown.d.ts +4 -0
  5. package/dist/components/Countdown/Countdown.js +54 -42
  6. package/dist/components/Countdown/Duration.d.ts +2 -1
  7. package/dist/components/Countdown/Duration.js +7 -8
  8. package/dist/components/Detail/Detail.d.ts +2 -0
  9. package/dist/components/Detail/Detail.js +19 -13
  10. package/dist/components/Detail/Detail.stories.d.ts +1 -0
  11. package/dist/components/SeldonImage/SeldonImage.js +27 -26
  12. package/dist/index.d.ts +3 -0
  13. package/dist/index.js +199 -190
  14. package/dist/patterns/BidSnapshot/BidMessage.d.ts +27 -0
  15. package/dist/patterns/BidSnapshot/BidMessage.js +22 -0
  16. package/dist/patterns/BidSnapshot/BidMessage.test.d.ts +1 -0
  17. package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +67 -0
  18. package/dist/patterns/BidSnapshot/BidSnapshot.js +61 -0
  19. package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +27 -0
  20. package/dist/patterns/BidSnapshot/BidSnapshot.test.d.ts +1 -0
  21. package/dist/patterns/BidSnapshot/index.d.ts +2 -0
  22. package/dist/patterns/BidSnapshot/types.d.ts +4 -0
  23. package/dist/patterns/BidSnapshot/types.js +4 -0
  24. package/dist/patterns/ObjectTile/ObjectTile.d.ts +69 -0
  25. package/dist/patterns/ObjectTile/ObjectTile.js +94 -0
  26. package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +41 -0
  27. package/dist/patterns/ObjectTile/ObjectTile.test.d.ts +1 -0
  28. package/dist/patterns/ObjectTile/index.d.ts +1 -0
  29. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.d.ts +2 -2
  30. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +17 -17
  31. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.stories.d.ts +3 -3
  32. package/dist/scss/_vars.scss +5 -1
  33. package/dist/scss/componentStyles.scss +2 -0
  34. package/dist/scss/components/Countdown/_countdown.scss +8 -0
  35. package/dist/scss/components/Countdown/_duration.scss +5 -4
  36. package/dist/scss/components/Detail/_detail.scss +20 -0
  37. package/dist/scss/components/SeldonImage/_seldonImage.scss +12 -4
  38. package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +48 -0
  39. package/dist/scss/patterns/ObjectTile/_objectTile.scss +61 -0
  40. package/dist/types/commonTypes.d.ts +5 -0
  41. package/dist/types/commonTypes.js +2 -1
  42. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import * as e from "react";
2
- const l = (t) => /* @__PURE__ */ e.createElement("svg", { "data-testid": "header-logo-svg", viewBox: "0 0 131 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("g", { id: "Logo/ HP Button", clipPath: "url(#clip0_3288_4057)" }, /* @__PURE__ */ e.createElement("path", { id: "Phillips Logo", d: "M54.8166 0.274027H52.6224V13.726H63.7504V11.6083H54.8166V0.274027ZM41.3171 13.7273H43.5119V0.274027H41.3171V13.7273ZM21.276 0.274027H19.1214V13.726H21.2566V8.86215H30.0526V13.726H32.2079V0.274027H30.0526V6.80339H21.2566L21.276 0.274027ZM87.8477 13.7273H90.0425V0.274027H87.8477V13.7273ZM118.23 10.402L117.489 12.3843C119.214 13.3651 122.153 14 124.23 14C128.07 14 130.48 12.4912 130.48 9.84295C130.48 6.72565 127.521 6.17565 124.309 5.86211C122.252 5.66647 120.096 5.50969 120.096 4.01971C120.096 2.86206 121.135 2.11772 123.898 2.11772C125.543 2.11772 127.444 2.49021 129.031 3.15747L129.716 1.157C127.953 0.39193 125.817 0 123.936 0C120.058 0 117.863 1.52885 117.863 4.01971C117.863 7.1571 120.861 7.7058 124.034 7.99991C126.091 8.1962 128.227 8.37305 128.227 9.8436C128.227 11.0401 127.15 11.8829 124.25 11.8829C122.467 11.8823 120.004 11.3485 118.23 10.402ZM72.4298 0.274027H70.2357V13.726H81.3637V11.6083H72.4298V0.274027ZM106.676 0.274027H99.1724V13.726H101.367V9.27417H106.676C109.811 9.27417 111.614 7.39161 111.614 4.76406C111.614 2.15659 109.85 0.274027 106.676 0.274027ZM106.421 7.1571H101.367V2.39174H106.421C108.321 2.39174 109.379 3.27407 109.379 4.7647C109.38 6.25533 108.361 7.1571 106.421 7.1571ZM7.50343 0.274027H0V13.726H2.19414V9.27417H7.50343C10.638 9.27417 12.4399 7.39161 12.4399 4.76406C12.4406 2.15659 10.6775 0.274027 7.50343 0.274027ZM7.24907 7.1571H2.19414V2.39174H7.24907C9.14936 2.39174 10.2069 3.27407 10.2069 4.7647C10.2063 6.25533 9.18819 7.1571 7.24907 7.1571Z", fill: "black" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("clipPath", { id: "clip0_3288_4057" }, /* @__PURE__ */ e.createElement("rect", { width: 130.667, height: 14, fill: "white" }))));
2
+ const t = (l) => /* @__PURE__ */ e.createElement("svg", { "data-testid": "header-logo-svg", viewBox: "0 0 131 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ e.createElement("g", { id: "Logo/ HP Button", clipPath: "url(#clip0_3288_4057)" }, /* @__PURE__ */ e.createElement("path", { className: "phillips-logo", id: "Phillips Logo", d: "M54.8166 0.274027H52.6224V13.726H63.7504V11.6083H54.8166V0.274027ZM41.3171 13.7273H43.5119V0.274027H41.3171V13.7273ZM21.276 0.274027H19.1214V13.726H21.2566V8.86215H30.0526V13.726H32.2079V0.274027H30.0526V6.80339H21.2566L21.276 0.274027ZM87.8477 13.7273H90.0425V0.274027H87.8477V13.7273ZM118.23 10.402L117.489 12.3843C119.214 13.3651 122.153 14 124.23 14C128.07 14 130.48 12.4912 130.48 9.84295C130.48 6.72565 127.521 6.17565 124.309 5.86211C122.252 5.66647 120.096 5.50969 120.096 4.01971C120.096 2.86206 121.135 2.11772 123.898 2.11772C125.543 2.11772 127.444 2.49021 129.031 3.15747L129.716 1.157C127.953 0.39193 125.817 0 123.936 0C120.058 0 117.863 1.52885 117.863 4.01971C117.863 7.1571 120.861 7.7058 124.034 7.99991C126.091 8.1962 128.227 8.37305 128.227 9.8436C128.227 11.0401 127.15 11.8829 124.25 11.8829C122.467 11.8823 120.004 11.3485 118.23 10.402ZM72.4298 0.274027H70.2357V13.726H81.3637V11.6083H72.4298V0.274027ZM106.676 0.274027H99.1724V13.726H101.367V9.27417H106.676C109.811 9.27417 111.614 7.39161 111.614 4.76406C111.614 2.15659 109.85 0.274027 106.676 0.274027ZM106.421 7.1571H101.367V2.39174H106.421C108.321 2.39174 109.379 3.27407 109.379 4.7647C109.38 6.25533 108.361 7.1571 106.421 7.1571ZM7.50343 0.274027H0V13.726H2.19414V9.27417H7.50343C10.638 9.27417 12.4399 7.39161 12.4399 4.76406C12.4406 2.15659 10.6775 0.274027 7.50343 0.274027ZM7.24907 7.1571H2.19414V2.39174H7.24907C9.14936 2.39174 10.2069 3.27407 10.2069 4.7647C10.2063 6.25533 9.18819 7.1571 7.24907 7.1571Z", fill: "black" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("clipPath", { id: "clip0_3288_4057" }, /* @__PURE__ */ e.createElement("rect", { width: 130.667, height: 14, fill: "white" }))));
3
3
  export {
4
- l as default
4
+ t as default
5
5
  };
@@ -0,0 +1,5 @@
1
+ import * as e from "react";
2
+ const l = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", ...t }, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ e.createElement("path", { fill: "#323232", stroke: "#323232", strokeWidth: 2, d: "m16.76 6.45.006-.007.037-.04a9.895 9.895 0 0 1 .784-.753c.548-.472 1.316-1.033 2.22-1.436.901-.401 1.903-.63 2.95-.49 1.032.138 2.2.647 3.429 1.876 2.459 2.46 2.55 4.748 2.116 6.41a7.466 7.466 0 0 1-1.481 2.848l-.003.003v.001h-.001L16 26.53 5.183 14.863v-.001h-.001l-.003-.004a2.984 2.984 0 0 1-.143-.173 7.466 7.466 0 0 1-1.338-2.676c-.434-1.66-.343-3.95 2.116-6.41 1.23-1.228 2.397-1.737 3.43-1.875 1.046-.14 2.048.089 2.949.49.904.403 1.672.964 2.22 1.436a9.867 9.867 0 0 1 .784.753l.037.04.006.008h.001l.759.89.759-.89Z" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("clipPath", { id: "a" }, /* @__PURE__ */ e.createElement("path", { fill: "#fff", d: "M0 0h32v32H0z" }))));
3
+ export {
4
+ l as default
5
+ };
@@ -5,6 +5,7 @@ export { default as ChevronDown } from './chevronDown.svg?react';
5
5
  export { default as ChevronNext } from './chevronNext.svg?react';
6
6
  export { default as ChevronRight } from './chevronRight.svg?react';
7
7
  export { default as Close } from './close.svg?react';
8
+ export { default as Favorite } from './favorite.svg?react';
8
9
  export { default as FavoriteOutline } from './favoriteOutline.svg?react';
9
10
  export { default as Facebook } from './icon-footer-facebook.svg?react';
10
11
  export { default as FooterInstagram } from './icon-footer-instagram.svg?react';
@@ -6,6 +6,10 @@ export interface CountdownProps extends ComponentProps<'div'> {
6
6
  * The date the countdown should end
7
7
  */
8
8
  endDateTime: Date;
9
+ /**
10
+ * Function to modify strings coming from date-fns (Minutes -> Mins etc)
11
+ */
12
+ formatDurationStr?: (duration: string) => string;
9
13
  /**
10
14
  * Any descriptor to appear below the coundown
11
15
  */
@@ -1,50 +1,62 @@
1
- import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as y, useState as I, useEffect as N } from "react";
3
- import { getCommonProps as L } from "../../utils/index.js";
4
- import S from "../../node_modules/classnames/index.js";
5
- import { SupportedLanguages as g } from "../../types/commonTypes.js";
6
- import { CountdownVariants as u } from "./types.js";
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as N, useState as L, useEffect as v } from "react";
3
+ import { getCommonProps as g } from "../../utils/index.js";
4
+ import x from "../../node_modules/classnames/index.js";
5
+ import { SupportedLanguages as j } from "../../types/commonTypes.js";
6
+ import { CountdownVariants as m } from "./types.js";
7
7
  import { Duration as s } from "./Duration.js";
8
- import { zhCN as x } from "../../node_modules/date-fns/locale/zh-CN.js";
9
- import { enUS as j } from "../../node_modules/date-fns/locale/en-US.js";
10
- import { differenceInDays as z } from "../../node_modules/date-fns/differenceInDays.js";
11
- import { differenceInHours as D } from "../../node_modules/date-fns/differenceInHours.js";
12
- import { differenceInMinutes as P } from "../../node_modules/date-fns/differenceInMinutes.js";
13
- import { differenceInSeconds as _ } from "../../node_modules/date-fns/differenceInSeconds.js";
14
- const b = y(
8
+ import { zhCN as z } from "../../node_modules/date-fns/locale/zh-CN.js";
9
+ import { enUS as P } from "../../node_modules/date-fns/locale/en-US.js";
10
+ import { differenceInDays as S } from "../../node_modules/date-fns/differenceInDays.js";
11
+ import { differenceInHours as _ } from "../../node_modules/date-fns/differenceInHours.js";
12
+ import { differenceInMinutes as $ } from "../../node_modules/date-fns/differenceInMinutes.js";
13
+ import { differenceInSeconds as b } from "../../node_modules/date-fns/differenceInSeconds.js";
14
+ const E = N(
15
15
  ({
16
- endDateTime: e,
17
- label: a = "Lots Close in",
18
- intervalDescription: c = "Lots Close in 1-minute intervals",
19
- className: f,
20
- locale: l = "en",
21
- variant: p = u.default,
22
- ...i
23
- }, h) => {
24
- const { className: m, ...v } = L(i, "Countdown"), [t, C] = I(/* @__PURE__ */ new Date()), n = l === g.zh ? x : j, o = {
25
- days: z(e, t),
26
- hours: D(e, t) % 24,
27
- minutes: P(e, t) % 60,
28
- seconds: _(e, t) % 60 % 60
16
+ endDateTime: n,
17
+ formatDurationStr: a,
18
+ label: l = "Lots Close in",
19
+ intervalDescription: f = "Lots Close in 1-minute intervals",
20
+ className: p,
21
+ locale: h = "en",
22
+ variant: u = m.default,
23
+ ...c
24
+ }, C) => {
25
+ const { className: i, ...w } = g(c, "Countdown"), [r, y] = L(/* @__PURE__ */ new Date()), t = h === j.zh ? z : P, o = {
26
+ days: S(n, r),
27
+ hours: _(n, r) % 24,
28
+ minutes: $(n, r) % 60,
29
+ seconds: b(n, r) % 60 % 60
29
30
  };
30
- return N(() => {
31
- const w = setInterval(() => {
32
- C(/* @__PURE__ */ new Date());
31
+ return v(() => {
32
+ const I = setInterval(() => {
33
+ y(/* @__PURE__ */ new Date());
33
34
  }, 1e3);
34
- return () => clearInterval(w);
35
- }, [e]), /* @__PURE__ */ d("div", { ...v, className: S(m, f), ...i, ref: h, children: [
36
- /* @__PURE__ */ d("div", { className: `${m}__countdown-container`, role: "timer", "aria-label": a, children: [
37
- /* @__PURE__ */ r("span", { children: a }),
38
- o.days > 0 ? /* @__PURE__ */ r(s, { duration: o, unit: "days", locale: n }) : void 0,
39
- o.days > 0 || o.hours > 0 ? /* @__PURE__ */ r(s, { duration: o, unit: "hours", locale: n }) : void 0,
40
- o.days === 0 ? /* @__PURE__ */ r(s, { duration: o, unit: "minutes", locale: n }) : void 0,
41
- o.days === 0 && o.hours === 0 ? /* @__PURE__ */ r(s, { duration: o, unit: "seconds", locale: n }) : void 0
42
- ] }),
43
- p === u.default ? /* @__PURE__ */ r("span", { children: c }) : void 0
44
- ] });
35
+ return () => clearInterval(I);
36
+ }, [n]), /* @__PURE__ */ d(
37
+ "div",
38
+ {
39
+ ...w,
40
+ className: x(i, p, {
41
+ [`${i}--compact`]: u === m.compact
42
+ }),
43
+ ...c,
44
+ ref: C,
45
+ children: [
46
+ /* @__PURE__ */ d("div", { className: `${i}__countdown-container`, role: "timer", "aria-label": l, children: [
47
+ /* @__PURE__ */ e("span", { children: l }),
48
+ o.days > 0 ? /* @__PURE__ */ e(s, { duration: o, unit: "days", locale: t, formatDurationStr: a }) : null,
49
+ o.days > 0 || o.hours > 0 ? /* @__PURE__ */ e(s, { duration: o, unit: "hours", locale: t }) : null,
50
+ o.days === 0 ? /* @__PURE__ */ e(s, { duration: o, unit: "minutes", locale: t, formatDurationStr: a }) : null,
51
+ o.days === 0 && o.hours === 0 ? /* @__PURE__ */ e(s, { duration: o, unit: "seconds", locale: t, formatDurationStr: a }) : null
52
+ ] }),
53
+ u === m.default ? /* @__PURE__ */ e("span", { children: f }) : null
54
+ ]
55
+ }
56
+ );
45
57
  }
46
58
  );
47
- b.displayName = "Countdown";
59
+ E.displayName = "Countdown";
48
60
  export {
49
- b as default
61
+ E as default
50
62
  };
@@ -3,5 +3,6 @@ export interface DurationProps {
3
3
  duration: DurationValue;
4
4
  unit: DurationUnit;
5
5
  locale: Locale;
6
+ formatDurationStr?: (duration: string) => string;
6
7
  }
7
- export declare const Duration: ({ duration, unit, locale }: DurationProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const Duration: ({ duration, unit, locale, formatDurationStr }: DurationProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,11 @@
1
- import { jsxs as i, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
2
  import { px as m } from "../../utils/index.js";
3
- import n from "../../node_modules/classnames/index.js";
4
- import { formatDuration as c } from "../../node_modules/date-fns/formatDuration.js";
5
- const u = ({ duration: t, unit: r, locale: e }) => {
6
- const s = `${m}-duration`, a = c(t, { format: [r], zero: !0, locale: e }).split(" ");
7
- return /* @__PURE__ */ i("div", { className: s, children: [
8
- /* @__PURE__ */ o("span", { className: n(r === "seconds" && `${s}--fixed-width`), children: a[0].padStart(2, "0") }),
9
- /* @__PURE__ */ o("span", { children: a[1] })
3
+ import { formatDuration as p } from "../../node_modules/date-fns/formatDuration.js";
4
+ const u = ({ duration: a, unit: s, locale: n, formatDurationStr: i = (r) => r }) => {
5
+ const r = `${m}-duration`, t = p(a, { format: [s], zero: !0, locale: n }).split(" ");
6
+ return /* @__PURE__ */ e("div", { className: r, children: [
7
+ /* @__PURE__ */ o("span", { children: t[0].padStart(2, "0") }),
8
+ /* @__PURE__ */ o("span", { children: i(t[1]) })
10
9
  ] });
11
10
  };
12
11
  export {
@@ -1,6 +1,8 @@
1
1
  import { default as React, ComponentProps } from 'react';
2
2
  export interface DetailProps extends ComponentProps<'div'> {
3
+ hasWrap?: boolean;
3
4
  label: React.ReactNode;
5
+ subLabel?: React.ReactNode;
4
6
  value: React.ReactNode;
5
7
  }
6
8
  /**
@@ -1,15 +1,21 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as c } from "react";
3
- import { getCommonProps as d } from "../../utils/index.js";
4
- import n from "../../node_modules/classnames/index.js";
5
- const f = c(({ className: m = "", label: l, value: o, ...s }, r) => {
6
- const { className: a, ...t } = d(s, "Detail");
7
- return /* @__PURE__ */ i("div", { ...t, className: n(a, m), ...s, ref: r, children: [
8
- /* @__PURE__ */ e("dt", { className: `${a}__label`, children: l }),
9
- /* @__PURE__ */ e("dd", { className: `${a}__value`, children: o })
10
- ] });
11
- });
12
- f.displayName = "Detail";
1
+ import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import { getCommonProps as f } from "../../utils/index.js";
4
+ import m from "../../node_modules/classnames/index.js";
5
+ const N = p(
6
+ ({ className: o = "", hasWrap: t = !0, label: i, subLabel: e, value: n, ...s }, c) => {
7
+ const { className: a, ...d } = f(s, "Detail");
8
+ return /* @__PURE__ */ l("div", { ...d, className: m(a, o), ...s, ref: c, children: [
9
+ /* @__PURE__ */ l("dt", { className: m(`${a}__label`, { [`${a}__label--no-wrap`]: !t }), children: [
10
+ i,
11
+ " ",
12
+ e ? /* @__PURE__ */ r("span", { children: e }) : null
13
+ ] }),
14
+ /* @__PURE__ */ r("dd", { className: `${a}__value`, children: n })
15
+ ] });
16
+ }
17
+ );
18
+ N.displayName = "Detail";
13
19
  export {
14
- f as default
20
+ N as default
15
21
  };
@@ -8,6 +8,7 @@ export declare const Playground: {
8
8
  (props: DetailProps): import("react/jsx-runtime").JSX.Element;
9
9
  args: {
10
10
  label: string;
11
+ subLabel: string;
11
12
  value: import("react/jsx-runtime").JSX.Element;
12
13
  };
13
14
  argTypes: {};
@@ -1,17 +1,18 @@
1
- import { jsxs as S, jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as h, useRef as y, useState as E, useCallback as v, useEffect as w } from "react";
3
- import { getCommonProps as x } from "../../utils/index.js";
4
- import m from "../../node_modules/classnames/index.js";
5
- function C(i) {
1
+ import { jsxs as h, jsx as l } from "react/jsx-runtime";
2
+ import { forwardRef as I, useRef as v, useState as y, useCallback as E, useEffect as P } from "react";
3
+ import d from "../../node_modules/classnames/index.js";
4
+ import { getCommonProps as w } from "../../utils/index.js";
5
+ import x from "../../assets/PhillipsLogo.svg.js";
6
+ function C(s) {
6
7
  return new Promise((a) => {
7
8
  const r = document.createElement("img");
8
- r.onerror = () => a(!1), r.onload = () => a(!0), r.src = i;
9
+ r.onerror = () => a(!1), r.onload = () => a(!0), r.src = s;
9
10
  });
10
11
  }
11
- const P = h(
12
+ const L = I(
12
13
  ({
13
- className: i,
14
- aspectRatio: d = "none",
14
+ className: s,
15
+ aspectRatio: m = "none",
15
16
  objectFit: a = "none",
16
17
  hasBlurBackground: r = !1,
17
18
  imageClassName: u,
@@ -20,20 +21,20 @@ const P = h(
20
21
  alt: t,
21
22
  errorText: p = "Error loading image",
22
23
  ...g
23
- }, N) => {
24
- const { className: e, ...c } = x(g, "SeldonImage"), b = y(null), [o, s] = E("loading"), f = v(async () => {
25
- const I = await C(n);
26
- s(I ? "loaded" : "error");
24
+ }, b) => {
25
+ const { className: e, ...c } = w(g, "SeldonImage"), N = v(null), [o, i] = y("loading"), f = E(async () => {
26
+ const S = await C(n);
27
+ i(S ? "loaded" : "error");
27
28
  }, [n]);
28
- return w(() => {
29
+ return P(() => {
29
30
  f();
30
- }, [f]), /* @__PURE__ */ S(
31
+ }, [f]), /* @__PURE__ */ h(
31
32
  "div",
32
33
  {
33
- ref: N,
34
- className: m(e, i, {
34
+ ref: b,
35
+ className: d(e, s, {
35
36
  [`${e}--hidden`]: o === "loading" || o === "error",
36
- [`${e}--aspect-ratio-${d.replace("/", "-")}`]: d !== "none"
37
+ [`${e}--aspect-ratio-${m.replace("/", "-")}`]: m !== "none"
37
38
  }),
38
39
  role: "img",
39
40
  "aria-label": t,
@@ -43,17 +44,17 @@ const P = h(
43
44
  r && /* @__PURE__ */ l(
44
45
  "div",
45
46
  {
46
- className: m(`${e}-blur`, {
47
+ className: d(`${e}-blur`, {
47
48
  [`${e}-blur--hidden`]: o === "loading" || o === "error"
48
49
  }),
49
50
  style: { backgroundImage: `url(${n})` }
50
51
  }
51
52
  ),
52
- o === "error" && /* @__PURE__ */ l("div", { className: `${e}--error`, children: `${p}` }),
53
+ o === "error" ? /* @__PURE__ */ l("div", { className: `${e}--error`, children: /* @__PURE__ */ l(x, { "aria-label": p }) }) : null,
53
54
  /* @__PURE__ */ l(
54
55
  "img",
55
56
  {
56
- className: m(`${e}-img`, u, {
57
+ className: d(`${e}-img`, u, {
57
58
  [`${e}-img--hidden`]: o !== "loaded",
58
59
  [`${e}-img--object-fit-${a}`]: a !== "none"
59
60
  }),
@@ -61,12 +62,12 @@ const P = h(
61
62
  src: n,
62
63
  alt: t,
63
64
  "data-testid": `${c["data-testid"]}-img`,
64
- ref: b,
65
+ ref: N,
65
66
  onLoad: () => {
66
- s("loaded");
67
+ i("loaded");
67
68
  },
68
69
  onError: () => {
69
- s("error");
70
+ i("error");
70
71
  }
71
72
  }
72
73
  )
@@ -75,7 +76,7 @@ const P = h(
75
76
  );
76
77
  }
77
78
  );
78
- P.displayName = "SeldonImage";
79
+ L.displayName = "SeldonImage";
79
80
  export {
80
- P as default
81
+ L as default
81
82
  };
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './assets/icons';
3
3
  export { default as Page } from './pages/Page';
4
4
  export * from './utils/hooks';
5
5
  export * from './providers/SeldonProvider/utils';
6
+ export * from './types/commonTypes';
6
7
  export { default as Button, type ButtonProps } from './components/Button/Button';
7
8
  export { ButtonVariants } from './components/Button/types';
8
9
  export { default as IconButton } from './components/IconButton/IconButton';
@@ -58,3 +59,5 @@ export * from './components/SeldonImage';
58
59
  export * from './patterns/SaleHeaderBanner';
59
60
  export * from './components/Countdown';
60
61
  export * from './components/Countdown/types';
62
+ export * from './patterns/ObjectTile';
63
+ export * from './patterns/BidSnapshot';