pds-dev-kit-web 2.0.10-alpha.0 → 2.0.11-alpha.0

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 (35) hide show
  1. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +2 -1
  2. package/dist/src/common/styles/colorSet/PaletteColor_light.json +2 -1
  3. package/dist/src/common/styles/colorSet/UIColor.json +3 -1
  4. package/dist/src/common/styles/colorSet/index.d.ts +606 -602
  5. package/dist/src/common/styles/colorSet/index.js +4 -4
  6. package/dist/src/common/styles/colorSet/ui-type.d.ts +2 -0
  7. package/dist/src/desktop/components/TextLabel/TextLabel.js +17 -7
  8. package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.js +1 -1
  9. package/dist/src/sub/DynamicLayout/mock_samplePage.js +3 -3
  10. package/dist/src/sub/DynamicLayout/mock_storybook.d.ts +4 -4
  11. package/dist/src/sub/DynamicLayout/mock_storybook.js +30 -26
  12. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.js +7 -6
  13. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipSheet.js +3 -4
  14. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/NarrowMembershipListView.js +27 -13
  15. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/SectionContents.js +1 -1
  16. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/{EmptyMembershipPlanSheet.d.ts → UnavailableMembershipPlanSheet.d.ts} +2 -2
  17. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/{EmptyMembershipPlanSheet.js → UnavailableMembershipPlanSheet.js} +4 -3
  18. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/EmptyMembershipSheet.js +1 -2
  19. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/SectionContents.js +1 -1
  20. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.d.ts +3 -5
  21. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.js +9 -7
  22. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipSheet.js +3 -3
  23. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/SectionContents.js +1 -1
  24. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/{EmptyMembershipPlanSheet.d.ts → UnavailableMembershipPlanSheet.d.ts} +2 -2
  25. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/{EmptyMembershipPlanSheet.js → UnavailableMembershipPlanSheet.js} +4 -3
  26. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/EmptyMembershipSheet.js +3 -8
  27. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipContents.js +1 -1
  28. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipSectionSheet.js +81 -23
  29. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/SectionContents.js +1 -1
  30. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.d.ts +3 -1
  31. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.js +6 -3
  32. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.d.ts +3 -1
  33. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.js +9 -3
  34. package/package.json +1 -1
  35. package/release-note.md +9 -5
