@phillips/seldon 1.226.0 → 1.227.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/assets/formatted/ImageUnavailable.d.ts +9 -0
- package/dist/assets/formatted/ImageUnavailable.js +129 -0
- package/dist/assets/formatted/PhillipsLogo.js +16 -16
- package/dist/assets/formatted/index.d.ts +1 -0
- package/dist/assets/formatted/index.js +80 -78
- package/dist/components/ComboBox/ComboBox.js +1 -0
- package/dist/components/SeldonImage/SeldonImage.d.ts +4 -0
- package/dist/components/SeldonImage/SeldonImage.js +53 -53
- package/dist/components/SeldonImage/SeldonImage.stories.d.ts +10 -0
- package/dist/patterns/ObjectTile/ObjectTile.d.ts +5 -1
- package/dist/patterns/ObjectTile/ObjectTile.js +26 -24
- package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +19 -0
- package/dist/scss/components/SeldonImage/_seldonImage.scss +7 -4
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ImageUnavailableProps extends React.HTMLAttributes<SVGSVGElement> {
|
|
2
|
+
color?: string;
|
|
3
|
+
height?: number | string;
|
|
4
|
+
width?: number | string;
|
|
5
|
+
title?: string;
|
|
6
|
+
titleId?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const ImageUnavailable: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<ImageUnavailableProps & import('react').RefAttributes<SVGSVGElement>>>;
|
|
9
|
+
export default ImageUnavailable;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { jsxs as p, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { memo as L, forwardRef as d } from "react";
|
|
3
|
+
import { kebabCase as e } from "../../node_modules/change-case/dist/index.js";
|
|
4
|
+
const Z = L(
|
|
5
|
+
d((a, t) => {
|
|
6
|
+
const { height: f, width: V, title: i, titleId: c } = a, H = c || e(i || "");
|
|
7
|
+
return /* @__PURE__ */ p(
|
|
8
|
+
"svg",
|
|
9
|
+
{
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
fill: "none",
|
|
12
|
+
"data-testid": "image-unavailable-logo-svg",
|
|
13
|
+
viewBox: "0 0 152 39",
|
|
14
|
+
height: f,
|
|
15
|
+
width: V,
|
|
16
|
+
role: "img",
|
|
17
|
+
ref: t,
|
|
18
|
+
"aria-labelledby": H,
|
|
19
|
+
...a,
|
|
20
|
+
children: [
|
|
21
|
+
i ? /* @__PURE__ */ l("title", { id: H, children: i }) : null,
|
|
22
|
+
/* @__PURE__ */ l(
|
|
23
|
+
"path",
|
|
24
|
+
{
|
|
25
|
+
d: "M140.525 38.3158V24.4905H151.901V26.6631H142.796V30.2182H151.605V32.3907H142.796V36.1433H152V38.3158H140.525Z",
|
|
26
|
+
fill: "black",
|
|
27
|
+
fillOpacity: "0.25"
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ l("path", { d: "M126.673 38.3158V24.4905H128.944V36.1433H138.148V38.3158H126.673Z", fill: "black", fillOpacity: "0.25" }),
|
|
31
|
+
/* @__PURE__ */ l(
|
|
32
|
+
"path",
|
|
33
|
+
{
|
|
34
|
+
d: "M111.504 38.3158V24.4905H119.483C122.268 24.4905 123.858 26.0113 123.858 28.332C123.858 29.7046 123.167 30.7218 121.903 31.2551C123.423 31.7587 124.253 32.8647 124.253 34.3855C124.253 36.7654 122.624 38.3158 119.76 38.3158H111.504ZM119.582 36.1433C121.083 36.1433 121.922 35.4422 121.922 34.267C121.922 33.0919 121.083 32.3907 119.582 32.3907H113.775V36.1433H119.582ZM119.325 30.2182C120.737 30.2182 121.527 29.5565 121.527 28.4505C121.527 27.3346 120.737 26.673 119.325 26.673H113.775V30.2182H119.325Z",
|
|
35
|
+
fill: "black",
|
|
36
|
+
fillOpacity: "0.25"
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ l(
|
|
40
|
+
"path",
|
|
41
|
+
{
|
|
42
|
+
d: "M96.2529 38.3257H93.8137L100.608 24.4905H102.928L109.733 38.3257H107.175L105.832 35.5607H97.5959L96.2529 38.3257ZM98.6624 33.3881H104.765L101.714 27.1173L98.6624 33.3881Z",
|
|
43
|
+
fill: "black",
|
|
44
|
+
fillOpacity: "0.25"
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ l("path", { d: "M80.9439 38.3158V24.4905H83.2152V36.1433H92.4189V38.3158H80.9439Z", fill: "black", fillOpacity: "0.25" }),
|
|
48
|
+
/* @__PURE__ */ l("path", { d: "M75.7189 38.3158V24.4905H77.9902V38.3158H75.7189Z", fill: "black", fillOpacity: "0.25" }),
|
|
49
|
+
/* @__PURE__ */ l(
|
|
50
|
+
"path",
|
|
51
|
+
{
|
|
52
|
+
d: "M60.4677 38.3257H58.0286L64.8227 24.4905H67.1434L73.9474 38.3257H71.3897L70.0467 35.5607H61.8108L60.4677 38.3257ZM62.8773 33.3881H68.9802L65.9287 27.1173L62.8773 33.3881Z",
|
|
53
|
+
fill: "black",
|
|
54
|
+
fillOpacity: "0.25"
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ l(
|
|
58
|
+
"path",
|
|
59
|
+
{
|
|
60
|
+
d: "M51.5878 38.3158L44.7838 24.4905H47.3415L52.8025 35.7088L58.2635 24.4905H60.7027L53.9085 38.3158H51.5878Z",
|
|
61
|
+
fill: "black",
|
|
62
|
+
fillOpacity: "0.25"
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ l(
|
|
66
|
+
"path",
|
|
67
|
+
{
|
|
68
|
+
d: "M33.9782 38.3257H31.5391L38.3332 24.4905H40.6539L47.4579 38.3257H44.9002L43.5572 35.5607H35.3213L33.9782 38.3257ZM36.3878 33.3881H42.4907L39.4392 27.1173L36.3878 33.3881Z",
|
|
69
|
+
fill: "black",
|
|
70
|
+
fillOpacity: "0.25"
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
/* @__PURE__ */ l(
|
|
74
|
+
"path",
|
|
75
|
+
{
|
|
76
|
+
d: "M15.9352 38.3158V24.4905H18.8978L27.5386 35.6693V24.4905H29.7606V38.3158H26.798L18.1572 27.3247V38.3158H15.9352Z",
|
|
77
|
+
fill: "black",
|
|
78
|
+
fillOpacity: "0.25"
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ l(
|
|
82
|
+
"path",
|
|
83
|
+
{
|
|
84
|
+
d: "M6.54727 38.6121C2.52806 38.6121 0 36.1927 0 31.9364V24.4905H2.2713V31.9364C2.2713 34.8299 3.84146 36.4395 6.58677 36.4395C9.32221 36.4395 10.8726 34.8299 10.8726 31.9364V24.4905H13.0945V31.9364C13.0945 36.1927 10.5764 38.6121 6.54727 38.6121Z",
|
|
85
|
+
fill: "black",
|
|
86
|
+
fillOpacity: "0.25"
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ l(
|
|
90
|
+
"path",
|
|
91
|
+
{
|
|
92
|
+
d: "M96.5378 14.1216V0.29625H107.914V2.4688H98.8092V6.02388H107.618V8.19643H98.8092V11.949H108.013V14.1216H96.5378Z",
|
|
93
|
+
fill: "black",
|
|
94
|
+
fillOpacity: "0.25"
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ l(
|
|
98
|
+
"path",
|
|
99
|
+
{
|
|
100
|
+
d: "M86.9994 14.4178C82.4074 14.4178 79.198 11.3269 79.198 7.20891C79.198 3.09094 82.4272 0 86.9994 0C89.3892 0 91.1964 0.720891 93.1517 2.18242L91.8086 4.00934C90.1496 2.66631 88.8856 2.17255 86.9994 2.17255C83.8196 2.17255 81.5285 4.33522 81.5285 7.20891C81.5285 10.0826 83.8196 12.2453 86.9994 12.2453C89.6559 12.2453 91.4531 11.0109 91.7099 8.78894H86.1699V6.6164H94.0701V7.97918C94.0701 11.7021 91.542 14.4178 86.9994 14.4178Z",
|
|
101
|
+
fill: "black",
|
|
102
|
+
fillOpacity: "0.25"
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ l(
|
|
106
|
+
"path",
|
|
107
|
+
{
|
|
108
|
+
d: "M65.1662 14.1314H62.727L69.5211 0.29625H71.8418L78.6459 14.1314H76.0882L74.7451 11.3664H66.5092L65.1662 14.1314ZM67.5757 9.19382H73.6786L70.6272 2.92306L67.5757 9.19382Z",
|
|
109
|
+
fill: "black",
|
|
110
|
+
fillOpacity: "0.25"
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
/* @__PURE__ */ l(
|
|
114
|
+
"path",
|
|
115
|
+
{
|
|
116
|
+
d: "M44.5917 0.29625H48.1369L52.7783 11.4849L57.4295 0.29625H60.9549V14.1216H58.6836V2.92306L54.0225 14.1216H51.4056L46.7642 2.93293V14.1216H44.5917V0.29625Z",
|
|
117
|
+
fill: "black",
|
|
118
|
+
fillOpacity: "0.25"
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
/* @__PURE__ */ l("path", { d: "M39.3667 14.1216V0.29625H41.638V14.1216H39.3667Z", fill: "black", fillOpacity: "0.25" })
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
})
|
|
126
|
+
);
|
|
127
|
+
export {
|
|
128
|
+
Z as default
|
|
129
|
+
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { kebabCase as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const { height:
|
|
7
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsxs as c, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { memo as p, forwardRef as v } from "react";
|
|
3
|
+
import { kebabCase as g } from "../../node_modules/change-case/dist/index.js";
|
|
4
|
+
const V = p(
|
|
5
|
+
v((o, t) => {
|
|
6
|
+
const { height: e, width: s, title: h, titleId: r, color: d, ...a } = o, i = r || g(h || "");
|
|
7
|
+
return /* @__PURE__ */ c(
|
|
8
8
|
"svg",
|
|
9
9
|
{
|
|
10
10
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11
11
|
fill: "none",
|
|
12
12
|
"data-testid": "header-logo-svg",
|
|
13
13
|
viewBox: "0 0 131 18",
|
|
14
|
-
height:
|
|
14
|
+
height: e,
|
|
15
15
|
width: s,
|
|
16
16
|
role: "img",
|
|
17
|
-
ref:
|
|
18
|
-
"aria-labelledby":
|
|
19
|
-
...
|
|
17
|
+
ref: t,
|
|
18
|
+
"aria-labelledby": i,
|
|
19
|
+
...a,
|
|
20
20
|
children: [
|
|
21
|
-
|
|
22
|
-
/* @__PURE__ */
|
|
21
|
+
h ? /* @__PURE__ */ l("title", { id: i, children: h }) : null,
|
|
22
|
+
/* @__PURE__ */ l("g", { clipPath: "url(#PhillipsLogo_svg__a)", children: /* @__PURE__ */ l(
|
|
23
23
|
"path",
|
|
24
24
|
{
|
|
25
|
-
fill: "#000",
|
|
25
|
+
fill: d ?? "#000",
|
|
26
26
|
d: "M54.817.274h-2.195v13.452H63.75v-2.118h-8.933zm-13.5 13.453h2.195V.274h-2.195zM21.276.274h-2.155v13.452h2.136V8.862h8.796v4.864h2.155V.274h-2.155v6.53h-8.796zm66.572 13.453h2.195V.274h-2.195zm30.382-3.325-.741 1.982c1.725.981 4.664 1.616 6.741 1.616 3.84 0 6.25-1.509 6.25-4.157 0-3.117-2.959-3.667-6.171-3.98-2.057-.197-4.213-.353-4.213-1.843 0-1.158 1.039-1.902 3.802-1.902 1.645 0 3.546.372 5.133 1.04l.685-2.001C127.953.392 125.817 0 123.936 0c-3.878 0-6.073 1.529-6.073 4.02 0 3.137 2.998 3.686 6.171 3.98 2.057.196 4.193.373 4.193 1.844 0 1.196-1.077 2.039-3.977 2.039-1.783 0-4.246-.534-6.02-1.481M72.43.274h-2.194v13.452h11.128v-2.118H72.43zm34.246 0h-7.504v13.452h2.195V9.274h5.309c3.135 0 4.938-1.882 4.938-4.51 0-2.607-1.764-4.49-4.938-4.49m-.255 6.883h-5.054V2.392h5.054c1.9 0 2.958.882 2.958 2.373.001 1.49-1.018 2.392-2.958 2.392M7.503.274H0v13.452h2.194V9.274h5.31c3.134 0 4.936-1.882 4.936-4.51 0-2.607-1.762-4.49-4.937-4.49M7.25 7.157H2.194V2.392H7.25c1.9 0 2.958.882 2.958 2.373 0 1.49-1.019 2.392-2.958 2.392",
|
|
27
27
|
className: "PhillipsLogo_svg__phillips-logo"
|
|
28
28
|
}
|
|
29
29
|
) }),
|
|
30
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ l("defs", { children: /* @__PURE__ */ l("clipPath", { id: "PhillipsLogo_svg__a", children: /* @__PURE__ */ l("path", { fill: "#fff", d: "M0 0h130.667v14H0z" }) }) })
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
34
|
})
|
|
35
35
|
);
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
V as default
|
|
38
38
|
};
|
|
@@ -51,6 +51,7 @@ export { default as IconGreenCircle } from './IconGreenCircle';
|
|
|
51
51
|
export { default as IconBlueCircle } from './IconBlueCircle';
|
|
52
52
|
export { default as IconRedCircle } from './IconRedCircle';
|
|
53
53
|
export { default as Icon } from './Icon';
|
|
54
|
+
export { default as ImageUnavailable } from './ImageUnavailable';
|
|
54
55
|
export { default as Instagram } from './Instagram';
|
|
55
56
|
export { default as LinkedIn } from './LinkedIn';
|
|
56
57
|
export { default as List } from './List';
|
|
@@ -8,15 +8,15 @@ import { default as n } from "./AdminTelephone.js";
|
|
|
8
8
|
import { default as A } from "./AdminPlay.js";
|
|
9
9
|
import { default as h } from "./AdminFullscreen.js";
|
|
10
10
|
import { default as w } from "./AdminFullscreenExit.js";
|
|
11
|
-
import { default as
|
|
11
|
+
import { default as g } from "./AdminCheck.js";
|
|
12
12
|
import { default as F } from "./AdminChevronLeft.js";
|
|
13
13
|
import { default as P } from "./AdminChevronRight.js";
|
|
14
14
|
import { default as k } from "./AdminChevronUp.js";
|
|
15
15
|
import { default as M } from "./AdminClose.js";
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
16
|
+
import { default as U } from "./AdminHome.js";
|
|
17
|
+
import { default as H } from "./AdminPencil.js";
|
|
18
|
+
import { default as b } from "./AdminSearch.js";
|
|
19
|
+
import { default as T } from "./AppleAppStoreBadge.js";
|
|
20
20
|
import { default as X } from "./ArrowDown.js";
|
|
21
21
|
import { default as O } from "./ArrowLeft.js";
|
|
22
22
|
import { default as j } from "./ArrowRight.js";
|
|
@@ -35,15 +35,15 @@ import { default as ne } from "./Edit.js";
|
|
|
35
35
|
import { default as Ae } from "./Email.js";
|
|
36
36
|
import { default as he } from "./Error.js";
|
|
37
37
|
import { default as we } from "./ExternalLink.js";
|
|
38
|
-
import { default as
|
|
38
|
+
import { default as ge } from "./Facebook.js";
|
|
39
39
|
import { default as Fe } from "./FavoriteActive.js";
|
|
40
40
|
import { default as Pe } from "./Favorite.js";
|
|
41
41
|
import { default as ke } from "./Filters.js";
|
|
42
42
|
import { default as Me } from "./Fullscreen.js";
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
43
|
+
import { default as Ue } from "./FullscreenExit.js";
|
|
44
|
+
import { default as He } from "./GavelActive.js";
|
|
45
|
+
import { default as be } from "./Gavel.js";
|
|
46
|
+
import { default as Te } from "./Grid.js";
|
|
47
47
|
import { default as Xe } from "./Hide.js";
|
|
48
48
|
import { default as Oe } from "./HomeActive.js";
|
|
49
49
|
import { default as je } from "./Home.js";
|
|
@@ -51,40 +51,41 @@ import { default as ze } from "./IconGreenCircle.js";
|
|
|
51
51
|
import { default as Ke } from "./IconBlueCircle.js";
|
|
52
52
|
import { default as Ye } from "./IconRedCircle.js";
|
|
53
53
|
import { default as _e } from "./Icon.js";
|
|
54
|
-
import { default as eo } from "./
|
|
55
|
-
import { default as ro } from "./
|
|
56
|
-
import { default as ao } from "./
|
|
57
|
-
import { default as lo } from "./
|
|
58
|
-
import { default as uo } from "./
|
|
59
|
-
import { default as po } from "./
|
|
60
|
-
import { default as io } from "./
|
|
61
|
-
import { default as co } from "./
|
|
62
|
-
import { default as vo } from "./
|
|
63
|
-
import { default as Co } from "./
|
|
64
|
-
import { default as Lo } from "./
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as Io } from "./
|
|
67
|
-
import { default as Ro } from "./
|
|
68
|
-
import { default as Eo } from "./
|
|
69
|
-
import { default as Go } from "./
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as Vo } from "./
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as yo } from "./
|
|
74
|
-
import { default as No } from "./
|
|
75
|
-
import { default as Wo } from "./
|
|
76
|
-
import { default as qo } from "./
|
|
77
|
-
import { default as Jo } from "./
|
|
78
|
-
import { default as Qo } from "./
|
|
79
|
-
import { default as Zo } from "./
|
|
80
|
-
import { default as $o } from "./
|
|
81
|
-
import { default as or } from "./
|
|
82
|
-
import { default as tr } from "./
|
|
54
|
+
import { default as eo } from "./ImageUnavailable.js";
|
|
55
|
+
import { default as ro } from "./Instagram.js";
|
|
56
|
+
import { default as ao } from "./LinkedIn.js";
|
|
57
|
+
import { default as lo } from "./List.js";
|
|
58
|
+
import { default as uo } from "./Lock.js";
|
|
59
|
+
import { default as po } from "./MagnificentSeven.js";
|
|
60
|
+
import { default as io } from "./Menu.js";
|
|
61
|
+
import { default as co } from "./Mute.js";
|
|
62
|
+
import { default as vo } from "./Pause.js";
|
|
63
|
+
import { default as Co } from "./PhillipsAppIcon.js";
|
|
64
|
+
import { default as Lo } from "./PhillipsLogo.js";
|
|
65
|
+
import { default as So } from "./Play.js";
|
|
66
|
+
import { default as Io } from "./Red.js";
|
|
67
|
+
import { default as Ro } from "./Refresh.js";
|
|
68
|
+
import { default as Eo } from "./Search.js";
|
|
69
|
+
import { default as Go } from "./SellActive.js";
|
|
70
|
+
import { default as Do } from "./Sell.js";
|
|
71
|
+
import { default as Vo } from "./Share.js";
|
|
72
|
+
import { default as Bo } from "./Subtract.js";
|
|
73
|
+
import { default as yo } from "./Success.js";
|
|
74
|
+
import { default as No } from "./Tooltip.js";
|
|
75
|
+
import { default as Wo } from "./TwitterX.js";
|
|
76
|
+
import { default as qo } from "./Upload.js";
|
|
77
|
+
import { default as Jo } from "./View.js";
|
|
78
|
+
import { default as Qo } from "./VolumeMaximum.js";
|
|
79
|
+
import { default as Zo } from "./VolumeMid.js";
|
|
80
|
+
import { default as $o } from "./VolumeMinimum.js";
|
|
81
|
+
import { default as or } from "./WeChat.js";
|
|
82
|
+
import { default as tr } from "./Clock.js";
|
|
83
|
+
import { default as fr } from "./LiveNow.js";
|
|
83
84
|
export {
|
|
84
85
|
a as Account,
|
|
85
86
|
r as AccountActive,
|
|
86
87
|
l as Add,
|
|
87
|
-
|
|
88
|
+
g as AdminCheck,
|
|
88
89
|
F as AdminChevronLeft,
|
|
89
90
|
P as AdminChevronRight,
|
|
90
91
|
k as AdminChevronUp,
|
|
@@ -92,14 +93,14 @@ export {
|
|
|
92
93
|
h as AdminFullscreen,
|
|
93
94
|
w as AdminFullscreenExit,
|
|
94
95
|
m as AdminGavel,
|
|
95
|
-
|
|
96
|
+
U as AdminHome,
|
|
96
97
|
s as AdminLiveOnline,
|
|
97
|
-
|
|
98
|
+
H as AdminPencil,
|
|
98
99
|
x as AdminPerson,
|
|
99
100
|
A as AdminPlay,
|
|
100
|
-
|
|
101
|
+
b as AdminSearch,
|
|
101
102
|
n as AdminTelephone,
|
|
102
|
-
|
|
103
|
+
T as AppleAppStoreBadge,
|
|
103
104
|
X as ArrowDown,
|
|
104
105
|
O as ArrowLeft,
|
|
105
106
|
j as ArrowRight,
|
|
@@ -110,7 +111,7 @@ export {
|
|
|
110
111
|
ee as ChevronLeft,
|
|
111
112
|
re as ChevronRight,
|
|
112
113
|
ae as ChevronUp,
|
|
113
|
-
|
|
114
|
+
tr as Clock,
|
|
114
115
|
le as CloseX,
|
|
115
116
|
me as ConditionReport,
|
|
116
117
|
se as Delete,
|
|
@@ -119,15 +120,15 @@ export {
|
|
|
119
120
|
Ae as Email,
|
|
120
121
|
he as Error,
|
|
121
122
|
we as ExternalLink,
|
|
122
|
-
|
|
123
|
+
ge as Facebook,
|
|
123
124
|
Pe as Favorite,
|
|
124
125
|
Fe as FavoriteActive,
|
|
125
126
|
ke as Filters,
|
|
126
127
|
Me as Fullscreen,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
Ue as FullscreenExit,
|
|
129
|
+
be as Gavel,
|
|
130
|
+
He as GavelActive,
|
|
131
|
+
Te as Grid,
|
|
131
132
|
Xe as Hide,
|
|
132
133
|
je as Home,
|
|
133
134
|
Oe as HomeActive,
|
|
@@ -135,32 +136,33 @@ export {
|
|
|
135
136
|
Ke as IconBlueCircle,
|
|
136
137
|
ze as IconGreenCircle,
|
|
137
138
|
Ye as IconRedCircle,
|
|
138
|
-
eo as
|
|
139
|
-
ro as
|
|
140
|
-
ao as
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
uo as
|
|
144
|
-
po as
|
|
145
|
-
io as
|
|
146
|
-
co as
|
|
147
|
-
vo as
|
|
148
|
-
Co as
|
|
149
|
-
Lo as
|
|
150
|
-
|
|
151
|
-
Io as
|
|
152
|
-
Ro as
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
Vo as
|
|
157
|
-
|
|
158
|
-
yo as
|
|
159
|
-
No as
|
|
160
|
-
Wo as
|
|
161
|
-
qo as
|
|
162
|
-
Jo as
|
|
163
|
-
Qo as
|
|
164
|
-
Zo as
|
|
165
|
-
$o as
|
|
139
|
+
eo as ImageUnavailable,
|
|
140
|
+
ro as Instagram,
|
|
141
|
+
ao as LinkedIn,
|
|
142
|
+
lo as List,
|
|
143
|
+
fr as LiveNow,
|
|
144
|
+
uo as Lock,
|
|
145
|
+
po as MagnificentSeven,
|
|
146
|
+
io as Menu,
|
|
147
|
+
co as Mute,
|
|
148
|
+
vo as Pause,
|
|
149
|
+
Co as PhillipsAppIcon,
|
|
150
|
+
Lo as PhillipsLogo,
|
|
151
|
+
So as Play,
|
|
152
|
+
Io as Red,
|
|
153
|
+
Ro as Refresh,
|
|
154
|
+
Eo as Search,
|
|
155
|
+
Do as Sell,
|
|
156
|
+
Go as SellActive,
|
|
157
|
+
Vo as Share,
|
|
158
|
+
Bo as Subtract,
|
|
159
|
+
yo as Success,
|
|
160
|
+
No as Tooltip,
|
|
161
|
+
Wo as TwitterX,
|
|
162
|
+
qo as Upload,
|
|
163
|
+
Jo as View,
|
|
164
|
+
Qo as VolumeMaximum,
|
|
165
|
+
Zo as VolumeMid,
|
|
166
|
+
$o as VolumeMinimum,
|
|
167
|
+
or as WeChat
|
|
166
168
|
};
|
|
@@ -57,6 +57,7 @@ import "../../assets/formatted/IconGreenCircle.js";
|
|
|
57
57
|
import "../../assets/formatted/IconBlueCircle.js";
|
|
58
58
|
import "../../assets/formatted/IconRedCircle.js";
|
|
59
59
|
import "../../assets/formatted/Icon.js";
|
|
60
|
+
import "../../assets/formatted/ImageUnavailable.js";
|
|
60
61
|
import "../../assets/formatted/Instagram.js";
|
|
61
62
|
import "../../assets/formatted/LinkedIn.js";
|
|
62
63
|
import "../../assets/formatted/List.js";
|
|
@@ -49,6 +49,10 @@ export interface SeldonImageProps extends ComponentProps<'div'> {
|
|
|
49
49
|
* The text to display when the image fails to load.
|
|
50
50
|
*/
|
|
51
51
|
errorText?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the image is blocked and should display ImageUnavailable instead of PhillipsLogo.
|
|
54
|
+
*/
|
|
55
|
+
imageBlocked?: boolean;
|
|
52
56
|
}
|
|
53
57
|
/**
|
|
54
58
|
* ## Overview
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import { getCommonProps as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
C(
|
|
1
|
+
import { jsxs as C, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { memo as P, forwardRef as S, useRef as j, useState as R, useCallback as U, useEffect as V } from "react";
|
|
3
|
+
import s from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { getCommonProps as H } from "../../utils/index.js";
|
|
5
|
+
import I from "../Icon/Icon.js";
|
|
6
|
+
import { isImageValid as M } from "./utils.js";
|
|
7
|
+
const T = typeof window > "u", q = P(
|
|
8
|
+
S(
|
|
10
9
|
({
|
|
11
|
-
className:
|
|
12
|
-
aspectRatio:
|
|
13
|
-
objectFit:
|
|
14
|
-
hasBlurBackground:
|
|
15
|
-
imageClassName:
|
|
16
|
-
imageStyle:
|
|
10
|
+
className: h,
|
|
11
|
+
aspectRatio: g = "none",
|
|
12
|
+
objectFit: f = "none",
|
|
13
|
+
hasBlurBackground: v = !1,
|
|
14
|
+
imageClassName: y,
|
|
15
|
+
imageStyle: N,
|
|
17
16
|
src: a,
|
|
18
|
-
alt:
|
|
17
|
+
alt: c,
|
|
19
18
|
srcSet: o,
|
|
20
19
|
sizes: r,
|
|
21
|
-
loading:
|
|
22
|
-
fetchPriority:
|
|
23
|
-
errorText:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
loading: E,
|
|
21
|
+
fetchPriority: L,
|
|
22
|
+
errorText: w = "Error loading image",
|
|
23
|
+
imageBlocked: n = !1,
|
|
24
|
+
...u
|
|
25
|
+
}, x) => {
|
|
26
|
+
const { className: e, ...$ } = H(u, "SeldonImage"), p = j(null), [i, m] = R(() => {
|
|
27
|
+
if (T)
|
|
28
28
|
return "loading";
|
|
29
29
|
const t = document.getElementById(a);
|
|
30
30
|
if (t instanceof HTMLImageElement && !t.classList.contains(`${e}-img--hidden`))
|
|
31
31
|
return "loaded";
|
|
32
|
-
const
|
|
33
|
-
return o && (
|
|
34
|
-
}),
|
|
35
|
-
const t = await
|
|
32
|
+
const d = document.createElement("img");
|
|
33
|
+
return o && (d.srcset = o), r && (d.sizes = r), d.src = a, d.complete ? "loaded" : "loading";
|
|
34
|
+
}), b = U(async () => {
|
|
35
|
+
const t = await M({
|
|
36
36
|
img: p.current,
|
|
37
37
|
src: a,
|
|
38
38
|
srcSet: o,
|
|
39
39
|
sizes: r
|
|
40
40
|
});
|
|
41
|
-
|
|
41
|
+
m(t ? "loaded" : "error");
|
|
42
42
|
}, [a, o, r]);
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
}, [
|
|
43
|
+
return V(() => {
|
|
44
|
+
b();
|
|
45
|
+
}, [b]), /* @__PURE__ */ C(
|
|
46
46
|
"div",
|
|
47
47
|
{
|
|
48
|
-
ref:
|
|
49
|
-
className:
|
|
50
|
-
[`${e}--aspect-ratio-${
|
|
51
|
-
[`${e}--error-image`]:
|
|
48
|
+
ref: x,
|
|
49
|
+
className: s(e, h, {
|
|
50
|
+
[`${e}--aspect-ratio-${g.replace("/", "-")}`]: g !== "none",
|
|
51
|
+
[`${e}--error-image`]: i === "error" || n
|
|
52
52
|
}),
|
|
53
53
|
role: "img",
|
|
54
|
-
"aria-label":
|
|
55
|
-
...c,
|
|
54
|
+
"aria-label": c,
|
|
56
55
|
...u,
|
|
56
|
+
...$,
|
|
57
57
|
children: [
|
|
58
|
-
|
|
58
|
+
v && /* @__PURE__ */ l(
|
|
59
59
|
"div",
|
|
60
60
|
{
|
|
61
|
-
className:
|
|
62
|
-
[`${e}-blur--hidden`]:
|
|
61
|
+
className: s(`${e}-blur`, {
|
|
62
|
+
[`${e}-blur--hidden`]: i === "loading" || i === "error" || n
|
|
63
63
|
}),
|
|
64
64
|
style: { backgroundImage: `url(${a})` }
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
|
|
67
|
+
i === "error" || n ? /* @__PURE__ */ l("div", { className: `${e}--error`, children: n ? /* @__PURE__ */ l(I, { icon: "ImageUnavailable", "aria-label": "Image Unavailable", role: "img" }) : /* @__PURE__ */ l(I, { icon: "PhillipsLogo", "aria-label": w, role: "img", color: "$black-25" }) }) : null,
|
|
68
68
|
/* @__PURE__ */ l(
|
|
69
69
|
"img",
|
|
70
70
|
{
|
|
71
|
-
className:
|
|
72
|
-
[`${e}-img--hidden`]:
|
|
73
|
-
[`${e}-img--object-fit-${
|
|
71
|
+
className: s(`${e}-img`, y, {
|
|
72
|
+
[`${e}-img--hidden`]: i === "error" || n,
|
|
73
|
+
[`${e}-img--object-fit-${f}`]: f !== "none"
|
|
74
74
|
}),
|
|
75
75
|
id: a,
|
|
76
|
-
style:
|
|
76
|
+
style: N,
|
|
77
77
|
src: a,
|
|
78
78
|
srcSet: o,
|
|
79
79
|
sizes: r,
|
|
80
|
-
alt:
|
|
81
|
-
"data-testid": `${
|
|
80
|
+
alt: c,
|
|
81
|
+
"data-testid": `${$["data-testid"]}-img`,
|
|
82
82
|
ref: p,
|
|
83
|
-
loading:
|
|
84
|
-
fetchpriority:
|
|
83
|
+
loading: E,
|
|
84
|
+
fetchpriority: L,
|
|
85
85
|
onLoad: () => {
|
|
86
|
-
|
|
86
|
+
m("loaded");
|
|
87
87
|
},
|
|
88
88
|
onError: () => {
|
|
89
|
-
|
|
89
|
+
m("error");
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
)
|
|
@@ -96,7 +96,7 @@ const B = typeof window > "u", H = L(
|
|
|
96
96
|
}
|
|
97
97
|
)
|
|
98
98
|
);
|
|
99
|
-
|
|
99
|
+
q.displayName = "SeldonImage";
|
|
100
100
|
export {
|
|
101
|
-
|
|
101
|
+
q as default
|
|
102
102
|
};
|
|
@@ -43,3 +43,13 @@ export declare const BrokenImage: {
|
|
|
43
43
|
};
|
|
44
44
|
argTypes: {};
|
|
45
45
|
};
|
|
46
|
+
export declare const ImageBlocked: {
|
|
47
|
+
(props: React.ComponentProps<typeof SeldonImage>): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
args: {
|
|
49
|
+
src: string;
|
|
50
|
+
aspectRatio: string;
|
|
51
|
+
objectFit: string;
|
|
52
|
+
imageBlocked: boolean;
|
|
53
|
+
};
|
|
54
|
+
argTypes: {};
|
|
55
|
+
};
|
|
@@ -49,9 +49,13 @@ export interface ObjectTileProps extends ComponentProps<'a'> {
|
|
|
49
49
|
*/
|
|
50
50
|
imageLoading?: ComponentProps<'img'>['loading'];
|
|
51
51
|
/**
|
|
52
|
-
* Image fetch priority. [https://developer.mozilla.org/en-US/docs/Web/
|
|
52
|
+
* Image fetch priority. [https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/fetchPriority]
|
|
53
53
|
*/
|
|
54
54
|
imageFetchPriority?: ComponentProps<'img'>['fetchPriority'];
|
|
55
|
+
/**
|
|
56
|
+
* Whether the image is blocked and should display ImageUnavailable instead of PhillipsLogo.
|
|
57
|
+
*/
|
|
58
|
+
imageBlocked?: boolean;
|
|
55
59
|
/**
|
|
56
60
|
* Object Lot number.
|
|
57
61
|
*/
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as m, jsx as e, Fragment as
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import { getCommonProps as
|
|
1
|
+
import { jsxs as m, jsx as e, Fragment as k } from "react/jsx-runtime";
|
|
2
|
+
import { memo as z, forwardRef as F } from "react";
|
|
3
|
+
import I from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { getCommonProps as L } from "../../utils/index.js";
|
|
5
5
|
import { TextVariants as l } from "../../components/Text/types.js";
|
|
6
6
|
import s from "../../components/Text/Text.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { DetailVariants as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
|
|
7
|
+
import R from "../DetailList/DetailList.js";
|
|
8
|
+
import W from "../../components/Detail/Detail.js";
|
|
9
|
+
import { DetailVariants as w } from "../../components/Detail/types.js";
|
|
10
|
+
import A from "../../components/SeldonImage/SeldonImage.js";
|
|
11
|
+
const B = z(
|
|
12
|
+
F(
|
|
13
13
|
({
|
|
14
14
|
badgeText: N,
|
|
15
15
|
className: f,
|
|
@@ -26,18 +26,19 @@ const A = k(
|
|
|
26
26
|
imageSizes: j,
|
|
27
27
|
imageLoading: E,
|
|
28
28
|
imageFetchPriority: y,
|
|
29
|
-
|
|
29
|
+
imageBlocked: P,
|
|
30
|
+
lotNumber: C,
|
|
30
31
|
makerText: c,
|
|
31
32
|
modelText: _,
|
|
32
33
|
referenceNumber: d,
|
|
33
34
|
titleText: h,
|
|
34
35
|
withdrawnText: i,
|
|
35
36
|
...p
|
|
36
|
-
},
|
|
37
|
-
const { className: a, ...
|
|
38
|
-
return /* @__PURE__ */ m(
|
|
37
|
+
}, D) => {
|
|
38
|
+
const { className: a, ...x } = L(p, "ObjectTile"), O = b ?? "a", V = n || t;
|
|
39
|
+
return /* @__PURE__ */ m(O, { ...x, className: I(a, f), ...p, ref: D, children: [
|
|
39
40
|
/* @__PURE__ */ e(
|
|
40
|
-
|
|
41
|
+
A,
|
|
41
42
|
{
|
|
42
43
|
alt: u,
|
|
43
44
|
aspectRatio: "1/1",
|
|
@@ -47,16 +48,17 @@ const A = k(
|
|
|
47
48
|
srcSet: S,
|
|
48
49
|
sizes: j,
|
|
49
50
|
loading: E,
|
|
50
|
-
fetchPriority: y
|
|
51
|
+
fetchPriority: y,
|
|
52
|
+
imageBlocked: P
|
|
51
53
|
}
|
|
52
54
|
),
|
|
53
55
|
i ? null : /* @__PURE__ */ e(s, { element: "span", className: `${a}__badge`, variant: l.labelSmall, children: N }),
|
|
54
56
|
/* @__PURE__ */ m("div", { className: `${a}__lot-number-like`, children: [
|
|
55
|
-
/* @__PURE__ */ e(s, { element: "span", className: `${a}__lot-number`, variant: l.headingSmall, children:
|
|
57
|
+
/* @__PURE__ */ e(s, { element: "span", className: `${a}__lot-number`, variant: l.headingSmall, children: C }),
|
|
56
58
|
r && /* @__PURE__ */ e("div", { className: `${a}__lot-badge`, children: /* @__PURE__ */ e(r, {}) }),
|
|
57
59
|
o && /* @__PURE__ */ e(o, {})
|
|
58
60
|
] }),
|
|
59
|
-
i ? /* @__PURE__ */ e(s, { element: "span", className: `${a}__withdrawn`, variant: l.headingSmall, children: i }) : /* @__PURE__ */ m(
|
|
61
|
+
i ? /* @__PURE__ */ e(s, { element: "span", className: `${a}__withdrawn`, variant: l.headingSmall, children: i }) : /* @__PURE__ */ m(k, { children: [
|
|
60
62
|
/* @__PURE__ */ m("div", { className: `${a}__meta`, children: [
|
|
61
63
|
c ? /* @__PURE__ */ e(s, { element: "span", className: `${a}__maker`, variant: l.headingSmall, children: c }) : null,
|
|
62
64
|
h ? /* @__PURE__ */ e(s, { element: "cite", className: `${a}__title`, variant: l.headingExtraSmall, children: h }) : null,
|
|
@@ -71,14 +73,14 @@ const A = k(
|
|
|
71
73
|
) : null,
|
|
72
74
|
_ ? /* @__PURE__ */ e(s, { className: `${a}__model`, variant: l.headingExtraSmall, element: "span", children: _ }) : null
|
|
73
75
|
] }),
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
V ? /* @__PURE__ */ e(
|
|
77
|
+
R,
|
|
76
78
|
{
|
|
77
79
|
hasSeparators: !0,
|
|
78
80
|
className: `${a}__estimate ${a}__section`,
|
|
79
|
-
variant:
|
|
81
|
+
variant: w.sm,
|
|
80
82
|
children: /* @__PURE__ */ e(
|
|
81
|
-
|
|
83
|
+
W,
|
|
82
84
|
{
|
|
83
85
|
className: `${a}__estimate__label`,
|
|
84
86
|
label: g,
|
|
@@ -94,7 +96,7 @@ const A = k(
|
|
|
94
96
|
}
|
|
95
97
|
)
|
|
96
98
|
);
|
|
97
|
-
|
|
99
|
+
B.displayName = "ObjectTile";
|
|
98
100
|
export {
|
|
99
|
-
|
|
101
|
+
B as default
|
|
100
102
|
};
|
|
@@ -78,3 +78,22 @@ export declare const SoldState: {
|
|
|
78
78
|
modelText: string;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
+
export declare const ImageBlocked: {
|
|
82
|
+
(props: ComponentProps<typeof ObjectTile>): import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
args: {
|
|
84
|
+
imageBlocked: boolean;
|
|
85
|
+
badgeText: string;
|
|
86
|
+
badgeElement: () => import("react/jsx-runtime").JSX.Element;
|
|
87
|
+
favoriteElement: () => import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
estimate: string;
|
|
89
|
+
element: string;
|
|
90
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
href: string;
|
|
92
|
+
imageUrl: string;
|
|
93
|
+
lotNumber: string;
|
|
94
|
+
makerText: string;
|
|
95
|
+
titleText: string;
|
|
96
|
+
referenceNumber: string;
|
|
97
|
+
modelText: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
@@ -19,12 +19,15 @@
|
|
|
19
19
|
background-color: $bg-soft;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
.phillips-logo {
|
|
23
|
+
fill: $medium-gray;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
svg {
|
|
27
|
+
fill: $medium-gray;
|
|
24
28
|
left: 50%;
|
|
29
|
+
max-width: 50%;
|
|
25
30
|
position: absolute;
|
|
26
|
-
text-align: center;
|
|
27
|
-
text-transform: uppercase;
|
|
28
31
|
top: 50%;
|
|
29
32
|
transform: translate(-50%, -50%);
|
|
30
33
|
}
|