pds-dev-kit-web 0.5.3 → 0.5.4

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.
@@ -27,7 +27,7 @@ function buildCascadedColors(lowLevel, highLevel, override) {
27
27
  // 서버로부터 해당 채널에서 커스텀으로 설정한 팔레트 가져오기
28
28
  // from server (원래는 비동기)
29
29
  var channelSettings = {
30
- tone: 'dark',
30
+ tone: 'light',
31
31
  customPalette: {
32
32
  usr_good_job: '#999999'
33
33
  }
@@ -30,8 +30,7 @@ var react_1 = __importDefault(require("react"));
30
30
  var styled_components_1 = __importStar(require("styled-components"));
31
31
  var ImageView = function (_a) {
32
32
  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;
33
- return (react_1.default.createElement(react_1.default.Fragment, null, ratio === 'auto' ? (react_1.default.createElement(S_AutoImageViewWrapper, { "$height": height, "$width": width, noImageHeight: noImageHeight, noImageWidth: noImageWidth, borderMode: borderMode, shapeType: shapeType, radius: radius, backgroundFillMode: backgroundFillMode },
34
- react_1.default.createElement(S_AutoImageView, { src: src, "$height": height, "$width": width, scaleType: scaleType }))) : (react_1.default.createElement(S_RatioImageViewWrapper, { "$width": width, borderMode: borderMode, shapeType: shapeType, radius: radius, backgroundFillMode: backgroundFillMode },
33
+ return (react_1.default.createElement(react_1.default.Fragment, null, ratio === 'auto' ? (react_1.default.createElement(S_AutoImageViewWrapper, { "$height": height, "$width": width, noImageHeight: noImageHeight, noImageWidth: noImageWidth, borderMode: borderMode, shapeType: shapeType, radius: radius, backgroundFillMode: backgroundFillMode }, src && (react_1.default.createElement(S_AutoImageView, { src: src, "$height": height, "$width": width, scaleType: scaleType })))) : (react_1.default.createElement(S_RatioImageViewWrapper, { "$width": width, borderMode: borderMode, shapeType: shapeType, radius: radius, backgroundFillMode: backgroundFillMode },
35
34
  react_1.default.createElement(S_RatioImageView, { "$src": src, scaleType: scaleType, ratio: ratio })))));
36
35
  };
37
36
  var wrapperStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n display: inline-block;\n vertical-align: bottom;\n overflow: hidden;\n ", ";\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n display: inline-block;\n vertical-align: bottom;\n overflow: hidden;\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
@@ -95,8 +94,8 @@ var onlyWidthWrapperStyle = (0, styled_components_1.css)(templateObject_4 || (te
95
94
  var $width = _a.$width;
96
95
  return ($width === 'responsive' ? '100%' : $width + "px");
97
96
  }, function (_a) {
98
- var theme = _a.theme, noImageHeight = _a.noImageHeight;
99
- return noImageHeight ? "background-color: " + theme.ui_temp_grey_04 : '';
97
+ var theme = _a.theme, noImageHeight = _a.noImageHeight, src = _a.src;
98
+ return !src && noImageHeight ? "background-color: " + theme.ui_temp_grey_04 : '';
100
99
  });
101
100
  var onlyHeightWrapperStyle = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n min-height: ", ";\n min-width: ", ";\n height: ", ";\n width: ", ";\n ", ";\n"], ["\n min-height: ", ";\n min-width: ", ";\n height: ", ";\n width: ", ";\n ", ";\n"])), function (_a) {
102
101
  var $height = _a.$height;
@@ -111,10 +110,10 @@ var onlyHeightWrapperStyle = (0, styled_components_1.css)(templateObject_5 || (t
111
110
  var noImageWidth = _a.noImageWidth;
112
111
  return (noImageWidth ? noImageWidth + "px" : 'auto');
113
112
  }, function (_a) {
114
- var theme = _a.theme, noImageWidth = _a.noImageWidth;
115
- return noImageWidth ? "background-color: " + theme.ui_temp_grey_04 : '';
113
+ var theme = _a.theme, noImageWidth = _a.noImageWidth, src = _a.src;
114
+ return !src && noImageWidth ? "background-color: " + theme.ui_temp_grey_04 : '';
116
115
  });
117
- var bothWrapperStyle = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n min-height: ", ";\n height: ", ";\n min-width: ", ";\n width: ", ";\n"], ["\n min-height: ", ";\n height: ", ";\n min-width: ", ";\n width: ", ";\n"])), function (_a) {
116
+ var bothWrapperStyle = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n min-height: ", ";\n height: ", ";\n min-width: ", ";\n width: ", ";\n ", ";\n"], ["\n min-height: ", ";\n height: ", ";\n min-width: ", ";\n width: ", ";\n ", ";\n"])), function (_a) {
118
117
  var $height = _a.$height;
119
118
  return ($height === 'responsive' ? '100%' : $height + "px");
120
119
  }, function (_a) {
@@ -126,6 +125,9 @@ var bothWrapperStyle = (0, styled_components_1.css)(templateObject_6 || (templat
126
125
  }, function (_a) {
127
126
  var $width = _a.$width;
128
127
  return ($width === 'responsive' ? '100%' : $width + "px");
128
+ }, function (_a) {
129
+ var theme = _a.theme, src = _a.src;
130
+ return (!src ? "background-color: " + theme.ui_temp_grey_04 : '');
129
131
  });
130
132
  var onlyWidthStyle = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: 100%;\n height: auto;\n"], ["\n width: 100%;\n height: auto;\n"])));
131
133
  var onlyHeightStyle = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width: auto;\n height: 100%;\n"], ["\n width: auto;\n height: 100%;\n"])));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",