@@ -27,10 +27,10 @@ var Section_1 = require("../../../../../../../../DynamicLayout/components/Sectio
27
27
  var components_2 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/components");
28
28
  var constants_1 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/constants");
29
29
  var styled_components_1 = __importDefault(require("styled-components"));
30
- var EmptyMembershipPlanSheet_1 = __importDefault(require("./EmptyMembershipPlanSheet"));
31
30
  var MembershipBenefitInfo_1 = __importDefault(require("./MembershipBenefitInfo"));
32
31
  var MembershipCard_1 = __importDefault(require("./MembershipCard"));
33
32
  var MembershipPlanSheet_1 = __importDefault(require("./MembershipPlanSheet"));
33
+ var UnavailableMembershipPlanSheet_1 = __importDefault(require("./UnavailableMembershipPlanSheet"));
34
34
  function MembershipSheet(_a) {
35
35
  var filteredMemberships = _a.filteredMemberships, isWideView = _a.isWideView;
36
36
  var _b = (0, react_1.useState)(0), currentIndex = _b[0], setCurrentIndex = _b[1];
@@ -38,7 +38,7 @@ function MembershipSheet(_a) {
38
38
  if (!section) {
39
39
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
40
40
  }
41
- var _c = section.styles, itemHighlightingColorInHex = _c.itemHighlightingColorInHex, itemToneType = _c.itemToneType, programmedItemActionButtonTextType = _c.programmedItemActionButtonTextType;
41
+ var itemToneType = section.styles.itemToneType;
42
42
  var currentMembership = filteredMemberships[currentIndex];
43
43
  var membership = currentMembership.membership, connectedSubscriptionProducts = currentMembership.connectedSubscriptionProducts;
44
44
  var handlePrevMembershipClick = function () {
@@ -64,7 +64,7 @@ function MembershipSheet(_a) {
64
64
  paddingLeft: isWideView ? '160px' : '64px',
65
65
  paddingRight: isWideView ? '160px' : '64px',
66
66
  paddingTop: '80px'
67
- }, width: "100%", height: "auto", shapeType: "round" }, { children: [(0, jsx_runtime_1.jsx)(MembershipCard_1.default, { membershipCardTemplate: membership.membershipCardTemplate }, void 0), (0, jsx_runtime_1.jsxs)(S_MembershipDetailBox, __assign({ isWideView: isWideView }, { children: [membership.title && ((0, jsx_runtime_1.jsx)(desktop_1.Item.Title, { text: membership.title, styleTheme: "displayBold", color: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetTextLabelColor, textAlign: "left", lineLimit: 2, ellipsisMode: "use" }, void 0)), membership.membershipBenefitInfo && ((0, jsx_runtime_1.jsx)(MembershipBenefitInfo_1.default, { membershipBenefitInfo: membership.membershipBenefitInfo, itemToneTextLabelColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetTextLabelColor }, void 0)), connectedSubscriptionProducts.length > 0 ? ((0, jsx_runtime_1.jsx)(MembershipPlanSheet_1.default, { connectedSubscriptionProduct: connectedSubscriptionProducts[0], itemToneType: itemToneType, itemHighlightingColorInHex: itemHighlightingColorInHex, programmedItemActionButtonTextType: programmedItemActionButtonTextType }, void 0)) : ((0, jsx_runtime_1.jsx)(EmptyMembershipPlanSheet_1.default, { sectionStyles: section.styles }, void 0))] }), void 0)] }), void 0)] }, void 0));
67
+ }, width: "100%", height: "auto", shapeType: "round" }, { children: [(0, jsx_runtime_1.jsx)(MembershipCard_1.default, { membershipCardTemplate: membership.membershipCardTemplate }, void 0), (0, jsx_runtime_1.jsxs)(S_MembershipDetailBox, __assign({ isWideView: isWideView }, { children: [membership.title && ((0, jsx_runtime_1.jsx)(desktop_1.Item.Title, { text: membership.title, styleTheme: "displayBold", color: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetTextLabelColor, textAlign: "left", lineLimit: 2, ellipsisMode: "use" }, void 0)), membership.membershipBenefitInfo && ((0, jsx_runtime_1.jsx)(MembershipBenefitInfo_1.default, { membershipBenefitInfo: membership.membershipBenefitInfo, itemToneTextLabelColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetTextLabelColor }, void 0)), connectedSubscriptionProducts.length > 0 ? ((0, jsx_runtime_1.jsx)(MembershipPlanSheet_1.default, { connectedSubscriptionProduct: connectedSubscriptionProducts[0], sectionStyles: section.styles }, void 0)) : ((0, jsx_runtime_1.jsx)(UnavailableMembershipPlanSheet_1.default, { sectionStyles: section.styles }, void 0))] }), void 0)] }), void 0)] }, void 0));
68
68
  }
69
69
  var S_MembershipBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n position: relative;\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n position: relative;\n"])));
70
70
  var S_ArrowButtonBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n margin-bottom: ", ";\n"], ["\n display: flex;\n justify-content: flex-end;\n margin-bottom: ", ";\n"])), function (_a) {
@@ -30,7 +30,7 @@ function SectionContents() {
30
30
  }
31
31
  var _a = section.styles, buttonAlphaBackgroundColorInHex = _a.buttonAlphaBackgroundColorInHex, buttonAlphaLabelColorInHex = _a.buttonAlphaLabelColorInHex, buttonAlphaDesignType = _a.buttonAlphaDesignType, descriptionColorInHex = _a.descriptionColorInHex, titleColorInHex = _a.titleColorInHex;
32
32
  var _b = section.properties, title = _b.title, description = _b.description, buttonAlphaLabel = _b.buttonAlphaLabel, buttonAlphaLinkSrc = _b.buttonAlphaLinkSrc, buttonAlphaLinkType = _b.buttonAlphaLinkType;
33
- return ((0, jsx_runtime_1.jsxs)(S_SectionDataBox, __assign({ isEmptySectionData: !title && !description && !buttonAlphaLinkSrc }, { children: [title && ((0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.Title, { text: title, textAlign: "center", color: titleColorInHex, customFontSize: "48px", customFontWeight: "bold" }, void 0)), description && ((0, jsx_runtime_1.jsx)(S_DescriptionWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.Description, { text: description, textAlign: "center", color: descriptionColorInHex, styleTheme: "headingBold" }, void 0) }, void 0)), buttonAlphaLinkSrc && ((0, jsx_runtime_1.jsx)(S_ButtonWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.DesignedSectionButton, { buttonType: buttonAlphaDesignType, text: buttonAlphaLabel, linkType: buttonAlphaLinkType, src: buttonAlphaLinkSrc, textColor: buttonAlphaLabelColorInHex, backgroundColor: buttonAlphaBackgroundColorInHex, borderColor: buttonAlphaLabelColorInHex }, void 0) }, void 0))] }), void 0));
33
+ return ((0, jsx_runtime_1.jsxs)(S_SectionDataBox, __assign({ isEmptySectionData: !title && !description && !buttonAlphaLinkSrc }, { children: [title && ((0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.Title, { text: title, textAlign: "center", color: titleColorInHex, customFontSize: "48px", customFontWeight: "bold" }, void 0)), description && ((0, jsx_runtime_1.jsx)(S_DescriptionWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.Description, { text: description, textAlign: "center", color: descriptionColorInHex, customFontSize: "20px", fontWeight: "600" }, void 0) }, void 0)), buttonAlphaLinkSrc && ((0, jsx_runtime_1.jsx)(S_ButtonWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.DesignedSectionButton, { buttonType: buttonAlphaDesignType, text: buttonAlphaLabel, linkType: buttonAlphaLinkType, src: buttonAlphaLinkSrc, textColor: buttonAlphaLabelColorInHex, backgroundColor: buttonAlphaBackgroundColorInHex, borderColor: buttonAlphaLabelColorInHex }, void 0) }, void 0))] }), void 0));
34
34
  }
