pds-dev-kit-web-test 0.2.24 → 0.2.25
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/src/common/styles/colorSet/PaletteColor_Dark.json +1 -1
- package/dist/src/common/styles/colorSet/index.d.ts +835 -835
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/sub/DynamicLayout/components/Section/Section.d.ts +2 -4
- package/dist/src/sub/DynamicLayout/components/Section/Section.js +2 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +10 -11
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.js +2 -2
- package/package.json +1 -1
- package/release-note.md +4 -6
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
7
|
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
8
|
+
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
8
9
|
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
9
10
|
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
10
|
-
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
11
11
|
var colorSet = {
|
|
12
12
|
SemanticColor: SemanticColor_json_1.default,
|
|
13
|
+
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
13
14
|
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
14
|
-
UIColor: UIColor_json_1.default
|
|
15
|
-
PaletteColor_light: PaletteColor_light_json_1.default
|
|
15
|
+
UIColor: UIColor_json_1.default
|
|
16
16
|
};
|
|
17
17
|
exports.default = colorSet;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { ISection } from '../../types';
|
|
3
3
|
declare type SectionPropTypes = ISection & {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
|
-
} & {
|
|
6
|
-
overrideStyles?: CSSProperties;
|
|
7
5
|
};
|
|
8
|
-
declare function Section({ children,
|
|
6
|
+
declare function Section({ children, ...props }: SectionPropTypes): JSX.Element;
|
|
9
7
|
export default Section;
|
|
@@ -37,9 +37,8 @@ var YouTubeIframe_1 = require("../YouTubeIframe");
|
|
|
37
37
|
var sectionContext_1 = require("./sectionContext");
|
|
38
38
|
function Section(_a) {
|
|
39
39
|
var _b;
|
|
40
|
-
var children = _a.children,
|
|
41
|
-
|
|
42
|
-
return ((0, jsx_runtime_1.jsx)(sectionContext_1.sectionContext.Provider, __assign({ value: __assign({}, props) }, { children: (0, jsx_runtime_1.jsxs)(S_Section, __assign({ style: overrideStyles, isIframeSection: ((_b = props.manifest) === null || _b === void 0 ? void 0 : _b.schema) === 'EXP_IFRAME', onMouseEnter: function () { return setIsHover(true); }, onMouseMove: function () { return !isHover && setIsHover(true); }, onMouseLeave: function () { return setIsHover(false); } }, { children: [(0, jsx_runtime_1.jsx)(Background, {}, void 0), children] }), void 0) }), void 0));
|
|
40
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(sectionContext_1.sectionContext.Provider, __assign({ value: __assign({}, props) }, { children: (0, jsx_runtime_1.jsxs)(S_Section, __assign({ isIframeSection: ((_b = props.manifest) === null || _b === void 0 ? void 0 : _b.schema) === 'EXP_IFRAME' }, { children: [(0, jsx_runtime_1.jsx)(Background, {}, void 0), children] }), void 0) }), void 0));
|
|
43
42
|
}
|
|
44
43
|
var S_Section = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n height: ", ";\n position: relative;\n width: 100%;\n z-index: 0;\n"], ["\n box-sizing: border-box;\n height: ", ";\n position: relative;\n width: 100%;\n z-index: 0;\n"])), function (_a) {
|
|
45
44
|
var isIframeSection = _a.isIframeSection;
|
|
@@ -64,20 +64,20 @@ function Image(props) {
|
|
|
64
64
|
var hasEffect = CB_EFFECT_PROP_ENTANIM.CB_EFFECT_PROP_ENTANIM_SPEC_TYPE !== 'NONE' &&
|
|
65
65
|
CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] !== 'NONE';
|
|
66
66
|
var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
|
|
67
|
-
return ((0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(
|
|
67
|
+
return ((0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, layout), effectCssProperties), boxStyle.normal), { cursor: CLINKCursor }), hoverStyle: __assign({}, boxStyle.hover), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, ref: cbRef, onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(S_Image, __assign({ src: CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR, normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }, { children: (0, jsx_runtime_1.jsx)("img", { src: CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR, style: { visibility: 'hidden', width: '100%', height: '100%' } }, void 0) }), void 0) }), void 0) }), void 0));
|
|
68
68
|
}
|
|
69
69
|
function parseImageCBStyle(style, hoverStyle) {
|
|
70
70
|
var boxStyle = {
|
|
71
71
|
normal: {
|
|
72
72
|
borderBottomRightRadius: style.borderBottomRightRadius,
|
|
73
|
-
borderBottomLeftRadius: style.
|
|
73
|
+
borderBottomLeftRadius: style.borderBottomRightRadius,
|
|
74
74
|
borderTopLeftRadius: style.borderTopLeftRadius,
|
|
75
75
|
borderTopRightRadius: style.borderTopRightRadius,
|
|
76
76
|
borderColor: style.borderColor,
|
|
77
77
|
borderStyle: style.borderStyle,
|
|
78
78
|
borderWidth: style.borderWidth,
|
|
79
79
|
visibility: style.visibility,
|
|
80
|
-
opacity: style.
|
|
80
|
+
opacity: style.opacity,
|
|
81
81
|
boxShadow: style.boxShadow
|
|
82
82
|
},
|
|
83
83
|
hover: {
|
|
@@ -89,7 +89,7 @@ function parseImageCBStyle(style, hoverStyle) {
|
|
|
89
89
|
borderStyle: hoverStyle.borderStyle,
|
|
90
90
|
borderWidth: hoverStyle.borderWidth,
|
|
91
91
|
visibility: hoverStyle.visibility,
|
|
92
|
-
opacity: hoverStyle.
|
|
92
|
+
opacity: hoverStyle.opacity,
|
|
93
93
|
boxShadow: hoverStyle.boxShadow
|
|
94
94
|
}
|
|
95
95
|
};
|
|
@@ -105,26 +105,25 @@ function parseImageCBStyle(style, hoverStyle) {
|
|
|
105
105
|
};
|
|
106
106
|
return { boxStyle: boxStyle, imgStyle: imgStyle };
|
|
107
107
|
}
|
|
108
|
-
var
|
|
109
|
-
var S_Image = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-image: ", ";\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n\n & img {\n ", ";\n }\n\n &:hover img {\n ", ";\n }\n"], ["\n background-image: ", ";\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n\n & img {\n ", ";\n }\n\n &:hover img {\n ", ";\n }\n"])), function (_a) {
|
|
108
|
+
var S_Image = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-image: ", ";\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n\n & img {\n ", ";\n }\n\n &:hover img {\n ", ";\n }\n"], ["\n background-image: ", ";\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n\n & img {\n ", ";\n }\n\n &:hover img {\n ", ";\n }\n"])), function (_a) {
|
|
110
109
|
var src = _a.src;
|
|
111
110
|
return "url(" + src + ")";
|
|
112
111
|
}, function (_a) {
|
|
113
112
|
var normalStyle = _a.normalStyle;
|
|
114
|
-
return (0, styled_components_1.css)(
|
|
113
|
+
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, normalStyle), { backgroundPosition: normalStyle.backgroundPosition }));
|
|
115
114
|
}, function (_a) {
|
|
116
115
|
var hoverStyle = _a.hoverStyle;
|
|
117
|
-
return (0, styled_components_1.css)(
|
|
116
|
+
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, hoverStyle), { backgroundPosition: hoverStyle.backgroundPosition }));
|
|
118
117
|
}, function (_a) {
|
|
119
118
|
var normalStyle = _a.normalStyle;
|
|
120
119
|
var isContain = normalStyle.backgroundSize === 'contain';
|
|
121
|
-
return (0, styled_components_1.css)(
|
|
120
|
+
return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), isContain ? 'contain' : 'cover');
|
|
122
121
|
}, function (_a) {
|
|
123
122
|
var hoverStyle = _a.hoverStyle, normalStyle = _a.normalStyle;
|
|
124
123
|
var isContain = hoverStyle.backgroundSize
|
|
125
124
|
? hoverStyle.backgroundSize === 'contain'
|
|
126
125
|
: normalStyle.backgroundSize === 'contain';
|
|
127
|
-
return (0, styled_components_1.css)(
|
|
126
|
+
return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), isContain ? 'contain' : 'cover');
|
|
128
127
|
});
|
|
129
128
|
exports.default = Image;
|
|
130
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5
|
|
129
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -39,11 +39,11 @@ function parseStyleColorToCSSProp(_a) {
|
|
|
39
39
|
exports.parseStyleColorToCSSProp = parseStyleColorToCSSProp;
|
|
40
40
|
function getBtnColorStyles(value, cbName) {
|
|
41
41
|
if (value["CB_STYLE_PROP_" + cbName + "_SPEC_TYPE"] === 'NONE') {
|
|
42
|
-
return {
|
|
42
|
+
return { background: 'none' };
|
|
43
43
|
}
|
|
44
44
|
if (value["CB_STYLE_PROP_" + cbName + "_SPEC_TYPE"] === 'SOLID') {
|
|
45
45
|
var style = {
|
|
46
|
-
|
|
46
|
+
background: value["CB_STYLE_PROP_" + cbName + "_SPEC_COLOR"]
|
|
47
47
|
};
|
|
48
48
|
return style;
|
|
49
49
|
}
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# pds-dev-kit-web-test Release Notes
|
|
2
|
-
## [v0.2.
|
|
3
|
-
## 기준 pds-dev-kit-web 버전 @2.
|
|
2
|
+
## [v0.2.25]
|
|
3
|
+
## 기준 pds-dev-kit-web 버전 @2.1.18
|
|
4
4
|
|
|
5
5
|
### sub
|
|
6
|
-
* DynamicLayout
|
|
7
|
-
*
|
|
8
|
-
### Color
|
|
9
|
-
* 컬러 키 값 23.08.07 12시 22분 기준 싱크
|
|
6
|
+
* DynamicLayout
|
|
7
|
+
* section hover시 리렌더 이슈 픽스
|