pds-dev-kit-web-test 2.7.467 → 2.7.469

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.
@@ -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,6 +65,8 @@ 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 === null || props === void 0 ? void 0 : props.CB_STYLE_PROP_TEXTOPTION, device).style;
69
+ Object.assign(textStyle, textOptionStyle);
68
70
  var _l = (0, util_1.parseProperties)(props, device), propsStyle = _l.style, propsHoverStyle = _l.hoverStyle, layoutStyle = _l.layout, effect = _l.effect;
69
71
  var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
70
72
  var isEditModeAndHeightFitContent = heightFitContent && mode === 'EDIT';
@@ -171,6 +173,12 @@ function getTextOptionStyles(props, device) {
171
173
  'CB_STYLE_PROP_TEXTOPTION_SPEC_SCROLLBAR',
172
174
  'CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT'
173
175
  ];
176
+ console.log('props', props);
177
+ if (!props) {
178
+ return {
179
+ style: {}
180
+ };
181
+ }
174
182
  return (0, textUtil_1.parseStyleTextToCSSProp)({
175
183
  availableSpecCodes: availableSpecCodes,
176
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.467",
3
+ "version": "2.7.469",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",