35
35
  var S_SectionDataBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), function (_a) {
36
36
  var isEmptySectionData = _a.isEmptySectionData;
@@ -3,5 +3,5 @@ import type { ISectionStyles } from '../../../../../../../../DynamicLayout/types
3
3
  declare type Props = {
4
4
  sectionStyles: ISectionStyles;
5
5
  };
6
- declare function EmptyMembershipPlanSheet({ sectionStyles }: Props): JSX.Element;
7
- export default EmptyMembershipPlanSheet;
6
+ declare function UnavailableMembershipPlanSheet({ sectionStyles }: Props): JSX.Element;
7
+ export default UnavailableMembershipPlanSheet;
@@ -17,16 +17,17 @@ var panels_1 = require("../../../../../../../../../desktop/panels");
17
17
  var components_1 = require("../../../../../../../../../hybrid/components");
18
18
  var components_2 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/components");
19
19
  var constants_1 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/constants");
20
- function EmptyMembershipPlanSheet(_a) {
20
+ function UnavailableMembershipPlanSheet(_a) {
21
21
  var sectionStyles = _a.sectionStyles;
22
22
  var t = (0, react_i18next_1.useTranslation)('translation').t;
23
23
  var itemToneType = sectionStyles.itemToneType, programmedItemActionButtonTextType = sectionStyles.programmedItemActionButtonTextType;
24
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_g" }, void 0), (0, jsx_runtime_1.jsx)(panels_1.ContentSheet, __assign({ width: "100%", height: "auto", shapeType: "round", paddingBottom: "spacing_d", overrideCSS: {
24
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_g" }, void 0), (0, jsx_runtime_1.jsx)(panels_1.ContentSheet, __assign({ width: "100%", height: "auto", shapeType: "round", overrideCSS: {
25
25
  display: 'flex',
26
26
  alignItems: 'center',
27
+ justifyContent: 'center',
27
28
  height: '112px',
28
29
  backgroundColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipPlanSheetBackgroundColor
29
30
  } }, { children: (0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Title, { text: t('str_5300'), color: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetTextLabelColor }, void 0) }), void 0), (0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.XlargeMainButton, { buttonText: t(constants_1.MEMBERSHIP_SECTION_ACTION_BUTTON_TEXT[programmedItemActionButtonTextType]), state: "disabled", buttonTextColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].disabledProgrammedItemActionButtonTextColor, buttonBackgroundColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType]
30
31
  .disabledProgrammedItemActionButtonBackgroundColor }, void 0)] }, void 0));
31
32
  }
32
- exports.default = EmptyMembershipPlanSheet;
33
+ exports.default = UnavailableMembershipPlanSheet;
@@ -38,16 +38,11 @@ function MembershipSheet() {
38
38
  display: 'flex',
39
39
  alignItems: 'center',
40
40
  justifyContent: 'center',
41
- marginBottom: '96px'
41
+ marginTop: '48px',
42
+ marginBottom: '48px'
42
43
  }, width: "100%", height: "180px", shapeType: "round" }, { children: (0, jsx_runtime_1.jsx)(components_1.D_MembershipSectionItem.Title, { text: t('str_5299'), styleTheme: "body2Regular", color: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].emptyMembershipSheetTextLabelColor }, void 0) }), void 0) }, void 0));
43
44
  }
