pds-dev-kit-web 1.8.1 → 1.8.2

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.
Files changed (22) hide show
  1. package/dist/src/common/assets/icons/fill/More.js +1 -1
  2. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +2 -1
  3. package/dist/src/common/styles/colorSet/PaletteColor_light.json +2 -1
  4. package/dist/src/common/styles/colorSet/UIColor.json +3 -1
  5. package/dist/src/common/styles/colorSet/index.d.ts +4 -0
  6. package/dist/src/common/styles/colorSet/ui-type.d.ts +2 -0
  7. package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/ContextMenuItemNav.js +3 -1
  8. package/dist/src/sub/DynamicLayout/desktop/components/Item/Item.js +4 -1
  9. package/dist/src/sub/DynamicLayout/desktop/sections/ContentsCarouselSection/templates/TemplateA/TemplateA.js +3 -3
  10. package/dist/src/sub/DynamicLayout/desktop/sections/ContentsCarouselSection/templates/TemplateB/TemplateB.js +3 -3
  11. package/dist/src/sub/DynamicLayout/desktop/sections/ContentsSection/templates/TemplateA/TemplateA.js +8 -9
  12. package/dist/src/sub/DynamicLayout/desktop/sections/ContentsSection/templates/TemplateB/TemplateB.js +8 -9
  13. package/dist/src/sub/DynamicLayout/desktop/sections/FooterSection/templates/TemplateA/TemplateA.js +1 -1
  14. package/dist/src/sub/DynamicLayout/desktop/sections/FooterSection/templates/TemplateB/TemplateB.js +1 -1
  15. package/dist/src/sub/DynamicLayout/desktop/sections/IntroSection/templates/TemplateB/TemplateB.js +3 -3
  16. package/dist/src/sub/DynamicLayout/mobile/components/Item/Item.js +4 -1
  17. package/dist/src/sub/DynamicLayout/mobile/sections/ContentsCarouselSection/templates/TemplateA/TemplateA.js +3 -3
  18. package/dist/src/sub/DynamicLayout/mobile/sections/ContentsCarouselSection/templates/TemplateB/TemplateB.js +3 -3
  19. package/dist/src/sub/DynamicLayout/types.d.ts +2 -2
  20. package/dist/src/sub/DynamicLayout/types.js +1339 -449
  21. package/package.json +1 -1
  22. package/release-note.md +19 -12
@@ -28,7 +28,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
28
28
  var react_1 = __importDefault(require("react"));
29
29
  var More = function (_a) {
30
30
  var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
31
- return (react_1.default.createElement("svg", __assign({ width: size, height: size, viewBox: "0 0 20 20" }, rest),
31
+ return (react_1.default.createElement("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest),
32
32
  react_1.default.createElement("path", { fill: color, fillRule: "evenodd", d: "M6.256,10.413 C7.132,10.413 7.843,11.123 7.843,12 C7.843,12.877 7.132,13.587 6.256,13.587 C5.379,13.587 4.668,12.877 4.668,12 C4.668,11.123 5.379,10.413 6.256,10.413 Z M12.0006,10.413 C12.8766,10.413 13.5876,11.123 13.5876,12 C13.5876,12.877 12.8766,13.587 12.0006,13.587 C11.1236,13.587 10.4126,12.877 10.4126,12 C10.4126,11.123 11.1236,10.413 12.0006,10.413 Z M17.7452,10.413 C18.6212,10.413 19.3322,11.123 19.3322,12 C19.3322,12.877 18.6212,13.587 17.7452,13.587 C16.8682,13.587 16.1572,12.877 16.1572,12 C16.1572,11.123 16.8682,10.413 17.7452,10.413 Z" })));
33
33
  };
34
34
  exports.default = More;
@@ -227,5 +227,6 @@
227
227
  "sys_facebook": "facebookblue",
228
228
  "sys_component_base_19": "white/opacity65",
229
229
  "sys_cpnt_pagination_dot_01": "white",
230
- "sys_cpnt_pagination_dot_02": "white/opacity50"
230
+ "sys_cpnt_pagination_dot_02": "white/opacity50",
231
+ "sys_component_base_white_opacity50": "white/opacity50"
231
232
  }
@@ -227,5 +227,6 @@
227
227
  "sys_facebook": "facebookblue",
228
228
  "sys_component_base_19": "white/opacity65",
229
229
  "sys_cpnt_pagination_dot_01": "grey400",
230
- "sys_cpnt_pagination_dot_02": "white/opacity50"
230
+ "sys_cpnt_pagination_dot_02": "white/opacity50",
231
+ "sys_component_base_white_opacity50": "white/opacity50"
231
232
  }
