pds-dev-kit-web-test 2.5.261 → 2.5.263
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/assets/icons/fill/index.d.ts +0 -5
- package/dist/src/common/assets/icons/fill/index.js +1 -11
- package/dist/src/common/assets/icons/line/index.d.ts +0 -5
- package/dist/src/common/assets/icons/line/index.js +1 -11
- package/dist/src/common/hooks/useTooltip.js +1 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +1 -3
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +1 -3
- package/dist/src/common/styles/colorSet/SemanticColor.json +1 -3
- package/dist/src/common/styles/colorSet/UIColor.json +2 -6
- package/dist/src/common/styles/colorSet/index.d.ts +0 -10
- package/dist/src/common/styles/colorSet/ui-type.d.ts +0 -4
- package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
- package/dist/src/desktop/components/Dropdown/Dropdown.js +4 -6
- package/dist/src/desktop/components/MainButton/MainButton.d.ts +1 -1
- package/dist/src/desktop/components/MainButton/MainButton.js +6 -20
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.d.ts +1 -1
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +7 -21
- package/dist/src/mobile/components/MainButton/MainButton.d.ts +1 -1
- package/dist/src/mobile/components/MainButton/MainButton.js +6 -20
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.d.ts +1 -1
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +6 -20
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +56 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +9 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +217 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +27 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItem.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItem.js +75 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +3 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +1 -1
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/ErrorBoundary.js +12 -1
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +5 -3
- package/dist/src/sub/DynamicLayout/gleStyles.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/gleStyles.js +19 -0
- package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.js +6 -1
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +132 -132
- package/dist/src/sub/DynamicLayout/mocks.d.ts +1111 -0
- package/dist/src/sub/DynamicLayout/mocks.js +4775 -0
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +64 -15
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +0 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +731 -200
- package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +8 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +25 -23
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +16 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_Backdrop.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_Backdrop.js +13 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +79 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/getGoogleFonts.d.ts +2 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/getGoogleFonts.js +3 -14
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/index.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/index.js +2 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/clsx.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/clsx.js +33 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/fontSizeAdjustment.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/fontSizeAdjustment.js +333 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/{hooks/useGroupDrag/utils.d.ts → newUtils/group.d.ts} +4 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/{hooks/useGroupDrag/utils.js → newUtils/group.js} +14 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +8 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +1 -6
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +18 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +5 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +12 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +3 -5
- package/dist/src/sub/DynamicLayout/sections/{CustomSection/FlexGridCustomSection.d.ts → FlexGridCustomSection.d.ts} +1 -5
- package/dist/src/sub/DynamicLayout/sections/{CustomSection/FlexGridCustomSection.js → FlexGridCustomSection.js} +44 -88
- package/dist/src/sub/DynamicLayout/types.d.ts +45 -1
- package/dist/src/sub/SandollFontKit/utils/appendSandollTagToHead.d.ts +1 -1
- package/dist/src/sub/SandollFontKit/utils/appendSandollTagToHead.js +17 -11
- package/package.json +3 -2
- package/release-note.md +3 -2
- package/dist/src/common/assets/icons/fill/BringToFrontArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/BringToFrontArrow.js +0 -30
- package/dist/src/common/assets/icons/fill/DesktopSync.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/DesktopSync.js +0 -30
- package/dist/src/common/assets/icons/fill/MoveBackwardArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/MoveBackwardArrow.js +0 -30
- package/dist/src/common/assets/icons/fill/MoveForwardArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/MoveForwardArrow.js +0 -30
- package/dist/src/common/assets/icons/fill/SendToBackArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/SendToBackArrow.js +0 -30
- package/dist/src/common/assets/icons/line/BringToFrontArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/line/BringToFrontArrow.js +0 -30
- package/dist/src/common/assets/icons/line/DesktopSync.d.ts +0 -4
- package/dist/src/common/assets/icons/line/DesktopSync.js +0 -30
- package/dist/src/common/assets/icons/line/MoveBackwardArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/line/MoveBackwardArrow.js +0 -30
- package/dist/src/common/assets/icons/line/MoveForwardArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/line/MoveForwardArrow.js +0 -30
- package/dist/src/common/assets/icons/line/SendToBackArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/line/SendToBackArrow.js +0 -30
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +0 -14038
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +0 -35827
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.d.ts +0 -76
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.js +0 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.d.ts +0 -38
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.js +0 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/index.js +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.d.ts +0 -22
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.js +0 -273
@@ -6,6 +6,7 @@ type Props = {
|
|
6
6
|
index: number;
|
7
7
|
device: Device;
|
8
8
|
rowHeight: number;
|
9
|
+
zIndex: number;
|
9
10
|
};
|
10
|
-
declare function FlexGridItem({ cb, index, device, rowHeight }: Props): JSX.Element;
|
11
|
+
declare function FlexGridItem({ cb, index, device, rowHeight, zIndex }: Props): JSX.Element;
|
11
12
|
export default FlexGridItem;
|
@@ -23,18 +23,21 @@ var styled_components_1 = __importDefault(require("styled-components"));
|
|
23
23
|
var ComponentBlockMatcher_1 = __importDefault(require("./components/ComponentBlock/ComponentBlockMatcher"));
|
24
24
|
var gap = 10;
|
25
25
|
function FlexGridItem(_a) {
|
26
|
-
var cb = _a.cb, index = _a.index, device = _a.device, rowHeight = _a.rowHeight;
|
26
|
+
var cb = _a.cb, index = _a.index, device = _a.device, rowHeight = _a.rowHeight, zIndex = _a.zIndex;
|
27
27
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
28
28
|
var defaultHeight = getMaxHeight(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device, rowHeight);
|
29
29
|
var gridArea = getGridAreaFromCB(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device);
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
// const zIndex =
|
31
|
+
// device === 'DESKTOP'
|
32
|
+
// ? cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT.CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX
|
33
|
+
// : cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT[
|
34
|
+
// 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX:MOBILE'
|
35
|
+
// ];
|
33
36
|
return ((0, jsx_runtime_1.jsx)(GridItem, __assign({ style: {
|
34
37
|
zIndex: zIndex,
|
35
38
|
gridArea: gridArea
|
36
39
|
// maxHeight: cb.componentBlockCode !== CB_ALL_CODES.CB_TEXT ? defaultHeight : undefined
|
37
|
-
} }, { children: (0, jsx_runtime_1.jsx)(ComponentBlockMatcher_1.default, { cbProps: cb, device: device, index: index }) })));
|
40
|
+
} }, { children: (0, jsx_runtime_1.jsx)(ComponentBlockMatcher_1.default, { rowHeight: rowHeight, cbProps: cb, device: device, index: index }) })));
|
38
41
|
}
|
39
42
|
var GridItem = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: auto;\n word-break: break-word;\n"], ["\n height: auto;\n word-break: break-word;\n"])));
|
40
43
|
function getMaxHeight(props, device, rowHeight) {
|
@@ -19,6 +19,7 @@ require("react");
|
|
19
19
|
var newUtils_1 = require("../../newUtils");
|
20
20
|
var types_1 = require("../../types");
|
21
21
|
var Button_1 = __importDefault(require("./componentBlocks/Button/Button"));
|
22
|
+
var ContentsCarousel_1 = __importDefault(require("./componentBlocks/ContentsCarousel/ContentsCarousel"));
|
22
23
|
var Divider_1 = __importDefault(require("./componentBlocks/Divider/Divider"));
|
23
24
|
var Embed_1 = __importDefault(require("./componentBlocks/Embed/Embed"));
|
24
25
|
var Image_1 = __importDefault(require("./componentBlocks/Image/Image"));
|
@@ -47,6 +48,10 @@ function ComponentBlockMatcher(_a) {
|
|
47
48
|
return (0, jsx_runtime_1.jsx)(Youtube_1.Youtube, __assign({}, propsWithValue, { index: index }));
|
48
49
|
case types_1.CB_ALL_CODES.CB_EMBED:
|
49
50
|
return (0, jsx_runtime_1.jsx)(Embed_1.default, __assign({}, propsWithValue, { index: index }));
|
51
|
+
case types_1.CB_ALL_CODES.CB_CONTENTS_CAROUSEL: {
|
52
|
+
var compositions = cbProps.compositions;
|
53
|
+
return ((0, jsx_runtime_1.jsx)(ContentsCarousel_1.default, __assign({}, propsWithValue, { compositions: compositions, index: index })));
|
54
|
+
}
|
50
55
|
default:
|
51
56
|
return (0, jsx_runtime_1.jsx)("div", { children: "Error: not supported CB" });
|
52
57
|
}
|
@@ -40,18 +40,18 @@ var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
40
40
|
var useCLINK_1 = __importDefault(require("../hooks/useCLINK"));
|
41
41
|
function Button(props) {
|
42
42
|
var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
|
43
|
-
var index = props.index,
|
43
|
+
var index = props.index, CB_STYLE_PROP_COLOR = props.CB_STYLE_PROP_COLOR, _b = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _b.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _b.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _b.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
44
44
|
var _c = (0, useCLINK_1.default)({
|
45
45
|
src: CB_CONTENT_PROP_CLINK_SPEC_SRC,
|
46
46
|
type: CB_CONTENT_PROP_CLINK_SPEC_TYPE,
|
47
47
|
openNewTab: CB_CONTENT_PROP_CLINK_SPEC_NEWTAB,
|
48
48
|
internalSrc: String(CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC)
|
49
49
|
}), onClickCLINK = _c.onClickCLINK, CLINKCursor = _c.CLINKCursor;
|
50
|
-
var _d = getBTNStyles(props.
|
51
|
-
var _e = getBTNColorStyles(
|
50
|
+
var _d = getBTNStyles(props.CB_STYLE_PROP_TEXT, device), btnTextStyle = _d.style, btnTextHoverStyle = _d.hoverStyle;
|
51
|
+
var _e = getBTNColorStyles(CB_STYLE_PROP_COLOR, device), btnColorStyle = _e.style, btnColorHoverStyle = _e.hoverStyle;
|
52
52
|
var _f = (0, util_1.parseProperties)(props, device), propsStyle = _f.style, propsHoverStyle = _f.hoverStyle, _g = _f.layout, paddingLeft = _g.paddingLeft, paddingRight = _g.paddingRight, paddingTop = _g.paddingTop, paddingBottom = _g.paddingBottom, layoutStyle = __rest(_g, ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom"]), effect = _f.effect;
|
53
53
|
var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
|
54
|
-
var googleFonts = (0, useGoogleFonts_1.
|
54
|
+
var googleFonts = (0, useGoogleFonts_1.getGoogleFontsFromTextSpecCode)(props.CB_STYLE_PROP_TEXT, device === 'MOBILE');
|
55
55
|
(0, useGoogleFonts_1.useGoogleFonts)({ fonts: googleFonts });
|
56
56
|
if (mode === 'EDIT') {
|
57
57
|
propsStyle.visibility = 'visible';
|
@@ -72,32 +72,34 @@ function Button(props) {
|
|
72
72
|
paddingRight: paddingRight,
|
73
73
|
paddingBottom: paddingBottom,
|
74
74
|
paddingTop: paddingTop
|
75
|
-
} }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({
|
75
|
+
} }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ onMouseLeave: function (e) {
|
76
|
+
e.currentTarget.classList.remove('hovered');
|
77
|
+
}, className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign(__assign({}, btnTextStyle), propsStyle), layoutStyle), effectCssProperties), btnColorStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor }), hoverStyle: __assign(__assign(__assign(__assign({}, btnTextHoverStyle), propsHoverStyle), btnColorHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT })) }))] }));
|
76
78
|
}
|
77
79
|
function getBTNStyles(props, device) {
|
78
80
|
var availableSpecCodes = [
|
79
|
-
'
|
80
|
-
'
|
81
|
-
'
|
82
|
-
'
|
83
|
-
'
|
84
|
-
'
|
85
|
-
'
|
86
|
-
'
|
81
|
+
'CB_STYLE_PROP_TEXT_SPEC_TYPEFACE',
|
82
|
+
'CB_STYLE_PROP_TEXT_SPEC_WEIGHT',
|
83
|
+
'CB_STYLE_PROP_TEXT_SPEC_SIZE',
|
84
|
+
'CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT',
|
85
|
+
'CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING',
|
86
|
+
'CB_STYLE_PROP_TEXT_SPEC_COLOR',
|
87
|
+
'CB_STYLE_PROP_TEXT_SPEC_HORIZONTAL',
|
88
|
+
'CB_STYLE_PROP_TEXT_SPEC_VERTICAL'
|
87
89
|
];
|
88
|
-
return (0, newUtils_1.parseStyleTextToCSSProp)({ availableSpecCodes: availableSpecCodes, props: props, device: device, propKey: '
|
90
|
+
return (0, newUtils_1.parseStyleTextToCSSProp)({ availableSpecCodes: availableSpecCodes, props: props, device: device, propKey: 'TEXT' });
|
89
91
|
}
|
90
92
|
function getBTNColorStyles(props, device) {
|
91
93
|
var availableSpecCodes = [
|
92
|
-
'
|
93
|
-
'
|
94
|
-
'
|
95
|
-
'
|
96
|
-
'
|
97
|
-
'
|
98
|
-
'
|
99
|
-
'
|
94
|
+
'CB_STYLE_PROP_COLOR_SPEC_ANGLE',
|
95
|
+
'CB_STYLE_PROP_COLOR_SPEC_COLOR',
|
96
|
+
'CB_STYLE_PROP_COLOR_SPEC_ENDCOLOR',
|
97
|
+
'CB_STYLE_PROP_COLOR_SPEC_ENDLOC',
|
98
|
+
'CB_STYLE_PROP_COLOR_SPEC_GRADIENT',
|
99
|
+
'CB_STYLE_PROP_COLOR_SPEC_STARTCOLOR',
|
100
|
+
'CB_STYLE_PROP_COLOR_SPEC_STARTLOC',
|
101
|
+
'CB_STYLE_PROP_COLOR_SPEC_TYPE'
|
100
102
|
];
|
101
|
-
return (0, colorUtil_1.parseStyleColorToCSSProp)({ availableSpecCodes: availableSpecCodes, props: props, propKey: '
|
103
|
+
return (0, colorUtil_1.parseStyleColorToCSSProp)({ availableSpecCodes: availableSpecCodes, props: props, propKey: 'COLOR', device: device });
|
102
104
|
}
|
103
105
|
exports.default = Button;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { CB_CONTENTS_CAROUSEL } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
|
3
|
+
import type { CB_BTN_PROPERTIES_TYPE, IndexForIntersection } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
4
|
+
type Props = CB_BTN_PROPERTIES_TYPE & IndexForIntersection & {
|
5
|
+
compositions: CB_CONTENTS_CAROUSEL['compositions'];
|
6
|
+
};
|
7
|
+
declare function ContentsCarousel(props: Props): JSX.Element;
|
8
|
+
export default ContentsCarousel;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
7
|
+
var CompositionRenderer_1 = __importDefault(require("../../../../../../../DynamicLayout/CompositionRenderer/CompositionRenderer"));
|
8
|
+
function ContentsCarousel(props) {
|
9
|
+
var compositions = props.compositions;
|
10
|
+
return (0, jsx_runtime_1.jsx)(CompositionRenderer_1.default, { compositions: compositions });
|
11
|
+
}
|
12
|
+
exports.default = ContentsCarousel;
|
@@ -39,7 +39,7 @@ function Text(props) {
|
|
39
39
|
var _d = getTextStyles(props.CB_STYLE_PROP_TEXT, device), textStyle = _d.style, textHoverStyle = _d.hoverStyle;
|
40
40
|
var _e = (0, util_1.parseProperties)(props, device), propsStyle = _e.style, propsHoverStyle = _e.hoverStyle, layoutStyle = _e.layout, effect = _e.effect;
|
41
41
|
var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
|
42
|
-
var googleFonts = (0, getGoogleFonts_1.
|
42
|
+
var googleFonts = (0, getGoogleFonts_1.getGoogleFontsFromTextSpecCode)(props.CB_STYLE_PROP_TEXT, device === 'MOBILE');
|
43
43
|
(0, useGoogleFonts_1.default)({ fonts: googleFonts });
|
44
44
|
if (mode === 'EDIT') {
|
45
45
|
propsStyle.visibility = 'visible';
|
@@ -55,11 +55,25 @@ function Text(props) {
|
|
55
55
|
: CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
|
56
56
|
var hasEffect = !isNoneEffectType;
|
57
57
|
var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
|
58
|
+
var textValue = function () {
|
59
|
+
if (device === 'MOBILE') {
|
60
|
+
var value = props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXTMOBILEALTERNATIVE;
|
61
|
+
if (value === null || value === undefined) {
|
62
|
+
return props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT;
|
63
|
+
}
|
64
|
+
return value;
|
65
|
+
}
|
66
|
+
return props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT;
|
67
|
+
};
|
58
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: {
|
59
69
|
height: '100%',
|
60
70
|
display: 'flex',
|
61
71
|
alignItems: textStyle.alignItems
|
62
|
-
}, ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({
|
72
|
+
}, ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({ onMouseEnter: function (e) {
|
73
|
+
e.currentTarget.classList.add('hovered');
|
74
|
+
}, onMouseLeave: function (e) {
|
75
|
+
e.currentTarget.classList.remove('hovered');
|
76
|
+
}, 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: "calc(2ch + ".concat(layoutStyle.paddingLeft, " + ").concat(layoutStyle.paddingRight, ")") }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: textValue() })) }))] }));
|
63
77
|
}
|
64
78
|
function getTextStyles(props, device) {
|
65
79
|
var availableSpecCodes = [
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const S_Backdrop: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -0,0 +1,13 @@
|
|
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
|
+
};
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
8
|
+
};
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
+
exports.S_Backdrop = void 0;
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
12
|
+
exports.S_Backdrop = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* background: #bababaa3; */\n background-color: red;\n height: 100vh;\n pointer-events: none;\n position: absolute;\n width: 100vw;\n z-index: 100002;\n"], ["\n /* background: #bababaa3; */\n background-color: red;\n height: 100vh;\n pointer-events: none;\n position: absolute;\n width: 100vw;\n z-index: 100002;\n"])));
|
13
|
+
var templateObject_1;
|
@@ -40,7 +40,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
41
41
|
exports.S_CB_Box = void 0;
|
42
42
|
var styled_components_1 = __importStar(require("styled-components"));
|
43
|
-
exports.S_CB_Box = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n /*\n Introduced in IE 10.\n See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/\n */\n\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n"], ["\n /*\n Introduced in IE 10.\n See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/\n */\n\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n"])), function (_a) {
|
43
|
+
exports.S_CB_Box = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n /*\n Introduced in IE 10.\n See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/\n */\n\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover,\n &.hovered {\n ", ";\n }\n"], ["\n /*\n Introduced in IE 10.\n See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/\n */\n\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover,\n &.hovered {\n ", ";\n }\n"])), function (_a) {
|
44
44
|
var normalStyle = _a.normalStyle;
|
45
45
|
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, normalStyle), { boxShadow: '' }));
|
46
46
|
}, function (_a) {
|
@@ -44,7 +44,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
44
|
exports.S_CB_BoxWithShadow = void 0;
|
45
45
|
var isNullOrUndefined_1 = __importDefault(require("../../../../../../../DynamicLayout/sections/CustomSection/util/isNullOrUndefined"));
|
46
46
|
var styled_components_1 = __importStar(require("styled-components"));
|
47
|
-
exports.S_CB_BoxWithShadow = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n /*\n Introduced in IE 10.\n See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/\n */\n\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:before {\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n left: 0;\n opacity: ", ";\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n\n &:hover {\n ", ";\n\n &:before {\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n left: 0;\n opacity: ", ";\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n }\n"], ["\n /*\n Introduced in IE 10.\n See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/\n */\n\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:before {\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n left: 0;\n opacity: ", ";\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n\n &:hover {\n ", ";\n\n &:before {\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n left: 0;\n opacity: ", ";\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n }\n"])), function (_a) {
|
47
|
+
exports.S_CB_BoxWithShadow = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n /*\n Introduced in IE 10.\n See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/\n */\n\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:before {\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n left: 0;\n opacity: ", ";\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n\n &:hover,\n &.hovered {\n ", ";\n\n &:before {\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n left: 0;\n opacity: ", ";\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n }\n"], ["\n /*\n Introduced in IE 10.\n See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/\n */\n\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:before {\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n left: 0;\n opacity: ", ";\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n\n &:hover,\n &.hovered {\n ", ";\n\n &:before {\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n left: 0;\n opacity: ", ";\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n }\n"])), function (_a) {
|
48
48
|
var normalStyle = _a.normalStyle;
|
49
49
|
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, normalStyle), { boxShadow: '' }));
|
50
50
|
}, function (_a) {
|
@@ -1,11 +1,12 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type { STRING_PLAIN } from '../../../util/types';
|
2
|
+
import type { ENUM_STRING, NUMBER_INTEGER, STRING_8DIGIT_HEX, STRING_PLAIN } from '../../../util/types';
|
3
3
|
export type StylesProps = {
|
4
4
|
normalStyle: React.CSSProperties;
|
5
5
|
hoverStyle: React.CSSProperties;
|
6
6
|
};
|
7
7
|
export type CB_CONTENT_PROP_TEXT = {
|
8
8
|
CB_CONTENT_PROP_TEXT_SPEC_TEXT: STRING_PLAIN;
|
9
|
+
CB_CONTENT_PROP_TEXT_SPEC_TEXTMOBILEALTERNATIVE: STRING_PLAIN;
|
9
10
|
};
|
10
11
|
export type CB_CONTENT_PROP_CLINK = {
|
11
12
|
CB_CONTENT_PROP_CLINK_SPEC_TYPE: 'INTERNAL' | 'EXTERNAL' | 'DISABLED';
|
@@ -22,3 +23,80 @@ export type CB_CONTENT_PROP_TWITTER = {
|
|
22
23
|
export type CB_CONTENT_PROP_CODEBLOCK = {
|
23
24
|
CB_CONTENT_PROP_CODEBLOCK_SPEC_CODE: STRING_PLAIN;
|
24
25
|
};
|
26
|
+
export type CBTextPropsKeys = keyof CB_STYLE_PROP_TEXT_SPECS;
|
27
|
+
export type CB_STYLE_PROP_TEXT_SPECS_BASE = {
|
28
|
+
CB_STYLE_PROP_TEXT_SPEC_TYPEFACE: ENUM_STRING;
|
29
|
+
CB_STYLE_PROP_TEXT_SPEC_WEIGHT: NUMBER_INTEGER;
|
30
|
+
CB_STYLE_PROP_TEXT_SPEC_SIZE: NUMBER_INTEGER;
|
31
|
+
CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT: NUMBER_INTEGER;
|
32
|
+
CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING: NUMBER_INTEGER;
|
33
|
+
CB_STYLE_PROP_TEXT_SPEC_COLOR: STRING_8DIGIT_HEX;
|
34
|
+
CB_STYLE_PROP_TEXT_SPEC_HORIZONTAL: ENUM_STRING;
|
35
|
+
CB_STYLE_PROP_TEXT_SPEC_VERTICAL: ENUM_STRING;
|
36
|
+
};
|
37
|
+
export type CB_STYLE_PROP_TEXT_SPECS = CB_STYLE_PROP_TEXT_SPECS_BASE & {
|
38
|
+
'CB_STYLE_PROP_TEXT_SPEC_TYPEFACE:HOVER': ENUM_STRING | null | undefined;
|
39
|
+
'CB_STYLE_PROP_TEXT_SPEC_TYPEFACE:MOBILE': ENUM_STRING | null | undefined;
|
40
|
+
'CB_STYLE_PROP_TEXT_SPEC_TYPEFACE:MOBILE:HOVER': ENUM_STRING | null | undefined;
|
41
|
+
'CB_STYLE_PROP_TEXT_SPEC_WEIGHT:HOVER': NUMBER_INTEGER | null | undefined;
|
42
|
+
'CB_STYLE_PROP_TEXT_SPEC_WEIGHT:MOBILE': NUMBER_INTEGER | null | undefined;
|
43
|
+
'CB_STYLE_PROP_TEXT_SPEC_WEIGHT:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
44
|
+
'CB_STYLE_PROP_TEXT_SPEC_SIZE:HOVER': NUMBER_INTEGER | null | undefined;
|
45
|
+
'CB_STYLE_PROP_TEXT_SPEC_SIZE:MOBILE': NUMBER_INTEGER | null | undefined;
|
46
|
+
'CB_STYLE_PROP_TEXT_SPEC_SIZE:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
47
|
+
'CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT:HOVER': NUMBER_INTEGER | null | undefined;
|
48
|
+
'CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT:MOBILE': NUMBER_INTEGER | null | undefined;
|
49
|
+
'CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
50
|
+
'CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING:HOVER': NUMBER_INTEGER | null | undefined;
|
51
|
+
'CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING:MOBILE': NUMBER_INTEGER | null | undefined;
|
52
|
+
'CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
53
|
+
'CB_STYLE_PROP_TEXT_SPEC_COLOR:HOVER': STRING_8DIGIT_HEX | null | undefined;
|
54
|
+
'CB_STYLE_PROP_TEXT_SPEC_COLOR:MOBILE': STRING_8DIGIT_HEX | null | undefined;
|
55
|
+
'CB_STYLE_PROP_TEXT_SPEC_COLOR:MOBILE:HOVER': STRING_8DIGIT_HEX | null | undefined;
|
56
|
+
'CB_STYLE_PROP_TEXT_SPEC_HORIZONTAL:HOVER': ENUM_STRING | null | undefined;
|
57
|
+
'CB_STYLE_PROP_TEXT_SPEC_HORIZONTAL:MOBILE': ENUM_STRING | null | undefined;
|
58
|
+
'CB_STYLE_PROP_TEXT_SPEC_HORIZONTAL:MOBILE:HOVER': ENUM_STRING | null | undefined;
|
59
|
+
'CB_STYLE_PROP_TEXT_SPEC_VERTICAL:HOVER': ENUM_STRING | null | undefined;
|
60
|
+
'CB_STYLE_PROP_TEXT_SPEC_VERTICAL:MOBILE': ENUM_STRING | null | undefined;
|
61
|
+
'CB_STYLE_PROP_TEXT_SPEC_VERTICAL:MOBILE:HOVER': ENUM_STRING | null | undefined;
|
62
|
+
};
|
63
|
+
export type CBColorPropsKeys = keyof CB_STYLE_PROP_COLOR_SPECS;
|
64
|
+
export type CBColorValueSetType = Partial<Record<keyof CB_STYLE_PROP_COLOR_SPECS, CB_STYLE_PROP_COLOR_ENUM_GRADIENT | NUMBER_INTEGER | ENUM_STRING | undefined>>;
|
65
|
+
export type CB_STYLE_PROP_COLOR_ENUM_GRADIENT = 'LINEAR' | 'RADIAL';
|
66
|
+
export type CB_STYLE_PROP_COLOR_ENUM_TYPE = 'NONE' | 'SOLID' | 'GRADIENT';
|
67
|
+
export type CB_STYLE_PROP_COLOR_SPECS_BASE = {
|
68
|
+
CB_STYLE_PROP_COLOR_SPEC_ANGLE: NUMBER_INTEGER;
|
69
|
+
CB_STYLE_PROP_COLOR_SPEC_COLOR: ENUM_STRING;
|
70
|
+
CB_STYLE_PROP_COLOR_SPEC_ENDCOLOR: ENUM_STRING;
|
71
|
+
CB_STYLE_PROP_COLOR_SPEC_ENDLOC: NUMBER_INTEGER;
|
72
|
+
CB_STYLE_PROP_COLOR_SPEC_GRADIENT: CB_STYLE_PROP_COLOR_ENUM_GRADIENT;
|
73
|
+
CB_STYLE_PROP_COLOR_SPEC_STARTCOLOR: ENUM_STRING;
|
74
|
+
CB_STYLE_PROP_COLOR_SPEC_STARTLOC: NUMBER_INTEGER;
|
75
|
+
CB_STYLE_PROP_COLOR_SPEC_TYPE: CB_STYLE_PROP_COLOR_ENUM_TYPE;
|
76
|
+
};
|
77
|
+
export type CB_STYLE_PROP_COLOR_SPECS = CB_STYLE_PROP_COLOR_SPECS_BASE & {
|
78
|
+
'CB_STYLE_PROP_COLOR_SPEC_ANGLE:HOVER': NUMBER_INTEGER | null | undefined;
|
79
|
+
'CB_STYLE_PROP_COLOR_SPEC_ANGLE:MOBILE': NUMBER_INTEGER | null | undefined;
|
80
|
+
'CB_STYLE_PROP_COLOR_SPEC_ANGLE:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
81
|
+
'CB_STYLE_PROP_COLOR_SPEC_COLOR:HOVER': ENUM_STRING | null | undefined;
|
82
|
+
'CB_STYLE_PROP_COLOR_SPEC_COLOR:MOBILE': ENUM_STRING | null | undefined;
|
83
|
+
'CB_STYLE_PROP_COLOR_SPEC_COLOR:MOBILE:HOVER': ENUM_STRING | null | undefined;
|
84
|
+
'CB_STYLE_PROP_COLOR_SPEC_ENDCOLOR:HOVER': ENUM_STRING | null | undefined;
|
85
|
+
'CB_STYLE_PROP_COLOR_SPEC_ENDCOLOR:MOBILE': ENUM_STRING | null | undefined;
|
86
|
+
'CB_STYLE_PROP_COLOR_SPEC_ENDCOLOR:MOBILE:HOVER': ENUM_STRING | null | undefined;
|
87
|
+
'CB_STYLE_PROP_COLOR_SPEC_ENDLOC:HOVER': NUMBER_INTEGER | null | undefined;
|
88
|
+
'CB_STYLE_PROP_COLOR_SPEC_ENDLOC:MOBILE': NUMBER_INTEGER | null | undefined;
|
89
|
+
'CB_STYLE_PROP_COLOR_SPEC_ENDLOC:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
90
|
+
'CB_STYLE_PROP_COLOR_SPEC_GRADIENT:HOVER': CB_STYLE_PROP_COLOR_ENUM_GRADIENT | null | undefined;
|
91
|
+
'CB_STYLE_PROP_COLOR_SPEC_GRADIENT:MOBILE': CB_STYLE_PROP_COLOR_ENUM_GRADIENT | null | undefined;
|
92
|
+
'CB_STYLE_PROP_COLOR_SPEC_GRADIENT:MOBILE:HOVER': CB_STYLE_PROP_COLOR_ENUM_GRADIENT | null | undefined;
|
93
|
+
'CB_STYLE_PROP_COLOR_SPEC_STARTCOLOR:HOVER': ENUM_STRING | null | undefined;
|
94
|
+
'CB_STYLE_PROP_COLOR_SPEC_STARTCOLOR:MOBILE': ENUM_STRING | null | undefined;
|
95
|
+
'CB_STYLE_PROP_COLOR_SPEC_STARTCOLOR:MOBILE:HOVER': ENUM_STRING | null | undefined;
|
96
|
+
'CB_STYLE_PROP_COLOR_SPEC_STARTLOC:HOVER': NUMBER_INTEGER | null | undefined;
|
97
|
+
'CB_STYLE_PROP_COLOR_SPEC_STARTLOC:MOBILE': NUMBER_INTEGER | null | undefined;
|
98
|
+
'CB_STYLE_PROP_COLOR_SPEC_STARTLOC:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
99
|
+
'CB_STYLE_PROP_COLOR_SPEC_TYPE:HOVER': CB_STYLE_PROP_COLOR_ENUM_TYPE | null | undefined;
|
100
|
+
'CB_STYLE_PROP_COLOR_SPEC_TYPE:MOBILE': CB_STYLE_PROP_COLOR_ENUM_TYPE | null | undefined;
|
101
|
+
'CB_STYLE_PROP_COLOR_SPEC_TYPE:MOBILE:HOVER': CB_STYLE_PROP_COLOR_ENUM_TYPE | null | undefined;
|
102
|
+
};
|
package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/getGoogleFonts.d.ts
CHANGED
@@ -1,4 +1,2 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export declare function getGoogleFontsFromTextCB(props: CB_STYLE_PROP_TEXT_SPECS, isMobile: boolean): string[];
|
4
|
-
export declare function getGoogleFontsFromBtnCB(props: CB_BTNTEXT_STYLE_PROPS, isMobile: boolean): string[];
|
1
|
+
import type { CB_STYLE_PROP_TEXT_SPECS } from '../../components/ComponentBlock/componentBlocks/types';
|
2
|
+
export declare function getGoogleFontsFromTextSpecCode(props: CB_STYLE_PROP_TEXT_SPECS, isMobile: boolean): string[];
|
package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/getGoogleFonts.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
function
|
3
|
+
exports.getGoogleFontsFromTextSpecCode = void 0;
|
4
|
+
function getGoogleFontsFromTextSpecCode(props, isMobile) {
|
5
5
|
var typeface = props.CB_STYLE_PROP_TEXT_SPEC_TYPEFACE;
|
6
6
|
var typefaceHover = props['CB_STYLE_PROP_TEXT_SPEC_TYPEFACE:HOVER'];
|
7
7
|
var typefaceMobile = props['CB_STYLE_PROP_TEXT_SPEC_TYPEFACE:MOBILE'];
|
@@ -11,15 +11,4 @@ function getGoogleFontsFromTextCB(props, isMobile) {
|
|
11
11
|
}
|
12
12
|
return [typeface, typefaceHover].filter(function (each) { return each && each.startsWith('GOOGLE:'); });
|
13
13
|
}
|
14
|
-
exports.
|
15
|
-
function getGoogleFontsFromBtnCB(props, isMobile) {
|
16
|
-
var typeface = props.CB_STYLE_PROP_BTNTEXT_SPEC_TYPEFACE;
|
17
|
-
var typefaceHover = props['CB_STYLE_PROP_BTNTEXT_SPEC_TYPEFACE:HOVER'];
|
18
|
-
var typefaceMobile = props['CB_STYLE_PROP_BTNTEXT_SPEC_TYPEFACE:MOBILE'];
|
19
|
-
var typefaceMobileHover = props['CB_STYLE_PROP_BTNTEXT_SPEC_TYPEFACE:MOBILE:HOVER'];
|
20
|
-
if (isMobile) {
|
21
|
-
return [typefaceMobile, typefaceMobileHover].filter(function (each) { return each && each.startsWith('GOOGLE:'); });
|
22
|
-
}
|
23
|
-
return [typeface, typefaceHover].filter(function (each) { return each && each.startsWith('GOOGLE:'); });
|
24
|
-
}
|
25
|
-
exports.getGoogleFontsFromBtnCB = getGoogleFontsFromBtnCB;
|
14
|
+
exports.getGoogleFontsFromTextSpecCode = getGoogleFontsFromTextSpecCode;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {
|
1
|
+
export { getGoogleFontsFromTextSpecCode } from './getGoogleFonts';
|
2
2
|
export { default as useGoogleFonts } from './useGoogleFonts';
|
@@ -3,9 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.useGoogleFonts = exports.
|
6
|
+
exports.useGoogleFonts = exports.getGoogleFontsFromTextSpecCode = void 0;
|
7
7
|
var getGoogleFonts_1 = require("./getGoogleFonts");
|
8
|
-
Object.defineProperty(exports, "
|
9
|
-
Object.defineProperty(exports, "getGoogleFontsFromTextCB", { enumerable: true, get: function () { return getGoogleFonts_1.getGoogleFontsFromTextCB; } });
|
8
|
+
Object.defineProperty(exports, "getGoogleFontsFromTextSpecCode", { enumerable: true, get: function () { return getGoogleFonts_1.getGoogleFontsFromTextSpecCode; } });
|
10
9
|
var useGoogleFonts_1 = require("./useGoogleFonts");
|
11
10
|
Object.defineProperty(exports, "useGoogleFonts", { enumerable: true, get: function () { return __importDefault(useGoogleFonts_1).default; } });
|
@@ -0,0 +1,7 @@
|
|
1
|
+
type ClassValue = string | number | boolean | null | undefined | ClassDictionary | ClassArray;
|
2
|
+
type ClassDictionary = {
|
3
|
+
[key: string]: boolean | undefined | null;
|
4
|
+
};
|
5
|
+
type ClassArray = ClassValue[];
|
6
|
+
export declare const clsx: (...args: ClassValue[]) => string;
|
7
|
+
export {};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.clsx = void 0;
|
4
|
+
var clsx = function () {
|
5
|
+
var args = [];
|
6
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
7
|
+
args[_i] = arguments[_i];
|
8
|
+
}
|
9
|
+
return args
|
10
|
+
.flatMap(function (arg) {
|
11
|
+
if (!arg)
|
12
|
+
return [];
|
13
|
+
if (typeof arg === 'string' || typeof arg === 'number')
|
14
|
+
return [arg];
|
15
|
+
if (Array.isArray(arg))
|
16
|
+
return exports.clsx.apply(void 0, arg);
|
17
|
+
if (typeof arg === 'object') {
|
18
|
+
return (Object.entries(arg)
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
20
|
+
.filter(function (_a) {
|
21
|
+
var _ = _a[0], value = _a[1];
|
22
|
+
return Boolean(value);
|
23
|
+
})
|
24
|
+
.map(function (_a) {
|
25
|
+
var key = _a[0];
|
26
|
+
return key;
|
27
|
+
}));
|
28
|
+
}
|
29
|
+
return [];
|
30
|
+
})
|
31
|
+
.join(' ');
|
32
|
+
};
|
33
|
+
exports.clsx = clsx;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import type { BTNColorValueSetType } from '../components/ComponentBlock/componentBlocks/Button/btnTypes';
|
2
1
|
import type { BGOverlayValueSetType } from '../components/ComponentBlock/componentBlocks/RichText/types';
|
2
|
+
import type { CBColorValueSetType } from '../components/ComponentBlock/componentBlocks/types';
|
3
3
|
import type { BGColorValueSetType } from '../components/ComponentBlock/componentBlocks/Youtube/types';
|
4
4
|
import type { Device } from '../util/types';
|
5
5
|
import type { CSSProperties } from 'react';
|
6
|
-
type CBName = '
|
6
|
+
type CBName = 'COLOR' | 'BGCOLOR' | 'BGOVERLAY';
|
7
7
|
type ExtractPropKey<T extends CBName> = Extract<T, CBName>;
|
8
|
-
type ValueSetType =
|
8
|
+
type ValueSetType = CBColorValueSetType & BGColorValueSetType & BGOverlayValueSetType;
|
9
9
|
export type ParseStyleColorProps<T> = {
|
10
10
|
availableSpecCodes: Array<keyof T>;
|
11
11
|
props: T;
|
12
|
-
propKey: ExtractPropKey<'
|
12
|
+
propKey: ExtractPropKey<'COLOR'>;
|
13
13
|
device: Device;
|
14
14
|
} | {
|
15
15
|
availableSpecCodes: Array<keyof T>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function getMobileFontSize(desktopSize: number): number;
|