@team-monolith/cds 1.100.7 → 1.100.8
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.
|
@@ -36,7 +36,7 @@ function useSuspenseImage(src) {
|
|
|
36
36
|
* 접근성과 관련한 이슈로 onClick이 가능할 땐 button 으로 그립니다.
|
|
37
37
|
*/
|
|
38
38
|
function LazyImage(props) {
|
|
39
|
-
const { altText, className, imageRef, src, width, height, maxWidth: _maxWidth, onError, title, buttonProps,
|
|
39
|
+
const { altText, className, imageRef, src, width, height, maxWidth: _maxWidth, onError, title, buttonProps, addtionalInfoLabel, } = props;
|
|
40
40
|
useSuspenseImage(src);
|
|
41
41
|
const img = (_jsx("img", { className: className || undefined, src: src, alt: altText, ref: imageRef, style: {
|
|
42
42
|
height,
|
|
@@ -48,7 +48,7 @@ function LazyImage(props) {
|
|
|
48
48
|
width,
|
|
49
49
|
}, title: title, onError: onError, draggable: "false" }));
|
|
50
50
|
if (buttonProps) {
|
|
51
|
-
return (_jsxs("button", Object.assign({ type: "button", css: RESET_BUTTON }, buttonProps, { children: [img,
|
|
51
|
+
return (_jsxs("button", Object.assign({ type: "button", css: RESET_BUTTON }, buttonProps, { children: [img, addtionalInfoLabel] })));
|
|
52
52
|
}
|
|
53
53
|
return img;
|
|
54
54
|
}
|
|
@@ -196,7 +196,7 @@ export function ImageComponent({ src, altText, nodeKey, width, height, maxWidth,
|
|
|
196
196
|
cursor: pointer;
|
|
197
197
|
`, src: src, altText: altText, imageRef: imageRef, width: width, height: height, maxWidth: maxWidth, onError: () => setIsLoadError(true), buttonProps: {
|
|
198
198
|
onClick: () => window.open(src, "_blank"),
|
|
199
|
-
}, title: "\uD074\uB9AD\uD574\uC11C \uC6D0\uBCF8 \uC774\uBBF8\uC9C0 \uBCF4\uAE30.",
|
|
199
|
+
}, title: "\uD074\uB9AD\uD574\uC11C \uC6D0\uBCF8 \uC774\uBBF8\uC9C0 \uBCF4\uAE30.", addtionalInfoLabel: _jsx("span", Object.assign({ css: VISUALLY_HIDDEN }, { children: "(\uC0C8 \uCC3D)" })) })) })) })));
|
|
200
200
|
}
|
|
201
201
|
return (_jsxs(_Fragment, { children: [_jsxs(EditContainer, { children: [_jsx(Suspense, Object.assign({ fallback: null }, { children: _jsx("div", Object.assign({ draggable: draggable, css: css `
|
|
202
202
|
// ImageResizer를 위한 relative 설정입니다.
|