44
- var S_EmptyMembershipSheet = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: ", ";\n margin-top: ", ";\n padding: 0 ", ";\n"], ["\n margin-bottom: ", ";\n margin-top: ", ";\n padding: 0 ", ";\n"])), function (_a) {
45
- var theme = _a.theme;
46
- return theme.spacing.spacingG;
47
- }, function (_a) {
48
- var theme = _a.theme;
49
- return theme.spacing.spacingG;
50
- }, function (_a) {
45
+ var S_EmptyMembershipSheet = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 0 ", ";\n"], ["\n padding: 0 ", ";\n"])), function (_a) {
51
46
  var theme = _a.theme;
52
47
  return theme.spacing.spacingE;
53
48
  });
@@ -17,6 +17,6 @@ function MembershipContents(_a) {
17
17
  return ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (0, jsx_runtime_1.jsx)(MembershipSectionSheet_1.default, { membership: connectedMembership.membership }, void 0) }, connectedMembership.id));
18
18
  }) }, void 0));
19
19
  }
20
- var S_MembershipBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n margin-bottom: 115px;\n position: relative;\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n margin-bottom: 115px;\n position: relative;\n"])));
20
+ var S_MembershipBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n margin-bottom: 0;\n position: relative;\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n margin-bottom: 0;\n position: relative;\n"])));
21
21
  exports.default = MembershipContents;
22
22
  var templateObject_1;
@@ -14,51 +14,109 @@ var __assign = (this && this.__assign) || function () {
14
14
  };
15
15
  return __assign.apply(this, arguments);
16
16
  };
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
17
36
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
37
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
38
  };
20
39
  Object.defineProperty(exports, "__esModule", { value: true });
21
40
  var jsx_runtime_1 = require("react/jsx-runtime");
22
41
  var react_1 = require("react");
23
- var pdsOriginal_1 = require("../../../../../../../../DynamicLayout/components/pdsOriginal");
42
+ var components_1 = require("../../../../../../../../../hybrid/components");
24
43
  var Section_1 = require("../../../../../../../../DynamicLayout/components/Section");
25
- var components_1 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/components");
44
+ var components_2 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/components");
26
45
  var constants_1 = require("../../../../../../../../DynamicLayout/sections/MembershipSection/constants");
27
- var styled_components_1 = __importDefault(require("styled-components"));
46
+ var styled_components_1 = __importStar(require("styled-components"));
28
47
  var MembershipBenefitInfo_1 = __importDefault(require("./MembershipBenefitInfo"));