@@ -646,5 +646,7 @@
646
646
  "ui_cpnt_refund_text_status_refunded": "sys_widget_success_01",
647
647
  "ui_cpnt_divider_white_01": "sys_component_base_19",
648
648
  "ui_cpnt_timer_base_01": "sys_background_dimmed",
649
- "ui_cpnt_timer_base_timeup": "sys_component_base_17"
649
+ "ui_cpnt_timer_base_timeup": "sys_component_base_17",
650
+ "ui_66": "sys_component_base_black_opacity50",
651
+ "ui_67": "sys_component_base_white_opacity50"
650
652
  }
@@ -309,6 +309,7 @@ declare const colorSet: {
309
309
  sys_component_base_19: string;
310
310
  sys_cpnt_pagination_dot_01: string;
311
311
  sys_cpnt_pagination_dot_02: string;
312
+ sys_component_base_white_opacity50: string;
312
313
  };
313
314
  readonly PaletteColor_light: {
314
315
  sys_container_background_01: string;
@@ -540,6 +541,7 @@ declare const colorSet: {
540
541
  sys_component_base_19: string;
541
542
  sys_cpnt_pagination_dot_01: string;
542
543
  sys_cpnt_pagination_dot_02: string;
544
+ sys_component_base_white_opacity50: string;
543
545
  };
544
546
  readonly UIColor: {
545
547
  ui_cpnt_button_fill_base_primary: string;
@@ -1190,6 +1192,8 @@ declare const colorSet: {
1190
1192
  ui_cpnt_divider_white_01: string;
1191
1193
  ui_cpnt_timer_base_01: string;
1192
1194
  ui_cpnt_timer_base_timeup: string;
1195
+ ui_66: string;
1196
+ ui_67: string;
1193
1197
  };
1194
1198
  };
1195
1199
  export default colorSet;
@@ -647,4 +647,6 @@ export interface UITheme {
647
647
  ui_cpnt_divider_white_01: string;
648
648
  ui_cpnt_timer_base_01: string;
649
649
  ui_cpnt_timer_base_timeup: string;
650
+ ui_66: string;
651
+ ui_67: string;
650
652
  }
@@ -22,6 +22,7 @@ var react_1 = __importDefault(require("react"));
22
22
  var styled_components_1 = __importDefault(require("styled-components"));
23
23
  var DisplayOnlyMenuItemNav_1 = __importDefault(require("../MenuItemNav/components/DisplayOnlyMenuItemNav"));
24
24
  var InternalLinkMenuItemNav_1 = __importDefault(require("../MenuItemNav/components/InternalLinkMenuItemNav"));
25
+ var PageMenuItemNav_1 = __importDefault(require("../MenuItemNav/components/PageMenuItemNav"));
25
26
  var PAppMenuItemNav_1 = __importDefault(require("../MenuItemNav/components/PAppMenuItemNav"));
26
27
  var WebMenuItemNav_1 = __importDefault(require("../MenuItemNav/components/WebMenuItemNav"));
27
28
  function ContextMenuItemNavBox(_a) {
@@ -30,7 +31,8 @@ function ContextMenuItemNavBox(_a) {
30
31
  menu.menuItemType === 'NAV_P_APP' && menu.pAppCode && (react_1.default.createElement(PAppMenuItemNav_1.default, { menu: __assign(__assign({}, menu), { pAppCode: menu.pAppCode }), isContextMenu: true })),
31
32
  menu.menuItemType === 'WEB_LINK' && menu.conversionLinkSrc && (react_1.default.createElement(WebMenuItemNav_1.default, { openNewTab: true, isContextMenu: true, menu: __assign(__assign({}, menu), { conversionLinkSrc: menu.conversionLinkSrc }) })),
32
33
  menu.menuItemType === 'INTERNAL_LINK' && menu.conversionLinkSrc && (react_1.default.createElement(InternalLinkMenuItemNav_1.default, { isContextMenu: true, menu: __assign(__assign({}, menu), { conversionLinkSrc: menu.conversionLinkSrc }) })),
33
- menu.menuItemType === 'DISPLAY_ONLY' && (react_1.default.createElement(DisplayOnlyMenuItemNav_1.default, { isContextMenu: true, menu: __assign(__assign({}, menu), { conversionLinkSrc: '' }) }))));
34
+ menu.menuItemType === 'DISPLAY_ONLY' && (react_1.default.createElement(DisplayOnlyMenuItemNav_1.default, { isContextMenu: true, menu: __assign(__assign({}, menu), { conversionLinkSrc: '' }) })),
35
+ menu.menuItemType === 'NAV_PAGE' && menu.slug && (react_1.default.createElement(PageMenuItemNav_1.default, { isContextMenu: true, menu: __assign(__assign({}, menu), { slug: menu.slug }) }))));
34
36
  }
