pds-dev-kit-web 2.2.288 → 2.2.289

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,7 @@
1
1
  /// <reference types="react" />
2
2
  export type ImageViewProps = {
3
3
  src?: string;
4
+ altText?: string;
4
5
  shapeType?: 'round' | 'circular' | 'rectangle';
5
6
  radius?: 8 | 16 | 24;
6
7
  width?: number | 'responsive';
@@ -13,5 +14,5 @@ export type ImageViewProps = {
13
14
  backgroundFillMode?: 'use' | 'none';
14
15
  isLoading?: boolean;
15
16
  };
16
- declare const ImageView: ({ src, shapeType, radius, width, height, noImageHeight, noImageWidth, ratio, scaleType, borderMode, backgroundFillMode, isLoading }: ImageViewProps) => JSX.Element;
17
+ declare const ImageView: ({ src, altText, shapeType, radius, width, height, noImageHeight, noImageWidth, ratio, scaleType, borderMode, backgroundFillMode, isLoading }: ImageViewProps) => JSX.Element;
17
18
  export default ImageView;
@@ -42,7 +42,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
42
42
  var styled_components_1 = __importStar(require("styled-components"));
43
43
  var styles_1 = require("../../../common/styles");
44
44
  var ImageView = function (_a) {
45
- var src = _a.src, _b = _a.shapeType, shapeType = _b === void 0 ? 'round' : _b, _c = _a.radius, radius = _c === void 0 ? 8 : _c, width = _a.width, height = _a.height, noImageHeight = _a.noImageHeight, noImageWidth = _a.noImageWidth, _d = _a.ratio, ratio = _d === void 0 ? 'auto' : _d, _e = _a.scaleType, scaleType = _e === void 0 ? 'none' : _e, _f = _a.borderMode, borderMode = _f === void 0 ? 'none' : _f, _g = _a.backgroundFillMode, backgroundFillMode = _g === void 0 ? 'none' : _g, isLoading = _a.isLoading;
45
+ var src = _a.src, altText = _a.altText, _b = _a.shapeType, shapeType = _b === void 0 ? 'round' : _b, _c = _a.radius, radius = _c === void 0 ? 8 : _c, width = _a.width, height = _a.height, noImageHeight = _a.noImageHeight, noImageWidth = _a.noImageWidth, _d = _a.ratio, ratio = _d === void 0 ? 'auto' : _d, _e = _a.scaleType, scaleType = _e === void 0 ? 'none' : _e, _f = _a.borderMode, borderMode = _f === void 0 ? 'none' : _f, _g = _a.backgroundFillMode, backgroundFillMode = _g === void 0 ? 'none' : _g, isLoading = _a.isLoading;
46
46
  var LoadingAutoImageView = function () {
47
47
  if (width && !height && !noImageHeight) {
48
48
  return ((0, jsx_runtime_1.jsx)(S_LoadingRatioImageViewWrapper, __assign({ "$width": width, shapeType: shapeType, "$radius": radius }, { children: (0, jsx_runtime_1.jsx)(S_LoadingRatioImageView, { ratio: "4_3" }) })));
@@ -66,7 +66,7 @@ var ImageView = function (_a) {
66
66
  if (isLoading) {
67
67
  return LoadingImageView();
68
68
  }
69
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: ratio === 'auto' ? ((0, jsx_runtime_1.jsx)(S_AutoImageViewWrapper, __assign({ "x-pds-name": "ImageView", "x-pds-element-type": "component", "x-pds-device-type": "hybrid", "$height": height, "$width": width, noImageHeight: noImageHeight, noImageWidth: noImageWidth, borderMode: borderMode, shapeType: shapeType, "$radius": radius, backgroundFillMode: backgroundFillMode, "$src": src }, { children: src && ((0, jsx_runtime_1.jsx)(S_AutoImageView, { src: src, "$height": height, "$width": width, scaleType: scaleType })) }))) : ((0, jsx_runtime_1.jsx)(S_RatioImageViewWrapper, __assign({ "x-pds-name": "ImageView", "x-pds-element-type": "component", "x-pds-device-type": "hybrid", "$width": width, borderMode: borderMode, shapeType: shapeType, "$radius": radius, backgroundFillMode: backgroundFillMode }, { children: (0, jsx_runtime_1.jsx)(S_RatioImageView, { "$src": src, scaleType: scaleType, ratio: ratio }) }))) }));
69
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: ratio === 'auto' ? ((0, jsx_runtime_1.jsx)(S_AutoImageViewWrapper, __assign({ "x-pds-name": "ImageView", "x-pds-element-type": "component", "x-pds-device-type": "hybrid", "$height": height, "$width": width, noImageHeight: noImageHeight, noImageWidth: noImageWidth, borderMode: borderMode, shapeType: shapeType, "$radius": radius, backgroundFillMode: backgroundFillMode, "$src": src }, { children: src && ((0, jsx_runtime_1.jsx)(S_AutoImageView, { src: src, "$height": height, "$width": width, scaleType: scaleType, alt: altText })) }))) : ((0, jsx_runtime_1.jsx)(S_RatioImageViewWrapper, __assign({ "x-pds-name": "ImageView", "x-pds-element-type": "component", "x-pds-device-type": "hybrid", "$width": width, borderMode: borderMode, shapeType: shapeType, "$radius": radius, backgroundFillMode: backgroundFillMode }, { children: (0, jsx_runtime_1.jsx)(S_RatioImageView, { "$src": src, scaleType: scaleType, ratio: ratio, title: altText }) }))) }));
70
70
  };
71
71
  return ImageViewVariation();
72
72
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.2.288",
3
+ "version": "2.2.289",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.2.288]
2
+ ## [v2.2.289]
3
3
  ## daily|https://design.storybook.publ.biz/
4
4
 
5
5
  ### 업데이트 사항
6
6
 
7
- * [PDS-1400] BoxItem 컴포넌트의 state : disabled일 때 descText 색상 변경 건
7
+ * [PDS-1405] ImageView altText prop 추가