29
48
  function MembershipSectionSheet(_a) {
30
49
  var membership = _a.membership;
31
50
  var section = (0, react_1.useContext)(Section_1.sectionContext);
51
+ var membershipCardTemplate = membership.membershipCardTemplate, membershipBenefitInfo = membership.membershipBenefitInfo;
52
+ var _b = (0, react_1.useState)(0), containerHeight = _b[0], setContainerHeight = _b[1];
53
+ var _c = (0, react_1.useState)(0), containerWidth = _c[0], setContainerWidth = _c[1];
54
+ var firstObserve = true;
55
+ var observerTarget = (0, react_1.useRef)(null);
56
+ var fadeTarget = (0, react_1.useRef)(null);
57
+ /**
58
+ * @when : 화면 진입 시
59
+ * @expected : 화면에 타겟의 등장을 감지하는 옵저버를 추가합니다.
60
+ * @clear : 옵저버 연결을 해제합니다.
61
+ */
62
+ (0, react_1.useEffect)(function () {
63
+ var observerTargetElement = observerTarget.current;
64
+ var fadeTargetElement = fadeTarget.current;
65
+ var mainElement = document.querySelector('main');
66
+ setContainerHeight(mainElement ? mainElement.clientHeight : window.innerHeight);
67
+ if (!observerTargetElement || !fadeTargetElement) {
68
+ return;
69
+ }
70
+ setContainerWidth(observerTargetElement.clientWidth);
71
+ var observer = new IntersectionObserver(function (entries) {
72
+ entries.forEach(function (entry) {
73
+ if (entry.isIntersecting) {
74
+ fadeTargetElement.classList.remove('fadeOut');
75
+ fadeTargetElement.classList.add('fadeIn');
76
+ }
77
+ else {
78
+ !firstObserve && fadeTargetElement.classList.add('fadeOut');
79
+ fadeTargetElement.classList.remove('fadeIn');
80
+ }
81
+ });
82
+ firstObserve = false;
83
+ });
84
+ observer.observe(observerTargetElement);
85
+ return function () {
86
+ observer.disconnect();
87
+ };
88
+ }, []);
32
89
  if (!section) {
33
90
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
34
91
  }
35
- var membershipCardTemplate = membership.membershipCardTemplate, membershipBenefitInfo = membership.membershipBenefitInfo;
36
92
  var itemToneType = section.styles.itemToneType;
37
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(S_ImageWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.MembershipCard, { membershipCardTemplate: membershipCardTemplate }, void 0) }, void 0), (0, jsx_runtime_1.jsx)(pdsOriginal_1.Spacing, { size: "spacing_e" }, void 0), (0, jsx_runtime_1.jsxs)(S_ContentBox, { children: [(0, jsx_runtime_1.jsx)(S_TopGradient, { contentBackgroundDimColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].contentBackgroundDimColor }, void 0), (0, jsx_runtime_1.jsx)(S_MembershipDetailBox, __assign({ contentBackgroundDimColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].contentBackgroundDimColor }, { children: (0, jsx_runtime_1.jsxs)(S_MembershipDetailContents, { children: [(0, jsx_runtime_1.jsx)(pdsOriginal_1.Spacing, { size: "spacing_g" }, void 0), (0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.Title, { text: membership.title || '', color: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetTextLabelColor, customFontSize: "28px", customFontWeight: "bold", textAlign: "center" }, void 0), (0, jsx_runtime_1.jsx)(pdsOriginal_1.Spacing, { size: "spacing_f" }, void 0), membershipBenefitInfo && ((0, jsx_runtime_1.jsx)(MembershipBenefitInfo_1.default, { membershipBenefitInfo: membershipBenefitInfo, itemToneType: itemToneType }, void 0)), (0, jsx_runtime_1.jsx)(pdsOriginal_1.Spacing, { size: "spacing_e" }, void 0)] }, void 0) }), void 0), (0, jsx_runtime_1.jsx)(S_BottomGradient, { contentBackgroundDimColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].contentBackgroundDimColor }, void 0)] }, void 0)] }, void 0));
93
+ return ((0, jsx_runtime_1.jsxs)(S_MembershipSection, { children: [(0, jsx_runtime_1.jsxs)(S_MembershipSectionView, __assign({ containerHeight: containerHeight }, { children: [(0, jsx_runtime_1.jsx)(S_ImageWrapper, { children: (0, jsx_runtime_1.jsx)(components_2.M_MembershipSectionItem.MembershipCard, { membershipCardTemplate: membershipCardTemplate }, void 0) }, void 0), (0, jsx_runtime_1.jsxs)(S_ContentWrapper, __assign({ ref: fadeTarget, "$height": (containerWidth - 96) * 1.6, contentBackgroundDimColor: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].contentBackgroundDimColor }, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_g" }, void 0), (0, jsx_runtime_1.jsxs)(S_CardContentsWrapper, { children: [(0, jsx_runtime_1.jsx)(components_2.M_MembershipSectionItem.Title, { text: membership.title || '', color: constants_1.MEMBERSHIP_SECTION_TONE_COLOR[itemToneType].membershipSheetTextLabelColor, customFontSize: "28px", customFontWeight: "bold", textAlign: "center" }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_f" }, void 0), membershipBenefitInfo && ((0, jsx_runtime_1.jsx)(MembershipBenefitInfo_1.default, { membershipBenefitInfo: membershipBenefitInfo, itemToneType: itemToneType }, void 0))] }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_g" }, void 0)] }), void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_e" }, void 0)] }), void 0), (0, jsx_runtime_1.jsx)(S_StickySpacing, { ref: observerTarget, containerHeight: containerHeight }, void 0)] }, void 0));
38
94
  }
39
- var S_ImageWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n position: sticky;\n top: 0px;\n z-index: 1;\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n position: sticky;\n top: 0px;\n z-index: 1;\n"])), function (_a) {
40
- var theme = _a.theme;
41
- return theme.spacing.spacingG;
42
- }, function (_a) {
95
+ var S_MembershipSection = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
96
+ var S_MembershipSectionView = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: ", "px;\n position: sticky;\n top: 0;\n width: 100%;\n z-index: 1;\n"], ["\n height: ", "px;\n position: sticky;\n top: 0;\n width: 100%;\n z-index: 1;\n"])), function (_a) {
97
+ var containerHeight = _a.containerHeight;
98
+ return containerHeight;
99
+ });
100
+ var S_CardContentsWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
43
101
  var theme = _a.theme;
44
- return theme.spacing.spacingG;
102
+ return theme.spacing.spacingE;
45
103
  }, function (_a) {
46
104
  var theme = _a.theme;
47
- return theme.spacing.spacingG;
48
- });
49
- var S_ContentBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
50
- var S_TopGradient = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: ", ";\n height: 80px;\n position: relative;\n width: 100%;\n z-index: 2;\n"], ["\n background: ", ";\n height: 80px;\n position: relative;\n width: 100%;\n z-index: 2;\n"])), function (_a) {
51
- var contentBackgroundDimColor = _a.contentBackgroundDimColor;
52
- return "linear-gradient(transparent, " + contentBackgroundDimColor + ")";
105
+ return theme.spacing.spacingE;
53
106
  });
