pds-dev-kit-web-test 0.0.13 → 0.0.14
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/sub/DynamicLayout/desktop/components/Item/Item.js +1 -1
- package/dist/src/sub/DynamicLayout/desktop/components/Section/Section.js +5 -4
- package/dist/src/sub/DynamicLayout/desktop/components/common/Carousel.js +19 -5
- package/dist/src/sub/DynamicLayout/desktop/sections/ContentsCarouselSection/templates/TemplateA/TemplateA.js +6 -1
- package/dist/src/sub/DynamicLayout/desktop/sections/ContentsCarouselSection/templates/TemplateB/TemplateB.js +6 -1
- package/dist/src/sub/DynamicLayout/desktop/sections/IntroSection/templates/TemplateC/TemplateC.js +1 -1
- package/dist/src/sub/DynamicLayout/desktop/sections/IntroSection/templates/TemplateD/TemplateD.js +2 -2
- package/dist/src/sub/DynamicLayout/mobile/components/Item/Item.js +1 -1
- package/dist/src/sub/DynamicLayout/mobile/components/Section/Section.js +5 -4
- package/dist/src/sub/DynamicLayout/mobile/components/common/Carousel.js +3 -1
- package/dist/src/sub/DynamicLayout/mobile/sections/ContentsCarouselSection/templates/TemplateA/TemplateA.js +6 -1
- package/dist/src/sub/DynamicLayout/mobile/sections/ContentsCarouselSection/templates/TemplateB/TemplateB.js +6 -1
- package/package.json +1 -1
- package/release-note.md +7 -2
package/dist/index.d.ts
CHANGED
|
@@ -19,3 +19,7 @@ export { LayoutMP, MPNavigationContainer, MPTabContainer, MPContainersBox };
|
|
|
19
19
|
export { LayoutMS, MSNavigationContainer, MSContainersBox };
|
|
20
20
|
export { M_BasicChatListItem, M_BasicFormGroup, M_BasicList, M_BasicListItem, M_BlogTextField, M_BodyTextGroup, M_Card, M_CardList, M_ChatBubbleListItem, M_ChatList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_Dropdown, M_FloatingActionButton, M_HorizontalFormGroup, M_IconButton, M_ImageSlide, M_LottieReactionButton, M_MainButton, M_MobileAlertDialog, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_Select, M_StatusBlock, M_TextButton, M_TextField, M_TextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton };
|
|
21
21
|
export { M_AnnotationSheet, M_ContentSheet, M_MobileBasicModal, M_SectionSheet };
|
|
22
|
+
import { DynamicLayout } from './src/sub';
|
|
23
|
+
export { DynamicLayout };
|
|
24
|
+
import { TypeOfSectionManifestSchema, TypeofSectionTemplate, TypeOfSectionContentMediaType, TypeOfSectionLinkType, TypeOfCarouselAutoplayMode, TypeOfCarouselInfiniteLoopMode, TypeOfBackgroundMediaType, TypeOfSectionButtonDesignType, TypeOfItemButtonDesignType, TypeOfItemManifestSchema, TypeOfItemLinkMethod, TypeOfItemLinkType, ISection, ISectionProperties, ISectionStyles, IItem } from './src/sub/DynamicLayout/types';
|
|
25
|
+
export { TypeOfSectionManifestSchema, TypeofSectionTemplate, TypeOfSectionContentMediaType, TypeOfSectionLinkType, TypeOfCarouselAutoplayMode, TypeOfCarouselInfiniteLoopMode, TypeOfBackgroundMediaType, TypeOfSectionButtonDesignType, TypeOfItemButtonDesignType, TypeOfItemManifestSchema, TypeOfItemLinkMethod, TypeOfItemLinkType, ISection, ISectionProperties, ISectionStyles, IItem };
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.D_DesktopAlertDialog = exports.D_ContextMenuItem = exports.D_ContextMenu = exports.D_Chip = exports.D_Checkbox = exports.D_ChatList = exports.D_ChatBubbleListItem = exports.D_CardList = exports.D_Card = exports.D_BodyTextGroup = exports.D_BlogTextField = exports.D_BasicListItem = exports.D_BasicList = exports.D_BasicFormGroup = exports.D_BasicChatListItem = exports.D_AdminListItem = exports.D_AdminListHeader = exports.D_AdminList = exports.WTContainersBox = exports.WTGlobalMenuContainer = exports.LayoutWT = exports.WSContainersBox = exports.WSGlobalMenuContainer = exports.LayoutWS = exports.WHContainersBox = exports.LayoutWH = exports.WFContainersBox = exports.LayoutWF = exports.Switch = exports.Spacing = exports.LottieIcon = exports.LinearProgress = exports.ImageView = exports.Icon = exports.Divider = exports.Form = exports.theme = exports.customTheme = exports.uiColors = exports.spacing = exports.boxShadow = exports.mobileEditorLineHeight = exports.mobileEditorFontSize = exports.mobileLineHeight = exports.mobileFontSize = exports.desktopEditorLineHeight = exports.desktopEditorFontSize = exports.desktopLineHeight = exports.desktopFontSize = exports.fontWeight = void 0;
|
|
4
4
|
exports.M_BlogTextField = exports.M_BasicListItem = exports.M_BasicList = exports.M_BasicFormGroup = exports.M_BasicChatListItem = exports.MSContainersBox = exports.MSNavigationContainer = exports.LayoutMS = exports.MPContainersBox = exports.MPTabContainer = exports.MPNavigationContainer = exports.LayoutMP = exports.MMContainersBox = exports.MMNavigationContainer = exports.LayoutMM = exports.MFContainersBox = exports.LayoutMF = exports.D_SectionSheet = exports.D_DesktopHeadlessModal = exports.D_DesktopBasicModal = exports.D_ContentSheet = exports.D_AnnotationSheet = exports.D_UserDesktopSideTab = exports.D_UserDesktopTabBar = exports.D_UserDesktopNavBar = exports.D_UploadTextButton = exports.D_UploadMainButton = exports.D_UploadIconButton = exports.D_TextLabel = exports.D_TextField = exports.D_TextButton = exports.D_StatusBlock = exports.D_Select = exports.D_ReactionButton = exports.D_Radio = exports.D_PageTitleTextGroup = exports.D_MainButton = exports.D_LottieReactionButton = exports.D_ImageSlide = exports.D_IconButton = exports.D_HorizontalFormGroup = exports.D_Hero = exports.D_FloatingActionButton = exports.D_FilterBar = exports.D_EditApplyTextField = exports.D_DynamicDesktopNavBarTemplates = exports.D_DynamicDesktopNavBar = exports.D_Dropdown = exports.D_DesktopTabBar = exports.D_DesktopHeaderBar = void 0;
|
|
5
|
-
exports.M_SectionSheet = exports.M_MobileBasicModal = exports.M_ContentSheet = exports.M_AnnotationSheet = exports.M_UploadTextButton = exports.M_UploadMainButton = exports.M_UploadIconButton = exports.M_TextLabel = exports.M_TextField = exports.M_TextButton = exports.M_StatusBlock = exports.M_Select = exports.M_ReactionButton = exports.M_Radio = exports.M_MobileTabBar = exports.M_MobileHeaderBar = exports.M_MobileAlertDialog = exports.M_MainButton = exports.M_LottieReactionButton = exports.M_ImageSlide = exports.M_IconButton = exports.M_HorizontalFormGroup = exports.M_FloatingActionButton = exports.M_Dropdown = exports.M_ContextMenuItem = exports.M_ContextMenu = exports.M_Chip = exports.M_Checkbox = exports.M_ChatList = exports.M_ChatBubbleListItem = exports.M_CardList = exports.M_Card = exports.M_BodyTextGroup = void 0;
|
|
5
|
+
exports.DynamicLayout = exports.M_SectionSheet = exports.M_MobileBasicModal = exports.M_ContentSheet = exports.M_AnnotationSheet = exports.M_UploadTextButton = exports.M_UploadMainButton = exports.M_UploadIconButton = exports.M_TextLabel = exports.M_TextField = exports.M_TextButton = exports.M_StatusBlock = exports.M_Select = exports.M_ReactionButton = exports.M_Radio = exports.M_MobileTabBar = exports.M_MobileHeaderBar = exports.M_MobileAlertDialog = exports.M_MainButton = exports.M_LottieReactionButton = exports.M_ImageSlide = exports.M_IconButton = exports.M_HorizontalFormGroup = exports.M_FloatingActionButton = exports.M_Dropdown = exports.M_ContextMenuItem = exports.M_ContextMenu = exports.M_Chip = exports.M_Checkbox = exports.M_ChatList = exports.M_ChatBubbleListItem = exports.M_CardList = exports.M_Card = exports.M_BodyTextGroup = void 0;
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
7
|
/* eslint-disable import/first */
|
|
8
8
|
// common
|
|
@@ -146,3 +146,7 @@ Object.defineProperty(exports, "M_AnnotationSheet", { enumerable: true, get: fun
|
|
|
146
146
|
Object.defineProperty(exports, "M_ContentSheet", { enumerable: true, get: function () { return mobile_1.M_ContentSheet; } });
|
|
147
147
|
Object.defineProperty(exports, "M_MobileBasicModal", { enumerable: true, get: function () { return mobile_1.M_MobileBasicModal; } });
|
|
148
148
|
Object.defineProperty(exports, "M_SectionSheet", { enumerable: true, get: function () { return mobile_1.M_SectionSheet; } });
|
|
149
|
+
// sub
|
|
150
|
+
// dynamicLayout
|
|
151
|
+
var sub_1 = require("./src/sub");
|
|
152
|
+
Object.defineProperty(exports, "DynamicLayout", { enumerable: true, get: function () { return sub_1.DynamicLayout; } });
|
|
@@ -234,7 +234,7 @@ var S_Content = styled_components_1.default.div(templateObject_6 || (templateObj
|
|
|
234
234
|
}[colorTheme];
|
|
235
235
|
}, function (_a) {
|
|
236
236
|
var color = _a.color;
|
|
237
|
-
return color && "color: " + color;
|
|
237
|
+
return color && "color: " + color + ";";
|
|
238
238
|
}, function (_a) {
|
|
239
239
|
var textAlign = _a.textAlign;
|
|
240
240
|
return textAlign;
|
|
@@ -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"])));
|
|
@@ -109,7 +109,7 @@ function Background() {
|
|
|
109
109
|
window.removeEventListener('resize', onResize);
|
|
110
110
|
};
|
|
111
111
|
}, []);
|
|
112
|
-
var
|
|
112
|
+
var backgroundMedia = (0, react_1.useMemo)(function () {
|
|
113
113
|
switch (backgroundMediaType) {
|
|
114
114
|
case 'IMAGE':
|
|
115
115
|
return (react_1.default.createElement(hybrid_1.ImageView, { src: backgroundMediaSrc, width: "responsive", height: "responsive", scaleType: "cover", shapeType: "rectangle" }));
|
|
@@ -117,13 +117,14 @@ function Background() {
|
|
|
117
117
|
// // NOTE VIDEO타입 배경은 최초 scope에서 제외
|
|
118
118
|
// return <></>;
|
|
119
119
|
case 'YOUTUBE':
|
|
120
|
-
return (react_1.default.createElement(S_YoutubeContainer, __assign({}, youtubeSize),
|
|
120
|
+
return (react_1.default.createElement(S_YoutubeContainer, __assign({}, youtubeSize),
|
|
121
|
+
react_1.default.createElement(YouTubeIframe_1.default, { id: id, src: backgroundMediaSrc })));
|
|
121
122
|
default:
|
|
122
123
|
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
123
124
|
}
|
|
124
125
|
}, [youtubeSize]);
|
|
125
126
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
126
|
-
react_1.default.createElement(S_BackgroundWrapper, { ref: backgroundRef, color: backgroundColorInHex }, backgroundMediaSrc &&
|
|
127
|
+
react_1.default.createElement(S_BackgroundWrapper, { ref: backgroundRef, color: backgroundColorInHex }, backgroundMediaSrc && backgroundMedia),
|
|
127
128
|
react_1.default.createElement(S_BackgroundOverlay, { color: backgroundOverlayColorInHex })));
|
|
128
129
|
}
|
|
129
130
|
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) {
|
|
@@ -39,16 +39,30 @@ function Carousel(_a) {
|
|
|
39
39
|
var _f = (0, react_1.useState)(true), isLocked = _f[0], setIsLocked = _f[1];
|
|
40
40
|
return (react_1.default.createElement(S_Carousel, null,
|
|
41
41
|
react_1.default.createElement(S_SwiperStyleWrapper, null,
|
|
42
|
-
react_1.default.createElement(react_2.Swiper, { modules: [swiper_1.Navigation, swiper_1.Autoplay], centerInsufficientSlides: true, spaceBetween: spaceBetween, slidesPerView: slidesPerView, slidesPerGroup: slidesPerGroup, breakpoints: breakpoints, loop: mode === 'loop' || mode === 'autoplay', autoplay: mode === 'autoplay'
|
|
42
|
+
react_1.default.createElement(react_2.Swiper, { modules: [swiper_1.Navigation, swiper_1.Autoplay], centerInsufficientSlides: true, spaceBetween: spaceBetween, slidesPerView: slidesPerView, slidesPerGroup: slidesPerGroup, breakpoints: breakpoints, loop: mode === 'loop' || mode === 'autoplay', autoplay: mode === 'autoplay'
|
|
43
|
+
? { delay: autoplayDelay * 1000, disableOnInteraction: false }
|
|
44
|
+
: undefined, onSwiper: function (swiper) {
|
|
43
45
|
swiperRef.current = swiper;
|
|
44
46
|
setIsBeginning(swiper.isBeginning);
|
|
45
47
|
setIsEnd(swiper.isEnd);
|
|
46
48
|
}, onSlideChange: function (swiper) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
if (swiper.params.loop) {
|
|
50
|
+
setIsBeginning(false);
|
|
51
|
+
setIsEnd(false);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
setIsBeginning(swiper.isBeginning);
|
|
55
|
+
setIsEnd(swiper.isEnd);
|
|
56
|
+
}
|
|
49
57
|
}, onToEdge: function (swiper) {
|
|
50
|
-
|
|
51
|
-
|
|
58
|
+
if (swiper.params.loop) {
|
|
59
|
+
setIsBeginning(false);
|
|
60
|
+
setIsEnd(false);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
setIsBeginning(swiper.isBeginning);
|
|
64
|
+
setIsEnd(swiper.isEnd);
|
|
65
|
+
}
|
|
52
66
|
}, onLock: function () {
|
|
53
67
|
setIsLocked(true);
|
|
54
68
|
}, onUnlock: function () {
|
|
@@ -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) {
|
|
@@ -74,7 +75,11 @@ function TemplateA() {
|
|
|
74
75
|
slidesPerView: 5,
|
|
75
76
|
slidesPerGroup: 5
|
|
76
77
|
}
|
|
77
|
-
},
|
|
78
|
+
}, mode: carouselAutoplayMode === 'AUTO'
|
|
79
|
+
? 'autoplay'
|
|
80
|
+
: carouselInfiniteLoopMode === 'USE'
|
|
81
|
+
? 'loop'
|
|
82
|
+
: 'normal', autoplayDelay: carouselAutoplayTime, buttonSpacing: "-24px" }, filteredItems.map(function (item) {
|
|
78
83
|
var id = item.id;
|
|
79
84
|
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;
|
|
80
85
|
return (react_1.default.createElement(components_1.Item, __assign({ key: id }, item),
|
|
@@ -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 &&
|
|
@@ -75,7 +76,11 @@ function TemplateB() {
|
|
|
75
76
|
slidesPerView: 5,
|
|
76
77
|
slidesPerGroup: 5
|
|
77
78
|
}
|
|
78
|
-
},
|
|
79
|
+
}, mode: carouselAutoplayMode === 'AUTO'
|
|
80
|
+
? 'autoplay'
|
|
81
|
+
: carouselInfiniteLoopMode === 'USE'
|
|
82
|
+
? 'loop'
|
|
83
|
+
: 'normal', autoplayDelay: carouselAutoplayTime, buttonSpacing: "-16px" }, filteredItems.map(function (item) {
|
|
79
84
|
var id = item.id;
|
|
80
85
|
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
86
|
return (react_1.default.createElement(components_1.Item, __assign({ key: id }, item),
|
package/dist/src/sub/DynamicLayout/desktop/sections/IntroSection/templates/TemplateC/TemplateC.js
CHANGED
|
@@ -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
|
@@ -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;
|
|
@@ -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) {
|
|
@@ -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) {
|
|
@@ -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) {
|
|
@@ -64,7 +65,11 @@ function TemplateA() {
|
|
|
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),
|
|
@@ -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) {
|
|
@@ -64,7 +65,11 @@ function TemplateB() {
|
|
|
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),
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB-TEST Release Notes
|
|
2
|
-
## [v0.0.
|
|
2
|
+
## [v0.0.14]
|
|
3
3
|
|
|
4
4
|
* sub
|
|
5
|
-
* DynamicLayout
|
|
5
|
+
* DynamicLayout 수정
|
|
6
|
+
* <chore> export dynamicLayout on index
|
|
7
|
+
* <fix> DynamicLayout-ContentsCarouselSection: use carousel playmode
|
|
8
|
+
* <fix> DynamicLayout-IntroSection:fix height of templateC,B
|
|
9
|
+
* <fix> DynamicLayout: fix Section background
|
|
10
|
+
* <fix> DynamicLayout: fix HTMLReader font color
|