pds-dev-kit-web-test 2.7.468 → 2.7.470

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.
@@ -143,7 +143,7 @@ function Button(props) {
143
143
  var _o = extractBorderStyles(propsStyle), borderNormalStyle = _o.borderStyleProps, cleanedNormalStyle = _o.remainingStyle;
144
144
  // hover 스타일 분리
145
145
  var _p = extractBorderStyles(propsHoverStyle), borderHoverStyle = _p.borderStyleProps, cleanedHoverStyle = _p.remainingStyle;
146
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle, style: { paddingLeft: paddingLeft, paddingRight: paddingRight, paddingBottom: paddingBottom, paddingTop: paddingTop } }, { children: (0, jsx_runtime_1.jsx)(S_ShadowBox, __assign({ "$normalStyle": __assign(__assign(__assign({ height: '100%', display: 'flex', alignItems: "".concat(btnTextStyle.alignItems), overflowY: btnTextStyle.overflowY, scrollbarWidth: btnTextStyle.scrollbarWidth }, effectCssProperties), normalShadowStyle), borderNormalStyle), "$hoverStyle": __assign(__assign({}, hoverShadowStyle), borderHoverStyle) }, { children: (0, jsx_runtime_1.jsxs)(S_CB_Box_1.S_CB_Box, __assign({ onMouseLeave: function (e) {
146
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle, style: { paddingLeft: paddingLeft, paddingRight: paddingRight, paddingBottom: paddingBottom, paddingTop: paddingTop } }, { children: (0, jsx_runtime_1.jsx)(S_ShadowBox, __assign({ "$normalStyle": __assign(__assign(__assign({ height: '100%', display: 'flex', alignItems: "".concat(btnTextStyle.alignItems), overflowY: 'hidden', scrollbarWidth: btnTextStyle.scrollbarWidth }, effectCssProperties), normalShadowStyle), borderNormalStyle), "$hoverStyle": __assign(__assign({}, hoverShadowStyle), borderHoverStyle) }, { children: (0, jsx_runtime_1.jsxs)(S_CB_Box_1.S_CB_Box, __assign({ onMouseLeave: function (e) {
147
147
  e.currentTarget.classList.remove('hovered');
148
148
  }, className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, btnTextStyle), cleanedNormalStyle), layoutStyle), btnColorStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, overflowY: 'unset', scrollbarWidth: 'unset' }), hoverStyle: __assign(__assign(__assign(__assign({}, btnTextHoverStyle), cleanedHoverStyle), btnColorHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: [textPrefix, textValue(), textSuffix] })) })) }))] }));
149
149
  }
@@ -10,5 +10,7 @@ export declare function getTextStyles(props: CB_STYLE_PROP_TEXT_SPECS, device: D
10
10
  export declare function getTextOptionStyles(props: CB_STYLE_PROP_TEXTOPTION, device: Device): {
11
11
  style: import("styled-components").CSSProperties;
12
12
  hoverStyle: import("styled-components").CSSProperties;
13
+ } | {
14
+ style: {};
13
15
  };
14
16
  export {};
@@ -65,7 +65,7 @@ function Text(props) {
65
65
  internalSrc: String(CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC)
66
66
  }), CLINKCursor = _j.CLINKCursor, onClickCLINK = _j.onClickCLINK;
67
67
  var _k = getTextStyles(props.CB_STYLE_PROP_TEXT, device), textStyle = _k.style, textHoverStyle = _k.hoverStyle;
68
- var textOptionStyle = getTextOptionStyles(props.CB_STYLE_PROP_TEXTOPTION, device).style;
68
+ var textOptionStyle = getTextOptionStyles(props === null || props === void 0 ? void 0 : props.CB_STYLE_PROP_TEXTOPTION, device).style;
69
69
  Object.assign(textStyle, textOptionStyle);
70
70
  var _l = (0, util_1.parseProperties)(props, device), propsStyle = _l.style, propsHoverStyle = _l.hoverStyle, layoutStyle = _l.layout, effect = _l.effect;
71
71
  var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
@@ -173,6 +173,12 @@ function getTextOptionStyles(props, device) {
173
173
  'CB_STYLE_PROP_TEXTOPTION_SPEC_SCROLLBAR',
174
174
  'CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT'
175
175
  ];
176
+ console.log('props', props);
177
+ if (!props) {
178
+ return {
179
+ style: {}
180
+ };
181
+ }
176
182
  return (0, textUtil_1.parseStyleTextToCSSProp)({
177
183
  availableSpecCodes: availableSpecCodes,
178
184
  props: props,
@@ -136,10 +136,9 @@ function parseStyleTextToCSSProp(_a) {
136
136
  style: {},
137
137
  hoverStyle: {}
138
138
  });
139
- // const cbCode = props
140
139
  var defaultValue = cbCode === types_1.CB_ALL_CODES.CB_BTN ? false : true;
141
- var desktopValue = (_b = props['CB_STYLE_PROP_TEXT_SPEC_FITCONTENT']) !== null && _b !== void 0 ? _b : defaultValue;
142
- var mobileValue = (_c = props['CB_STYLE_PROP_TEXT_SPEC_FITCONTENT:MOBILE']) !== null && _c !== void 0 ? _c : desktopValue;
140
+ var desktopValue = (_b = props['CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT']) !== null && _b !== void 0 ? _b : defaultValue;
141
+ var mobileValue = (_c = props['CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT:MOBILE']) !== null && _c !== void 0 ? _c : desktopValue;
143
142
  var fitContentValue = device === 'DESKTOP' ? desktopValue : mobileValue;
144
143
  if (fitContentValue === true) {
145
144
  styleProps.style.overflowY = 'hidden';
@@ -203,9 +202,6 @@ function getTextCSSPropKey(key, cbName) {
203
202
  }
204
203
  }
205
204
  exports.getTextCSSPropKey = getTextCSSPropKey;
206
- // 'CB_STYLE_PROP_TEXTOPTION_SPEC_SCROLLCONTENTS',
207
- // 'CB_STYLE_PROP_TEXTOPTION_SPEC_SCROLLBAR',
208
- // 'CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT'
209
205
  function getFontName(value) {
210
206
  switch (value) {
211
207
  case 'SYSSANS':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.468",
3
+ "version": "2.7.470",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",