54
- var S_BottomGradient = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background: ", ";\n height: 80px;\n position: relative;\n width: 100%;\n z-index: 2;\n"], ["\n background: ", ";\n height: 80px;\n position: relative;\n width: 100%;\n z-index: 2;\n"])), function (_a) {
55
- var contentBackgroundDimColor = _a.contentBackgroundDimColor;
56
- return "linear-gradient(" + contentBackgroundDimColor + ", transparent)";
107
+ var S_ImageWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: calc(100% - 96px);\n z-index: 1;\n"], ["\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: calc(100% - 96px);\n z-index: 1;\n"])));
108
+ var S_StickySpacing = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: ", "px;\n margin-top: 200px;\n position: relative;\n"], ["\n height: ", "px;\n margin-top: 200px;\n position: relative;\n"])), function (_a) {
109
+ var containerHeight = _a.containerHeight;
110
+ return containerHeight;
57
111
  });
58
- var S_MembershipDetailBox = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background: ", ";\n display: flex;\n min-height: 446px;\n position: sticky;\n width: 100%;\n z-index: 2;\n"], ["\n background: ", ";\n display: flex;\n min-height: 446px;\n position: sticky;\n width: 100%;\n z-index: 2;\n"])), function (_a) {
112
+ var fadein = (0, styled_components_1.keyframes)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"], ["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"])));
113
+ var fadeout = (0, styled_components_1.keyframes)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n"], ["\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n"])));
114
+ var S_ContentWrapper = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background: ", ";\n border-radius: 12px;\n display: none;\n height: ", "px;\n left: 50%;\n overflow: auto;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: calc(100% - 96px);\n z-index: 2;\n\n &.fadeIn {\n animation: ", " 0.5s;\n display: inline-block;\n }\n\n &.fadeOut {\n animation: ", " 0.5s;\n display: inline-block;\n opacity: 0;\n }\n"], ["\n background: ", ";\n border-radius: 12px;\n display: none;\n height: ", "px;\n left: 50%;\n overflow: auto;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: calc(100% - 96px);\n z-index: 2;\n\n &.fadeIn {\n animation: ", " 0.5s;\n display: inline-block;\n }\n\n &.fadeOut {\n animation: ", " 0.5s;\n display: inline-block;\n opacity: 0;\n }\n"])), function (_a) {
59
115
  var contentBackgroundDimColor = _a.contentBackgroundDimColor;
60
116
  return contentBackgroundDimColor;
61
- });
62
- var S_MembershipDetailContents = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n margin: 0 72px;\n position: relative;\n width: 100%;\n"], ["\n margin: 0 72px;\n position: relative;\n width: 100%;\n"])));
117
+ }, function (_a) {
118
+ var $height = _a.$height;
119
+ return $height;
120
+ }, fadein, fadeout);
63
121
  exports.default = MembershipSectionSheet;
64
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
122
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
@@ -19,7 +19,7 @@ function SectionContents() {
19
19
  }
20
20
  var _a = section.styles, buttonAlphaBackgroundColorInHex = _a.buttonAlphaBackgroundColorInHex, buttonAlphaLabelColorInHex = _a.buttonAlphaLabelColorInHex, buttonAlphaDesignType = _a.buttonAlphaDesignType, descriptionColorInHex = _a.descriptionColorInHex, titleColorInHex = _a.titleColorInHex;
21
21
  var _b = section.properties, title = _b.title, description = _b.description, buttonAlphaLabel = _b.buttonAlphaLabel, buttonAlphaLinkSrc = _b.buttonAlphaLinkSrc, buttonAlphaLinkType = _b.buttonAlphaLinkType;
