pds-dev-kit-web-test 0.2.2 → 0.2.3
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/README.md +12 -1
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/Image.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/Image.js +46 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.d.ts +2 -3
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.js +3 -3
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/Text.d.ts +13 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/Text.js +63 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.d.ts +3 -11
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.js +18 -18
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimelineRerender.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimelineRerender.js +41 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/Wrapper.d.ts +35 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/Wrapper.js +141 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/constants.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/constants.js +33 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.d.ts +3 -2
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.js +3 -1
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +3 -3
- package/dist/src/sub/DynamicLayout/components/Section/Section.d.ts +6 -3
- package/dist/src/sub/DynamicLayout/components/Section/Section.js +40 -8
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.d.ts +9 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +68 -0
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +4 -4
- package/dist/src/sub/DynamicLayout/components/desktop/common/Carousel.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/components/desktop/common/Carousel.js +6 -6
- package/dist/src/sub/DynamicLayout/components/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/components/index.js +1 -6
- package/dist/src/sub/DynamicLayout/mock_customSection.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/mock_customSection.js +838 -0
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +5 -210
- package/dist/src/sub/DynamicLayout/nakedMocks.json +783 -0
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +17 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +2 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +85 -51
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.js +55 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +70 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +73 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.d.ts +68 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider.js +66 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image.d.ts +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image.js +102 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.js +62 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.d.ts +44 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text.d.ts +32 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text.js +58 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter.d.ts +10 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter.js +41 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.js +33 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.d.ts +48 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/{BlockMatcher/blocks/Button.js → components/ComponentBlock/componentBlocks/components/S_CB_Box.js} +6 -11
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.js +13 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.js +24 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +20 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.d.ts +0 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.js +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.js +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.js +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.js +26 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.d.ts +31 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.js +66 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.js +10 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +79 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +50 -99
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +11 -14
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.js +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.js +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.js +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.js +51 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.js +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.js +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.d.ts +24 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.js +80 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +21 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.js +32 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.js +61 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +20 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.js +54 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.js +41 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.d.ts +43 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.js +58 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.d.ts +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.js +118 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.d.ts +43 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.js +64 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.d.ts +38 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.js +73 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.d.ts +26 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.js +65 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.d.ts +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.js +118 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.js +41 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.d.ts +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.d.ts +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.js +80 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.d.ts +22 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.js +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +134 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/index.js +3 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +70 -4
- package/package.json +2 -4
- package/release-note.md +2 -3
- package/dist/src/sub/DynamicLayout/components/Box.d.ts +0 -13
- package/dist/src/sub/DynamicLayout/components/Box.js +0 -73
- package/dist/src/sub/DynamicLayout/custonSectionSampleData.d.ts +0 -334
- package/dist/src/sub/DynamicLayout/custonSectionSampleData.js +0 -328
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/BlockMatcher.d.ts +0 -11
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/BlockMatcher.js +0 -86
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Accordion.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Accordion.js +0 -46
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionBody.d.ts +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionBody.js +0 -74
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionCore.d.ts +0 -13
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionCore.js +0 -25
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionHeader.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionHeader.js +0 -49
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionItem.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionItem.js +0 -19
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/index.d.ts +0 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/index.js +0 -14
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Button.d.ts +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/CardItem.d.ts +0 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/CardItem.js +0 -34
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/ContentsCarousel.d.ts +0 -28
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/ContentsCarousel.js +0 -53
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Divider.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Divider.js +0 -29
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Image.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Image.js +0 -18
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ImageCarousel/ImageCarousel.d.ts +0 -16
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ImageCarousel/ImageCarousel.js +0 -41
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Instagram.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Instagram.js +0 -19
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/RichText.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/RichText.js +0 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Text.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Text.js +0 -29
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Twitter.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Twitter.js +0 -30
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Youtube.d.ts +0 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Youtube.js +0 -38
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/index.d.ts +0 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/index.js +0 -24
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/index.js +0 -8
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
19
|
+
var newUtils_1 = require("../../newUtils");
|
|
20
|
+
var types_1 = require("../../types");
|
|
21
|
+
require("../../util");
|
|
22
|
+
var Button_1 = __importDefault(require("./componentBlocks/Button/Button"));
|
|
23
|
+
var Divider_1 = __importDefault(require("./componentBlocks/Divider"));
|
|
24
|
+
var Image_1 = __importDefault(require("./componentBlocks/Image"));
|
|
25
|
+
var RichText_1 = require("./componentBlocks/RichText");
|
|
26
|
+
var Text_1 = __importDefault(require("./componentBlocks/Text"));
|
|
27
|
+
var Twitter_1 = __importDefault(require("./componentBlocks/Twitter"));
|
|
28
|
+
var Youtube_1 = require("./componentBlocks/Youtube");
|
|
29
|
+
function ComponentBlockMatcher(props) {
|
|
30
|
+
var device = 'MOBILE';
|
|
31
|
+
var id = props.id, type = props.type, availablePlugins = props.availablePlugins, queryableTapSrc = props.queryableTapSrc, queryableDefinitionPreset = props.queryableDefinitionPreset, dynamicLayoutSectionId = props.dynamicLayoutSectionId, componentBlockCode = props.componentBlockCode, properties = props.properties;
|
|
32
|
+
var propsWithValue = device === 'MOBILE' ? (0, newUtils_1.replaceUndefinedValues)(properties) : properties;
|
|
33
|
+
switch (componentBlockCode) {
|
|
34
|
+
case types_1.CB_ALL_CODES.CB_BTN:
|
|
35
|
+
if ('CB_STYLE_PROP_BTNTEXT' in propsWithValue) {
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
return (0, jsx_runtime_1.jsx)(Button_1.default, __assign({}, propsWithValue), void 0);
|
|
38
|
+
}
|
|
39
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "ERROR: CB_BTN" }, void 0);
|
|
40
|
+
case types_1.CB_ALL_CODES.CB_TEXT:
|
|
41
|
+
if ('CB_STYLE_PROP_TEXT' in propsWithValue) {
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
return (0, jsx_runtime_1.jsx)(Text_1.default, __assign({}, propsWithValue), void 0);
|
|
44
|
+
}
|
|
45
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "ERROR: CB_TEXT" }, void 0);
|
|
46
|
+
case types_1.CB_ALL_CODES.CB_RICHTEXT:
|
|
47
|
+
return (0, jsx_runtime_1.jsx)(RichText_1.RichText, __assign({}, properties), void 0);
|
|
48
|
+
case types_1.CB_ALL_CODES.CB_DIVIDER:
|
|
49
|
+
if ('CB_STYLE_PROP_DIVIDER' in properties) {
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
return (0, jsx_runtime_1.jsx)(Divider_1.default, __assign({}, properties), void 0);
|
|
52
|
+
}
|
|
53
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "ERROR: CB_DIVIDER" }, void 0);
|
|
54
|
+
case types_1.CB_ALL_CODES.CB_IMG:
|
|
55
|
+
if ('CB_STYLE_PROP_IMAGE' in properties) {
|
|
56
|
+
return (0, jsx_runtime_1.jsx)(Image_1.default, __assign({}, properties), void 0);
|
|
57
|
+
}
|
|
58
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "ERROR: CB_IMAGE" }, void 0);
|
|
59
|
+
case types_1.CB_ALL_CODES.CB_TWITTER:
|
|
60
|
+
if ('CB_STYLE_PROP_TWITTER' in properties) {
|
|
61
|
+
return (0, jsx_runtime_1.jsx)(Twitter_1.default, __assign({}, properties), void 0);
|
|
62
|
+
}
|
|
63
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "ERROR: CB_TWITTER" }, void 0);
|
|
64
|
+
case types_1.CB_ALL_CODES.CB_YOUTUBE:
|
|
65
|
+
return (0, jsx_runtime_1.jsx)(Youtube_1.Youtube, __assign({}, properties), void 0);
|
|
66
|
+
default:
|
|
67
|
+
return (0, jsx_runtime_1.jsx)("div", { children: "Error: not supported CB" }, void 0);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.default = ComponentBlockMatcher;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CB_BTN_PROPERTIES_TYPE } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
|
3
|
+
declare type Props = CB_BTN_PROPERTIES_TYPE;
|
|
4
|
+
declare function Button(props: Props): JSX.Element;
|
|
5
|
+
export default Button;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
+
/* eslint-disable react/destructuring-assignment */
|
|
19
|
+
var react_1 = require("react");
|
|
20
|
+
var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
|
|
21
|
+
var newUtils_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/newUtils");
|
|
22
|
+
var colorUtil_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/newUtils/colorUtil");
|
|
23
|
+
var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
|
|
24
|
+
var S_CB_Box_1 = require("../components/S_CB_Box");
|
|
25
|
+
var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
26
|
+
var useCLINK_1 = __importDefault(require("../hooks/useCLINK"));
|
|
27
|
+
function Button(props) {
|
|
28
|
+
// const { device, mode } = useContext(dynamicLayoutContext);
|
|
29
|
+
var CB_CONTENT_PROP_CLINK = props.CB_CONTENT_PROP_CLINK;
|
|
30
|
+
var onClickBox = (0, useCLINK_1.default)({
|
|
31
|
+
src: CB_CONTENT_PROP_CLINK.CB_CONTENT_PROP_CLINK_SPEC_SRC,
|
|
32
|
+
type: CB_CONTENT_PROP_CLINK.CB_CONTENT_PROP_CLINK_SPEC_TYPE,
|
|
33
|
+
openNewTab: CB_CONTENT_PROP_CLINK.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB
|
|
34
|
+
});
|
|
35
|
+
var _a = getBTNStyles(props.CB_STYLE_PROP_BTNTEXT, 'DESKTOP'), style = _a.style, hoverStyle = _a.hoverStyle;
|
|
36
|
+
var _b = getBTNColorStyles(props.CB_STYLE_PROP_BTNCOLOR, 'DESKTOP'), btnColorStyle = _b.style, btnColorHoverStyle = _b.hoverStyle;
|
|
37
|
+
var _c = (0, util_1.parseProperties)(props, 'DESKTOP'), propStyle = _c.style, propsHoverStyle = _c.hoverStyle, layoutStyle = _c.layout, effect = _c.effect;
|
|
38
|
+
var mode = 'EDIT';
|
|
39
|
+
var isEditModeAndHidden = propStyle.visibility === 'hidden' && mode === 'EDIT';
|
|
40
|
+
if (mode === 'EDIT') {
|
|
41
|
+
propStyle.visibility = 'visible';
|
|
42
|
+
}
|
|
43
|
+
var cbRef = (0, react_1.useRef)(null);
|
|
44
|
+
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 1, freezeOnceVisible: true });
|
|
45
|
+
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
46
|
+
var effectCssProperties = isVisible ? effect : {};
|
|
47
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}, void 0), (0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), propStyle), layoutStyle), effectCssProperties), btnColorStyle), hoverStyle: __assign(__assign(__assign({}, hoverStyle), propsHoverStyle), btnColorHoverStyle), onClick: onClickBox, ref: cbRef }, { children: props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT }), void 0)] }, void 0));
|
|
48
|
+
}
|
|
49
|
+
function getBTNStyles(props, device) {
|
|
50
|
+
var availableSpecCodes = [
|
|
51
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_TYPEFACE',
|
|
52
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_WEIGHT',
|
|
53
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_SIZE',
|
|
54
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_LINEHEIGHT',
|
|
55
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_LETTERSPACING',
|
|
56
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_COLOR'
|
|
57
|
+
];
|
|
58
|
+
return (0, newUtils_1.parseStyleTextToCSSProp)({ availableSpecCodes: availableSpecCodes, props: props, device: device, propKey: 'BTNTEXT' });
|
|
59
|
+
}
|
|
60
|
+
function getBTNColorStyles(props, device) {
|
|
61
|
+
var availableSpecCodes = [
|
|
62
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_ANGLE',
|
|
63
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_COLOR',
|
|
64
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_ENDCOLOR',
|
|
65
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_ENDLOC',
|
|
66
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_GRADIENT',
|
|
67
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_STARTCOLOR',
|
|
68
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_STARTLOC',
|
|
69
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_TYPE'
|
|
70
|
+
];
|
|
71
|
+
return (0, colorUtil_1.parseStyleColorToCSSProp)({ availableSpecCodes: availableSpecCodes, props: props, propKey: 'BTNCOLOR', device: device });
|
|
72
|
+
}
|
|
73
|
+
exports.default = Button;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { ENUM_STRING, NUMBER_INTEGER, STRING_8DIGIT_HEX } from '../../../../util/types';
|
|
2
|
+
export declare type BtnPropsKeys = keyof CB_BTNTEXT_STYLE_PROPS;
|
|
3
|
+
export declare type CB_BTNTEXT_STYLE_PROPS = {
|
|
4
|
+
CB_STYLE_PROP_BTNTEXT_SPEC_TYPEFACE: ENUM_STRING;
|
|
5
|
+
CB_STYLE_PROP_BTNTEXT_SPEC_WEIGHT: NUMBER_INTEGER;
|
|
6
|
+
CB_STYLE_PROP_BTNTEXT_SPEC_SIZE: NUMBER_INTEGER;
|
|
7
|
+
CB_STYLE_PROP_BTNTEXT_SPEC_LINEHEIGHT: NUMBER_INTEGER;
|
|
8
|
+
CB_STYLE_PROP_BTNTEXT_SPEC_LETTERSPACING: NUMBER_INTEGER;
|
|
9
|
+
CB_STYLE_PROP_BTNTEXT_SPEC_COLOR: STRING_8DIGIT_HEX;
|
|
10
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_TYPEFACE:HOVER': ENUM_STRING;
|
|
11
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_TYPEFACE:MOBILE': ENUM_STRING | undefined;
|
|
12
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_TYPEFACE:MOBILE:HOVER': ENUM_STRING | undefined;
|
|
13
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_WEIGHT:HOVER': NUMBER_INTEGER;
|
|
14
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_WEIGHT:MOBILE': NUMBER_INTEGER | undefined;
|
|
15
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_WEIGHT:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
16
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_SIZE:HOVER': NUMBER_INTEGER;
|
|
17
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_SIZE:MOBILE': NUMBER_INTEGER | undefined;
|
|
18
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_SIZE:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
19
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_LINEHEIGHT:HOVER': NUMBER_INTEGER;
|
|
20
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_LINEHEIGHT:MOBILE': NUMBER_INTEGER | undefined;
|
|
21
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_LINEHEIGHT:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
22
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_LETTERSPACING:HOVER': NUMBER_INTEGER;
|
|
23
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_LETTERSPACING:MOBILE': NUMBER_INTEGER | undefined;
|
|
24
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_LETTERSPACING:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
25
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_COLOR:HOVER': STRING_8DIGIT_HEX;
|
|
26
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_COLOR:MOBILE': STRING_8DIGIT_HEX | undefined;
|
|
27
|
+
'CB_STYLE_PROP_BTNTEXT_SPEC_COLOR:MOBILE:HOVER': STRING_8DIGIT_HEX | undefined;
|
|
28
|
+
};
|
|
29
|
+
export declare type CB_STYLE_PROP_BTNCOLOR_ENUM_GRADIENT = 'LINEAR' | 'RADIAL';
|
|
30
|
+
export declare type CB_STYLE_PROP_BTNCOLOR_ENUM_TYPE = 'NONE' | 'SOLID' | 'GRADIENT';
|
|
31
|
+
export declare type CB_STYLE_PROP_BTNCOLOR_SPECS_BASE = {
|
|
32
|
+
CB_STYLE_PROP_BTNCOLOR_SPEC_ANGLE: NUMBER_INTEGER;
|
|
33
|
+
CB_STYLE_PROP_BTNCOLOR_SPEC_COLOR: ENUM_STRING;
|
|
34
|
+
CB_STYLE_PROP_BTNCOLOR_SPEC_ENDCOLOR: ENUM_STRING;
|
|
35
|
+
CB_STYLE_PROP_BTNCOLOR_SPEC_ENDLOC: NUMBER_INTEGER;
|
|
36
|
+
CB_STYLE_PROP_BTNCOLOR_SPEC_GRADIENT: CB_STYLE_PROP_BTNCOLOR_ENUM_GRADIENT;
|
|
37
|
+
CB_STYLE_PROP_BTNCOLOR_SPEC_STARTCOLOR: ENUM_STRING;
|
|
38
|
+
CB_STYLE_PROP_BTNCOLOR_SPEC_STARTLOC: NUMBER_INTEGER;
|
|
39
|
+
CB_STYLE_PROP_BTNCOLOR_SPEC_TYPE: CB_STYLE_PROP_BTNCOLOR_ENUM_TYPE;
|
|
40
|
+
};
|
|
41
|
+
export declare type CB_STYLE_PROP_BTNCOLOR_SPECS = CB_STYLE_PROP_BTNCOLOR_SPECS_BASE & {
|
|
42
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_ANGLE:HOVER': NUMBER_INTEGER;
|
|
43
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_ANGLE:MOBILE': NUMBER_INTEGER | undefined;
|
|
44
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_ANGLE:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
45
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_COLOR:HOVER': ENUM_STRING;
|
|
46
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_COLOR:MOBILE': ENUM_STRING | undefined;
|
|
47
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_COLOR:MOBILE:HOVER': ENUM_STRING | undefined;
|
|
48
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_ENDCOLOR:HOVER': ENUM_STRING;
|
|
49
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_ENDCOLOR:MOBILE': ENUM_STRING | undefined;
|
|
50
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_ENDCOLOR:MOBILE:HOVER': ENUM_STRING | undefined;
|
|
51
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_ENDLOC:HOVER': NUMBER_INTEGER;
|
|
52
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_ENDLOC:MOBILE': NUMBER_INTEGER | undefined;
|
|
53
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_ENDLOC:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
54
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_GRADIENT:HOVER': CB_STYLE_PROP_BTNCOLOR_ENUM_GRADIENT;
|
|
55
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_GRADIENT:MOBILE': CB_STYLE_PROP_BTNCOLOR_ENUM_GRADIENT | undefined;
|
|
56
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_GRADIENT:MOBILE:HOVER': CB_STYLE_PROP_BTNCOLOR_ENUM_GRADIENT | undefined;
|
|
57
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_STARTCOLOR:HOVER': ENUM_STRING;
|
|
58
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_STARTCOLOR:MOBILE': ENUM_STRING | undefined;
|
|
59
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_STARTCOLOR:MOBILE:HOVER': ENUM_STRING | undefined;
|
|
60
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_STARTLOC:HOVER': NUMBER_INTEGER;
|
|
61
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_STARTLOC:MOBILE': NUMBER_INTEGER | undefined;
|
|
62
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_STARTLOC:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
63
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_TYPE:HOVER': CB_STYLE_PROP_BTNCOLOR_ENUM_TYPE;
|
|
64
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_TYPE:MOBILE': CB_STYLE_PROP_BTNCOLOR_ENUM_TYPE | undefined;
|
|
65
|
+
'CB_STYLE_PROP_BTNCOLOR_SPEC_TYPE:MOBILE:HOVER': CB_STYLE_PROP_BTNCOLOR_ENUM_TYPE | undefined;
|
|
66
|
+
};
|
|
67
|
+
export declare type BtnColorPropsKeys = keyof CB_STYLE_PROP_BTNCOLOR_SPECS;
|
|
68
|
+
export declare type BTNColorValueSetType = Partial<Record<keyof CB_STYLE_PROP_BTNCOLOR_SPECS, CB_STYLE_PROP_BTNCOLOR_ENUM_GRADIENT | NUMBER_INTEGER | ENUM_STRING | undefined>>;
|
|
@@ -0,0 +1,66 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
|
+
var react_1 = require("react");
|
|
39
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
40
|
+
var hooks_1 = require("../../../hooks");
|
|
41
|
+
var util_1 = require("../../../util");
|
|
42
|
+
var S_CB_Box_1 = require("./components/S_CB_Box");
|
|
43
|
+
var S_HiddenCover_1 = require("./components/S_HiddenCover");
|
|
44
|
+
function Divider(props) {
|
|
45
|
+
// const { device, mode } = useContext(dynamicLayoutContext);
|
|
46
|
+
var _a = (0, util_1.parseProperties)(props, 'DESKTOP'), propsStyle = _a.style, propsHoverStyle = _a.hoverStyle, layoutStyle = _a.layout, effect = _a.effect;
|
|
47
|
+
var mode = 'EDIT';
|
|
48
|
+
var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
|
|
49
|
+
if (mode === 'EDIT') {
|
|
50
|
+
propsStyle.visibility = 'visible';
|
|
51
|
+
}
|
|
52
|
+
var cbRef = (0, react_1.useRef)(null);
|
|
53
|
+
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 1, freezeOnceVisible: true });
|
|
54
|
+
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
55
|
+
var effectCssProperties = isVisible ? effect : {};
|
|
56
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}, void 0), (0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box", normalStyle: layoutStyle, hoverStyle: {}, ref: cbRef }, { children: (0, jsx_runtime_1.jsx)(S_DIVIDER, { className: "cb-divider", normalStyle: __assign(__assign({}, propsStyle), effectCssProperties), hoverStyle: __assign({}, propsHoverStyle) }, void 0) }), void 0)] }, void 0));
|
|
57
|
+
}
|
|
58
|
+
var S_DIVIDER = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n"], ["\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n"])), function (_a) {
|
|
59
|
+
var normalStyle = _a.normalStyle;
|
|
60
|
+
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign({}, normalStyle));
|
|
61
|
+
}, function (_a) {
|
|
62
|
+
var hoverStyle = _a.hoverStyle;
|
|
63
|
+
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign({}, hoverStyle));
|
|
64
|
+
});
|
|
65
|
+
exports.default = Divider;
|
|
66
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CB_IMG_PROPERTIES_TYPE, ENUM_STRING, STRING_PLAIN } from '../../../util/types';
|
|
3
|
+
declare type Props = CB_IMG_PROPERTIES_TYPE;
|
|
4
|
+
declare function Image(props: Props): JSX.Element;
|
|
5
|
+
export declare type ImagePropsKeys = keyof CB_IMAGE_STYLE_PROPS;
|
|
6
|
+
export declare type CB_IMAGE_STYLE_PROPS = {
|
|
7
|
+
CB_STYLE_PROP_IMAGE_SPEC_FIT: STRING_PLAIN;
|
|
8
|
+
CB_STYLE_PROP_IMAGE_SPEC_POSITION: ENUM_STRING;
|
|
9
|
+
'CB_STYLE_PROP_IMAGE_SPEC_FIT:HOVER': STRING_PLAIN;
|
|
10
|
+
'CB_STYLE_PROP_IMAGE_SPEC_FIT:MOBILE': STRING_PLAIN | undefined;
|
|
11
|
+
'CB_STYLE_PROP_IMAGE_SPEC_FIT:MOBILE:HOVER': STRING_PLAIN | undefined;
|
|
12
|
+
'CB_STYLE_PROP_IMAGE_SPEC_POSITION:HOVER': ENUM_STRING;
|
|
13
|
+
'CB_STYLE_PROP_IMAGE_SPEC_POSITION:MOBILE': ENUM_STRING | undefined;
|
|
14
|
+
'CB_STYLE_PROP_IMAGE_SPEC_POSITION:MOBILE:HOVER': ENUM_STRING | undefined;
|
|
15
|
+
};
|
|
16
|
+
export default Image;
|
|
@@ -0,0 +1,102 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
|
+
var react_1 = require("react");
|
|
39
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
40
|
+
var hooks_1 = require("../../../hooks");
|
|
41
|
+
var util_1 = require("../../../util");
|
|
42
|
+
var S_CB_Box_1 = require("./components/S_CB_Box");
|
|
43
|
+
function Image(props) {
|
|
44
|
+
// const { device, mode } = useContext(dynamicLayoutContext);
|
|
45
|
+
var CB_CONTENT_PROP_IMAGE = props.CB_CONTENT_PROP_IMAGE;
|
|
46
|
+
var _a = (0, util_1.parseProperties)(props, 'DESKTOP'), style = _a.style, hoverStyle = _a.hoverStyle, layout = _a.layout, effect = _a.effect;
|
|
47
|
+
var _b = imageStyleDivideProvider(style), componentStyle = _b.componentStyle, wrapperStyle = _b.wrapperStyle;
|
|
48
|
+
var _c = imageStyleDivideProvider(hoverStyle), hoverComponentStyle = _c.componentStyle, hoverWrapperStyle = _c.wrapperStyle;
|
|
49
|
+
var cbRef = (0, react_1.useRef)(null);
|
|
50
|
+
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 1, freezeOnceVisible: true });
|
|
51
|
+
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
52
|
+
var effectCssProperties = isVisible ? effect : {};
|
|
53
|
+
return ((0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign({}, layout), effectCssProperties), wrapperStyle), hoverStyle: hoverWrapperStyle, ref: cbRef }, { children: (0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ normalStyle: componentStyle, hoverStyle: hoverComponentStyle }, { children: (0, jsx_runtime_1.jsx)(S_Image, { src: CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR, normalStyle: { objectFit: hoverComponentStyle.objectFit } }, void 0) }), void 0) }), void 0));
|
|
54
|
+
}
|
|
55
|
+
function imageStyleDivideProvider(style) {
|
|
56
|
+
return {
|
|
57
|
+
componentStyle: {
|
|
58
|
+
alignItems: style.alignItems,
|
|
59
|
+
display: style.display,
|
|
60
|
+
justifyContent: style.justifyContent,
|
|
61
|
+
objectFit: style.objectFit
|
|
62
|
+
},
|
|
63
|
+
wrapperStyle: {
|
|
64
|
+
borderBottomLeftRadius: style.borderBottomLeftRadius,
|
|
65
|
+
borderBottomRightRadius: style.borderBottomRightRadius,
|
|
66
|
+
borderColor: style.borderColor,
|
|
67
|
+
borderStyle: style.borderStyle,
|
|
68
|
+
borderTopLeftRadius: style.borderTopLeftRadius,
|
|
69
|
+
borderTopRightRadius: style.borderTopRightRadius,
|
|
70
|
+
borderWidth: style.borderWidth,
|
|
71
|
+
boxShadow: style.boxShadow,
|
|
72
|
+
opacity: style.opacity,
|
|
73
|
+
visibility: style.visibility
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
var S_Image = styled_components_1.default.img(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n\n ", ";\n"], ["\n height: 100%;\n width: 100%;\n\n ", ";\n"])), function (_a) {
|
|
78
|
+
var normalStyle = _a.normalStyle;
|
|
79
|
+
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), normalStyle.objectFit);
|
|
80
|
+
});
|
|
81
|
+
var S_ImageWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n\n &:hover {\n ", ";\n }\n\n &:hover img {\n ", ";\n }\n"], ["\n ", ";\n\n &:hover {\n ", ";\n }\n\n &:hover img {\n ", ";\n }\n"])), function (_a) {
|
|
82
|
+
var normalStyle = _a.normalStyle;
|
|
83
|
+
switch (normalStyle.objectFit) {
|
|
84
|
+
case 'cover':
|
|
85
|
+
return "height: 100%;\n width: 100%;";
|
|
86
|
+
default:
|
|
87
|
+
return "height: auto;\n width: auto";
|
|
88
|
+
}
|
|
89
|
+
}, function (_a) {
|
|
90
|
+
var hoverStyle = _a.hoverStyle;
|
|
91
|
+
switch (hoverStyle.objectFit) {
|
|
92
|
+
case 'cover':
|
|
93
|
+
return "height: 100%;\n width: 100%;";
|
|
94
|
+
default:
|
|
95
|
+
return "height: auto;\n width: auto";
|
|
96
|
+
}
|
|
97
|
+
}, function (_a) {
|
|
98
|
+
var hoverStyle = _a.hoverStyle;
|
|
99
|
+
return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), hoverStyle.objectFit);
|
|
100
|
+
});
|
|
101
|
+
exports.default = Image;
|
|
102
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CB_RICHTEXT_PROPERTIES_TYPE } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
|
3
|
+
declare type Props = CB_RICHTEXT_PROPERTIES_TYPE;
|
|
4
|
+
declare function RichText(props: Props): JSX.Element;
|
|
5
|
+
export default RichText;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
|
+
/* eslint-disable react/destructuring-assignment */
|
|
23
|
+
var react_1 = require("react");
|
|
24
|
+
var RichText_1 = require("../../../../../../../DynamicLayout/components/ComponentBlocks/RichText");
|
|
25
|
+
var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
|
|
26
|
+
var colorUtil_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/newUtils/colorUtil");
|
|
27
|
+
var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
|
|
28
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
29
|
+
var S_CB_Box_1 = require("../components/S_CB_Box");
|
|
30
|
+
var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
31
|
+
function RichText(props) {
|
|
32
|
+
// const { device, mode } = useContext(dynamicLayoutContext);
|
|
33
|
+
var CB_STYLE_PROP_BGCOLOR = props.CB_STYLE_PROP_BGCOLOR;
|
|
34
|
+
var _a = (0, util_1.parseProperties)(props, 'DESKTOP'), propsStyle = _a.style, propsHoverStyle = _a.hoverStyle, layoutStyle = _a.layout, effect = _a.effect;
|
|
35
|
+
var _b = getBGColorStyles(CB_STYLE_PROP_BGCOLOR, 'DESKTOP'), bgColorStyle = _b.style, bgColorHoverStyle = _b.hoverStyle;
|
|
36
|
+
var mode = 'EDIT';
|
|
37
|
+
var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
|
|
38
|
+
if (mode === 'EDIT') {
|
|
39
|
+
propsStyle.visibility = 'visible';
|
|
40
|
+
}
|
|
41
|
+
var cbRef = (0, react_1.useRef)(null);
|
|
42
|
+
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 1, freezeOnceVisible: true });
|
|
43
|
+
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
44
|
+
var effectCssProperties = isVisible ? effect : {};
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}, void 0), (0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, propsStyle), layoutStyle), effectCssProperties), bgColorStyle), hoverStyle: __assign(__assign({}, propsHoverStyle), bgColorHoverStyle), ref: cbRef }, { children: (0, jsx_runtime_1.jsx)(S_RichTextWrapper, { children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { text: props.CB_CONTENT_PROP_TEXTEDIT.CB_CONTENT_PROP_TEXTEDIT_SPEC_EDITOR }, void 0) }, void 0) }), void 0)] }, void 0));
|
|
46
|
+
}
|
|
47
|
+
function getBGColorStyles(props, device) {
|
|
48
|
+
var availableSpecCodes = [
|
|
49
|
+
'CB_STYLE_PROP_BGCOLOR_SPEC_ANGLE',
|
|
50
|
+
'CB_STYLE_PROP_BGCOLOR_SPEC_COLOR',
|
|
51
|
+
'CB_STYLE_PROP_BGCOLOR_SPEC_ENDCOLOR',
|
|
52
|
+
'CB_STYLE_PROP_BGCOLOR_SPEC_ENDLOC',
|
|
53
|
+
'CB_STYLE_PROP_BGCOLOR_SPEC_GRADIENT',
|
|
54
|
+
'CB_STYLE_PROP_BGCOLOR_SPEC_STARTCOLOR',
|
|
55
|
+
'CB_STYLE_PROP_BGCOLOR_SPEC_STARTLOC',
|
|
56
|
+
'CB_STYLE_PROP_BGCOLOR_SPEC_TYPE'
|
|
57
|
+
];
|
|
58
|
+
return (0, colorUtil_1.parseStyleColorToCSSProp)({ availableSpecCodes: availableSpecCodes, props: props, propKey: 'BGCOLOR', device: device });
|
|
59
|
+
}
|
|
60
|
+
var S_RichTextWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow-y: auto;\n position: relative;\n\n iframe {\n max-width: 100%;\n }\n"], ["\n overflow-y: auto;\n position: relative;\n\n iframe {\n max-width: 100%;\n }\n"])));
|
|
61
|
+
exports.default = RichText;
|
|
62
|
+
var templateObject_1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as RichText } from './RichText';
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
exports.RichText = void 0;
|
|
7
|
+
var RichText_1 = require("./RichText");
|
|
8
|
+
Object.defineProperty(exports, "RichText", { enumerable: true, get: function () { return __importDefault(RichText_1).default; } });
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { BGColorPropsKeys, CB_STYLE_PROP_BGCOLOR_SPECS } from '../Youtube/types';
|
|
2
|
+
import type { ENUM_STRING, NUMBER_INTEGER } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
|
3
|
+
export declare type CB_STYLE_PROP_BGOVERLAY_ENUM_GRADIENT = 'LINEAR' | 'RADIAL';
|
|
4
|
+
export declare type CB_STYLE_PROP_BGOVERLAY_ENUM_TYPE = 'NONE' | 'SOLID' | 'GRADIENT';
|
|
5
|
+
export declare type CB_STYLE_PROP_BGOVERLAY_SPECS_BASE = {
|
|
6
|
+
CB_STYLE_PROP_BGOVERLAY_SPEC_ANGLE: NUMBER_INTEGER;
|
|
7
|
+
CB_STYLE_PROP_BGOVERLAY_SPEC_COLOR: ENUM_STRING;
|
|
8
|
+
CB_STYLE_PROP_BGOVERLAY_SPEC_ENDCOLOR: ENUM_STRING;
|
|
9
|
+
CB_STYLE_PROP_BGOVERLAY_SPEC_ENDLOC: NUMBER_INTEGER;
|
|
10
|
+
CB_STYLE_PROP_BGOVERLAY_SPEC_GRADIENT: ENUM_STRING;
|
|
11
|
+
CB_STYLE_PROP_BGOVERLAY_SPEC_STARTCOLOR: ENUM_STRING;
|
|
12
|
+
CB_STYLE_PROP_BGOVERLAY_SPEC_STARTLOC: NUMBER_INTEGER;
|
|
13
|
+
CB_STYLE_PROP_BGOVERLAY_SPEC_TYPE: ENUM_STRING;
|
|
14
|
+
};
|
|
15
|
+
export declare type CB_STYLE_PROP_BGOVERLAY_SPECS = CB_STYLE_PROP_BGOVERLAY_SPECS_BASE & {
|
|
16
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_ANGLE:HOVER': NUMBER_INTEGER;
|
|
17
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_ANGLE:MOBILE': NUMBER_INTEGER | undefined;
|
|
18
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_ANGLE:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
19
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_COLOR:HOVER': ENUM_STRING;
|
|
20
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_COLOR:MOBILE': ENUM_STRING | undefined;
|
|
21
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_COLOR:MOBILE:HOVER': ENUM_STRING | undefined;
|
|
22
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_ENDCOLOR:HOVER': ENUM_STRING;
|
|
23
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_ENDCOLOR:MOBILE': ENUM_STRING | undefined;
|
|
24
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_ENDCOLOR:MOBILE:HOVER': ENUM_STRING | undefined;
|
|
25
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_ENDLOC:HOVER': NUMBER_INTEGER;
|
|
26
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_ENDLOC:MOBILE': NUMBER_INTEGER | undefined;
|
|
27
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_ENDLOC:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
28
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_GRADIENT:HOVER': ENUM_STRING;
|
|
29
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_GRADIENT:MOBILE': ENUM_STRING | undefined;
|
|
30
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_GRADIENT:MOBILE:HOVER': ENUM_STRING | undefined;
|
|
31
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_STARTCOLOR:HOVER': ENUM_STRING;
|
|
32
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_STARTCOLOR:MOBILE': ENUM_STRING | undefined;
|
|
33
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_STARTCOLOR:MOBILE:HOVER': ENUM_STRING | undefined;
|
|
34
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_STARTLOC:HOVER': NUMBER_INTEGER;
|
|
35
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_STARTLOC:MOBILE': NUMBER_INTEGER | undefined;
|
|
36
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_STARTLOC:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
37
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_TYPE:HOVER': ENUM_STRING;
|
|
38
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_TYPE:MOBILE': ENUM_STRING | undefined;
|
|
39
|
+
'CB_STYLE_PROP_BGOVERLAY_SPEC_TYPE:MOBILE:HOVER': ENUM_STRING | undefined;
|
|
40
|
+
};
|
|
41
|
+
export declare type BGOverlayPropsKeys = keyof CB_STYLE_PROP_BGOVERLAY_SPECS;
|
|
42
|
+
export declare type BGOverlayValueSetType = Partial<Record<keyof CB_STYLE_PROP_BGOVERLAY_SPECS, NUMBER_INTEGER | ENUM_STRING | undefined>>;
|
|
43
|
+
export declare type RichTextBGColorPropsKeys = BGColorPropsKeys;
|
|
44
|
+
export declare type CB_STYLE_PROP_BGCOLOR_PROPS = CB_STYLE_PROP_BGCOLOR_SPECS;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CB_TEXT_PROPERTIES_TYPE, ENUM_STRING, NUMBER_INTEGER, STRING_8DIGIT_HEX } from '../../../util/types';
|
|
3
|
+
declare type Props = CB_TEXT_PROPERTIES_TYPE;
|
|
4
|
+
declare function Text(props: Props): JSX.Element;
|
|
5
|
+
export declare type TextPropsKeys = keyof CB_TEXT_STYLE_PROPS;
|
|
6
|
+
export declare type CB_TEXT_STYLE_PROPS = {
|
|
7
|
+
CB_STYLE_PROP_TEXT_SPEC_TYPEFACE: ENUM_STRING;
|
|
8
|
+
CB_STYLE_PROP_TEXT_SPEC_WEIGHT: NUMBER_INTEGER;
|
|
9
|
+
CB_STYLE_PROP_TEXT_SPEC_SIZE: NUMBER_INTEGER;
|
|
10
|
+
CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT: NUMBER_INTEGER;
|
|
11
|
+
CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING: NUMBER_INTEGER;
|
|
12
|
+
CB_STYLE_PROP_TEXT_SPEC_COLOR: STRING_8DIGIT_HEX;
|
|
13
|
+
'CB_STYLE_PROP_TEXT_SPEC_TYPEFACE:HOVER': ENUM_STRING;
|
|
14
|
+
'CB_STYLE_PROP_TEXT_SPEC_TYPEFACE:MOBILE': ENUM_STRING | undefined;
|
|
15
|
+
'CB_STYLE_PROP_TEXT_SPEC_TYPEFACE:MOBILE:HOVER': ENUM_STRING | undefined;
|
|
16
|
+
'CB_STYLE_PROP_TEXT_SPEC_WEIGHT:HOVER': NUMBER_INTEGER;
|
|
17
|
+
'CB_STYLE_PROP_TEXT_SPEC_WEIGHT:MOBILE': NUMBER_INTEGER | undefined;
|
|
18
|
+
'CB_STYLE_PROP_TEXT_SPEC_WEIGHT:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
19
|
+
'CB_STYLE_PROP_TEXT_SPEC_SIZE:HOVER': NUMBER_INTEGER;
|
|
20
|
+
'CB_STYLE_PROP_TEXT_SPEC_SIZE:MOBILE': NUMBER_INTEGER | undefined;
|
|
21
|
+
'CB_STYLE_PROP_TEXT_SPEC_SIZE:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
22
|
+
'CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT:HOVER': NUMBER_INTEGER;
|
|
23
|
+
'CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT:MOBILE': NUMBER_INTEGER | undefined;
|
|
24
|
+
'CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
25
|
+
'CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING:HOVER': NUMBER_INTEGER;
|
|
26
|
+
'CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING:MOBILE': NUMBER_INTEGER | undefined;
|
|
27
|
+
'CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING:MOBILE:HOVER': NUMBER_INTEGER | undefined;
|
|
28
|
+
'CB_STYLE_PROP_TEXT_SPEC_COLOR:HOVER': STRING_8DIGIT_HEX;
|
|
29
|
+
'CB_STYLE_PROP_TEXT_SPEC_COLOR:MOBILE': STRING_8DIGIT_HEX | undefined;
|
|
30
|
+
'CB_STYLE_PROP_TEXT_SPEC_COLOR:MOBILE:HOVER': STRING_8DIGIT_HEX | undefined;
|
|
31
|
+
};
|
|
32
|
+
export default Text;
|