pds-dev-kit-web 2.1.14 → 2.1.15
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/styles/colorSet/index.d.ts +2 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +1 -0
- 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 +6 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.js +24 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.js +8 -0
- 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 +70 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.js +52 -0
- 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/TwitterTimeline/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/index.js +8 -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 +4 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.js +9 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +3 -0
- package/dist/src/sub/DynamicLayout/components/Section/CustomSection.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/components/Section/CustomSection.js +46 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/ErrorBoundary.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/ErrorBoundary.js +62 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/Section/Section.d.ts +6 -3
- package/dist/src/sub/DynamicLayout/components/Section/Section.js +4 -2
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.js +72 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +119 -0
- package/dist/src/sub/DynamicLayout/components/Section/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/Section/index.js +3 -1
- package/dist/src/sub/DynamicLayout/components/Section/util/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +38 -0
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +4 -1
- package/dist/src/sub/DynamicLayout/components/YouTubeIframe/YouTubeIframe.d.ts +6 -1
- package/dist/src/sub/DynamicLayout/components/YouTubeIframe/YouTubeIframe.js +35 -7
- package/dist/src/sub/DynamicLayout/components/index.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/components/index.js +2 -1
- package/dist/src/sub/DynamicLayout/mock_customSection.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/mock_customSection.js +837 -0
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +2082 -9
- package/dist/src/sub/DynamicLayout/nakedMocks.json +847 -0
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +379 -0
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +386 -0
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +29 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +193 -0
- 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 +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +50 -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 +80 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.d.ts +76 -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/Divider.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.js +71 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +107 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/types.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/types.js +2 -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 +66 -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/Text.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +65 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.d.ts +38 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.js +50 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/types.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/types.js +2 -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 +73 -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_AnimationObserverBox.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_AnimationObserverBox.js +27 -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/components/ComponentBlock/componentBlocks/components/S_CB_Box.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.js +102 -0
- 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 +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.js +35 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +21 -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/hooks/useRefDimensions.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useRefDimensions.js +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.d.ts +31 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.js +71 -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 +40 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +200 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +50 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +13 -0
- 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 +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.js +22 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/isNullOrUndefined.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/isNullOrUndefined.js +9 -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 +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.js +32 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseSectionPadding.d.ts +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseSectionPadding.js +26 -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/parseCustomSectionPlacement.d.ts +20 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCustomSectionPlacement.js +24 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.js +67 -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 +92 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.d.ts +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.js +94 -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 +95 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.d.ts +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.js +85 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.d.ts +27 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.js +77 -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 +94 -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 +47 -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 +58 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.js +91 -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 +77 -5
- package/package.json +2 -1
- package/release-note.md +3 -19
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var AVAILABLE_SPECS = [
|
|
15
|
+
'CB_STYLE_PROP_BORDER_SPEC_STYLE',
|
|
16
|
+
'CB_STYLE_PROP_BORDER_SPEC_WIDTH',
|
|
17
|
+
'CB_STYLE_PROP_BORDER_SPEC_COLOR',
|
|
18
|
+
'CB_STYLE_PROP_BORDER_SPEC_RADIUS',
|
|
19
|
+
'CB_STYLE_PROP_BORDER_SPEC_RADIUSFIX'
|
|
20
|
+
];
|
|
21
|
+
function parseStylePropBorder(namedProps, device) {
|
|
22
|
+
var specs = namedProps.specs;
|
|
23
|
+
return AVAILABLE_SPECS.reduce(function (acc, cur) {
|
|
24
|
+
var _a, _b, _c;
|
|
25
|
+
var baseKey = device === 'DESKTOP' ? cur : cur + ":MOBILE";
|
|
26
|
+
var cssPropertyKey = getParsedKey(baseKey);
|
|
27
|
+
var value = specs[baseKey];
|
|
28
|
+
var hoverValue = specs[baseKey + ":HOVER"];
|
|
29
|
+
var isRadius = cssPropertyKey === 'borderRadius';
|
|
30
|
+
if (isRadius) {
|
|
31
|
+
var _d = value, tl = _d.tl, tr = _d.tr, bl = _d.bl, br = _d.br;
|
|
32
|
+
var hoverValueTypeExpanded = hoverValue;
|
|
33
|
+
if (hoverValueTypeExpanded === null || hoverValueTypeExpanded === undefined) {
|
|
34
|
+
return {
|
|
35
|
+
style: __assign(__assign({}, acc.style), { borderTopLeftRadius: tl, borderTopRightRadius: tr, borderBottomLeftRadius: bl, borderBottomRightRadius: br }),
|
|
36
|
+
hoverStyle: __assign({}, acc.hoverStyle)
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
style: __assign(__assign({}, acc.style), { borderTopLeftRadius: tl, borderTopRightRadius: tr, borderBottomLeftRadius: bl, borderBottomRightRadius: br }),
|
|
41
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { borderTopLeftRadius: hoverValueTypeExpanded ? hoverValueTypeExpanded.tl : 0, borderTopRightRadius: hoverValueTypeExpanded ? hoverValueTypeExpanded.tr : 0, borderBottomLeftRadius: hoverValueTypeExpanded ? hoverValueTypeExpanded.bl : 0, borderBottomRightRadius: hoverValueTypeExpanded ? hoverValueTypeExpanded.br : 0 })
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
if (hoverValue === null || hoverValue === undefined) {
|
|
45
|
+
return {
|
|
46
|
+
style: __assign(__assign({}, acc.style), (_a = {}, _a[cssPropertyKey] = value, _a)),
|
|
47
|
+
hoverStyle: __assign({}, acc.hoverStyle)
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
style: __assign(__assign({}, acc.style), (_b = {}, _b[cssPropertyKey] = value, _b)),
|
|
52
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_c = {}, _c[cssPropertyKey] = hoverValue, _c))
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
style: {},
|
|
56
|
+
hoverStyle: {}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
exports.default = parseStylePropBorder;
|
|
60
|
+
function getParsedKey(key) {
|
|
61
|
+
switch (key) {
|
|
62
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_STYLE':
|
|
63
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_STYLE:HOVER':
|
|
64
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_STYLE:MOBILE':
|
|
65
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_STYLE:MOBILE:HOVER':
|
|
66
|
+
return 'borderStyle';
|
|
67
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_WIDTH':
|
|
68
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_WIDTH:HOVER':
|
|
69
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_WIDTH:MOBILE':
|
|
70
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_WIDTH:MOBILE:HOVER':
|
|
71
|
+
return 'borderWidth';
|
|
72
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_COLOR':
|
|
73
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_COLOR:HOVER':
|
|
74
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_COLOR:MOBILE':
|
|
75
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_COLOR:MOBILE:HOVER':
|
|
76
|
+
return 'borderColor';
|
|
77
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_RADIUS':
|
|
78
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_RADIUS:HOVER':
|
|
79
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_RADIUS:MOBILE':
|
|
80
|
+
case 'CB_STYLE_PROP_BORDER_SPEC_RADIUS:MOBILE:HOVER':
|
|
81
|
+
return 'borderRadius';
|
|
82
|
+
default:
|
|
83
|
+
return '';
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Device, ENUM_STRING, NUMBER_INTEGER, StyleAndHoverStyle } from '../types';
|
|
2
|
+
import type { CB_STYLE_PROP_KEYS } from './types';
|
|
3
|
+
declare type SpecKeys = keyof CB_STYLE_PROP_DIVIDER_SPECS;
|
|
4
|
+
export declare type NAMED_CB_STYLE_DIVIDER_PROPS = {
|
|
5
|
+
name: CB_STYLE_PROP_KEYS.CB_STYLE_PROP_DIVIDER;
|
|
6
|
+
specs: CB_STYLE_PROP_DIVIDER_SPECS;
|
|
7
|
+
};
|
|
8
|
+
export declare type ValueSetType = Partial<Record<SpecKeys, string | number | undefined>>;
|
|
9
|
+
export default function parseStylePropDivider(namedProps: NAMED_CB_STYLE_DIVIDER_PROPS, device: Device): StyleAndHoverStyle;
|
|
10
|
+
export declare type CB_STYLE_PROP_DIVIDER_SPEC_STYLE = 'NONE' | 'SOLID' | 'DOTTED' | 'DASHED';
|
|
11
|
+
export declare type CB_STYLE_PROP_DIVIDER_SPECS_BASE = {
|
|
12
|
+
CB_STYLE_PROP_DIVIDER_SPEC_STYLE: CB_STYLE_PROP_DIVIDER_SPEC_STYLE;
|
|
13
|
+
CB_STYLE_PROP_DIVIDER_SPEC_WIDTH: NUMBER_INTEGER;
|
|
14
|
+
CB_STYLE_PROP_DIVIDER_SPEC_COLOR: ENUM_STRING;
|
|
15
|
+
};
|
|
16
|
+
export declare type CB_STYLE_PROP_DIVIDER_SPECS = CB_STYLE_PROP_DIVIDER_SPECS_BASE & {
|
|
17
|
+
'CB_STYLE_PROP_DIVIDER_SPEC_STYLE:HOVER': CB_STYLE_PROP_DIVIDER_SPEC_STYLE | null | undefined;
|
|
18
|
+
'CB_STYLE_PROP_DIVIDER_SPEC_STYLE:MOBILE': CB_STYLE_PROP_DIVIDER_SPEC_STYLE | null | undefined;
|
|
19
|
+
'CB_STYLE_PROP_DIVIDER_SPEC_STYLE:MOBILE:HOVER': CB_STYLE_PROP_DIVIDER_SPEC_STYLE | null | undefined;
|
|
20
|
+
'CB_STYLE_PROP_DIVIDER_SPEC_WIDTH:HOVER': NUMBER_INTEGER | null | undefined;
|
|
21
|
+
'CB_STYLE_PROP_DIVIDER_SPEC_WIDTH:MOBILE': NUMBER_INTEGER | null | undefined;
|
|
22
|
+
'CB_STYLE_PROP_DIVIDER_SPEC_WIDTH:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
|
23
|
+
'CB_STYLE_PROP_DIVIDER_SPEC_COLOR:HOVER': ENUM_STRING | null | undefined;
|
|
24
|
+
'CB_STYLE_PROP_DIVIDER_SPEC_COLOR:MOBILE': ENUM_STRING | null | undefined;
|
|
25
|
+
'CB_STYLE_PROP_DIVIDER_SPEC_COLOR:MOBILE:HOVER': ENUM_STRING | null | undefined;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var AVAILABLE_SPECS = [
|
|
15
|
+
'CB_STYLE_PROP_DIVIDER_SPEC_STYLE',
|
|
16
|
+
'CB_STYLE_PROP_DIVIDER_SPEC_WIDTH',
|
|
17
|
+
'CB_STYLE_PROP_DIVIDER_SPEC_COLOR'
|
|
18
|
+
];
|
|
19
|
+
function parseStylePropDivider(namedProps, device) {
|
|
20
|
+
var specs = namedProps.specs;
|
|
21
|
+
return AVAILABLE_SPECS.reduce(function (acc, cur) {
|
|
22
|
+
var _a, _b, _c, _d, _e, _f;
|
|
23
|
+
var baseKey = device === 'DESKTOP' ? cur : cur + ":MOBILE";
|
|
24
|
+
var cssPropertyKey = getDividerCSSPropKey(baseKey);
|
|
25
|
+
var value = specs[baseKey];
|
|
26
|
+
var hoverValue = specs[baseKey + ":HOVER"];
|
|
27
|
+
if (cssPropertyKey === 'border-bottom-style') {
|
|
28
|
+
var widthValue = value === 'NONE' ? 'solid' : value;
|
|
29
|
+
var widthHoverValue = hoverValue === 'NONE' ? 'solid' : hoverValue;
|
|
30
|
+
if (widthHoverValue === null || widthHoverValue === undefined) {
|
|
31
|
+
return {
|
|
32
|
+
style: __assign(__assign({}, acc.style), (_a = {}, _a[cssPropertyKey] = widthValue, _a)),
|
|
33
|
+
hoverStyle: __assign({}, acc.hoverStyle)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
style: __assign(__assign({}, acc.style), (_b = {}, _b[cssPropertyKey] = widthValue, _b)),
|
|
38
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_c = {}, _c[cssPropertyKey] = widthHoverValue, _c))
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
if (hoverValue === null || hoverValue === undefined) {
|
|
42
|
+
return {
|
|
43
|
+
style: __assign(__assign({}, acc.style), (_d = {}, _d[cssPropertyKey] = value, _d)),
|
|
44
|
+
hoverStyle: __assign({}, acc.hoverStyle)
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
style: __assign(__assign({}, acc.style), (_e = {}, _e[cssPropertyKey] = value, _e)),
|
|
49
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_f = {}, _f[cssPropertyKey] = hoverValue, _f))
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
style: {},
|
|
53
|
+
hoverStyle: {}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
exports.default = parseStylePropDivider;
|
|
57
|
+
function getDividerCSSPropKey(key) {
|
|
58
|
+
switch (key) {
|
|
59
|
+
case 'CB_STYLE_PROP_DIVIDER_SPEC_STYLE':
|
|
60
|
+
case 'CB_STYLE_PROP_DIVIDER_SPEC_STYLE:HOVER':
|
|
61
|
+
case 'CB_STYLE_PROP_DIVIDER_SPEC_STYLE:MOBILE':
|
|
62
|
+
case 'CB_STYLE_PROP_DIVIDER_SPEC_STYLE:MOBILE:HOVER':
|
|
63
|
+
return 'border-bottom-style';
|
|
64
|
+
case 'CB_STYLE_PROP_DIVIDER_SPEC_WIDTH':
|
|
65
|
+
case 'CB_STYLE_PROP_DIVIDER_SPEC_WIDTH:HOVER':
|
|
66
|
+
case 'CB_STYLE_PROP_DIVIDER_SPEC_WIDTH:MOBILE':
|
|
67
|
+
case 'CB_STYLE_PROP_DIVIDER_SPEC_WIDTH:MOBILE:HOVER':
|
|
68
|
+
return 'border-bottom-width';
|
|
69
|
+
case 'CB_STYLE_PROP_DIVIDER_SPEC_COLOR':
|
|
70
|
+
case 'CB_STYLE_PROP_DIVIDER_SPEC_COLOR:HOVER':
|
|
71
|
+
case 'CB_STYLE_PROP_DIVIDER_SPEC_COLOR:MOBILE':
|
|
72
|
+
case 'CB_STYLE_PROP_DIVIDER_SPEC_COLOR:MOBILE:HOVER':
|
|
73
|
+
return 'border-bottom-color';
|
|
74
|
+
default:
|
|
75
|
+
return '';
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Device, ENUM_STRING, STRING_PLAIN, StyleAndHoverStyle } from '../types';
|
|
2
|
+
import type { CB_STYLE_PROP_KEYS } from './types';
|
|
3
|
+
export declare type NAMED_CB_STYLE_IMAGE_PROPS = {
|
|
4
|
+
name: CB_STYLE_PROP_KEYS.CB_STYLE_PROP_IMAGE;
|
|
5
|
+
specs: CB_STYLE_PROP_IMAGE_SPECS;
|
|
6
|
+
};
|
|
7
|
+
export default function parseStylePropImage(namedProps: NAMED_CB_STYLE_IMAGE_PROPS, device: Device): StyleAndHoverStyle;
|
|
8
|
+
export declare type CB_STYLE_PROP_IMAGE_SPECS_BASE = {
|
|
9
|
+
CB_STYLE_PROP_IMAGE_SPEC_FIT: STRING_PLAIN;
|
|
10
|
+
CB_STYLE_PROP_IMAGE_SPEC_POSITION: ENUM_STRING;
|
|
11
|
+
};
|
|
12
|
+
export declare type CB_STYLE_PROP_IMAGE_SPECS = CB_STYLE_PROP_IMAGE_SPECS_BASE & {
|
|
13
|
+
'CB_STYLE_PROP_IMAGE_SPEC_FIT:HOVER': STRING_PLAIN | null | undefined;
|
|
14
|
+
'CB_STYLE_PROP_IMAGE_SPEC_FIT:MOBILE': STRING_PLAIN | null | undefined;
|
|
15
|
+
'CB_STYLE_PROP_IMAGE_SPEC_FIT:MOBILE:HOVER': STRING_PLAIN | null | undefined;
|
|
16
|
+
'CB_STYLE_PROP_IMAGE_SPEC_POSITION:HOVER': ENUM_STRING | null | undefined;
|
|
17
|
+
'CB_STYLE_PROP_IMAGE_SPEC_POSITION:MOBILE': ENUM_STRING | null | undefined;
|
|
18
|
+
'CB_STYLE_PROP_IMAGE_SPEC_POSITION:MOBILE:HOVER': ENUM_STRING | null | undefined;
|
|
19
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var AVAILABLE_SPECS = [
|
|
15
|
+
'CB_STYLE_PROP_IMAGE_SPEC_FIT',
|
|
16
|
+
'CB_STYLE_PROP_IMAGE_SPEC_POSITION'
|
|
17
|
+
];
|
|
18
|
+
function parseStylePropImage(namedProps, device) {
|
|
19
|
+
var specs = namedProps.specs;
|
|
20
|
+
return AVAILABLE_SPECS.reduce(function (acc, cur) {
|
|
21
|
+
var _a, _b, _c, _d, _e, _f;
|
|
22
|
+
var baseKey = device === 'DESKTOP' ? cur : cur + ":MOBILE";
|
|
23
|
+
var cssPropertyKey = getParsedKey(baseKey);
|
|
24
|
+
var value = specs[baseKey];
|
|
25
|
+
var hoverValue = specs[baseKey + ":HOVER"];
|
|
26
|
+
var isPosition = cssPropertyKey === 'backgroundPosition';
|
|
27
|
+
if (isPosition) {
|
|
28
|
+
var positionCss = getCssProperties(value);
|
|
29
|
+
var hoverPositionCss = getCssProperties(hoverValue);
|
|
30
|
+
if (hoverValue === null || hoverValue === undefined) {
|
|
31
|
+
return {
|
|
32
|
+
style: __assign(__assign({}, acc.style), (_a = {}, _a[cssPropertyKey] = positionCss, _a)),
|
|
33
|
+
hoverStyle: __assign({}, acc.hoverStyle)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
style: __assign(__assign({}, acc.style), (_b = {}, _b[cssPropertyKey] = positionCss, _b)),
|
|
38
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_c = {}, _c[cssPropertyKey] = hoverPositionCss, _c))
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
if (hoverValue === null || hoverValue === undefined) {
|
|
42
|
+
return {
|
|
43
|
+
style: __assign(__assign({}, acc.style), (_d = {}, _d[cssPropertyKey] = value === null || value === void 0 ? void 0 : value.toLowerCase(), _d)),
|
|
44
|
+
hoverStyle: __assign({}, acc.hoverStyle)
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
style: __assign(__assign({}, acc.style), (_e = {}, _e[cssPropertyKey] = value === null || value === void 0 ? void 0 : value.toLowerCase(), _e)),
|
|
49
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_f = {}, _f[cssPropertyKey] = hoverValue === null || hoverValue === void 0 ? void 0 : hoverValue.toLowerCase(), _f))
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
style: {},
|
|
53
|
+
hoverStyle: {}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
exports.default = parseStylePropImage;
|
|
57
|
+
function getParsedKey(key) {
|
|
58
|
+
switch (key) {
|
|
59
|
+
case 'CB_STYLE_PROP_IMAGE_SPEC_FIT':
|
|
60
|
+
case 'CB_STYLE_PROP_IMAGE_SPEC_FIT:HOVER':
|
|
61
|
+
case 'CB_STYLE_PROP_IMAGE_SPEC_FIT:MOBILE':
|
|
62
|
+
case 'CB_STYLE_PROP_IMAGE_SPEC_FIT:MOBILE:HOVER':
|
|
63
|
+
return 'backgroundSize';
|
|
64
|
+
case 'CB_STYLE_PROP_IMAGE_SPEC_POSITION':
|
|
65
|
+
case 'CB_STYLE_PROP_IMAGE_SPEC_POSITION:HOVER':
|
|
66
|
+
case 'CB_STYLE_PROP_IMAGE_SPEC_POSITION:MOBILE':
|
|
67
|
+
case 'CB_STYLE_PROP_IMAGE_SPEC_POSITION:MOBILE:HOVER':
|
|
68
|
+
return 'backgroundPosition';
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function getCssProperties(value) {
|
|
72
|
+
switch (value) {
|
|
73
|
+
case 'LT':
|
|
74
|
+
return 'left top';
|
|
75
|
+
case 'CT':
|
|
76
|
+
return 'center top';
|
|
77
|
+
case 'RT':
|
|
78
|
+
return 'right top';
|
|
79
|
+
case 'LC':
|
|
80
|
+
return 'left center';
|
|
81
|
+
case 'CC':
|
|
82
|
+
return 'center center';
|
|
83
|
+
case 'RC':
|
|
84
|
+
return 'right center';
|
|
85
|
+
case 'LB':
|
|
86
|
+
return 'left bottom';
|
|
87
|
+
case 'CB':
|
|
88
|
+
return 'center bottom';
|
|
89
|
+
case 'RB':
|
|
90
|
+
return 'right bottom';
|
|
91
|
+
default:
|
|
92
|
+
return '';
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Device, NUMBER_INTEGER, StyleAndHoverStyle } from '../types';
|
|
2
|
+
import type { CB_STYLE_PROP_KEYS } from './types';
|
|
3
|
+
export declare type NAMED_CB_STYLE_OPACITY_PROPS = {
|
|
4
|
+
name: CB_STYLE_PROP_KEYS.CB_STYLE_PROP_OPACITY;
|
|
5
|
+
specs: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
|
|
6
|
+
};
|
|
7
|
+
export default function parseStylePropOpacity(namedProps: NAMED_CB_STYLE_OPACITY_PROPS, device: Device): StyleAndHoverStyle;
|
|
8
|
+
export declare type CB_STYLE_PROP_TEXT_OPACITY_BASE = {
|
|
9
|
+
CB_STYLE_PROP_OPACITY_SPEC_OPACITY: NUMBER_INTEGER;
|
|
10
|
+
};
|
|
11
|
+
export declare type CB_STYLE_PROP_TEXT_OPACITY_SPECS = CB_STYLE_PROP_TEXT_OPACITY_BASE & {
|
|
12
|
+
'CB_STYLE_PROP_OPACITY_SPEC_OPACITY:HOVER': NUMBER_INTEGER | null | undefined;
|
|
13
|
+
'CB_STYLE_PROP_OPACITY_SPEC_OPACITY:MOBILE': NUMBER_INTEGER | null | undefined;
|
|
14
|
+
'CB_STYLE_PROP_OPACITY_SPEC_OPACITY:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
|
15
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
function parseStylePropOpacity(namedProps, device) {
|
|
15
|
+
var specs = namedProps.specs;
|
|
16
|
+
return AVAILABLE_SPECS.reduce(function (acc, cur) {
|
|
17
|
+
var _a, _b, _c;
|
|
18
|
+
var baseKey = device === 'DESKTOP' ? cur : cur + ":MOBILE";
|
|
19
|
+
var cssPropertyKey = getParsedKey(baseKey);
|
|
20
|
+
var value = specs[baseKey];
|
|
21
|
+
var hoverValue = specs[baseKey + ":HOVER"];
|
|
22
|
+
if (hoverValue === null || hoverValue === undefined) {
|
|
23
|
+
return {
|
|
24
|
+
style: __assign(__assign({}, acc.style), (_a = {}, _a[cssPropertyKey] = (value || 0) / 100, _a)),
|
|
25
|
+
hoverStyle: __assign({}, acc.hoverStyle)
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
style: __assign(__assign({}, acc.style), (_b = {}, _b[cssPropertyKey] = (value || 0) / 100, _b)),
|
|
30
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_c = {}, _c[cssPropertyKey] = (hoverValue || 0) / 100, _c))
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
style: {},
|
|
34
|
+
hoverStyle: {}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
exports.default = parseStylePropOpacity;
|
|
38
|
+
var AVAILABLE_SPECS = ['CB_STYLE_PROP_OPACITY_SPEC_OPACITY'];
|
|
39
|
+
function getParsedKey(key) {
|
|
40
|
+
switch (key) {
|
|
41
|
+
case 'CB_STYLE_PROP_OPACITY_SPEC_OPACITY':
|
|
42
|
+
case 'CB_STYLE_PROP_OPACITY_SPEC_OPACITY:HOVER':
|
|
43
|
+
case 'CB_STYLE_PROP_OPACITY_SPEC_OPACITY:MOBILE':
|
|
44
|
+
case 'CB_STYLE_PROP_OPACITY_SPEC_OPACITY:MOBILE:HOVER':
|
|
45
|
+
return 'opacity';
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Device, ENUM_STRING, NUMBER_INTEGER, STRING_8DIGIT_HEX, StyleAndHoverStyle } from '../types';
|
|
2
|
+
import type { CB_STYLE_PROP_KEYS } from './types';
|
|
3
|
+
export declare type NAMED_CB_STYLE_SHADOW_PROPS = {
|
|
4
|
+
name: CB_STYLE_PROP_KEYS.CB_STYLE_PROP_SHADOW;
|
|
5
|
+
specs: CB_STYLE_PROP_SHADOW_SPECS;
|
|
6
|
+
};
|
|
7
|
+
export default function parseStylePropShadow(namedProps: NAMED_CB_STYLE_SHADOW_PROPS, device: Device): StyleAndHoverStyle;
|
|
8
|
+
export declare type CB_STYLE_PROP_SHADOW_SPECS_BASE = {
|
|
9
|
+
CB_STYLE_PROP_SHADOW_SPEC_TYPE: ENUM_STRING;
|
|
10
|
+
CB_STYLE_PROP_SHADOW_SPEC_COLOR: STRING_8DIGIT_HEX;
|
|
11
|
+
CB_STYLE_PROP_SHADOW_SPEC_X: NUMBER_INTEGER;
|
|
12
|
+
CB_STYLE_PROP_SHADOW_SPEC_Y: NUMBER_INTEGER;
|
|
13
|
+
CB_STYLE_PROP_SHADOW_SPEC_BLUR: NUMBER_INTEGER;
|
|
14
|
+
CB_STYLE_PROP_SHADOW_SPEC_SPREAD: NUMBER_INTEGER;
|
|
15
|
+
CB_STYLE_PROP_SHADOW_SPEC_OPACITY: NUMBER_INTEGER;
|
|
16
|
+
};
|
|
17
|
+
export declare type CB_STYLE_PROP_SHADOW_SPECS = CB_STYLE_PROP_SHADOW_SPECS_BASE & {
|
|
18
|
+
'CB_STYLE_PROP_SHADOW_SPEC_TYPE:HOVER': ENUM_STRING | null | undefined;
|
|
19
|
+
'CB_STYLE_PROP_SHADOW_SPEC_TYPE:MOBILE': ENUM_STRING | null | undefined;
|
|
20
|
+
'CB_STYLE_PROP_SHADOW_SPEC_TYPE:MOBILE:HOVER': ENUM_STRING | null | undefined;
|
|
21
|
+
'CB_STYLE_PROP_SHADOW_SPEC_COLOR:HOVER': STRING_8DIGIT_HEX | null | undefined;
|
|
22
|
+
'CB_STYLE_PROP_SHADOW_SPEC_COLOR:MOBILE': STRING_8DIGIT_HEX | null | undefined;
|
|
23
|
+
'CB_STYLE_PROP_SHADOW_SPEC_COLOR:MOBILE:HOVER': STRING_8DIGIT_HEX | null | undefined;
|
|
24
|
+
'CB_STYLE_PROP_SHADOW_SPEC_X:HOVER': NUMBER_INTEGER | null | undefined;
|
|
25
|
+
'CB_STYLE_PROP_SHADOW_SPEC_X:MOBILE': NUMBER_INTEGER | null | undefined;
|
|
26
|
+
'CB_STYLE_PROP_SHADOW_SPEC_X:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
|
27
|
+
'CB_STYLE_PROP_SHADOW_SPEC_Y:HOVER': NUMBER_INTEGER | null | undefined;
|
|
28
|
+
'CB_STYLE_PROP_SHADOW_SPEC_Y:MOBILE': NUMBER_INTEGER | null | undefined;
|
|
29
|
+
'CB_STYLE_PROP_SHADOW_SPEC_Y:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
|
30
|
+
'CB_STYLE_PROP_SHADOW_SPEC_BLUR:HOVER': NUMBER_INTEGER | null | undefined;
|
|
31
|
+
'CB_STYLE_PROP_SHADOW_SPEC_BLUR:MOBILE': NUMBER_INTEGER | null | undefined;
|
|
32
|
+
'CB_STYLE_PROP_SHADOW_SPEC_BLUR:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
|
33
|
+
'CB_STYLE_PROP_SHADOW_SPEC_SPREAD:HOVER': NUMBER_INTEGER | null | undefined;
|
|
34
|
+
'CB_STYLE_PROP_SHADOW_SPEC_SPREAD:MOBILE': NUMBER_INTEGER | null | undefined;
|
|
35
|
+
'CB_STYLE_PROP_SHADOW_SPEC_SPREAD:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
|
36
|
+
'CB_STYLE_PROP_SHADOW_SPEC_OPACITY:HOVER': NUMBER_INTEGER | null | undefined;
|
|
37
|
+
'CB_STYLE_PROP_SHADOW_SPEC_OPACITY:MOBILE': NUMBER_INTEGER | null | undefined;
|
|
38
|
+
'CB_STYLE_PROP_SHADOW_SPEC_OPACITY:MOBILE:HOVER': NUMBER_INTEGER | null | undefined;
|
|
39
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var AVAILABLE_SPECS = [
|
|
15
|
+
'CB_STYLE_PROP_SHADOW_SPEC_TYPE',
|
|
16
|
+
'CB_STYLE_PROP_SHADOW_SPEC_COLOR',
|
|
17
|
+
'CB_STYLE_PROP_SHADOW_SPEC_X',
|
|
18
|
+
'CB_STYLE_PROP_SHADOW_SPEC_Y',
|
|
19
|
+
'CB_STYLE_PROP_SHADOW_SPEC_BLUR',
|
|
20
|
+
'CB_STYLE_PROP_SHADOW_SPEC_SPREAD',
|
|
21
|
+
'CB_STYLE_PROP_SHADOW_SPEC_OPACITY'
|
|
22
|
+
];
|
|
23
|
+
function parseStylePropShadow(namedProps, device) {
|
|
24
|
+
var specs = namedProps.specs;
|
|
25
|
+
var valueSet = AVAILABLE_SPECS.reduce(function (acc, cur) {
|
|
26
|
+
var _a, _b, _c;
|
|
27
|
+
var baseKey = device === 'DESKTOP' ? cur : cur + ":MOBILE";
|
|
28
|
+
var value = specs[baseKey];
|
|
29
|
+
var hoverValue = specs[baseKey + ":HOVER"];
|
|
30
|
+
if (hoverValue === null || hoverValue === undefined) {
|
|
31
|
+
return { normal: __assign(__assign({}, acc.normal), (_a = {}, _a[cur] = value, _a)), hover: __assign({}, acc.hover) };
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
normal: __assign(__assign({}, acc.normal), (_b = {}, _b[cur] = value, _b)),
|
|
35
|
+
hover: __assign(__assign({}, acc.hover), (_c = {}, _c[cur] = hoverValue, _c))
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
normal: {},
|
|
39
|
+
hover: {}
|
|
40
|
+
});
|
|
41
|
+
return {
|
|
42
|
+
style: { boxShadow: valueGenerator(valueSet.normal) },
|
|
43
|
+
hoverStyle: { boxShadow: valueGenerator(valueSet.hover) }
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.default = parseStylePropShadow;
|
|
47
|
+
function valueGenerator(valueSet) {
|
|
48
|
+
switch (valueSet.CB_STYLE_PROP_SHADOW_SPEC_TYPE) {
|
|
49
|
+
case 'INSET':
|
|
50
|
+
return "inset " + valueSet.CB_STYLE_PROP_SHADOW_SPEC_X + "px " + valueSet.CB_STYLE_PROP_SHADOW_SPEC_Y + "px " + valueSet.CB_STYLE_PROP_SHADOW_SPEC_BLUR + "px " + valueSet.CB_STYLE_PROP_SHADOW_SPEC_SPREAD + "px " + valueSet.CB_STYLE_PROP_SHADOW_SPEC_COLOR;
|
|
51
|
+
case 'OUTSET':
|
|
52
|
+
return valueSet.CB_STYLE_PROP_SHADOW_SPEC_X + "px " + valueSet.CB_STYLE_PROP_SHADOW_SPEC_Y + "px " + valueSet.CB_STYLE_PROP_SHADOW_SPEC_BLUR + "px " + valueSet.CB_STYLE_PROP_SHADOW_SPEC_SPREAD + "px " + valueSet.CB_STYLE_PROP_SHADOW_SPEC_COLOR;
|
|
53
|
+
case 'NONE':
|
|
54
|
+
return 'none';
|
|
55
|
+
default:
|
|
56
|
+
return '';
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CB_STYLE_PROP_TEXT_SPECS } from '../../components/ComponentBlock/componentBlocks/Text/types';
|
|
2
|
+
import type { Device, StyleAndHoverStyle } from '../types';
|
|
3
|
+
import type { CB_STYLE_PROP_KEYS } from './types';
|
|
4
|
+
export declare type NAMED_CB_STYLE_TEXT_PROPS = {
|
|
5
|
+
name: CB_STYLE_PROP_KEYS.CB_STYLE_PROP_TEXT;
|
|
6
|
+
specs: CB_STYLE_PROP_TEXT_SPECS;
|
|
7
|
+
};
|
|
8
|
+
export default function parseStylePropTextSpec(namedProps: NAMED_CB_STYLE_TEXT_PROPS, device: Device): StyleAndHoverStyle;
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var AVAILABLE_SPECS = [
|
|
15
|
+
'CB_STYLE_PROP_TEXT_SPEC_COLOR',
|
|
16
|
+
'CB_STYLE_PROP_TEXT_SPEC_TYPEFACE',
|
|
17
|
+
'CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING',
|
|
18
|
+
'CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT',
|
|
19
|
+
'CB_STYLE_PROP_TEXT_SPEC_SIZE',
|
|
20
|
+
'CB_STYLE_PROP_TEXT_SPEC_WEIGHT',
|
|
21
|
+
'CB_STYLE_PROP_TEXT_SPEC_HORIZONTAL',
|
|
22
|
+
'CB_STYLE_PROP_TEXT_SPEC_VERTICAL'
|
|
23
|
+
];
|
|
24
|
+
function parseStylePropTextSpec(namedProps, device) {
|
|
25
|
+
var specs = namedProps.specs;
|
|
26
|
+
return AVAILABLE_SPECS.reduce(function (acc, cur) {
|
|
27
|
+
var _a, _b, _c;
|
|
28
|
+
var baseKey = device === 'DESKTOP' ? cur : cur + ":MOBILE";
|
|
29
|
+
var cssPropertyKey = getParsedKey(baseKey);
|
|
30
|
+
var value = specs[baseKey];
|
|
31
|
+
var hoverValue = specs[baseKey + ":HOVER"];
|
|
32
|
+
if (hoverValue === null || hoverValue === undefined) {
|
|
33
|
+
return {
|
|
34
|
+
style: __assign(__assign({}, acc.style), (_a = {}, _a[cssPropertyKey] = value, _a)),
|
|
35
|
+
hoverStyle: __assign({}, acc.hoverStyle)
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
style: __assign(__assign({}, acc.style), (_b = {}, _b[cssPropertyKey] = value, _b)),
|
|
40
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_c = {}, _c[cssPropertyKey] = hoverValue, _c))
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
style: {},
|
|
44
|
+
hoverStyle: {}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
exports.default = parseStylePropTextSpec;
|
|
48
|
+
function getParsedKey(key) {
|
|
49
|
+
switch (key) {
|
|
50
|
+
case "CB_STYLE_PROP_TEXT_SPEC_COLOR":
|
|
51
|
+
case "CB_STYLE_PROP_TEXT_SPEC_COLOR:HOVER":
|
|
52
|
+
case "CB_STYLE_PROP_TEXT_SPEC_COLOR:MOBILE":
|
|
53
|
+
case "CB_STYLE_PROP_TEXT_SPEC_COLOR:MOBILE:HOVER":
|
|
54
|
+
return 'color';
|
|
55
|
+
case "CB_STYLE_PROP_TEXT_SPEC_TYPEFACE":
|
|
56
|
+
case "CB_STYLE_PROP_TEXT_SPEC_TYPEFACE:HOVER":
|
|
57
|
+
case "CB_STYLE_PROP_TEXT_SPEC_TYPEFACE:MOBILE":
|
|
58
|
+
case "CB_STYLE_PROP_TEXT_SPEC_TYPEFACE:MOBILE:HOVER":
|
|
59
|
+
return 'fontFamily';
|
|
60
|
+
case "CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING":
|
|
61
|
+
case "CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING:HOVER":
|
|
62
|
+
case "CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING:MOBILE":
|
|
63
|
+
case "CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING:MOBILE:HOVER":
|
|
64
|
+
return 'letterSpacing';
|
|
65
|
+
case "CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT":
|
|
66
|
+
case "CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT:HOVER":
|
|
67
|
+
case "CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT:MOBILE":
|
|
68
|
+
case "CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT:MOBILE:HOVER":
|
|
69
|
+
return 'lineHeight';
|
|
70
|
+
case "CB_STYLE_PROP_TEXT_SPEC_SIZE":
|
|
71
|
+
case "CB_STYLE_PROP_TEXT_SPEC_SIZE:HOVER":
|
|
72
|
+
case "CB_STYLE_PROP_TEXT_SPEC_SIZE:MOBILE":
|
|
73
|
+
case "CB_STYLE_PROP_TEXT_SPEC_SIZE:MOBILE:HOVER":
|
|
74
|
+
return 'fontSize';
|
|
75
|
+
case "CB_STYLE_PROP_TEXT_SPEC_WEIGHT":
|
|
76
|
+
case "CB_STYLE_PROP_TEXT_SPEC_WEIGHT:HOVER":
|
|
77
|
+
case "CB_STYLE_PROP_TEXT_SPEC_WEIGHT:MOBILE":
|
|
78
|
+
case "CB_STYLE_PROP_TEXT_SPEC_WEIGHT:MOBILE:HOVER":
|
|
79
|
+
return 'fontWeight';
|
|
80
|
+
case "CB_STYLE_PROP_TEXT_SPEC_HORIZONTAL":
|
|
81
|
+
case "CB_STYLE_PROP_TEXT_SPEC_HORIZONTAL:HOVER":
|
|
82
|
+
case "CB_STYLE_PROP_TEXT_SPEC_HORIZONTAL:MOBILE":
|
|
83
|
+
case "CB_STYLE_PROP_TEXT_SPEC_HORIZONTAL:MOBILE:HOVER":
|
|
84
|
+
return 'HORIZONTAL';
|
|
85
|
+
case "CB_STYLE_PROP_TEXT_SPEC_VERTICAL":
|
|
86
|
+
case "CB_STYLE_PROP_TEXT_SPEC_VERTICAL:HOVER":
|
|
87
|
+
case "CB_STYLE_PROP_TEXT_SPEC_VERTICAL:MOBILE":
|
|
88
|
+
case "CB_STYLE_PROP_TEXT_SPEC_VERTICAL:MOBILE:HOVER":
|
|
89
|
+
return 'VERTICAL';
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { NAMED_CB_STYLE_BGCOLOR_PROPS } from './parseStylePropBgColor';
|
|
2
|
+
import type { NAMED_CB_STYLE_BGIMAGE_PROPS } from './parseStylePropBgImage';
|
|
3
|
+
import type { NAMED_CB_STYLE_BGOVERLAY_PROPS } from './parseStylePropBgOverlay';
|
|
4
|
+
import type { NAMED_CB_STYLE_BORDER_PROPS } from './parseStylePropBorder';
|
|
5
|
+
import type { NAMED_CB_STYLE_DIVIDER_PROPS } from './parseStylePropDivider';
|
|
6
|
+
import type { NAMED_CB_STYLE_IMAGE_PROPS } from './parseStylePropImage';
|
|
7
|
+
import type { NAMED_CB_STYLE_OPACITY_PROPS } from './parseStylePropOpacity';
|
|
8
|
+
import type { NAMED_CB_STYLE_SHADOW_PROPS } from './parseStylePropShadow';
|
|
9
|
+
import type { NAMED_CB_STYLE_TEXT_PROPS } from './parseStylePropTextSpec';
|
|
10
|
+
export declare enum CB_STYLE_PROP_KEYS {
|
|
11
|
+
CB_STYLE_PROP_TEXT = "CB_STYLE_PROP_TEXT",
|
|
12
|
+
CB_STYLE_PROP_OPACITY = "CB_STYLE_PROP_OPACITY",
|
|
13
|
+
CB_STYLE_PROP_DIVIDER = "CB_STYLE_PROP_DIVIDER",
|
|
14
|
+
CB_STYLE_PROP_SHADOW = "CB_STYLE_PROP_SHADOW",
|
|
15
|
+
CB_STYLE_PROP_BORDER = "CB_STYLE_PROP_BORDER",
|
|
16
|
+
CB_STYLE_PROP_IMAGE = "CB_STYLE_PROP_IMAGE",
|
|
17
|
+
CB_STYLE_PROP_BTNCOLOR = "CB_STYLE_PROP_BTNCOLOR",
|
|
18
|
+
CB_STYLE_PROP_BGCOLOR = "CB_STYLE_PROP_BGCOLOR",
|
|
19
|
+
CB_STYLE_PROP_BGMEDIA = "CB_STYLE_PROP_BGMEDIA",
|
|
20
|
+
CB_STYLE_PROP_BGOVERLAY = "CB_STYLE_PROP_BGOVERLAY"
|
|
21
|
+
}
|
|
22
|
+
export declare type NamedStylePropType = NAMED_CB_STYLE_TEXT_PROPS | NAMED_CB_STYLE_OPACITY_PROPS | NAMED_CB_STYLE_DIVIDER_PROPS | NAMED_CB_STYLE_SHADOW_PROPS | NAMED_CB_STYLE_BORDER_PROPS | NAMED_CB_STYLE_IMAGE_PROPS | NAMED_CB_STYLE_BGCOLOR_PROPS | NAMED_CB_STYLE_BGIMAGE_PROPS | NAMED_CB_STYLE_BGOVERLAY_PROPS;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CB_STYLE_PROP_KEYS = void 0;
|
|
4
|
+
var CB_STYLE_PROP_KEYS;
|
|
5
|
+
(function (CB_STYLE_PROP_KEYS) {
|
|
6
|
+
CB_STYLE_PROP_KEYS["CB_STYLE_PROP_TEXT"] = "CB_STYLE_PROP_TEXT";
|
|
7
|
+
CB_STYLE_PROP_KEYS["CB_STYLE_PROP_OPACITY"] = "CB_STYLE_PROP_OPACITY";
|
|
8
|
+
CB_STYLE_PROP_KEYS["CB_STYLE_PROP_DIVIDER"] = "CB_STYLE_PROP_DIVIDER";
|
|
9
|
+
CB_STYLE_PROP_KEYS["CB_STYLE_PROP_SHADOW"] = "CB_STYLE_PROP_SHADOW";
|
|
10
|
+
CB_STYLE_PROP_KEYS["CB_STYLE_PROP_BORDER"] = "CB_STYLE_PROP_BORDER";
|
|
11
|
+
CB_STYLE_PROP_KEYS["CB_STYLE_PROP_IMAGE"] = "CB_STYLE_PROP_IMAGE";
|
|
12
|
+
CB_STYLE_PROP_KEYS["CB_STYLE_PROP_BTNCOLOR"] = "CB_STYLE_PROP_BTNCOLOR";
|
|
13
|
+
CB_STYLE_PROP_KEYS["CB_STYLE_PROP_BGCOLOR"] = "CB_STYLE_PROP_BGCOLOR";
|
|
14
|
+
CB_STYLE_PROP_KEYS["CB_STYLE_PROP_BGMEDIA"] = "CB_STYLE_PROP_BGMEDIA";
|
|
15
|
+
CB_STYLE_PROP_KEYS["CB_STYLE_PROP_BGOVERLAY"] = "CB_STYLE_PROP_BGOVERLAY";
|
|
16
|
+
})(CB_STYLE_PROP_KEYS = exports.CB_STYLE_PROP_KEYS || (exports.CB_STYLE_PROP_KEYS = {}));
|