22
- return ((0, jsx_runtime_1.jsxs)(S_SectionDataBox, { children: [title && ((0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.Title, { text: title, textAlign: "center", color: titleColorInHex, styleTheme: "displayBold" }, void 0)), description && ((0, jsx_runtime_1.jsx)(S_DescriptionWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.Description, { text: description, textAlign: "center", color: descriptionColorInHex, styleTheme: "body1Bold" }, void 0) }, void 0)), buttonAlphaLinkSrc && ((0, jsx_runtime_1.jsx)(S_ButtonWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.DesignedSectionButton, { buttonType: buttonAlphaDesignType, text: buttonAlphaLabel, linkType: buttonAlphaLinkType, src: buttonAlphaLinkSrc, textColor: buttonAlphaLabelColorInHex, backgroundColor: buttonAlphaBackgroundColorInHex, borderColor: buttonAlphaLabelColorInHex }, void 0) }, void 0))] }, void 0));
22
+ return ((0, jsx_runtime_1.jsxs)(S_SectionDataBox, { children: [title && ((0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "32px", customFontWeight: "bold", lineHeight: 1.3 }, void 0)), description && ((0, jsx_runtime_1.jsx)(S_DescriptionWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.Description, { text: description, color: descriptionColorInHex, textAlign: "center", customFontSize: "18px", fontWeight: "600" }, void 0) }, void 0)), buttonAlphaLinkSrc && ((0, jsx_runtime_1.jsx)(S_ButtonWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.DesignedSectionButton, { buttonType: buttonAlphaDesignType, text: buttonAlphaLabel, linkType: buttonAlphaLinkType, src: buttonAlphaLinkSrc, textColor: buttonAlphaLabelColorInHex, backgroundColor: buttonAlphaBackgroundColorInHex, borderColor: buttonAlphaLabelColorInHex }, void 0) }, void 0))] }, void 0));
23
23
  }
24
24
  var S_SectionDataBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 0 ", ";\n"], ["\n padding: 0 ", ";\n"])), function (_a) {
25
25
  var theme = _a.theme;
@@ -7,7 +7,9 @@ declare namespace MembershipSectionItem {
7
7
  var Title: ({ text, color, lineHeight, ...textLabelProps }: IItemTitle & TextLabelProps & {
8
8
  lineHeight?: number | undefined;
9
9
  }) => JSX.Element;
10
- var Description: ({ text, color, ...textLabelProps }: IItemDescription & TextLabelProps) => JSX.Element;
10
+ var Description: ({ text, color, fontWeight, ...textLabelProps }: IItemDescription & TextLabelProps & {
11
+ fontWeight?: string | undefined;
12
+ }) => JSX.Element;
11
13
  var DesignedSectionButton: ({ buttonType, backgroundColor, textColor, text, linkType, src, linkMethod, state, borderColor }: IItemButton) => JSX.Element;
12
14
  var IconButton: ({ iconButtonIconColor, iconButtonDisabledIconColor, iconButtonBackgroundColor, iconButtonBorderColor, iconButtonDisabledBackgroundColor, isDisabled, iconName, state, onClick }: IconButtonProps) => JSX.Element;
13
15
  var MembershipCard: ({ membershipCardTemplate }: MembershipCardProps) => JSX.Element;
@@ -70,12 +70,15 @@ var S_TitleStyleWrapper = styled_components_1.default.div(templateObject_2 || (t
70
70
  return lineHeight;
71
71
  });
72
72
  function Description(_a) {
73
- var text = _a.text, color = _a.color, textLabelProps = __rest(_a, ["text", "color"]);
74
- return ((0, jsx_runtime_1.jsx)(S_DescriptionStyleWrapper, __assign({ "x-dlayout-membership-item-element-name": "Description", color: color }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.D_TextLabel, __assign({ text: text, colorTheme: "sysTextSecondary" }, textLabelProps), void 0) }), void 0));
73
+ var text = _a.text, color = _a.color, fontWeight = _a.fontWeight, textLabelProps = __rest(_a, ["text", "color", "fontWeight"]);
74
+ return ((0, jsx_runtime_1.jsx)(S_DescriptionStyleWrapper, __assign({ "x-dlayout-membership-item-element-name": "Description", color: color, fontWeight: fontWeight }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.D_TextLabel, __assign({ text: text, colorTheme: "sysTextSecondary" }, textLabelProps), void 0) }), void 0));
75
75
  }
76
- var S_DescriptionStyleWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n & > div {\n color: ", ";\n width: 100%;\n }\n"], ["\n & > div {\n color: ", ";\n width: 100%;\n }\n"])), function (_a) {
76
+ var S_DescriptionStyleWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n & > div {\n color: ", ";\n width: 100%;\n\n ", ";\n }\n"], ["\n & > div {\n color: ", ";\n width: 100%;\n\n ", ";\n }\n"])), function (_a) {
77
77
  var color = _a.color;
78
78
  return color;
79
+ }, function (_a) {
80
+ var fontWeight = _a.fontWeight;
81
+ return fontWeight && "font-weight : " + fontWeight + ";";
79
82
  });
