pds-dev-kit-web-test 0.0.13 → 0.0.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/index.d.ts +4 -0
- package/dist/index.js +5 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/MenuItemNav.js +2 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PageMenuItemNav.d.ts +12 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PageMenuItemNav.js +51 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/types.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/desktop/components/Item/Item.js +1 -1
- package/dist/src/sub/DynamicLayout/desktop/components/Section/Section.d.ts +3 -1
- package/dist/src/sub/DynamicLayout/desktop/components/Section/Section.js +11 -7
- package/dist/src/sub/DynamicLayout/desktop/components/common/Carousel.js +54 -9
- package/dist/src/sub/DynamicLayout/desktop/components/common/swiper.style.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/desktop/components/common/swiper.style.js +10 -0
- package/dist/src/sub/DynamicLayout/desktop/sections/ContentsCarouselSection/templates/TemplateA/TemplateA.js +10 -7
- package/dist/src/sub/DynamicLayout/desktop/sections/ContentsCarouselSection/templates/TemplateB/TemplateB.js +11 -8
- package/dist/src/sub/DynamicLayout/desktop/sections/ContentsSection/templates/TemplateA/TemplateA.js +8 -5
- package/dist/src/sub/DynamicLayout/desktop/sections/ContentsSection/templates/TemplateB/TemplateB.js +7 -4
- package/dist/src/sub/DynamicLayout/desktop/sections/FooterSection/templates/TemplateA/TemplateA.js +1 -4
- package/dist/src/sub/DynamicLayout/desktop/sections/FooterSection/templates/TemplateB/TemplateB.js +1 -4
- package/dist/src/sub/DynamicLayout/desktop/sections/InfoBoxSection/templates/TemplateA/TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/desktop/sections/IntroSection/templates/TemplateA/TemplateA.js +2 -2
- package/dist/src/sub/DynamicLayout/desktop/sections/IntroSection/templates/TemplateB/TemplateB.js +2 -2
- package/dist/src/sub/DynamicLayout/desktop/sections/IntroSection/templates/TemplateC/TemplateC.js +2 -2
- package/dist/src/sub/DynamicLayout/desktop/sections/IntroSection/templates/TemplateD/TemplateD.js +3 -3
- package/dist/src/sub/DynamicLayout/mobile/components/Item/Item.js +1 -1
- package/dist/src/sub/DynamicLayout/mobile/components/Section/Section.d.ts +3 -1
- package/dist/src/sub/DynamicLayout/mobile/components/Section/Section.js +11 -7
- package/dist/src/sub/DynamicLayout/mobile/components/common/Carousel.js +5 -3
- package/dist/src/sub/DynamicLayout/mobile/sections/ContentsCarouselSection/templates/TemplateA/TemplateA.js +12 -7
- package/dist/src/sub/DynamicLayout/mobile/sections/ContentsCarouselSection/templates/TemplateB/TemplateB.js +12 -7
- package/dist/src/sub/DynamicLayout/mobile/sections/ContentsSection/templates/TemplateA/TemplateA.js +15 -13
- package/dist/src/sub/DynamicLayout/mobile/sections/ContentsSection/templates/TemplateB/TemplateB.js +7 -10
- package/dist/src/sub/DynamicLayout/mobile/sections/FooterSection/templates/TemplateA/TemplateA.js +3 -6
- package/dist/src/sub/DynamicLayout/mobile/sections/FooterSection/templates/TemplateB/TemplateB.js +3 -6
- package/dist/src/sub/DynamicLayout/mobile/sections/InfoBoxSection/templates/TemplateA/TemplateA.js +5 -8
- package/dist/src/sub/DynamicLayout/mobile/sections/IntroSection/templates/TemplateA/TemplateA.js +14 -3
- package/dist/src/sub/DynamicLayout/mobile/sections/IntroSection/templates/TemplateB/TemplateB.js +14 -3
- package/dist/src/sub/DynamicLayout/mobile/sections/IntroSection/templates/TemplateC/TemplateC.js +1 -1
- package/dist/src/sub/DynamicLayout/mobile/sections/IntroSection/templates/TemplateD/TemplateD.js +1 -1
- package/dist/src/sub/DynamicLayout/types.js +5 -5
- package/package.json +1 -1
- package/release-note.md +17 -2
|
@@ -48,6 +48,7 @@ function TemplateB() {
|
|
|
48
48
|
var _c = sectionContext.properties, buttonAlphaLabel = _c.buttonAlphaLabel, buttonAlphaLinkSrc = _c.buttonAlphaLinkSrc, buttonAlphaLinkType = _c.buttonAlphaLinkType;
|
|
49
49
|
var _d = sectionContext.styles, buttonAlphaDesignType = _d.buttonAlphaDesignType, buttonAlphaBackgroundColorInHex = _d.buttonAlphaBackgroundColorInHex, buttonAlphaLabelColorInHex = _d.buttonAlphaLabelColorInHex, itemButtonDesignType = _d.itemButtonDesignType, itemButtonBackgroundColorInHex = _d.itemButtonBackgroundColorInHex, itemButtonLabelColorInHex = _d.itemButtonLabelColorInHex;
|
|
50
50
|
var dynamicLayoutSectionItems = sectionContext.dynamicLayoutSectionItems;
|
|
51
|
+
var _e = sectionContext.properties, carouselAutoplayMode = _e.carouselAutoplayMode, carouselAutoplayTime = _e.carouselAutoplayTime, carouselInfiniteLoopMode = _e.carouselInfiniteLoopMode;
|
|
51
52
|
var filteredItems = dynamicLayoutSectionItems
|
|
52
53
|
? dynamicLayoutSectionItems.filter(function (item) {
|
|
53
54
|
return item.display &&
|
|
@@ -60,22 +61,24 @@ function TemplateB() {
|
|
|
60
61
|
return (react_1.default.createElement(S_Wrapper, { hasNothing: !title && !description && !buttonAlphaLinkSrc && filteredItems.length === 0 },
|
|
61
62
|
react_1.default.createElement(S_ContentsArea, null,
|
|
62
63
|
title && (react_1.default.createElement(S_SectionTitleBox, null,
|
|
63
|
-
react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "
|
|
64
|
+
react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "48px", customFontWeight: "bold" }))),
|
|
64
65
|
description && (react_1.default.createElement(S_SectionDescriptionBox, null,
|
|
65
66
|
react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, textAlign: "center", styleTheme: "body1Regular" }))),
|
|
66
67
|
buttonAlphaLinkSrc && (react_1.default.createElement(S_SectionButtonBox, null,
|
|
67
68
|
react_1.default.createElement(components_1.Section.Button, { text: buttonAlphaLabel, src: buttonAlphaLinkSrc, linkType: buttonAlphaLinkType, buttonType: buttonAlphaDesignType, backgroundColor: buttonAlphaBackgroundColorInHex, textColor: buttonAlphaLabelColorInHex, borderColor: buttonAlphaLabelColorInHex }))),
|
|
68
69
|
filteredItems.length > 0 && (react_1.default.createElement(S_CarouselBox, null,
|
|
69
|
-
react_1.default.createElement(components_1.Carousel, { spaceBetween: 42, slidesPerView: 3, slidesPerGroup:
|
|
70
|
+
react_1.default.createElement(components_1.Carousel, { spaceBetween: 42, slidesPerView: 3, slidesPerGroup: 1, breakpoints: {
|
|
70
71
|
1301: {
|
|
71
|
-
slidesPerView: 4
|
|
72
|
-
slidesPerGroup: 4
|
|
72
|
+
slidesPerView: 4
|
|
73
73
|
},
|
|
74
74
|
1601: {
|
|
75
|
-
slidesPerView: 5
|
|
76
|
-
slidesPerGroup: 5
|
|
75
|
+
slidesPerView: 5
|
|
77
76
|
}
|
|
78
|
-
},
|
|
77
|
+
}, mode: carouselAutoplayMode === 'AUTO'
|
|
78
|
+
? 'autoplay'
|
|
79
|
+
: carouselInfiniteLoopMode === 'USE'
|
|
80
|
+
? 'loop'
|
|
81
|
+
: 'normal', autoplayDelay: carouselAutoplayTime, buttonSpacing: "-16px" }, filteredItems.map(function (item) {
|
|
79
82
|
var id = item.id;
|
|
80
83
|
var _a = item.properties, itemTitle = _a.title, itemDescription = _a.description, itemImageSrc = _a.imageSrc, itemLinkMethod = _a.linkMethod, itemLinkSrc = _a.linkSrc, itemLinkType = _a.linkType, itemButtonLabel = _a.buttonLabel;
|
|
81
84
|
return (react_1.default.createElement(components_1.Item, __assign({ key: id }, item),
|
|
@@ -91,7 +94,7 @@ function TemplateB() {
|
|
|
91
94
|
}
|
|
92
95
|
var S_Wrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n margin: ", " 0;\n"], ["\n width: 100%;\n margin: ", " 0;\n"])), function (_a) {
|
|
93
96
|
var hasNothing = _a.hasNothing;
|
|
94
|
-
return (hasNothing ? 0 : '
|
|
97
|
+
return (hasNothing ? 0 : '160px');
|
|
95
98
|
});
|
|
96
99
|
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n margin: 0 auto;\n"], ["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n margin: 0 auto;\n"])));
|
|
97
100
|
var S_SectionTitleBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin: ", " 0;\n"], ["\n margin: ", " 0;\n"])), function (_a) {
|
package/dist/src/sub/DynamicLayout/desktop/sections/ContentsSection/templates/TemplateA/TemplateA.js
CHANGED
|
@@ -37,24 +37,27 @@ function TemplateA() {
|
|
|
37
37
|
return (react_1.default.createElement(S_ContentsAreaBox, { hasNothing: hasNothing },
|
|
38
38
|
react_1.default.createElement(S_ContentsArea, null,
|
|
39
39
|
sectionContentMediaSrc && (react_1.default.createElement(react_1.default.Fragment, null, sectionContentMediaType === 'IMAGE' && (react_1.default.createElement(S_ImageBox, null,
|
|
40
|
-
react_1.default.createElement(Section_1.Section.Image, { src: sectionContentMediaSrc, width: "responsive", height: "responsive",
|
|
40
|
+
react_1.default.createElement(Section_1.Section.Image, { src: sectionContentMediaSrc, width: "responsive", height: "responsive", scaleType: "cover", shapeType: "rectangle" }))))),
|
|
41
41
|
react_1.default.createElement(S_ContentsBodyWrapper, null,
|
|
42
|
-
title && (react_1.default.createElement(Section_1.Section.Title, { text: title, color: titleColorInHex, customFontSize: "
|
|
42
|
+
title && (react_1.default.createElement(Section_1.Section.Title, { text: title, color: titleColorInHex, customFontSize: "48px", customFontWeight: "bold" })),
|
|
43
43
|
description && (react_1.default.createElement(S_SectionDescriptionBox, { hasTitle: !!title },
|
|
44
44
|
react_1.default.createElement(Section_1.Section.Description, { text: description, color: descriptionColorInHex, styleTheme: "headingBold" }))),
|
|
45
45
|
buttonAlphaLinkSrc && (react_1.default.createElement(S_ButtonBox, { hasTitle: !!title, hasDescription: !!description },
|
|
46
46
|
react_1.default.createElement(Section_1.Section.Button, { buttonType: buttonAlphaDesignType, text: buttonAlphaLabel, linkType: buttonAlphaLinkType, src: buttonAlphaLinkSrc, textColor: buttonAlphaLabelColorInHex, backgroundColor: buttonAlphaBackgroundColorInHex, borderColor: buttonAlphaLabelColorInHex })))))));
|
|
47
47
|
}
|
|
48
|
-
var S_ContentsAreaBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n justify-content: center;\n margin:
|
|
48
|
+
var S_ContentsAreaBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n justify-content: center;\n margin: ", " 0;\n"], ["\n width: 100%;\n display: flex;\n justify-content: center;\n margin: ", " 0;\n"])), function (_a) {
|
|
49
49
|
var hasNothing = _a.hasNothing;
|
|
50
|
-
return hasNothing
|
|
50
|
+
return (hasNothing ? 0 : '160px');
|
|
51
51
|
});
|
|
52
52
|
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n\n display: flex;\n"], ["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n\n display: flex;\n"])));
|
|
53
53
|
var S_ImageBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 30%;\n min-width: 30%;\n height: 100%;\n min-height: 360px;\n margin-right: ", ";\n"], ["\n width: 30%;\n min-width: 30%;\n height: 100%;\n min-height: 360px;\n margin-right: ", ";\n"])), function (_a) {
|
|
54
54
|
var theme = _a.theme;
|
|
55
55
|
return theme.spacing.spacingI;
|
|
56
56
|
});
|
|
57
|
-
var S_ContentsBodyWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n
|
|
57
|
+
var S_ContentsBodyWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: calc(70% - ", ");\n"], ["\n width: calc(70% - ", ");\n"])), function (_a) {
|
|
58
|
+
var theme = _a.theme;
|
|
59
|
+
return theme.spacing.spacingI;
|
|
60
|
+
});
|
|
58
61
|
var S_SectionDescriptionBox = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-top: ", ";\n"], ["\n margin-top: ", ";\n"])), function (_a) {
|
|
59
62
|
var theme = _a.theme, hasTitle = _a.hasTitle;
|
|
60
63
|
return hasTitle && theme.spacing.spacingF;
|
package/dist/src/sub/DynamicLayout/desktop/sections/ContentsSection/templates/TemplateB/TemplateB.js
CHANGED
|
@@ -43,18 +43,21 @@ function TemplateB() {
|
|
|
43
43
|
buttonAlphaLinkSrc && (react_1.default.createElement(S_ButtonBox, { hasTitle: !!title, hasDescription: !!description },
|
|
44
44
|
react_1.default.createElement(Section_1.Section.Button, { buttonType: buttonAlphaDesignType, text: buttonAlphaLabel, linkType: buttonAlphaLinkType, src: buttonAlphaLinkSrc, textColor: buttonAlphaLabelColorInHex, backgroundColor: buttonAlphaBackgroundColorInHex, borderColor: buttonAlphaLabelColorInHex })))),
|
|
45
45
|
sectionContentMediaSrc && (react_1.default.createElement(react_1.default.Fragment, null, sectionContentMediaType === 'IMAGE' && (react_1.default.createElement(S_ImageBox, null,
|
|
46
|
-
react_1.default.createElement(Section_1.Section.Image, { src: sectionContentMediaSrc, width: "responsive", height: "responsive", scaleType: "cover" }))))))));
|
|
46
|
+
react_1.default.createElement(Section_1.Section.Image, { src: sectionContentMediaSrc, width: "responsive", height: "responsive", scaleType: "cover", shapeType: "rectangle" }))))))));
|
|
47
47
|
}
|
|
48
|
-
var S_ContentsAreaBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n justify-content: center;\n margin:
|
|
48
|
+
var S_ContentsAreaBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n justify-content: center;\n margin: ", " 0;\n"], ["\n width: 100%;\n display: flex;\n justify-content: center;\n margin: ", " 0;\n"])), function (_a) {
|
|
49
49
|
var hasNothing = _a.hasNothing;
|
|
50
|
-
return hasNothing
|
|
50
|
+
return (hasNothing ? 0 : '160px');
|
|
51
51
|
});
|
|
52
52
|
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n\n display: flex;\n"], ["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n\n display: flex;\n"])));
|
|
53
53
|
var S_ImageBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 30%;\n min-width: 30%;\n height: 100%;\n min-height: 360px;\n margin-left: ", ";\n"], ["\n width: 30%;\n min-width: 30%;\n height: 100%;\n min-height: 360px;\n margin-left: ", ";\n"])), function (_a) {
|
|
54
54
|
var theme = _a.theme;
|
|
55
55
|
return theme.spacing.spacingI;
|
|
56
56
|
});
|
|
57
|
-
var S_ContentsBodyWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n
|
|
57
|
+
var S_ContentsBodyWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: calc(70% - ", ");\n"], ["\n width: calc(70% - ", ");\n"])), function (_a) {
|
|
58
|
+
var theme = _a.theme;
|
|
59
|
+
return theme.spacing.spacingI;
|
|
60
|
+
});
|
|
58
61
|
var S_SectionDescriptionBox = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-top: ", ";\n"], ["\n margin-top: ", ";\n"])), function (_a) {
|
|
59
62
|
var theme = _a.theme, hasTitle = _a.hasTitle;
|
|
60
63
|
return hasTitle && theme.spacing.spacingF;
|
package/dist/src/sub/DynamicLayout/desktop/sections/FooterSection/templates/TemplateA/TemplateA.js
CHANGED
|
@@ -57,10 +57,7 @@ function TemplateA() {
|
|
|
57
57
|
react_1.default.createElement(Item_1.Item.Image, { ratio: "auto", height: 48, scaleType: "fill", src: filteredItems[0].properties.logoImageSrc }))),
|
|
58
58
|
filteredItems[0].properties.body && (react_1.default.createElement(Item_1.Item.HTMLReader, { data: filteredItems[0].properties.body, styleTheme: "caption1Regular", color: itemDescriptionColorInHex }))))));
|
|
59
59
|
}
|
|
60
|
-
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n margin:
|
|
61
|
-
var theme = _a.theme;
|
|
62
|
-
return theme.spacing.spacingH;
|
|
63
|
-
}, function (_a) {
|
|
60
|
+
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n margin: 160px auto;\n ", "\n"], ["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n margin: 160px auto;\n ", "\n"])), function (_a) {
|
|
64
61
|
var hasNothing = _a.hasNothing;
|
|
65
62
|
return hasNothing && 'margin: 0';
|
|
66
63
|
});
|
package/dist/src/sub/DynamicLayout/desktop/sections/FooterSection/templates/TemplateB/TemplateB.js
CHANGED
|
@@ -57,10 +57,7 @@ function TemplateB() {
|
|
|
57
57
|
react_1.default.createElement(Item_1.Item.Image, { ratio: "auto", height: 48, scaleType: "fill", src: filteredItems[0].properties.logoImageSrc }))),
|
|
58
58
|
filteredItems[0].properties.body && (react_1.default.createElement(Item_1.Item.HTMLReader, { data: filteredItems[0].properties.body, styleTheme: "caption1Regular", color: itemDescriptionColorInHex, textAlign: "center" }))))));
|
|
59
59
|
}
|
|
60
|
-
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n margin:
|
|
61
|
-
var theme = _a.theme;
|
|
62
|
-
return theme.spacing.spacingH;
|
|
63
|
-
}, function (_a) {
|
|
60
|
+
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n margin: 160px auto;\n ", "\n"], ["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n margin: 160px auto;\n ", "\n"])), function (_a) {
|
|
64
61
|
var hasNothing = _a.hasNothing;
|
|
65
62
|
return hasNothing && 'margin: 0';
|
|
66
63
|
});
|
package/dist/src/sub/DynamicLayout/desktop/sections/InfoBoxSection/templates/TemplateA/TemplateA.js
CHANGED
|
@@ -74,7 +74,7 @@ function TemplateA() {
|
|
|
74
74
|
buttonAlphaLinkSrc && (react_1.default.createElement(S_ButtonBox, null,
|
|
75
75
|
react_1.default.createElement(Section_1.Section.Button, { buttonType: buttonAlphaDesignType, text: buttonAlphaLabel, linkType: buttonAlphaLinkType, src: buttonAlphaLinkSrc, textColor: buttonAlphaLabelColorInHex, backgroundColor: buttonAlphaBackgroundColorInHex, borderColor: buttonAlphaLabelColorInHex })))));
|
|
76
76
|
}
|
|
77
|
-
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n\n margin:
|
|
77
|
+
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n\n margin: 160px auto;\n ", "\n"], ["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n\n margin: 160px auto;\n ", "\n"])), function (_a) {
|
|
78
78
|
var hasNothing = _a.hasNothing;
|
|
79
79
|
return hasNothing && "margin: 0";
|
|
80
80
|
});
|
package/dist/src/sub/DynamicLayout/desktop/sections/IntroSection/templates/TemplateA/TemplateA.js
CHANGED
|
@@ -38,7 +38,7 @@ function TemplateA() {
|
|
|
38
38
|
return (react_1.default.createElement(S_FullScreenWrapper, null,
|
|
39
39
|
react_1.default.createElement(S_ContentsArea, null,
|
|
40
40
|
react_1.default.createElement("div", null,
|
|
41
|
-
title && (react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "60px", customFontWeight: "bold" })),
|
|
41
|
+
title && (react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "60px", customFontWeight: "bold", lineHeight: 1.2 })),
|
|
42
42
|
description && (react_1.default.createElement(S_SectionDescriptionBox, { hasTitle: !!title },
|
|
43
43
|
react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, textAlign: "center", styleTheme: "headingBold" }))),
|
|
44
44
|
(buttonAlphaLinkSrc || buttonBravoLinkSrc || buttonCharlieLinkSrc) && (react_1.default.createElement(S_SectionButtonBox, { hasTitle: !!title, hasDescription: !!description },
|
|
@@ -46,7 +46,7 @@ function TemplateA() {
|
|
|
46
46
|
buttonBravoLinkSrc && (react_1.default.createElement(components_1.Section.Button, { text: buttonBravoLabel, src: buttonBravoLinkSrc, linkType: buttonBravoLinkType, buttonType: buttonBravoDesignType, backgroundColor: buttonBravoBackgroundColorInHex, textColor: buttonBravoLabelColorInHex, borderColor: buttonBravoLabelColorInHex })),
|
|
47
47
|
buttonCharlieLinkSrc && (react_1.default.createElement(components_1.Section.Button, { text: buttonCharlieLabel, src: buttonCharlieLinkSrc, linkType: buttonCharlieLinkType, buttonType: buttonCharlieDesignType, backgroundColor: buttonCharlieBackgroundColorInHex, textColor: buttonCharlieLabelColorInHex, borderColor: buttonCharlieLabelColorInHex }))))))));
|
|
48
48
|
}
|
|
49
|
-
var S_FullScreenWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n width: 100%;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
49
|
+
var S_FullScreenWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: calc(100vh - 64px);\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n width: 100%;\n height: calc(100vh - 64px);\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
50
50
|
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n margin: 0 auto;\n"], ["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n margin: 0 auto;\n"])));
|
|
51
51
|
var S_SectionDescriptionBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin-top: ", ";\n"], ["\n margin-top: ", ";\n"])), function (_a) {
|
|
52
52
|
var theme = _a.theme, hasTitle = _a.hasTitle;
|
package/dist/src/sub/DynamicLayout/desktop/sections/IntroSection/templates/TemplateB/TemplateB.js
CHANGED
|
@@ -38,7 +38,7 @@ function TemplateB() {
|
|
|
38
38
|
return (react_1.default.createElement(S_FullScreenWrapper, null,
|
|
39
39
|
react_1.default.createElement(S_ContentsArea, null,
|
|
40
40
|
react_1.default.createElement(S_ContentsBox, null,
|
|
41
|
-
title && (react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, customFontSize: "60px", customFontWeight: "bold" })),
|
|
41
|
+
title && (react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, customFontSize: "60px", customFontWeight: "bold", lineHeight: 1.2 })),
|
|
42
42
|
description && (react_1.default.createElement(S_SectionDescriptionBox, { hasTitle: !!title },
|
|
43
43
|
react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, styleTheme: "headingBold" }))),
|
|
44
44
|
(buttonAlphaLinkSrc || buttonBravoLinkSrc || buttonCharlieLinkSrc) && (react_1.default.createElement(S_SectionButtonBox, { hasTitle: !!title, hasDescription: !!description },
|
|
@@ -46,7 +46,7 @@ function TemplateB() {
|
|
|
46
46
|
buttonBravoLinkSrc && (react_1.default.createElement(components_1.Section.Button, { text: buttonBravoLabel, src: buttonBravoLinkSrc, linkType: buttonBravoLinkType, buttonType: buttonBravoDesignType, backgroundColor: buttonBravoBackgroundColorInHex, textColor: buttonBravoLabelColorInHex, borderColor: buttonBravoLabelColorInHex })),
|
|
47
47
|
buttonCharlieLinkSrc && (react_1.default.createElement(components_1.Section.Button, { text: buttonCharlieLabel, src: buttonCharlieLinkSrc, linkType: buttonCharlieLinkType, buttonType: buttonCharlieDesignType, backgroundColor: buttonCharlieBackgroundColorInHex, textColor: buttonCharlieLabelColorInHex, borderColor: buttonCharlieLabelColorInHex }))))))));
|
|
48
48
|
}
|
|
49
|
-
var S_FullScreenWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: 100vh;\n display: flex;\n justify-content: center;\n"], ["\n width: 100%;\n height: 100vh;\n display: flex;\n justify-content: center;\n"])));
|
|
49
|
+
var S_FullScreenWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: calc(100vh - 64px);\n display: flex;\n justify-content: center;\n"], ["\n width: 100%;\n height: calc(100vh - 64px);\n display: flex;\n justify-content: center;\n"])));
|
|
50
50
|
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n"], ["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n"])));
|
|
51
51
|
var S_ContentsBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n max-width: 800px;\n position: absolute;\n bottom: 13vh;\n"], ["\n max-width: 800px;\n position: absolute;\n bottom: 13vh;\n"])));
|
|
52
52
|
var S_SectionDescriptionBox = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-top: ", ";\n"], ["\n margin-top: ", ";\n"])), function (_a) {
|
package/dist/src/sub/DynamicLayout/desktop/sections/IntroSection/templates/TemplateC/TemplateC.js
CHANGED
|
@@ -38,7 +38,7 @@ function TemplateC() {
|
|
|
38
38
|
return (react_1.default.createElement(S_FullScreenWrapper, null,
|
|
39
39
|
react_1.default.createElement(S_ContentsArea, null,
|
|
40
40
|
react_1.default.createElement(S_ContentsBox, null,
|
|
41
|
-
title && (react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, customFontSize: "60px", customFontWeight: "bold" })),
|
|
41
|
+
title && (react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, customFontSize: "60px", customFontWeight: "bold", lineHeight: 1.2 })),
|
|
42
42
|
description && (react_1.default.createElement(S_SectionDescriptionBox, { hasTitle: !!title },
|
|
43
43
|
react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, styleTheme: "headingBold" }))),
|
|
44
44
|
(buttonAlphaLinkSrc || buttonBravoLinkSrc || buttonCharlieLinkSrc) && (react_1.default.createElement(S_SectionButtonBox, { hasTitle: !!title, hasDescription: !!description },
|
|
@@ -46,7 +46,7 @@ function TemplateC() {
|
|
|
46
46
|
buttonBravoLinkSrc && (react_1.default.createElement(components_1.Section.Button, { text: buttonBravoLabel, src: buttonBravoLinkSrc, linkType: buttonBravoLinkType, buttonType: buttonBravoDesignType, backgroundColor: buttonBravoBackgroundColorInHex, textColor: buttonBravoLabelColorInHex, borderColor: buttonBravoLabelColorInHex })),
|
|
47
47
|
buttonCharlieLinkSrc && (react_1.default.createElement(components_1.Section.Button, { text: buttonCharlieLabel, src: buttonCharlieLinkSrc, linkType: buttonCharlieLinkType, buttonType: buttonCharlieDesignType, backgroundColor: buttonCharlieBackgroundColorInHex, textColor: buttonCharlieLabelColorInHex, borderColor: buttonCharlieLabelColorInHex }))))))));
|
|
48
48
|
}
|
|
49
|
-
var S_FullScreenWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height:
|
|
49
|
+
var S_FullScreenWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: 80vh;\n display: flex;\n justify-content: center;\n"], ["\n width: 100%;\n height: 80vh;\n display: flex;\n justify-content: center;\n"])));
|
|
50
50
|
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n display: flex;\n align-items: center;\n"], ["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n display: flex;\n align-items: center;\n"])));
|
|
51
51
|
var S_ContentsBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n max-width: 800px;\n"], ["\n max-width: 800px;\n"])));
|
|
52
52
|
var S_SectionDescriptionBox = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-top: ", ";\n"], ["\n margin-top: ", ";\n"])), function (_a) {
|
package/dist/src/sub/DynamicLayout/desktop/sections/IntroSection/templates/TemplateD/TemplateD.js
CHANGED
|
@@ -38,7 +38,7 @@ function TemplateD() {
|
|
|
38
38
|
return (react_1.default.createElement(S_FullScreenWrapper, null,
|
|
39
39
|
react_1.default.createElement(S_ContentsArea, null,
|
|
40
40
|
react_1.default.createElement("div", null,
|
|
41
|
-
title && (react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "60px", customFontWeight: "bold" })),
|
|
41
|
+
title && (react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "60px", customFontWeight: "bold", lineHeight: 1.2 })),
|
|
42
42
|
description && (react_1.default.createElement(S_SectionDescriptionBox, { hasTitle: !!title },
|
|
43
43
|
react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, textAlign: "center", styleTheme: "headingBold" }))),
|
|
44
44
|
(buttonAlphaLinkSrc || buttonBravoLinkSrc || buttonCharlieLinkSrc) && (react_1.default.createElement(S_SectionButtonBox, { hasTitle: !!title, hasDescription: !!description },
|
|
@@ -46,8 +46,8 @@ function TemplateD() {
|
|
|
46
46
|
buttonBravoLinkSrc && (react_1.default.createElement(components_1.Section.Button, { text: buttonBravoLabel, src: buttonBravoLinkSrc, linkType: buttonBravoLinkType, buttonType: buttonBravoDesignType, backgroundColor: buttonBravoBackgroundColorInHex, textColor: buttonBravoLabelColorInHex, borderColor: buttonBravoLabelColorInHex })),
|
|
47
47
|
buttonCharlieLinkSrc && (react_1.default.createElement(components_1.Section.Button, { text: buttonCharlieLabel, src: buttonCharlieLinkSrc, linkType: buttonCharlieLinkType, buttonType: buttonCharlieDesignType, backgroundColor: buttonCharlieBackgroundColorInHex, textColor: buttonCharlieLabelColorInHex, borderColor: buttonCharlieLabelColorInHex }))))))));
|
|
48
48
|
}
|
|
49
|
-
var S_FullScreenWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height:
|
|
50
|
-
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n
|
|
49
|
+
var S_FullScreenWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: 80vh;\n display: flex;\n justify-content: center;\n align-items: center;\n"], ["\n width: 100%;\n height: 80vh;\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
|
|
50
|
+
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n margin: 0 auto;\n"], ["\n --min-width: 1000;\n --min-width-px: 1000px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n width: calc(\n (100vw - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n min-width: var(--min-width-px);\n max-width: var(--max-width-px);\n margin: 0 auto;\n"])));
|
|
51
51
|
var S_SectionDescriptionBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin-top: ", ";\n"], ["\n margin-top: ", ";\n"])), function (_a) {
|
|
52
52
|
var theme = _a.theme, hasTitle = _a.hasTitle;
|
|
53
53
|
return hasTitle && theme.spacing.spacingF;
|
|
@@ -231,7 +231,7 @@ var S_Content = styled_components_1.default.div(templateObject_6 || (templateObj
|
|
|
231
231
|
}[colorTheme];
|
|
232
232
|
}, function (_a) {
|
|
233
233
|
var color = _a.color;
|
|
234
|
-
return color && "color: " + color;
|
|
234
|
+
return color && "color: " + color + ";";
|
|
235
235
|
}, function (_a) {
|
|
236
236
|
var textAlign = _a.textAlign;
|
|
237
237
|
return textAlign;
|
|
@@ -6,7 +6,9 @@ declare function Section({ children, ...props }: ISection & {
|
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}): JSX.Element;
|
|
8
8
|
declare namespace Section {
|
|
9
|
-
var Title: ({ text, color, ...textLabelProps }: ISectionTitle & TextLabelProps
|
|
9
|
+
var Title: ({ text, color, lineHeight, ...textLabelProps }: ISectionTitle & TextLabelProps & {
|
|
10
|
+
lineHeight?: number | undefined;
|
|
11
|
+
}) => JSX.Element;
|
|
10
12
|
var Description: ({ text, color, ...textLabelProps }: ISectionDescription & TextLabelProps) => JSX.Element;
|
|
11
13
|
var Image: ({ ...imageViewProps }: ImageViewProps) => JSX.Element;
|
|
12
14
|
var Button: ({ buttonType, backgroundColor, textColor, text, linkType, src, state, borderColor }: ISectionButton) => JSX.Element;
|
|
@@ -61,7 +61,7 @@ function Section(_a) {
|
|
|
61
61
|
return (react_1.default.createElement(sectionContext.Provider, { value: props },
|
|
62
62
|
react_1.default.createElement(S_MarginCollapsingBoundary, null,
|
|
63
63
|
react_1.default.createElement(S_Section, null,
|
|
64
|
-
|
|
64
|
+
react_1.default.createElement(Background, null),
|
|
65
65
|
children))));
|
|
66
66
|
}
|
|
67
67
|
var S_MarginCollapsingBoundary = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
@@ -118,7 +118,7 @@ function Background() {
|
|
|
118
118
|
(_a = backgroundRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('touchmove', onTouchMove);
|
|
119
119
|
};
|
|
120
120
|
}, []);
|
|
121
|
-
var
|
|
121
|
+
var backgroundMedia = (0, react_1.useMemo)(function () {
|
|
122
122
|
switch (backgroundMediaType) {
|
|
123
123
|
case 'IMAGE':
|
|
124
124
|
return (react_1.default.createElement(hybrid_1.ImageView, { src: backgroundMediaSrc, width: "responsive", height: "responsive", scaleType: "cover", shapeType: "rectangle" }));
|
|
@@ -126,13 +126,14 @@ function Background() {
|
|
|
126
126
|
// NOTE VIDEO타입 배경은 최초 scope에서 제외
|
|
127
127
|
// return <></>;
|
|
128
128
|
case 'YOUTUBE':
|
|
129
|
-
return (react_1.default.createElement(S_YoutubeContainer, __assign({}, youtubeSize),
|
|
129
|
+
return (react_1.default.createElement(S_YoutubeContainer, __assign({}, youtubeSize),
|
|
130
|
+
react_1.default.createElement(YouTubeIframe_1.default, { id: id, src: backgroundMediaSrc })));
|
|
130
131
|
default:
|
|
131
132
|
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
132
133
|
}
|
|
133
134
|
}, [youtubeSize]);
|
|
134
135
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
135
|
-
react_1.default.createElement(S_BackgroundWrapper, { ref: backgroundRef, color: backgroundColorInHex },
|
|
136
|
+
react_1.default.createElement(S_BackgroundWrapper, { ref: backgroundRef, color: backgroundColorInHex }, backgroundMediaSrc && backgroundMedia),
|
|
136
137
|
react_1.default.createElement(S_BackgroundOverlay, { color: backgroundOverlayColorInHex })));
|
|
137
138
|
}
|
|
138
139
|
var S_BackgroundWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n z-index: -2;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n overflow: hidden;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n"], ["\n z-index: -2;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n overflow: hidden;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n"])), function (_a) {
|
|
@@ -152,13 +153,16 @@ var S_YoutubeContainer = styled_components_1.default.div(templateObject_5 || (te
|
|
|
152
153
|
});
|
|
153
154
|
// TITLE
|
|
154
155
|
function Title(_a) {
|
|
155
|
-
var text = _a.text, color = _a.color, textLabelProps = __rest(_a, ["text", "color"]);
|
|
156
|
-
return (react_1.default.createElement(S_TitleStyleWrapper, { color: color },
|
|
156
|
+
var text = _a.text, color = _a.color, _b = _a.lineHeight, lineHeight = _b === void 0 ? 1.4 : _b, textLabelProps = __rest(_a, ["text", "color", "lineHeight"]);
|
|
157
|
+
return (react_1.default.createElement(S_TitleStyleWrapper, { color: color, lineHeight: lineHeight },
|
|
157
158
|
react_1.default.createElement(mobile_1.M_TextLabel, __assign({ text: text, colorTheme: "sysTextPrimary" }, textLabelProps))));
|
|
158
159
|
}
|
|
159
|
-
var S_TitleStyleWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n & > div {\n color: ", ";\n }\n"], ["\n & > div {\n color: ", ";\n }\n"])), function (_a) {
|
|
160
|
+
var S_TitleStyleWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n & > div {\n color: ", ";\n line-height: ", ";\n }\n"], ["\n & > div {\n color: ", ";\n line-height: ", ";\n }\n"])), function (_a) {
|
|
160
161
|
var color = _a.color;
|
|
161
162
|
return color;
|
|
163
|
+
}, function (_a) {
|
|
164
|
+
var lineHeight = _a.lineHeight;
|
|
165
|
+
return lineHeight;
|
|
162
166
|
});
|
|
163
167
|
// DESCRIPTION
|
|
164
168
|
function Description(_a) {
|
|
@@ -40,7 +40,9 @@ function Carousel(_a) {
|
|
|
40
40
|
};
|
|
41
41
|
return (react_1.default.createElement(S_Carousel, null,
|
|
42
42
|
react_1.default.createElement(S_SwiperStyleWrapper, { paginationSpacing: paginationSpacing },
|
|
43
|
-
react_1.default.createElement(react_2.Swiper, { modules: [swiper_1.Pagination, swiper_1.Autoplay], spaceBetween: spaceBetween, slidesPerView: slidesPerView, slidesPerGroup: slidesPerView, allowTouchMove: true, pagination: paginationOptions, loop: mode === 'loop' || mode === 'autoplay', autoplay: mode === 'autoplay'
|
|
43
|
+
react_1.default.createElement(react_2.Swiper, { modules: [swiper_1.Pagination, swiper_1.Autoplay], spaceBetween: spaceBetween, slidesPerView: slidesPerView, slidesPerGroup: slidesPerView, allowTouchMove: true, pagination: paginationOptions, loop: mode === 'loop' || mode === 'autoplay', autoplay: mode === 'autoplay'
|
|
44
|
+
? { delay: autoplayDelay * 1000, disableOnInteraction: false }
|
|
45
|
+
: undefined, onSwiper: function (swiper) {
|
|
44
46
|
paginationRef.current = swiper;
|
|
45
47
|
} },
|
|
46
48
|
react_1.default.Children.map(children, function (child) {
|
|
@@ -59,13 +61,13 @@ var S_SwiperStyleWrapper = styled_components_1.default.div(templateObject_2 || (
|
|
|
59
61
|
return paginationSpacing[1];
|
|
60
62
|
}, function (_a) {
|
|
61
63
|
var theme = _a.theme;
|
|
62
|
-
return theme.
|
|
64
|
+
return theme.ui_cpnt_pagination_dot_02;
|
|
63
65
|
}, function (_a) {
|
|
64
66
|
var theme = _a.theme;
|
|
65
67
|
return theme.ui_cpnt_pagination_dot_border;
|
|
66
68
|
}, function (_a) {
|
|
67
69
|
var theme = _a.theme;
|
|
68
|
-
return theme.
|
|
70
|
+
return theme.ui_cpnt_pagination_dot_01;
|
|
69
71
|
});
|
|
70
72
|
exports.default = Carousel;
|
|
71
73
|
var templateObject_1, templateObject_2;
|
|
@@ -46,6 +46,7 @@ function TemplateA() {
|
|
|
46
46
|
var _b = sectionContext.styles, titleColorInHex = _b.titleColorInHex, descriptionColorInHex = _b.descriptionColorInHex, itemTitleColorInHex = _b.itemTitleColorInHex, itemDescriptionColorInHex = _b.itemDescriptionColorInHex;
|
|
47
47
|
var _c = sectionContext.properties, buttonAlphaLabel = _c.buttonAlphaLabel, buttonAlphaLinkSrc = _c.buttonAlphaLinkSrc, buttonAlphaLinkType = _c.buttonAlphaLinkType;
|
|
48
48
|
var _d = sectionContext.styles, buttonAlphaDesignType = _d.buttonAlphaDesignType, buttonAlphaBackgroundColorInHex = _d.buttonAlphaBackgroundColorInHex, buttonAlphaLabelColorInHex = _d.buttonAlphaLabelColorInHex, itemButtonDesignType = _d.itemButtonDesignType, itemButtonBackgroundColorInHex = _d.itemButtonBackgroundColorInHex, itemButtonLabelColorInHex = _d.itemButtonLabelColorInHex;
|
|
49
|
+
var _e = sectionContext.properties, carouselAutoplayMode = _e.carouselAutoplayMode, carouselAutoplayTime = _e.carouselAutoplayTime, carouselInfiniteLoopMode = _e.carouselInfiniteLoopMode;
|
|
49
50
|
var dynamicLayoutSectionItems = sectionContext.dynamicLayoutSectionItems;
|
|
50
51
|
var filteredItems = dynamicLayoutSectionItems
|
|
51
52
|
? dynamicLayoutSectionItems.filter(function (item) {
|
|
@@ -58,13 +59,17 @@ function TemplateA() {
|
|
|
58
59
|
: [];
|
|
59
60
|
return (react_1.default.createElement(S_ContentsArea, { hasNothing: !title && !description && !buttonAlphaLinkSrc && filteredItems.length === 0 },
|
|
60
61
|
title && (react_1.default.createElement(S_SectionTitleBox, null,
|
|
61
|
-
react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center",
|
|
62
|
+
react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "32px", customFontWeight: "bold" }))),
|
|
62
63
|
description && (react_1.default.createElement(S_SectionDescriptionBox, null,
|
|
63
|
-
react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, textAlign: "center",
|
|
64
|
+
react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, textAlign: "center", customFontSize: "20px", customFontWeight: "bold" }))),
|
|
64
65
|
buttonAlphaLinkSrc && (react_1.default.createElement(S_SectionButtonBox, null,
|
|
65
66
|
react_1.default.createElement(components_1.Section.Button, { text: buttonAlphaLabel, src: buttonAlphaLinkSrc, linkType: buttonAlphaLinkType, buttonType: buttonAlphaDesignType, backgroundColor: buttonAlphaBackgroundColorInHex, textColor: buttonAlphaLabelColorInHex, borderColor: buttonAlphaLabelColorInHex }))),
|
|
66
67
|
filteredItems.length > 0 && (react_1.default.createElement(S_CarouselBox, null,
|
|
67
|
-
react_1.default.createElement(components_1.Carousel, { spaceBetween: 16, slidesPerView: 2,
|
|
68
|
+
react_1.default.createElement(components_1.Carousel, { spaceBetween: 16, slidesPerView: 2, mode: carouselAutoplayMode === 'AUTO'
|
|
69
|
+
? 'autoplay'
|
|
70
|
+
: carouselInfiniteLoopMode === 'USE'
|
|
71
|
+
? 'loop'
|
|
72
|
+
: 'normal', autoplayDelay: carouselAutoplayTime, paginationSpacing: [48, 24] }, filteredItems.map(function (item) {
|
|
68
73
|
var id = item.id;
|
|
69
74
|
var _a = item.properties, itemTitle = _a.title, itemDescription = _a.description, itemImageSrc = _a.imageSrc, itemLinkMethod = _a.linkMethod, itemLinkSrc = _a.linkSrc, itemLinkType = _a.linkType, itemButtonLabel = _a.buttonLabel;
|
|
70
75
|
return (react_1.default.createElement(components_1.Item, __assign({ key: id }, item),
|
|
@@ -78,11 +83,11 @@ function TemplateA() {
|
|
|
78
83
|
}))))));
|
|
79
84
|
}
|
|
80
85
|
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-top: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n margin-right: ", ";\n"], ["\n margin-top: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n margin-right: ", ";\n"])), function (_a) {
|
|
81
|
-
var
|
|
82
|
-
return (hasNothing ? 0 :
|
|
86
|
+
var hasNothing = _a.hasNothing;
|
|
87
|
+
return (hasNothing ? 0 : '80px');
|
|
83
88
|
}, function (_a) {
|
|
84
|
-
var
|
|
85
|
-
return (hasNothing ? 0 :
|
|
89
|
+
var hasNothing = _a.hasNothing;
|
|
90
|
+
return (hasNothing ? 0 : '80px');
|
|
86
91
|
}, function (_a) {
|
|
87
92
|
var theme = _a.theme;
|
|
88
93
|
return theme.spacing.spacingE;
|
|
@@ -46,6 +46,7 @@ function TemplateB() {
|
|
|
46
46
|
var _b = sectionContext.styles, titleColorInHex = _b.titleColorInHex, descriptionColorInHex = _b.descriptionColorInHex, itemTitleColorInHex = _b.itemTitleColorInHex, itemDescriptionColorInHex = _b.itemDescriptionColorInHex;
|
|
47
47
|
var _c = sectionContext.properties, buttonAlphaLabel = _c.buttonAlphaLabel, buttonAlphaLinkSrc = _c.buttonAlphaLinkSrc, buttonAlphaLinkType = _c.buttonAlphaLinkType;
|
|
48
48
|
var _d = sectionContext.styles, buttonAlphaDesignType = _d.buttonAlphaDesignType, buttonAlphaBackgroundColorInHex = _d.buttonAlphaBackgroundColorInHex, buttonAlphaLabelColorInHex = _d.buttonAlphaLabelColorInHex, itemButtonDesignType = _d.itemButtonDesignType, itemButtonBackgroundColorInHex = _d.itemButtonBackgroundColorInHex, itemButtonLabelColorInHex = _d.itemButtonLabelColorInHex;
|
|
49
|
+
var _e = sectionContext.properties, carouselAutoplayMode = _e.carouselAutoplayMode, carouselAutoplayTime = _e.carouselAutoplayTime, carouselInfiniteLoopMode = _e.carouselInfiniteLoopMode;
|
|
49
50
|
var dynamicLayoutSectionItems = sectionContext.dynamicLayoutSectionItems;
|
|
50
51
|
var filteredItems = dynamicLayoutSectionItems
|
|
51
52
|
? dynamicLayoutSectionItems.filter(function (item) {
|
|
@@ -58,13 +59,17 @@ function TemplateB() {
|
|
|
58
59
|
: [];
|
|
59
60
|
return (react_1.default.createElement(S_ContentsArea, { hasNothing: !title && !description && !buttonAlphaLinkSrc && filteredItems.length === 0 },
|
|
60
61
|
title && (react_1.default.createElement(S_SectionTitleBox, null,
|
|
61
|
-
react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center",
|
|
62
|
+
react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "32px", customFontWeight: "bold" }))),
|
|
62
63
|
description && (react_1.default.createElement(S_SectionDescriptionBox, null,
|
|
63
|
-
react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, textAlign: "center",
|
|
64
|
+
react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, textAlign: "center", customFontSize: "20px", customFontWeight: "bold" }))),
|
|
64
65
|
buttonAlphaLinkSrc && (react_1.default.createElement(S_SectionButtonBox, null,
|
|
65
66
|
react_1.default.createElement(components_1.Section.Button, { text: buttonAlphaLabel, src: buttonAlphaLinkSrc, linkType: buttonAlphaLinkType, buttonType: buttonAlphaDesignType, backgroundColor: buttonAlphaBackgroundColorInHex, textColor: buttonAlphaLabelColorInHex, borderColor: buttonAlphaLabelColorInHex }))),
|
|
66
67
|
filteredItems && (react_1.default.createElement(S_CarouselBox, null,
|
|
67
|
-
react_1.default.createElement(components_1.Carousel, { spaceBetween: 24, slidesPerView: 1,
|
|
68
|
+
react_1.default.createElement(components_1.Carousel, { spaceBetween: 24, slidesPerView: 1, mode: carouselAutoplayMode === 'AUTO'
|
|
69
|
+
? 'autoplay'
|
|
70
|
+
: carouselInfiniteLoopMode === 'USE'
|
|
71
|
+
? 'loop'
|
|
72
|
+
: 'normal', autoplayDelay: carouselAutoplayTime, paginationSpacing: [48, 24] }, filteredItems.map(function (item) {
|
|
68
73
|
var id = item.id;
|
|
69
74
|
var _a = item.properties, itemTitle = _a.title, itemDescription = _a.description, itemImageSrc = _a.imageSrc, itemLinkMethod = _a.linkMethod, itemLinkSrc = _a.linkSrc, itemLinkType = _a.linkType, itemButtonLabel = _a.buttonLabel;
|
|
70
75
|
return (react_1.default.createElement(components_1.Item, __assign({ key: id }, item),
|
|
@@ -78,11 +83,11 @@ function TemplateB() {
|
|
|
78
83
|
}))))));
|
|
79
84
|
}
|
|
80
85
|
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-top: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n margin-right: ", ";\n"], ["\n margin-top: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n margin-right: ", ";\n"])), function (_a) {
|
|
81
|
-
var
|
|
82
|
-
return (hasNothing ? 0 :
|
|
86
|
+
var hasNothing = _a.hasNothing;
|
|
87
|
+
return (hasNothing ? 0 : '80px');
|
|
83
88
|
}, function (_a) {
|
|
84
|
-
var
|
|
85
|
-
return (hasNothing ? 0 :
|
|
89
|
+
var hasNothing = _a.hasNothing;
|
|
90
|
+
return (hasNothing ? 0 : '80px');
|
|
86
91
|
}, function (_a) {
|
|
87
92
|
var theme = _a.theme;
|
|
88
93
|
return theme.spacing.spacingE;
|
package/dist/src/sub/DynamicLayout/mobile/sections/ContentsSection/templates/TemplateA/TemplateA.js
CHANGED
|
@@ -36,34 +36,36 @@ function TemplateA() {
|
|
|
36
36
|
var hasNothing = !sectionContentMediaSrc && !title && !description && !buttonAlphaLinkSrc;
|
|
37
37
|
return (react_1.default.createElement(S_ContentsArea, { hasNothing: hasNothing },
|
|
38
38
|
sectionContentMediaSrc && (react_1.default.createElement(react_1.default.Fragment, null, sectionContentMediaType === 'IMAGE' && (react_1.default.createElement(S_ImageBox, null,
|
|
39
|
-
react_1.default.createElement(Section_1.Section.Image, { src: sectionContentMediaSrc, width: "responsive", ratio: "1_1", scaleType: "cover" }))))),
|
|
40
|
-
title && react_1.default.createElement(
|
|
39
|
+
react_1.default.createElement(Section_1.Section.Image, { src: sectionContentMediaSrc, width: "responsive", ratio: "1_1", scaleType: "cover", shapeType: "rectangle" }))))),
|
|
40
|
+
title && (react_1.default.createElement(S_SectionTitleBox, null,
|
|
41
|
+
react_1.default.createElement(Section_1.Section.Title, { text: title, color: titleColorInHex, customFontSize: "32px", customFontWeight: "bold" }))),
|
|
41
42
|
description && (react_1.default.createElement(S_SectionDescriptionBox, null,
|
|
42
|
-
react_1.default.createElement(Section_1.Section.Description, { text: description, color: descriptionColorInHex,
|
|
43
|
+
react_1.default.createElement(Section_1.Section.Description, { text: description, color: descriptionColorInHex, customFontSize: "20px", customFontWeight: "bold" }))),
|
|
43
44
|
buttonAlphaLinkSrc && (react_1.default.createElement(S_ButtonBox, null,
|
|
44
45
|
react_1.default.createElement(Section_1.Section.Button, { buttonType: buttonAlphaDesignType, text: buttonAlphaLabel, linkType: buttonAlphaLinkType, src: buttonAlphaLinkSrc, textColor: buttonAlphaLabelColorInHex, backgroundColor: buttonAlphaBackgroundColorInHex, borderColor: buttonAlphaLabelColorInHex })))));
|
|
45
46
|
}
|
|
46
|
-
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin: ", "
|
|
47
|
-
var
|
|
48
|
-
return
|
|
47
|
+
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin: ", " 0;\n padding: 0 ", ";\n"], ["\n margin: ", " 0;\n padding: 0 ", ";\n"])), function (_a) {
|
|
48
|
+
var hasNothing = _a.hasNothing;
|
|
49
|
+
return (hasNothing ? 0 : '80px');
|
|
49
50
|
}, function (_a) {
|
|
50
51
|
var theme = _a.theme;
|
|
51
52
|
return theme.spacing.spacingE;
|
|
52
|
-
}, function (_a) {
|
|
53
|
-
var hasNothing = _a.hasNothing;
|
|
54
|
-
return hasNothing && "margin: 0";
|
|
55
53
|
});
|
|
56
54
|
var S_ImageBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin: ", " 0;\n"], ["\n margin: ", " 0;\n"])), function (_a) {
|
|
57
55
|
var theme = _a.theme;
|
|
58
|
-
return theme.spacing.
|
|
56
|
+
return theme.spacing.spacingG;
|
|
57
|
+
});
|
|
58
|
+
var S_SectionTitleBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin: ", " 0;\n"], ["\n margin: ", " 0;\n"])), function (_a) {
|
|
59
|
+
var theme = _a.theme;
|
|
60
|
+
return theme.spacing.spacingD;
|
|
59
61
|
});
|
|
60
|
-
var S_SectionDescriptionBox = styled_components_1.default.div(
|
|
62
|
+
var S_SectionDescriptionBox = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin: ", " 0;\n"], ["\n margin: ", " 0;\n"])), function (_a) {
|
|
61
63
|
var theme = _a.theme;
|
|
62
64
|
return theme.spacing.spacingD;
|
|
63
65
|
});
|
|
64
|
-
var S_ButtonBox = styled_components_1.default.div(
|
|
66
|
+
var S_ButtonBox = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin: ", " 0;\n"], ["\n margin: ", " 0;\n"])), function (_a) {
|
|
65
67
|
var theme = _a.theme;
|
|
66
68
|
return theme.spacing.spacingF;
|
|
67
69
|
});
|
|
68
70
|
exports.default = TemplateA;
|
|
69
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
71
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
package/dist/src/sub/DynamicLayout/mobile/sections/ContentsSection/templates/TemplateB/TemplateB.js
CHANGED
|
@@ -35,27 +35,24 @@ function TemplateB() {
|
|
|
35
35
|
var _b = sectionContext.styles, titleColorInHex = _b.titleColorInHex, descriptionColorInHex = _b.descriptionColorInHex, buttonAlphaDesignType = _b.buttonAlphaDesignType, buttonAlphaLabelColorInHex = _b.buttonAlphaLabelColorInHex, buttonAlphaBackgroundColorInHex = _b.buttonAlphaBackgroundColorInHex;
|
|
36
36
|
var hasNothing = !sectionContentMediaSrc && !title && !description && !buttonAlphaLinkSrc;
|
|
37
37
|
return (react_1.default.createElement(S_ContentsArea, { hasNothing: hasNothing },
|
|
38
|
-
title && react_1.default.createElement(Section_1.Section.Title, { text: title, color: titleColorInHex,
|
|
38
|
+
title && (react_1.default.createElement(Section_1.Section.Title, { text: title, color: titleColorInHex, customFontSize: "32px", customFontWeight: "bold" })),
|
|
39
39
|
description && (react_1.default.createElement(S_SectionDescriptionBox, null,
|
|
40
|
-
react_1.default.createElement(Section_1.Section.Description, { text: description, color: descriptionColorInHex,
|
|
40
|
+
react_1.default.createElement(Section_1.Section.Description, { text: description, color: descriptionColorInHex, customFontSize: "20px", customFontWeight: "bold" }))),
|
|
41
41
|
sectionContentMediaSrc && (react_1.default.createElement(react_1.default.Fragment, null, sectionContentMediaType === 'IMAGE' && (react_1.default.createElement(S_ImageBox, null,
|
|
42
|
-
react_1.default.createElement(Section_1.Section.Image, { src: sectionContentMediaSrc, width: "responsive", ratio: "1_1", scaleType: "cover" }))))),
|
|
42
|
+
react_1.default.createElement(Section_1.Section.Image, { src: sectionContentMediaSrc, width: "responsive", ratio: "1_1", scaleType: "cover", shapeType: "rectangle" }))))),
|
|
43
43
|
buttonAlphaLinkSrc && (react_1.default.createElement(S_ButtonBox, null,
|
|
44
44
|
react_1.default.createElement(Section_1.Section.Button, { buttonType: buttonAlphaDesignType, text: buttonAlphaLabel, linkType: buttonAlphaLinkType, src: buttonAlphaLinkSrc, textColor: buttonAlphaLabelColorInHex, backgroundColor: buttonAlphaBackgroundColorInHex, borderColor: buttonAlphaLabelColorInHex })))));
|
|
45
45
|
}
|
|
46
|
-
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin: ", "
|
|
47
|
-
var
|
|
48
|
-
return
|
|
46
|
+
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin: ", " 0;\n padding: 0 ", ";\n"], ["\n margin: ", " 0;\n padding: 0 ", ";\n"])), function (_a) {
|
|
47
|
+
var hasNothing = _a.hasNothing;
|
|
48
|
+
return (hasNothing ? 0 : '80px');
|
|
49
49
|
}, function (_a) {
|
|
50
50
|
var theme = _a.theme;
|
|
51
51
|
return theme.spacing.spacingE;
|
|
52
|
-
}, function (_a) {
|
|
53
|
-
var hasNothing = _a.hasNothing;
|
|
54
|
-
return hasNothing && "margin: 0";
|
|
55
52
|
});
|
|
56
53
|
var S_ImageBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin: ", " 0;\n"], ["\n margin: ", " 0;\n"])), function (_a) {
|
|
57
54
|
var theme = _a.theme;
|
|
58
|
-
return theme.spacing.
|
|
55
|
+
return theme.spacing.spacingG;
|
|
59
56
|
});
|
|
60
57
|
var S_SectionDescriptionBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin: ", " 0;\n"], ["\n margin: ", " 0;\n"])), function (_a) {
|
|
61
58
|
var theme = _a.theme;
|
package/dist/src/sub/DynamicLayout/mobile/sections/FooterSection/templates/TemplateA/TemplateA.js
CHANGED
|
@@ -57,15 +57,12 @@ function TemplateA() {
|
|
|
57
57
|
react_1.default.createElement(Item_1.Item.Image, { ratio: "auto", height: 48, scaleType: "fill", src: filteredItems[0].properties.logoImageSrc }))),
|
|
58
58
|
filteredItems[0].properties.body && (react_1.default.createElement(Item_1.Item.HTMLReader, { data: filteredItems[0].properties.body, styleTheme: "caption1Regular", color: itemDescriptionColorInHex }))))));
|
|
59
59
|
}
|
|
60
|
-
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin: ", "
|
|
61
|
-
var
|
|
62
|
-
return
|
|
60
|
+
var S_ContentsArea = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin: ", " 0;\n padding: 0 ", ";\n"], ["\n margin: ", " 0;\n padding: 0 ", ";\n"])), function (_a) {
|
|
61
|
+
var hasNothing = _a.hasNothing;
|
|
62
|
+
return (hasNothing ? 0 : '80px');
|
|
63
63
|
}, function (_a) {
|
|
64
64
|
var theme = _a.theme;
|
|
65
65
|
return theme.spacing.spacingE;
|
|
66
|
-
}, function (_a) {
|
|
67
|
-
var hasNothing = _a.hasNothing;
|
|
68
|
-
return hasNothing && "margin: 0";
|
|
69
66
|
});
|
|
70
67
|
var S_ImageBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin: ", " 0;\n"], ["\n margin: ", " 0;\n"])), function (_a) {
|
|
71
68
|
var theme = _a.theme;
|