35
37
  var S_ContextMenuItem = styled_components_1.default.li(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n height: 32px;\n\n &:hover {\n background-color: ", ";\n }\n"], ["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n height: 32px;\n\n &:hover {\n background-color: ", ";\n }\n"])), function (_a) {
36
38
  var theme = _a.theme;
@@ -49,9 +49,12 @@ var react_1 = __importStar(require("react"));
49
49
  var styled_components_1 = __importStar(require("styled-components"));
50
50
  var pdsOriginal_1 = require("../../../common/components/pdsOriginal");
51
51
  var dynamicLayoutContext_1 = require("../../../dynamicLayoutContext");
52
+ var Section_1 = require("../Section");
52
53
  function Item(_a) {
53
54
  var children = _a.children, props = __rest(_a, ["children"]);
54
- var isItemClickable = props.properties.linkMethod === 'CLICK_ITEM';
55
+ var context = (0, react_1.useContext)(Section_1.Section.context);
56
+ var itemLinkMethod = context.properties.itemLinkMethod;
57
+ var isItemClickable = itemLinkMethod === 'CLICK_ITEM';
55
58
  var _b = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), isPreview = _b.isPreview, navigationHandler = _b.navigationHandler;
56
59
  var handleClickButton = function (e) {
57
60
  if (isPreview)
@@ -42,7 +42,7 @@ var styled_components_1 = __importDefault(require("styled-components"));
42
42
  var components_1 = require("../../../../components");
43
43
  function TemplateA() {
44
44
  var sectionContext = (0, react_1.useContext)(components_1.Section.context);
45
- var _a = sectionContext.properties, title = _a.title, description = _a.description;
45
+ var _a = sectionContext.properties, title = _a.title, description = _a.description, itemLinkMethod = _a.itemLinkMethod;
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;
@@ -80,7 +80,7 @@ function TemplateA() {
80
80
  ? 'loop'
81
81
  : 'normal', autoplayDelay: carouselAutoplayTime, buttonSpacing: "-24px" }, filteredSortedItems.map(function (item) {
82
82
  var id = item.id;
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;
83
+ var _a = item.properties, itemTitle = _a.title, itemDescription = _a.description, itemImageSrc = _a.imageSrc, itemLinkSrc = _a.linkSrc, itemLinkType = _a.linkType, itemButtonLabel = _a.buttonLabel;
84
84
  return (react_1.default.createElement(components_1.Item, __assign({ key: id }, item),
85
85
  itemImageSrc && (react_1.default.createElement(S_ItemImageBox, null,
86
86
  react_1.default.createElement(components_1.Item.Image, { src: itemImageSrc, ratio: "1_1", width: "responsive", shapeType: "rectangle" }))),
@@ -88,7 +88,7 @@ function TemplateA() {
88
88
  itemDescription && (react_1.default.createElement(S_ItemDescriptionBox, { hasImage: !!itemImageSrc, hasTitle: !!itemTitle },
89
89
  react_1.default.createElement(components_1.Item.Description, { text: itemDescription, color: itemDescriptionColorInHex, styleTheme: "body2Regular" }))),
90
90
  itemLinkMethod === 'CLICK_BUTTON_IN_ITEM' && itemLinkSrc && (react_1.default.createElement(S_ItemButtonBox, { hasImage: !!itemImageSrc, hasTitle: !!itemTitle, hasDescription: !!itemDescription },
91
- react_1.default.createElement(components_1.Item.Button, { text: itemButtonLabel, src: itemLinkSrc, linkType: itemLinkType, buttonType: itemButtonDesignType, backgroundColor: itemButtonBackgroundColorInHex, textColor: itemButtonLabelColorInHex, borderColor: itemButtonLabelColorInHex })))));
91
+ react_1.default.createElement(components_1.Item.Button, { text: itemButtonLabel, src: itemLinkSrc, linkMethod: itemLinkMethod, linkType: itemLinkType, buttonType: itemButtonDesignType, backgroundColor: itemButtonBackgroundColorInHex, textColor: itemButtonLabelColorInHex, borderColor: itemButtonLabelColorInHex })))));
92
92
  })))))));
