pds-dev-kit-web-test 2.4.45 → 2.4.46

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.
@@ -367,14 +367,14 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
367
367
  if (device === 'MOBILE') {
368
368
  var cellWidth_1 = width / MOBILE_GRID_COLS;
369
369
  setRowHeight(cellWidth_1 * 0.56);
370
- baseFontSize !== 16 && setBaseFontSize(width * 0.0133);
370
+ // baseFontSize !== 16 && setBaseFontSize(width * 0.0133);
371
+ responsiveFontMode ? setBaseFontSize(width * 0.0133) : setBaseFontSize(16);
371
372
  return;
372
373
  }
373
374
  var cellWidth = width / DESKTOP_GRID_COLS;
374
375
  setRowHeight(cellWidth * 0.56);
375
- responsiveFontMode ? setBaseFontSize(cellWidth / 2.35) : setBaseFontSize(width * 0.0133);
376
+ responsiveFontMode ? setBaseFontSize(width * 0.0133) : setBaseFontSize(cellWidth / 2.35);
376
377
  };
377
- console.log('basefontsize: ', baseFontSize);
378
378
  var padding = (0, parseSectionPadding_1.default)(CB_LAYOUT_PROP_PADDING, device);
379
379
  var breakpoints = device === 'DESKTOP' ? { lg: 100, sm: 0 } : { lg: 1200, sm: 480 };
380
380
  var innerRef = (0, react_1.useRef)(null);
@@ -65,7 +65,10 @@ function Text(props) {
65
65
  var fontsize = textStyle.fontSize;
66
66
  console.log(fontsize);
67
67
  // const rate = fontsize / baseWidth;
68
- 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({ style: __assign(__assign({ height: 'fit-content' }, textStyle), { minWidth: '2ch' }), ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), effectCssProperties), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, height: 'fit-content', minWidth: '2ch' }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT })) }))] }));
68
+ 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({ style: {
69
+ height: 'fit-content',
70
+ minWidth: '2ch'
71
+ }, ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), effectCssProperties), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, height: 'fit-content', minWidth: '2ch' }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT })) }))] }));
69
72
  }
70
73
  function getTextStyles(props, device) {
71
74
  var availableSpecCodes = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.4.45",
3
+ "version": "2.4.46",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",