80
83
  function DesignedSectionButton(_a) {
81
84
  var buttonType = _a.buttonType, backgroundColor = _a.backgroundColor, textColor = _a.textColor, text = _a.text, _b = _a.linkType, linkType = _b === void 0 ? 'NONE' : _b, _c = _a.src, src = _c === void 0 ? '' : _c, _d = _a.linkMethod, linkMethod = _d === void 0 ? 'CLICK_BUTTON_IN_ITEM' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, borderColor = _a.borderColor;
@@ -7,7 +7,9 @@ declare namespace MembershipSectionItem {
7
7
  var Title: ({ text, color, lineHeight, ...textLabelProps }: IItemTitle & TextLabelProps & {
8
8
  lineHeight?: number | undefined;
9
9
  }) => JSX.Element;
10
- var Description: ({ text, color, ...textLabelProps }: IItemDescription & TextLabelProps) => JSX.Element;
10
+ var Description: ({ text, color, fontWeight, ...textLabelProps }: IItemDescription & TextLabelProps & {
11
+ fontWeight?: string | undefined;
12
+ }) => JSX.Element;
11
13
  var DesignedSectionButton: ({ buttonType, backgroundColor, textColor, text, linkType, src, linkMethod, state, borderColor }: IItemButton) => JSX.Element;
12
14
  var IconButton: ({ iconButtonBackgroundColor, iconButtonBorderColor, iconButtonDisabledBackgroundColor, iconButtonDisabledIconColor, iconButtonIconColor, isDisabled, iconName, state, onClick }: IconButtonProps) => JSX.Element;
13
15
  var MembershipCard: ({ membershipCardTemplate, cardWidth }: MembershipCardProps) => JSX.Element;
@@ -70,12 +70,18 @@ var S_TitleStyleWrapper = styled_components_1.default.div(templateObject_2 || (t
70
70
  return lineHeight;
71
71
  });
72
72
  function Description(_a) {
73
- var text = _a.text, color = _a.color, textLabelProps = __rest(_a, ["text", "color"]);
74
- return ((0, jsx_runtime_1.jsx)(S_DescriptionStyleWrapper, __assign({ "x-dlayout-membership-item-element-name": "Description", color: color }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_TextLabel, __assign({ text: text, colorTheme: "sysTextSecondary" }, textLabelProps), void 0) }), void 0));
73
+ var text = _a.text, color = _a.color, fontWeight = _a.fontWeight, textLabelProps = __rest(_a, ["text", "color", "fontWeight"]);
74
+ return ((0, jsx_runtime_1.jsx)(S_DescriptionStyleWrapper, __assign({ "x-dlayout-membership-item-element-name": "Description", color: color, fontWeight: fontWeight, isBulletPointMode: textLabelProps.bulletPointMode === 'use' }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_TextLabel, __assign({ text: text, colorTheme: "sysTextSecondary" }, textLabelProps), void 0) }), void 0));
75
75
  }
76
- var S_DescriptionStyleWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n & > div {\n color: ", ";\n width: 100%;\n }\n"], ["\n & > div {\n color: ", ";\n width: 100%;\n }\n"])), function (_a) {
76
+ var S_DescriptionStyleWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n\n & > div {\n color: ", ";\n width: 100%;\n\n ", ";\n }\n"], ["\n ", ";\n\n & > div {\n color: ", ";\n width: 100%;\n\n ", ";\n }\n"])), function (_a) {
77
+ var isBulletPointMode = _a.isBulletPointMode;
78
+ return isBulletPointMode && 'position: relative';
79
+ }, function (_a) {
77
80
  var color = _a.color;
78
81
  return color;
82
+ }, function (_a) {
83
+ var fontWeight = _a.fontWeight;
84
+ return fontWeight && "font-weight : " + fontWeight + ";";
79
85
  });
80
86
  function DesignedSectionButton(_a) {
81
87
  var buttonType = _a.buttonType, backgroundColor = _a.backgroundColor, textColor = _a.textColor, text = _a.text, _b = _a.linkType, linkType = _b === void 0 ? 'NONE' : _b, _c = _a.src, src = _c === void 0 ? '' : _c, _d = _a.linkMethod, linkMethod = _d === void 0 ? 'CLICK_BUTTON_IN_ITEM' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, borderColor = _a.borderColor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.0.10-alpha.0",
3
+ "version": "2.0.11-alpha.0",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.0.10-alpha.0]
2
+ ## [v2.0.11-alpha.0]
3
3
 
4
- ## alpha|https://storybook-pds-975.test.publ.biz
4
+ ## alpha|https://storybook-pds-983.test.publ.biz
5
5
 
6
- ### Component
7
- * TextLabel
8
- * tooltip icon 위치 조정
6
+ ### sub
7
+ * DynamicLayout
8
+ * membership section 디자인 수정
9
+ * membership section에서 미리보기 영역 높이 감지할 수 있도록 조치
10
+ * membership section 스토리북 예제 분기하여 제공
11
+ ### Color
12
+ * 컬러 키 값 23.05.09 18시 38분 기준 싱크