93
93
  }
94
94
  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) {
@@ -42,7 +42,7 @@ var styled_components_1 = __importDefault(require("styled-components"));
42
42
  var components_1 = require("../../../../components");
43
43
  function TemplateB() {
44
44
  var sectionContext = (0, react_1.useContext)(components_1.Section.context);
45
- var _a = sectionContext.properties, title = _a.title, description = _a.description;
45
+ var _a = sectionContext.properties, title = _a.title, description = _a.description, itemLinkMethod = _a.itemLinkMethod;
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;
@@ -80,7 +80,7 @@ function TemplateB() {
80
80
  ? 'loop'
81
81
  : 'normal', autoplayDelay: carouselAutoplayTime, buttonSpacing: "-24px" }, filteredSortedItems.map(function (item) {
82
82
  var id = item.id;
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;
83
+ var _a = item.properties, itemTitle = _a.title, itemDescription = _a.description, itemImageSrc = _a.imageSrc, itemLinkSrc = _a.linkSrc, itemLinkType = _a.linkType, itemButtonLabel = _a.buttonLabel;
84
84
  return (react_1.default.createElement(components_1.Item, __assign({ key: id }, item),
85
85
  itemImageSrc && (react_1.default.createElement(S_ItemImageBox, null,
86
86
  react_1.default.createElement(components_1.Item.Image, { src: itemImageSrc, ratio: "3_2", width: "responsive", radius: 16 }))),
@@ -88,7 +88,7 @@ function TemplateB() {
88
88
  itemDescription && (react_1.default.createElement(S_ItemDescriptionBox, { hasImage: !!itemImageSrc, hasTitle: !!itemTitle },
89
89
  react_1.default.createElement(components_1.Item.Description, { text: itemDescription, color: itemDescriptionColorInHex, styleTheme: "body2Regular" }))),
90
90
  itemLinkMethod === 'CLICK_BUTTON_IN_ITEM' && itemLinkSrc && (react_1.default.createElement(S_ItemButtonBox, { hasImage: !!itemImageSrc, hasTitle: !!itemTitle, hasDescription: !!itemDescription },
91
- react_1.default.createElement(components_1.Item.Button, { text: itemButtonLabel, src: itemLinkSrc, linkType: itemLinkType, buttonType: itemButtonDesignType, backgroundColor: itemButtonBackgroundColorInHex, textColor: itemButtonLabelColorInHex, borderColor: itemButtonLabelColorInHex })))));
91
+ react_1.default.createElement(components_1.Item.Button, { text: itemButtonLabel, src: itemLinkSrc, linkMethod: itemLinkMethod, linkType: itemLinkType, buttonType: itemButtonDesignType, backgroundColor: itemButtonBackgroundColorInHex, textColor: itemButtonLabelColorInHex, borderColor: itemButtonLabelColorInHex })))));
92
92
  })))))));
93
93
  }
