pds-dev-kit-web-test 2.2.76 → 2.2.78
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.
@@ -5985,10 +5985,10 @@ exports.sampleCustomsectionOnlyText = {
|
|
5985
5985
|
CB_LAYOUT_PROP_PADDING_SPEC_FIX: true,
|
5986
5986
|
'CB_LAYOUT_PROP_PADDING_SPEC_FIX:MOBILE': null,
|
5987
5987
|
CB_LAYOUT_PROP_PADDING_SPEC_PADDING: {
|
5988
|
-
bottom:
|
5989
|
-
left:
|
5990
|
-
right:
|
5991
|
-
top:
|
5988
|
+
bottom: 20,
|
5989
|
+
left: 20,
|
5990
|
+
right: 20,
|
5991
|
+
top: 20
|
5992
5992
|
},
|
5993
5993
|
'CB_LAYOUT_PROP_PADDING_SPEC_PADDING:MOBILE': null
|
5994
5994
|
},
|
@@ -1,4 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
4
|
+
return cooked;
|
5
|
+
};
|
2
6
|
var __assign = (this && this.__assign) || function () {
|
3
7
|
__assign = Object.assign || function(t) {
|
4
8
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -19,6 +23,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
23
|
/* eslint-disable react/destructuring-assignment */
|
20
24
|
var react_1 = require("react");
|
21
25
|
var DynamicLayout_1 = require("../../../../../../../DynamicLayout");
|
26
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
22
27
|
var hooks_1 = require("../../../../hooks");
|
23
28
|
var getGoogleFonts_1 = require("../../../../hooks/useGoogleFonts/getGoogleFonts");
|
24
29
|
var useGoogleFonts_1 = __importDefault(require("../../../../hooks/useGoogleFonts/useGoogleFonts"));
|
@@ -56,8 +61,17 @@ function Text(props) {
|
|
56
61
|
: CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
|
57
62
|
var hasEffect = !isNoneEffectType;
|
58
63
|
var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
|
59
|
-
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 }, { children: (0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box cb-text-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), effectCssProperties), layoutStyle), { cursor: CLINKCursor }), hoverStyle: __assign(__assign({}, textHoverStyle), propsHoverStyle), onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(
|
64
|
+
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 }, { children: (0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box cb-text-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), effectCssProperties), layoutStyle), { cursor: CLINKCursor, paddingTop: 0, paddingBottom: 0, paddingLeft: 0, paddingRight: 0 }), hoverStyle: __assign(__assign({}, textHoverStyle), propsHoverStyle), onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(S_TextContent, __assign({ className: "cb-text-content", style: {
|
65
|
+
whiteSpace: 'pre-wrap',
|
66
|
+
wordBreak: 'break-word',
|
67
|
+
height: 'fit-content',
|
68
|
+
paddingTop: layoutStyle.paddingTop,
|
69
|
+
paddingBottom: layoutStyle.paddingBottom,
|
70
|
+
paddingLeft: layoutStyle.paddingLeft,
|
71
|
+
paddingRight: layoutStyle.paddingRight
|
72
|
+
} }, { children: props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT })) })) }))] }));
|
60
73
|
}
|
74
|
+
var S_TextContent = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n all: inherit;\n"], ["\n all: inherit;\n"])));
|
61
75
|
function getTextStyles(props, device) {
|
62
76
|
var availableSpecCodes = [
|
63
77
|
'CB_STYLE_PROP_TEXT_SPEC_TYPEFACE',
|
@@ -77,3 +91,4 @@ function getTextStyles(props, device) {
|
|
77
91
|
});
|
78
92
|
}
|
79
93
|
exports.default = Text;
|
94
|
+
var templateObject_1;
|