94
94
  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) {
@@ -34,12 +34,14 @@ function TemplateA() {
34
34
  var _a = sectionContext.properties, sectionContentMediaType = _a.sectionContentMediaType, sectionContentMediaSrc = _a.sectionContentMediaSrc, title = _a.title, description = _a.description, buttonAlphaLabel = _a.buttonAlphaLabel, buttonAlphaLinkSrc = _a.buttonAlphaLinkSrc, buttonAlphaLinkType = _a.buttonAlphaLinkType;
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
- var _c = (0, react_1.useState)(360), imageHeight = _c[0], setImageHeight = _c[1];
37
+ var imageBoxRef = (0, react_1.useRef)(null);
38
38
  var contentsBodyRef = (0, react_1.useRef)(null);
39
39
  var handleResize = function () {
40
- var _a;
41
- var contentsBodyHeight = (_a = contentsBodyRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight;
42
- setImageHeight(contentsBodyHeight !== null && contentsBodyHeight !== void 0 ? contentsBodyHeight : 360);
40
+ var imageBox = imageBoxRef.current;
41
+ var contentsBody = contentsBodyRef.current;
42
+ if (!imageBox || !contentsBody)
43
+ return;
44
+ imageBox.style.height = contentsBody.offsetHeight + "px";
43
45
  };
44
46
  (0, react_1.useEffect)(function () {
45
47
  window.addEventListener('resize', handleResize);
@@ -49,7 +51,7 @@ function TemplateA() {
49
51
  }, [contentsBodyRef]);
50
52
  return (react_1.default.createElement(S_ContentsAreaBox, { hasNothing: hasNothing },
51
53
  react_1.default.createElement(S_ContentsArea, null,
52
- sectionContentMediaSrc && (react_1.default.createElement(react_1.default.Fragment, null, sectionContentMediaType === 'IMAGE' && (react_1.default.createElement(S_ImageBox, { height: imageHeight },
54
+ sectionContentMediaSrc && (react_1.default.createElement(react_1.default.Fragment, null, sectionContentMediaType === 'IMAGE' && (react_1.default.createElement(S_ImageBox, { ref: imageBoxRef },
53
55
  react_1.default.createElement(Section_1.Section.Image, { src: sectionContentMediaSrc, width: "responsive", height: "responsive", scaleType: "cover", shapeType: "rectangle" }))))),
54
56
  react_1.default.createElement(S_ContentsBodyWrapper, null,
55
57
  react_1.default.createElement("div", { ref: contentsBodyRef },
@@ -64,10 +66,7 @@ var S_ContentsAreaBox = styled_components_1.default.div(templateObject_1 || (tem
64
66
  return (hasNothing ? 0 : '160px');
65
67
  });
66
68
  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"])));
67
- var S_ImageBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 30%;\n min-width: 30%;\n height: ", "px;\n min-height: 360px;\n margin-right: ", ";\n"], ["\n width: 30%;\n min-width: 30%;\n height: ", "px;\n min-height: 360px;\n margin-right: ", ";\n"])), function (_a) {
68
- var height = _a.height;
69
- return height;
70
- }, function (_a) {
69
+ 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) {
71
70
  var theme = _a.theme;
72
71
  return theme.spacing.spacingI;
73
72
  });
@@ -34,12 +34,14 @@ function TemplateB() {
34
34
  var _a = sectionContext.properties, sectionContentMediaType = _a.sectionContentMediaType, sectionContentMediaSrc = _a.sectionContentMediaSrc, title = _a.title, description = _a.description, buttonAlphaLabel = _a.buttonAlphaLabel, buttonAlphaLinkType = _a.buttonAlphaLinkType, buttonAlphaLinkSrc = _a.buttonAlphaLinkSrc;
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
- var _c = (0, react_1.useState)(360), imageHeight = _c[0], setImageHeight = _c[1];
37
+ var imageBoxRef = (0, react_1.useRef)(null);
38
38
  var contentsBodyRef = (0, react_1.useRef)(null);
39
39
  var handleResize = function () {
40
- var _a;
41
- var contentsBodyHeight = (_a = contentsBodyRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight;
42
- setImageHeight(contentsBodyHeight !== null && contentsBodyHeight !== void 0 ? contentsBodyHeight : 360);
40
+ var imageBox = imageBoxRef.current;
41
+ var contentsBody = contentsBodyRef.current;
42
+ if (!imageBox || !contentsBody)
43
+ return;
44
+ imageBox.style.height = contentsBody.offsetHeight + "px";
43
45
  };
44
46
  (0, react_1.useEffect)(function () {
45
47
  window.addEventListener('resize', handleResize);
@@ -56,7 +58,7 @@ function TemplateB() {
56
58
  react_1.default.createElement(Section_1.Section.Description, { text: description, color: descriptionColorInHex, customFontSize: "20px", fontWeight: "600" }))),
57
59
  buttonAlphaLinkSrc && (react_1.default.createElement(S_ButtonBox, { hasTitle: !!title, hasDescription: !!description },
58
60
  react_1.default.createElement(Section_1.Section.Button, { buttonType: buttonAlphaDesignType, text: buttonAlphaLabel, linkType: buttonAlphaLinkType, src: buttonAlphaLinkSrc, textColor: buttonAlphaLabelColorInHex, backgroundColor: buttonAlphaBackgroundColorInHex, borderColor: buttonAlphaLabelColorInHex }))))),
59
- sectionContentMediaSrc && (react_1.default.createElement(react_1.default.Fragment, null, sectionContentMediaType === 'IMAGE' && (react_1.default.createElement(S_ImageBox, { height: imageHeight },
61
+ sectionContentMediaSrc && (react_1.default.createElement(react_1.default.Fragment, null, sectionContentMediaType === 'IMAGE' && (react_1.default.createElement(S_ImageBox, null,
60
62
  react_1.default.createElement(Section_1.Section.Image, { src: sectionContentMediaSrc, width: "responsive", height: "responsive", scaleType: "cover", shapeType: "rectangle" }))))))));
61
63
  }
62
64
  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) {
@@ -64,10 +66,7 @@ var S_ContentsAreaBox = styled_components_1.default.div(templateObject_1 || (tem
64
66
  return (hasNothing ? 0 : '160px');
65
67
  });
66
68
  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"])));
67
- var S_ImageBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 30%;\n min-width: 30%;\n height: ", "px;\n min-height: 360px;\n margin-left: ", ";\n"], ["\n width: 30%;\n min-width: 30%;\n height: ", "px;\n min-height: 360px;\n margin-left: ", ";\n"])), function (_a) {
68
- var height = _a.height;
69
- return height;
70
- }, function (_a) {
69
+ 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) {
71
70
  var theme = _a.theme;
72
71
  return theme.spacing.spacingI;
73
72
  });
@@ -54,7 +54,7 @@ function TemplateA() {
54
54
  !((_b = filteredItems[0]) === null || _b === void 0 ? void 0 : _b.properties.description);
55
55
  return (react_1.default.createElement(S_ContentsArea, { hasNothing: hasNothing }, filteredItems.length > 0 && (react_1.default.createElement(Item_1.Item, __assign({}, filteredItems[0]),
56
56
  filteredItems[0].properties.logoImageSrc && (react_1.default.createElement(S_ImageBox, null,
57
- react_1.default.createElement(Item_1.Item.Image, { ratio: "auto", height: 48, scaleType: "fill", src: filteredItems[0].properties.logoImageSrc }))),
57
+ react_1.default.createElement(Item_1.Item.Image, { ratio: "auto", height: 48, scaleType: "fill", shapeType: "rectangle", 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
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: ", " 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: ", " auto;\n ", "\n"])), function (_a) {
@@ -54,7 +54,7 @@ function TemplateB() {
54
54
  !((_b = filteredItems[0]) === null || _b === void 0 ? void 0 : _b.properties.description);
55
55
  return (react_1.default.createElement(S_ContentsArea, { hasNothing: hasNothing }, filteredItems.length > 0 && (react_1.default.createElement(Item_1.Item, __assign({}, filteredItems[0]),
56
56
  filteredItems[0].properties.logoImageSrc && (react_1.default.createElement(S_ImageBox, null,
57
- react_1.default.createElement(Item_1.Item.Image, { ratio: "auto", height: 48, scaleType: "fill", src: filteredItems[0].properties.logoImageSrc }))),
57
+ react_1.default.createElement(Item_1.Item.Image, { ratio: "auto", height: 48, scaleType: "fill", shapeType: "rectangle", 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
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: ", " 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: ", " auto;\n ", "\n"])), function (_a) {
@@ -46,9 +46,9 @@ 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 min-height: calc(100vh - 64px);\n height: auto;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n"], ["\n width: 100%;\n min-height: calc(100vh - 64px);\n height: auto;\n box-sizing: border-box;\n display: flex;\n justify-content: 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: 160px 0;\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 0;\n"])));
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"])));
49
+ var S_FullScreenWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n min-height: calc(100vh - 64px);\n height: auto;\n box-sizing: border-box;\n display: flex;\n flex-direction: column-reverse;\n align-items: center;\n"], ["\n width: 100%;\n min-height: calc(100vh - 64px);\n height: auto;\n box-sizing: border-box;\n display: flex;\n flex-direction: column-reverse;\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: 160px 0 13vh;\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 0 13vh;\n"])));
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) {
53
53
  var theme = _a.theme, hasTitle = _a.hasTitle;
54
54
  return hasTitle && theme.spacing.spacingF;
@@ -49,9 +49,12 @@ var react_1 = __importStar(require("react"));
49
49
  var styled_components_1 = __importStar(require("styled-components"));
50
50
  var pdsOriginal_1 = require("../../../common/components/pdsOriginal");
51
51
  var dynamicLayoutContext_1 = require("../../../dynamicLayoutContext");
52
+ var Section_1 = require("../Section");
52
53
  function Item(_a) {
53
54
  var children = _a.children, props = __rest(_a, ["children"]);
54
- var isItemClickable = props.properties.linkMethod === 'CLICK_ITEM';
55
+ var context = (0, react_1.useContext)(Section_1.Section.context);
56
+ var itemLinkMethod = context.properties.itemLinkMethod;
57
+ var isItemClickable = itemLinkMethod === 'CLICK_ITEM';
55
58
  var _b = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), isPreview = _b.isPreview, navigationHandler = _b.navigationHandler;
56
59
  var handleClickButton = function (e) {
57
60
  if (isPreview)
@@ -42,7 +42,7 @@ var styled_components_1 = __importDefault(require("styled-components"));
42
42
  var components_1 = require("../../../../components");
43
43
  function TemplateA() {
44
44
  var sectionContext = (0, react_1.useContext)(components_1.Section.context);
45
- var _a = sectionContext.properties, title = _a.title, description = _a.description;
45
+ var _a = sectionContext.properties, title = _a.title, description = _a.description, itemLinkMethod = _a.itemLinkMethod;
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;
@@ -72,7 +72,7 @@ function TemplateA() {
72
72
  ? 'loop'
73
73
  : 'normal', autoplayDelay: carouselAutoplayTime, paginationSpacing: [48, 24] }, filteredSortedItems.map(function (item) {
74
74
  var id = item.id;
75
- 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;
75
+ var _a = item.properties, itemTitle = _a.title, itemDescription = _a.description, itemImageSrc = _a.imageSrc, itemLinkSrc = _a.linkSrc, itemLinkType = _a.linkType, itemButtonLabel = _a.buttonLabel;
76
76
  return (react_1.default.createElement(components_1.Item, __assign({ key: id }, item),
77
77
  itemImageSrc && (react_1.default.createElement(S_ItemImageBox, null,
78
78
  react_1.default.createElement(components_1.Item.Image, { src: itemImageSrc, ratio: "1_1", width: "responsive", shapeType: "rectangle" }))),
@@ -80,7 +80,7 @@ function TemplateA() {
80
80
  itemDescription && (react_1.default.createElement(S_ItemDescriptionBox, { hasImage: !!itemImageSrc, hasTitle: !!itemTitle },
81
81
  react_1.default.createElement(components_1.Item.Description, { text: itemDescription, color: itemDescriptionColorInHex, styleTheme: "body2Regular" }))),
82
82
  itemLinkMethod === 'CLICK_BUTTON_IN_ITEM' && itemLinkSrc && (react_1.default.createElement(S_ItemButtonBox, { hasImage: !!itemImageSrc, hasTitle: !!itemTitle, hasDescription: !!itemDescription },
83
- react_1.default.createElement(components_1.Item.Button, { text: itemButtonLabel, src: itemLinkSrc, linkType: itemLinkType, buttonType: itemButtonDesignType, backgroundColor: itemButtonBackgroundColorInHex, textColor: itemButtonLabelColorInHex, borderColor: itemButtonLabelColorInHex })))));
83
+ react_1.default.createElement(components_1.Item.Button, { text: itemButtonLabel, src: itemLinkSrc, linkMethod: itemLinkMethod, linkType: itemLinkType, buttonType: itemButtonDesignType, backgroundColor: itemButtonBackgroundColorInHex, textColor: itemButtonLabelColorInHex, borderColor: itemButtonLabelColorInHex })))));
84
84
  }))))));
85
85
  }
86
86
  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) {
@@ -42,7 +42,7 @@ var styled_components_1 = __importDefault(require("styled-components"));
42
42
  var components_1 = require("../../../../components");
43
43
  function TemplateB() {
44
44
  var sectionContext = (0, react_1.useContext)(components_1.Section.context);
45
- var _a = sectionContext.properties, title = _a.title, description = _a.description;
45
+ var _a = sectionContext.properties, title = _a.title, description = _a.description, itemLinkMethod = _a.itemLinkMethod;
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;
@@ -72,7 +72,7 @@ function TemplateB() {
72
72
  ? 'loop'
73
73
  : 'normal', autoplayDelay: carouselAutoplayTime, paginationSpacing: [48, 24] }, filteredSortedItems.map(function (item) {
74
74
  var id = item.id;
75
- 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;
75
+ var _a = item.properties, itemTitle = _a.title, itemDescription = _a.description, itemImageSrc = _a.imageSrc, itemLinkSrc = _a.linkSrc, itemLinkType = _a.linkType, itemButtonLabel = _a.buttonLabel;
76
76
  return (react_1.default.createElement(components_1.Item, __assign({ key: id }, item),
77
77
  itemImageSrc && (react_1.default.createElement(S_ItemImageBox, null,
78
78
  react_1.default.createElement(components_1.Item.Image, { src: itemImageSrc, ratio: "3_2", width: "responsive", radius: 16 }))),
@@ -80,7 +80,7 @@ function TemplateB() {
80
80
  itemDescription && (react_1.default.createElement(S_ItemDescriptionBox, { hasImage: !!itemImageSrc, hasTitle: !!itemTitle },
81
81
  react_1.default.createElement(components_1.Item.Description, { text: itemDescription, color: itemDescriptionColorInHex, styleTheme: "body2Regular" }))),
82
82
  itemLinkMethod === 'CLICK_BUTTON_IN_ITEM' && itemLinkSrc && (react_1.default.createElement(S_ItemButtonBox, { hasImage: !!itemImageSrc, hasTitle: !!itemTitle, hasDescription: !!itemDescription },
83
- react_1.default.createElement(components_1.Item.Button, { text: itemButtonLabel, src: itemLinkSrc, linkType: itemLinkType, buttonType: itemButtonDesignType, backgroundColor: itemButtonBackgroundColorInHex, textColor: itemButtonLabelColorInHex, borderColor: itemButtonLabelColorInHex })))));
83
+ react_1.default.createElement(components_1.Item.Button, { text: itemButtonLabel, src: itemLinkSrc, linkMethod: itemLinkMethod, linkType: itemLinkType, buttonType: itemButtonDesignType, backgroundColor: itemButtonBackgroundColorInHex, textColor: itemButtonLabelColorInHex, borderColor: itemButtonLabelColorInHex })))));
84
84
  }))))));
85
85
  }
86
86
  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) {
@@ -2,7 +2,7 @@ export declare type TypeOfSectionManifestSchema = 'BASE_INTRO' | 'BASE_CONTENTS'
2
2
  export declare type TypeofSectionTemplate = 'BASE_INTRO_A' | 'BASE_INTRO_B' | 'BASE_INTRO_C' | 'BASE_INTRO_D' | 'BASE_CONTENTS_A' | 'BASE_CONTENTS_B' | 'BASE_CONTENTS_CAROUSEL_A' | 'BASE_CONTENTS_CAROUSEL_B' | 'BASE_FOOTER_A' | 'BASE_FOOTER_B' | 'BASE_INFO_BOX_A';
3
3
  export declare type TypeOfSectionContentMediaType = 'IMAGE' | 'YOUTUBE';
4
4
  export declare type TypeOfSectionLinkType = 'WEB_LINK' | 'INTERNAL_LINK' | 'NONE';
5
- export declare type TypeOfCarouselAutoplayMode = 'AUTO' | 'NORMAL';
5
+ export declare type TypeOfCarouselAutoplayMode = 'AUTO' | 'MANUAL';
6
6
  export declare type TypeOfCarouselInfiniteLoopMode = 'USE' | 'NO_USE';
7
7
  export declare type TypeOfBackgroundMediaType = 'IMAGE' | 'YOUTUBE';
8
8
  export declare type TypeOfSectionButtonDesignType = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I';
@@ -47,6 +47,7 @@ export interface ISectionProperties {
47
47
  carouselAutoplayMode: TypeOfCarouselAutoplayMode;
48
48
  carouselAutoplayTime: number;
49
49
  carouselInfiniteLoopMode: TypeOfCarouselInfiniteLoopMode;
50
+ itemLinkMethod: TypeOfItemLinkMethod;
50
51
  }
51
52
  export interface ISectionStyles {
52
53
  titleColorInHex: string;
@@ -90,7 +91,6 @@ export interface IItem {
90
91
  body: string;
91
92
  logoImageSrc: string;
92
93
  imageSrc: string;
93
- linkMethod: TypeOfItemLinkMethod;
94
94
  linkType: TypeOfItemLinkType;
95
95
  linkSrc: string;
96
96
  buttonLabel: string;