pds-dev-kit-web-test 0.1.10 → 0.2.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.
- package/README.md +1 -12
- package/dist/index.d.ts +2 -2
- package/dist/src/common/assets/icons/line/Box.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Box.js +30 -0
- package/dist/src/common/assets/icons/line/Cart.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Cart.js +30 -0
- package/dist/src/common/assets/icons/line/Delivery.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Delivery.js +30 -0
- package/dist/src/common/assets/icons/line/DottedCircle.d.ts +4 -0
- package/dist/src/common/assets/icons/line/DottedCircle.js +30 -0
- package/dist/src/common/assets/icons/line/Receipt.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Receipt.js +30 -0
- package/dist/src/common/assets/icons/line/Shop.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Shop.js +30 -0
- package/dist/src/common/assets/icons/line/Shoppingbag.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Shoppingbag.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +7 -0
- package/dist/src/common/assets/icons/line/index.js +14 -0
- package/dist/src/common/services/i18n/resources/en.json +20 -1
- package/dist/src/common/services/i18n/resources/es.json +20 -1
- package/dist/src/common/services/i18n/resources/fil.json +20 -1
- package/dist/src/common/services/i18n/resources/index.d.ts +133 -0
- package/dist/src/common/services/i18n/resources/ja.json +20 -1
- package/dist/src/common/services/i18n/resources/ko.json +20 -1
- package/dist/src/common/services/i18n/resources/zh-cn.json +20 -1
- package/dist/src/common/services/i18n/resources/zh-tw.json +20 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +22 -3
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +21 -2
- package/dist/src/common/styles/colorSet/SemanticColor.json +13 -1
- package/dist/src/common/styles/colorSet/UIColor.json +37 -1
- package/dist/src/common/styles/colorSet/index.d.ts +86 -0
- package/dist/src/common/styles/colorSet/ui-type.d.ts +36 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +4 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +36 -11
- package/dist/src/desktop/common/components/TextFieldBase/constants.d.ts +1 -0
- package/dist/src/desktop/common/components/TextFieldBase/constants.js +4 -0
- package/dist/src/desktop/components/IconButton/IconButton.d.ts +4 -2
- package/dist/src/desktop/components/IconButton/IconButton.js +52 -4
- package/dist/src/desktop/components/IconButton/constants.d.ts +15 -0
- package/dist/src/desktop/components/IconButton/constants.js +19 -0
- package/dist/src/desktop/components/TextField/TextField.d.ts +3 -1
- package/dist/src/desktop/components/TextField/TextField.js +5 -5
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/ContentsContainer.js +2 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSG.js +57 -32
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSI.d.ts +15 -0
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSI.js +117 -0
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/index.d.ts +1 -0
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/index.js +3 -1
- package/dist/src/desktop/layout/LayoutWS/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTA.js +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTK.js +1 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +4 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +35 -10
- package/dist/src/mobile/common/components/TextFieldBase/constants.d.ts +1 -0
- package/dist/src/mobile/common/components/TextFieldBase/constants.js +4 -0
- package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.js +1 -1
- package/dist/src/mobile/components/TextField/TextField.d.ts +3 -1
- package/dist/src/mobile/components/TextField/TextField.js +5 -5
- package/dist/src/sub/AdminList/ToolBar/ToolBar.js +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +9 -2
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.js +24 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.d.ts +78 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.js +52 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.js +7 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +38 -2
- package/dist/src/sub/DynamicLayout/components/Section/Section.js +10 -2
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +5 -0
- package/dist/src/sub/DynamicLayout/custonSectionSampleData.d.ts +173 -0
- package/dist/src/sub/DynamicLayout/custonSectionSampleData.js +167 -0
- package/dist/src/sub/DynamicLayout/mock_samplePage.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +449 -16
- package/dist/src/sub/DynamicLayout/mock_storybook.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/mock_storybook.js +2310 -0
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/BlockMatcher.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/BlockMatcher.js +65 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Button.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Button.js +51 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Divider.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Divider.js +29 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Image.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Image.js +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Instagram.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Instagram.js +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/RichText.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/RichText.js +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Text.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Text.js +29 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Twitter.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Twitter.js +30 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Youtube.d.ts +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Youtube.js +38 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/index.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/index.js +22 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +83 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +72 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +13 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.js +79 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/TemplateA.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/TemplateA.js +25 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/D_TemplateA.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/D_TemplateA.js +27 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/EmptyMembershipSheet.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/EmptyMembershipSheet.js +35 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipBenefitInfo.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipBenefitInfo.js +10 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.js +85 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipSheet.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipSheet.js +93 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/NarrowMembershipListView.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/NarrowMembershipListView.js +174 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/SectionContents.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/SectionContents.js +49 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/UnavailableMembershipPlanSheet.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/UnavailableMembershipPlanSheet.js +33 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/WideMembershipListView.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/WideMembershipListView.js +88 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/M_TemplateA.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/M_TemplateA.js +28 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/EmptyMembershipSheet.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/EmptyMembershipSheet.js +35 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipBenefitInfo.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipBenefitInfo.js +11 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipContents.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipContents.js +22 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipSectionSheet.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipSectionSheet.js +51 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/SectionContents.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/SectionContents.js +48 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/TemplateB.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/TemplateB.js +25 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/D_TemplateB.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/D_TemplateB.js +25 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/EmptyMembershipSheet.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/EmptyMembershipSheet.js +35 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipBenefitInfo.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipBenefitInfo.js +10 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipCard.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipCard.js +85 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.js +85 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipSheet.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipSheet.js +79 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/SectionContents.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/SectionContents.js +48 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/UnavailableMembershipPlanSheet.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/UnavailableMembershipPlanSheet.js +33 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/M_TemplateB.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/M_TemplateB.js +28 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/EmptyMembershipSheet.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/EmptyMembershipSheet.js +35 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipBenefitInfo.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipBenefitInfo.js +11 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipContents.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipContents.js +22 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipSectionSheet.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipSectionSheet.js +51 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/SectionContents.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/SectionContents.js +48 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/index.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.js +54 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/TemplateA.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/TemplateA.js +15 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/D_TemplateA.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/D_TemplateA.js +30 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/components/SectionContents.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/components/SectionContents.js +49 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/M_TemplateA.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/M_TemplateA.js +33 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/components/SectionContents.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/components/SectionContents.js +48 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/TemplateB.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/TemplateB.js +15 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/D_TemplateB.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/D_TemplateB.js +30 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/components/SectionContents.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/components/SectionContents.js +48 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/M_TemplateB.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/M_TemplateB.js +33 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/components/SectionContents.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/components/SectionContents.js +48 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/index.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.d.ts +44 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.js +252 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/index.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.d.ts +45 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.js +272 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/constants.d.ts +13 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/constants.js +58 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/index.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/type.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/type.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/index.js +5 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +107 -4
- package/dist/src/sub/DynamicLayout/utils/formatCurrency.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/utils/formatCurrency.js +27 -0
- package/package.json +3 -1
- package/release-note.md +6 -6
- package/webhook/node_modules/esrecurse/.babelrc +3 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FillIconNameKeys, LineIconNameKeys } from '../../../../../DynamicLayout/components/pdsOriginal/common';
|
|
3
|
+
import type { TextLabelProps } from '../../../../../DynamicLayout/components/pdsOriginal/desktop/TextLabel/TextLabel';
|
|
4
|
+
import type { IItemButton, IItemDescription, IItemTitle, IMembershipCardTemplate } from '../../../../../DynamicLayout/types';
|
|
5
|
+
declare function MembershipSectionItem(): JSX.Element;
|
|
6
|
+
declare namespace MembershipSectionItem {
|
|
7
|
+
var Title: ({ text, color, lineHeight, ...textLabelProps }: IItemTitle & TextLabelProps & {
|
|
8
|
+
lineHeight?: number | undefined;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
var Description: ({ text, color, fontWeight, ...textLabelProps }: IItemDescription & TextLabelProps & {
|
|
11
|
+
fontWeight?: string | undefined;
|
|
12
|
+
}) => JSX.Element;
|
|
13
|
+
var DesignedSectionButton: ({ buttonType, backgroundColor, textColor, text, linkType, src, linkMethod, state, borderColor }: IItemButton) => JSX.Element;
|
|
14
|
+
var IconButton: ({ iconButtonBackgroundColor, iconButtonBorderColor, iconButtonDisabledBackgroundColor, iconButtonDisabledIconColor, iconButtonIconColor, isDisabled, iconName, state, onClick }: IconButtonProps) => JSX.Element;
|
|
15
|
+
var MembershipCard: ({ membershipCardTemplate, cardWidth }: MembershipCardProps) => JSX.Element;
|
|
16
|
+
var ColorOverrideIcon: ({ iconColor, iconName }: ColorOverrideIconProps) => JSX.Element;
|
|
17
|
+
var XlargeMainButton: ({ buttonTextColor, buttonBackgroundColor, buttonText, onClick, state }: XlargeMainButtonProps) => JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
declare type IconButtonProps = {
|
|
20
|
+
iconButtonIconColor: string;
|
|
21
|
+
iconButtonDisabledIconColor: string;
|
|
22
|
+
iconButtonBorderColor: string;
|
|
23
|
+
iconButtonBackgroundColor: string;
|
|
24
|
+
iconButtonDisabledBackgroundColor: string;
|
|
25
|
+
isDisabled?: boolean;
|
|
26
|
+
iconName: FillIconNameKeys | LineIconNameKeys;
|
|
27
|
+
state?: 'normal' | 'disabled';
|
|
28
|
+
onClick?: (value?: number | string) => void;
|
|
29
|
+
};
|
|
30
|
+
declare type MembershipCardProps = {
|
|
31
|
+
membershipCardTemplate: IMembershipCardTemplate;
|
|
32
|
+
cardWidth?: number;
|
|
33
|
+
};
|
|
34
|
+
declare type ColorOverrideIconProps = {
|
|
35
|
+
iconColor: string;
|
|
36
|
+
iconName: FillIconNameKeys | LineIconNameKeys;
|
|
37
|
+
};
|
|
38
|
+
declare type XlargeMainButtonProps = {
|
|
39
|
+
buttonTextColor?: string;
|
|
40
|
+
buttonBackgroundColor?: string;
|
|
41
|
+
buttonText?: string;
|
|
42
|
+
onClick?: () => void;
|
|
43
|
+
state?: 'normal' | 'disabled';
|
|
44
|
+
};
|
|
45
|
+
export default MembershipSectionItem;
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
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
|
+
};
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
49
|
+
var react_1 = require("react");
|
|
50
|
+
var pdsOriginal_1 = require("../../../../../DynamicLayout/components/pdsOriginal");
|
|
51
|
+
var dynamicLayoutContext_1 = require("../../../../../DynamicLayout/dynamicLayoutContext");
|
|
52
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
53
|
+
var constants_1 = require("../../constants");
|
|
54
|
+
function MembershipSectionItem() {
|
|
55
|
+
return (0, jsx_runtime_1.jsx)(S_Item, { "x-dlayout-section-element-name": "Item", isClickable: false }, void 0);
|
|
56
|
+
}
|
|
57
|
+
var S_Item = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n ", "\n"], ["\n position: relative;\n ", "\n"])), function (_a) {
|
|
58
|
+
var isClickable = _a.isClickable;
|
|
59
|
+
return isClickable && 'cursor : pointer;';
|
|
60
|
+
});
|
|
61
|
+
function Title(_a) {
|
|
62
|
+
var text = _a.text, color = _a.color, _b = _a.lineHeight, lineHeight = _b === void 0 ? 1.5 : _b, textLabelProps = __rest(_a, ["text", "color", "lineHeight"]);
|
|
63
|
+
return ((0, jsx_runtime_1.jsx)(S_TitleStyleWrapper, __assign({ "x-dlayout-membership-item-element-name": "Title", color: color, lineHeight: lineHeight }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_TextLabel, __assign({ text: text, colorTheme: "sysTextPrimary" }, textLabelProps), void 0) }), void 0));
|
|
64
|
+
}
|
|
65
|
+
var S_TitleStyleWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n & > div {\n color: ", ";\n line-height: ", ";\n }\n"], ["\n & > div {\n color: ", ";\n line-height: ", ";\n }\n"])), function (_a) {
|
|
66
|
+
var color = _a.color;
|
|
67
|
+
return color;
|
|
68
|
+
}, function (_a) {
|
|
69
|
+
var lineHeight = _a.lineHeight;
|
|
70
|
+
return lineHeight;
|
|
71
|
+
});
|
|
72
|
+
function Description(_a) {
|
|
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
|
+
}
|
|
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) {
|
|
80
|
+
var color = _a.color;
|
|
81
|
+
return color;
|
|
82
|
+
}, function (_a) {
|
|
83
|
+
var fontWeight = _a.fontWeight;
|
|
84
|
+
return fontWeight && "font-weight : " + fontWeight + ";";
|
|
85
|
+
});
|
|
86
|
+
function DesignedSectionButton(_a) {
|
|
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;
|
|
88
|
+
var _f = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), mode = _f.mode, isPreview = _f.isPreview, navigationHandler = _f.navigationHandler;
|
|
89
|
+
var handleClickButton = function (e) {
|
|
90
|
+
if (isPreview !== null && isPreview !== void 0 ? isPreview : mode === 'PREVIEW')
|
|
91
|
+
return;
|
|
92
|
+
e.preventDefault();
|
|
93
|
+
e.stopPropagation();
|
|
94
|
+
typeof navigationHandler === 'function' && navigationHandler(linkType, src);
|
|
95
|
+
};
|
|
96
|
+
if (!src || linkMethod !== 'CLICK_BUTTON_IN_ITEM')
|
|
97
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
|
|
98
|
+
switch (buttonType) {
|
|
99
|
+
case 'A':
|
|
100
|
+
return ((0, jsx_runtime_1.jsx)(S_DesignedSectionMainButtonWrapper, __assign({ "x-dlayout-membership-item-element-name": "Button", backgroundColor: backgroundColor, color: textColor, radius: 0, state: state, type: buttonType }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_MainButton, { text: text || 'BUTTON', state: state, onClick: handleClickButton }, void 0) }), void 0));
|
|
101
|
+
case 'B':
|
|
102
|
+
return ((0, jsx_runtime_1.jsx)(S_DesignedSectionMainButtonWrapper, __assign({ "x-dlayout-membership-item-element-name": "Button", backgroundColor: backgroundColor, color: textColor, radius: 6, state: state, type: buttonType }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_MainButton, { text: text || 'BUTTON', state: state, onClick: handleClickButton }, void 0) }), void 0));
|
|
103
|
+
case 'C':
|
|
104
|
+
return ((0, jsx_runtime_1.jsx)(S_DesignedSectionMainButtonWrapper, __assign({ "x-dlayout-membership-item-element-name": "Button", backgroundColor: backgroundColor, color: textColor, radius: 14, state: state, type: buttonType }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_MainButton, { text: text || 'BUTTON', state: state, onClick: handleClickButton }, void 0) }), void 0));
|
|
105
|
+
case 'D':
|
|
106
|
+
return ((0, jsx_runtime_1.jsx)(S_DesignedSectionMainButtonWrapper, __assign({ "x-dlayout-membership-item-element-name": "Button", backgroundColor: backgroundColor, color: textColor, radius: 24, state: state, type: buttonType }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_MainButton, { text: text || 'BUTTON', state: state, onClick: handleClickButton }, void 0) }), void 0));
|
|
107
|
+
case 'E':
|
|
108
|
+
return ((0, jsx_runtime_1.jsx)(S_DesignedSectionMainButtonWrapper, __assign({ "x-dlayout-membership-item-element-name": "Button", backgroundColor: backgroundColor, color: textColor, radius: 0, borderWidth: 2, borderColor: borderColor, state: state, type: buttonType }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_MainButton, { text: text || 'BUTTON', state: state, onClick: handleClickButton }, void 0) }), void 0));
|
|
109
|
+
case 'F':
|
|
110
|
+
return ((0, jsx_runtime_1.jsx)(S_DesignedSectionMainButtonWrapper, __assign({ "x-dlayout-membership-item-element-name": "Button", backgroundColor: backgroundColor, color: textColor, radius: 6, borderWidth: 2, borderColor: borderColor, state: state, type: buttonType }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_MainButton, { text: text || 'BUTTON', state: state, onClick: handleClickButton }, void 0) }), void 0));
|
|
111
|
+
case 'G':
|
|
112
|
+
return ((0, jsx_runtime_1.jsx)(S_DesignedSectionMainButtonWrapper, __assign({ "x-dlayout-membership-item-element-name": "Button", backgroundColor: backgroundColor, color: textColor, radius: 14, borderWidth: 2, borderColor: borderColor, state: state, type: buttonType }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_MainButton, { text: text || 'BUTTON', state: state, onClick: handleClickButton }, void 0) }), void 0));
|
|
113
|
+
case 'H':
|
|
114
|
+
return ((0, jsx_runtime_1.jsx)(S_DesignedSectionMainButtonWrapper, __assign({ "x-dlayout-membership-item-element-name": "Button", backgroundColor: backgroundColor, color: textColor, radius: 24, borderWidth: 2, borderColor: borderColor, state: state, type: buttonType }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_MainButton, { text: text || 'BUTTON', state: state, onClick: handleClickButton }, void 0) }), void 0));
|
|
115
|
+
case 'I':
|
|
116
|
+
return ((0, jsx_runtime_1.jsx)(S_DesignedSectionTextButtonWrapper, __assign({ color: textColor, state: state }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_TextButton, { text: text || 'BUTTON', onClick: handleClickButton, state: state }, void 0) }), void 0));
|
|
117
|
+
default:
|
|
118
|
+
return (0, jsx_runtime_1.jsx)("button", __assign({ type: "button" }, { children: "wrong type" }), void 0);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
var S_DesignedSectionMainButtonWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n & > button {\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n\n box-sizing: border-box;\n\n & div {\n color: ", ";\n }\n }\n"], ["\n & > button {\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n\n box-sizing: border-box;\n\n & div {\n color: ", ";\n }\n }\n"])), function (_a) {
|
|
122
|
+
var theme = _a.theme, backgroundColor = _a.backgroundColor, state = _a.state;
|
|
123
|
+
if (backgroundColor && state === 'normal') {
|
|
124
|
+
return backgroundColor;
|
|
125
|
+
}
|
|
126
|
+
return theme.ui_cpnt_button_fill_base_disabled;
|
|
127
|
+
}, function (_a) {
|
|
128
|
+
var borderWidth = _a.borderWidth, borderColor = _a.borderColor, state = _a.state, type = _a.type, theme = _a.theme;
|
|
129
|
+
if (type === 'E' || type === 'F' || type === 'G' || type === 'H') {
|
|
130
|
+
if (borderWidth && borderColor && state === 'normal') {
|
|
131
|
+
return borderWidth + "px solid " + borderColor;
|
|
132
|
+
}
|
|
133
|
+
if (borderWidth && state === 'disabled') {
|
|
134
|
+
return borderWidth + "px solid " + theme.ui_cpnt_button_line_border_disabled;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return 'none';
|
|
138
|
+
}, function (_a) {
|
|
139
|
+
var radius = _a.radius;
|
|
140
|
+
return radius + "px";
|
|
141
|
+
}, function (_a) {
|
|
142
|
+
var color = _a.color, state = _a.state, theme = _a.theme;
|
|
143
|
+
if (state === 'normal') {
|
|
144
|
+
return color;
|
|
145
|
+
}
|
|
146
|
+
return theme.ui_cpnt_textlabel_sys_tertiary;
|
|
147
|
+
});
|
|
148
|
+
var S_DesignedSectionTextButtonWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n & > button {\n background: none;\n box-sizing: border-box;\n\n & div {\n color: ", ";\n }\n\n &:hover:enabled {\n background: none;\n }\n\n &:active:enabled {\n background: none;\n }\n }\n"], ["\n & > button {\n background: none;\n box-sizing: border-box;\n\n & div {\n color: ", ";\n }\n\n &:hover:enabled {\n background: none;\n }\n\n &:active:enabled {\n background: none;\n }\n }\n"])), function (_a) {
|
|
149
|
+
var color = _a.color, state = _a.state, theme = _a.theme;
|
|
150
|
+
if (state === 'normal') {
|
|
151
|
+
return color;
|
|
152
|
+
}
|
|
153
|
+
return theme.ui_cpnt_textlabel_sys_tertiary;
|
|
154
|
+
});
|
|
155
|
+
function IconButton(_a) {
|
|
156
|
+
var iconButtonBackgroundColor = _a.iconButtonBackgroundColor, iconButtonBorderColor = _a.iconButtonBorderColor, iconButtonDisabledBackgroundColor = _a.iconButtonDisabledBackgroundColor, iconButtonDisabledIconColor = _a.iconButtonDisabledIconColor, iconButtonIconColor = _a.iconButtonIconColor, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, iconName = _a.iconName, _c = _a.state, state = _c === void 0 ? 'normal' : _c, onClick = _a.onClick;
|
|
157
|
+
var handleOnClick = function () {
|
|
158
|
+
onClick && onClick();
|
|
159
|
+
};
|
|
160
|
+
return ((0, jsx_runtime_1.jsx)(S_IconButtonWrapper, __assign({ iconButtonIconColor: iconButtonIconColor, iconButtonDisabledIconColor: iconButtonDisabledIconColor, iconButtonBackgroundColor: iconButtonBackgroundColor, iconButtonDisabledBackgroundColor: iconButtonDisabledBackgroundColor, iconButtonBorderColor: iconButtonBorderColor, isDisabled: isDisabled }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_IconButton, { fillType: "line", shapeType: "circular", baseSize: "medium", iconName: iconName, state: state, onClick: handleOnClick }, void 0) }), void 0));
|
|
161
|
+
}
|
|
162
|
+
var S_IconButtonWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n & > button {\n background-color: ", ";\n border: ", ";\n }\n\n & > button:hover:enabled {\n background-color: ", ";\n border: ", ";\n }\n\n & > button > svg > path {\n stroke: ", ";\n }\n"], ["\n & > button {\n background-color: ", ";\n border: ", ";\n }\n\n & > button:hover:enabled {\n background-color: ", ";\n border: ", ";\n }\n\n & > button > svg > path {\n stroke: ", ";\n }\n"])), function (_a) {
|
|
163
|
+
var iconButtonBackgroundColor = _a.iconButtonBackgroundColor, iconButtonDisabledBackgroundColor = _a.iconButtonDisabledBackgroundColor, isDisabled = _a.isDisabled;
|
|
164
|
+
return (isDisabled ? iconButtonDisabledBackgroundColor : iconButtonBackgroundColor);
|
|
165
|
+
}, function (_a) {
|
|
166
|
+
var iconButtonBorderColor = _a.iconButtonBorderColor;
|
|
167
|
+
return "1px " + iconButtonBorderColor + " solid";
|
|
168
|
+
}, function (_a) {
|
|
169
|
+
var iconButtonBackgroundColor = _a.iconButtonBackgroundColor;
|
|
170
|
+
return iconButtonBackgroundColor;
|
|
171
|
+
}, function (_a) {
|
|
172
|
+
var iconButtonBorderColor = _a.iconButtonBorderColor;
|
|
173
|
+
return "1px " + iconButtonBorderColor + " solid";
|
|
174
|
+
}, function (_a) {
|
|
175
|
+
var iconButtonIconColor = _a.iconButtonIconColor, iconButtonDisabledIconColor = _a.iconButtonDisabledIconColor, isDisabled = _a.isDisabled;
|
|
176
|
+
return isDisabled ? iconButtonDisabledIconColor : iconButtonIconColor;
|
|
177
|
+
});
|
|
178
|
+
function MembershipCard(_a) {
|
|
179
|
+
var membershipCardTemplate = _a.membershipCardTemplate, cardWidth = _a.cardWidth;
|
|
180
|
+
var backgroundImageSrc = membershipCardTemplate.backgroundImageSrc, designSchema = membershipCardTemplate.designSchema, logoImageSrc = membershipCardTemplate.logoImageSrc, overlayColorPrimary = membershipCardTemplate.overlayColorPrimary, overlayColorSecondary = membershipCardTemplate.overlayColorSecondary, overlayType = membershipCardTemplate.overlayType;
|
|
181
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)(S_MembershipCardBox, { children: [(0, jsx_runtime_1.jsx)(pdsOriginal_1.ImageView, { src: backgroundImageSrc, width: cardWidth ? cardWidth : 'responsive', ratio: "10_16", scaleType: "cover" }, void 0), (0, jsx_runtime_1.jsx)(S_GlossyOverlayWrapper, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.ImageView, { src: constants_1.COMMON_OVERLAY_IMAGE_SRC, width: cardWidth ? cardWidth : 'responsive', ratio: "10_16", scaleType: "cover" }, void 0) }, void 0), (0, jsx_runtime_1.jsx)(S_LogoImageWrapper, __assign({ designSchema: designSchema }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.ImageView, { src: logoImageSrc, width: "responsive", scaleType: "contain" }, void 0) }), void 0), (0, jsx_runtime_1.jsx)(S_MembershipCardOverlay, { overlayType: overlayType, overlayColorPrimary: overlayColorPrimary, overlayColorSecondary: overlayColorSecondary, cardWidth: cardWidth }, void 0)] }, void 0) }, void 0));
|
|
182
|
+
}
|
|
183
|
+
var S_MembershipCardBox = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border-radius: 12px;\n height: ", ";\n min-width: ", ";\n overflow: hidden;\n position: relative;\n width: 100%;\n"], ["\n border-radius: 12px;\n height: ", ";\n min-width: ", ";\n overflow: hidden;\n position: relative;\n width: 100%;\n"])), function (_a) {
|
|
184
|
+
var cardWidth = _a.cardWidth;
|
|
185
|
+
return (cardWidth ? cardWidth * 1.6 + "px" : '100%');
|
|
186
|
+
}, function (_a) {
|
|
187
|
+
var cardWidth = _a.cardWidth;
|
|
188
|
+
return (cardWidth ? cardWidth + "px" : '100%');
|
|
189
|
+
});
|
|
190
|
+
var S_GlossyOverlayWrapper = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n inset: 0;\n position: absolute;\n z-index: 4;\n"], ["\n inset: 0;\n position: absolute;\n z-index: 4;\n"])));
|
|
191
|
+
var designSchemaA = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n left: 10%;\n top: 6%;\n"], ["\n left: 10%;\n top: 6%;\n"])));
|
|
192
|
+
var designSchemaB = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n"], ["\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n"])));
|
|
193
|
+
var S_LogoImageWrapper = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n position: absolute;\n width: ", ";\n z-index: 3;\n\n ", "\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n position: absolute;\n width: ", ";\n z-index: 3;\n\n ", "\n"])), function (_a) {
|
|
194
|
+
var cardWidth = _a.cardWidth, designSchema = _a.designSchema;
|
|
195
|
+
if (designSchema === 'A') {
|
|
196
|
+
return cardWidth ? cardWidth * 0.5 + "px" : '50%';
|
|
197
|
+
}
|
|
198
|
+
if (designSchema === 'B') {
|
|
199
|
+
return cardWidth ? cardWidth * 0.6 + "px" : '60%';
|
|
200
|
+
}
|
|
201
|
+
return cardWidth ? cardWidth * 0.5 + "px" : '50%';
|
|
202
|
+
}, function (_a) {
|
|
203
|
+
var designSchema = _a.designSchema;
|
|
204
|
+
switch (designSchema) {
|
|
205
|
+
case 'A':
|
|
206
|
+
return designSchemaA;
|
|
207
|
+
case 'B':
|
|
208
|
+
return designSchemaB;
|
|
209
|
+
default:
|
|
210
|
+
return designSchemaA;
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
var overlaySolidType = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
214
|
+
var overlayColorPrimary = _a.overlayColorPrimary;
|
|
215
|
+
return overlayColorPrimary;
|
|
216
|
+
});
|
|
217
|
+
var overlayGradientType = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n background: ", ";\n"], ["\n background: ", ";\n"])), function (_a) {
|
|
218
|
+
var overlayColorPrimary = _a.overlayColorPrimary, overlayColorSecondary = _a.overlayColorSecondary;
|
|
219
|
+
return "linear-gradient(135deg, " + overlayColorPrimary + ", " + overlayColorSecondary + ")";
|
|
220
|
+
});
|
|
221
|
+
var S_MembershipCardOverlay = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n height: ", ";\n position: absolute;\n top: 0;\n width: ", ";\n z-index: 2;\n\n ", "\n"], ["\n height: ", ";\n position: absolute;\n top: 0;\n width: ", ";\n z-index: 2;\n\n ", "\n"])), function (_a) {
|
|
222
|
+
var cardWidth = _a.cardWidth;
|
|
223
|
+
return (cardWidth ? cardWidth * 1.6 + "px" : '100%');
|
|
224
|
+
}, function (_a) {
|
|
225
|
+
var cardWidth = _a.cardWidth;
|
|
226
|
+
return (cardWidth ? cardWidth + "px" : '100%');
|
|
227
|
+
}, function (_a) {
|
|
228
|
+
var overlayType = _a.overlayType;
|
|
229
|
+
switch (overlayType) {
|
|
230
|
+
case 'NONE':
|
|
231
|
+
return;
|
|
232
|
+
case 'SOLID':
|
|
233
|
+
return overlaySolidType;
|
|
234
|
+
case 'GRADIENT':
|
|
235
|
+
return overlayGradientType;
|
|
236
|
+
default:
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
function ColorOverrideIcon(_a) {
|
|
241
|
+
var iconColor = _a.iconColor, iconName = _a.iconName;
|
|
242
|
+
return ((0, jsx_runtime_1.jsx)(S_ColorOverrideIconWrapper, __assign({ "x-dlayout-membership-item-element-name": "Icon", iconColor: iconColor }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.Icon, { colorKey: "ui_cpnt_icon_sys_grey_01", iconName: iconName }, void 0) }), void 0));
|
|
243
|
+
}
|
|
244
|
+
var S_ColorOverrideIconWrapper = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n\n & path {\n stroke: ", ";\n }\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n\n & path {\n stroke: ", ";\n }\n"])), function (_a) {
|
|
245
|
+
var iconColor = _a.iconColor;
|
|
246
|
+
return iconColor;
|
|
247
|
+
});
|
|
248
|
+
function XlargeMainButton(_a) {
|
|
249
|
+
var buttonTextColor = _a.buttonTextColor, buttonBackgroundColor = _a.buttonBackgroundColor, buttonText = _a.buttonText, onClick = _a.onClick, _b = _a.state, state = _b === void 0 ? 'normal' : _b;
|
|
250
|
+
var handleOnclick = function () {
|
|
251
|
+
onClick && onClick();
|
|
252
|
+
};
|
|
253
|
+
return ((0, jsx_runtime_1.jsx)(S_XlargeMainButtonPropsWrapper, __assign({ "x-dlayout-membership-item-element-name": "Icon", buttonTextColor: buttonTextColor, buttonBackgroundColor: buttonBackgroundColor }, { children: (0, jsx_runtime_1.jsx)(pdsOriginal_1.M_MainButton, { text: buttonText, size: "rlarge", responsiveMode: "use", onClick: handleOnclick, state: state }, void 0) }), void 0));
|
|
254
|
+
}
|
|
255
|
+
var S_XlargeMainButtonPropsWrapper = styled_components_1.default.div(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n & > button {\n background-color: ", ";\n box-sizing: border-box;\n height: 100%;\n\n & div {\n -webkit-line-clamp: 2;\n align-items: center;\n color: ", ";\n display: flex;\n height: 64px;\n justify-content: center;\n line-height: 24px;\n overflow: auto;\n text-align: center;\n }\n }\n"], ["\n & > button {\n background-color: ", ";\n box-sizing: border-box;\n height: 100%;\n\n & div {\n -webkit-line-clamp: 2;\n align-items: center;\n color: ", ";\n display: flex;\n height: 64px;\n justify-content: center;\n line-height: 24px;\n overflow: auto;\n text-align: center;\n }\n }\n"])), function (_a) {
|
|
256
|
+
var theme = _a.theme, buttonBackgroundColor = _a.buttonBackgroundColor;
|
|
257
|
+
return buttonBackgroundColor
|
|
258
|
+
? buttonBackgroundColor
|
|
259
|
+
: theme.ui_cpnt_button_fill_base_disabled;
|
|
260
|
+
}, function (_a) {
|
|
261
|
+
var buttonTextColor = _a.buttonTextColor, theme = _a.theme;
|
|
262
|
+
return buttonTextColor ? buttonTextColor : theme.ui_cpnt_textlabel_sys_tertiary;
|
|
263
|
+
});
|
|
264
|
+
MembershipSectionItem.Title = Title;
|
|
265
|
+
MembershipSectionItem.Description = Description;
|
|
266
|
+
MembershipSectionItem.DesignedSectionButton = DesignedSectionButton;
|
|
267
|
+
MembershipSectionItem.IconButton = IconButton;
|
|
268
|
+
MembershipSectionItem.MembershipCard = MembershipCard;
|
|
269
|
+
MembershipSectionItem.ColorOverrideIcon = ColorOverrideIcon;
|
|
270
|
+
MembershipSectionItem.XlargeMainButton = XlargeMainButton;
|
|
271
|
+
exports.default = MembershipSectionItem;
|
|
272
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as M_MembershipSectionItem } from './MembershipSectionItem';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.M_MembershipSectionItem = void 0;
|
|
7
|
+
var MembershipSectionItem_1 = require("./MembershipSectionItem");
|
|
8
|
+
Object.defineProperty(exports, "M_MembershipSectionItem", { enumerable: true, get: function () { return __importDefault(MembershipSectionItem_1).default; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TypeOfMembershipSectionToneColor } from './type';
|
|
2
|
+
import type { SubscriptionProductType, TypeOfItemToneType, TypeOfProgrammedItemActionButtonTextType } from '../../../DynamicLayout/types';
|
|
3
|
+
export declare const MEMBERSHIP_SECTION_PREVIEW_WIDTH = 375;
|
|
4
|
+
export declare const COMMON_OVERLAY_IMAGE_SRC = "https://static.publ.site/membership_card_deco.png";
|
|
5
|
+
export declare const MEMBERSHIP_SECTION_TONE_COLOR: {
|
|
6
|
+
[key in TypeOfItemToneType]: TypeOfMembershipSectionToneColor;
|
|
7
|
+
};
|
|
8
|
+
export declare const MEMBERSHIP_SECTION_ACTION_BUTTON_TEXT: {
|
|
9
|
+
[key in TypeOfProgrammedItemActionButtonTextType]: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const MEMBERSHIP_SECTION_SUBSCRIPTION_PRODUCT_TYPE_TEXT: {
|
|
12
|
+
[key in SubscriptionProductType]: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MEMBERSHIP_SECTION_SUBSCRIPTION_PRODUCT_TYPE_TEXT = exports.MEMBERSHIP_SECTION_ACTION_BUTTON_TEXT = exports.MEMBERSHIP_SECTION_TONE_COLOR = exports.COMMON_OVERLAY_IMAGE_SRC = exports.MEMBERSHIP_SECTION_PREVIEW_WIDTH = void 0;
|
|
4
|
+
exports.MEMBERSHIP_SECTION_PREVIEW_WIDTH = 375;
|
|
5
|
+
exports.COMMON_OVERLAY_IMAGE_SRC = 'https://static.publ.site/membership_card_deco.png';
|
|
6
|
+
exports.MEMBERSHIP_SECTION_TONE_COLOR = {
|
|
7
|
+
LIGHT: {
|
|
8
|
+
contentBackgroundDimColor: '#F5F5F8CC',
|
|
9
|
+
iconButtonBackgroundColor: '#FFFFFFFF',
|
|
10
|
+
iconButtonBorderColor: '#E3E5E9FF',
|
|
11
|
+
iconButtonDisabledBackgroundColor: '#FFFFFFFF',
|
|
12
|
+
iconButtonDisabledIconColor: '#AAAAB1FF',
|
|
13
|
+
iconButtonIconColor: '#1E1E20FF',
|
|
14
|
+
membershipPlanSheetBackgroundColor: '#EAEBEFFF',
|
|
15
|
+
membershipSheetBackgroundColor: '#F5F5F8FF',
|
|
16
|
+
membershipSheetTextLabelColor: '#1E1E20FF',
|
|
17
|
+
scrollbarColor: '#E3E5E9FF',
|
|
18
|
+
disabledProgrammedItemActionButtonTextColor: '#AAAAB1FF',
|
|
19
|
+
disabledProgrammedItemActionButtonBackgroundColor: '#E3E5E9FF',
|
|
20
|
+
emptyMembershipSheetTextLabelColor: '#68686BFF'
|
|
21
|
+
},
|
|
22
|
+
DARK: {
|
|
23
|
+
contentBackgroundDimColor: '#252526B3',
|
|
24
|
+
iconButtonBackgroundColor: '#1E1E20FF',
|
|
25
|
+
iconButtonBorderColor: '#404042FF',
|
|
26
|
+
iconButtonDisabledBackgroundColor: '#151515FF',
|
|
27
|
+
iconButtonDisabledIconColor: '#68686CFF',
|
|
28
|
+
iconButtonIconColor: '#FDFDFDFF',
|
|
29
|
+
membershipPlanSheetBackgroundColor: '#303032FF',
|
|
30
|
+
membershipSheetBackgroundColor: '#252526FF',
|
|
31
|
+
membershipSheetTextLabelColor: '#FDFDFDFF',
|
|
32
|
+
scrollbarColor: '#404042FF',
|
|
33
|
+
disabledProgrammedItemActionButtonTextColor: '#68686CFF',
|
|
34
|
+
disabledProgrammedItemActionButtonBackgroundColor: '#404042FF',
|
|
35
|
+
emptyMembershipSheetTextLabelColor: '#A5A5ABFF'
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.MEMBERSHIP_SECTION_ACTION_BUTTON_TEXT = {
|
|
39
|
+
A: 'str_5350',
|
|
40
|
+
B: 'str_5351',
|
|
41
|
+
C: 'str_5352',
|
|
42
|
+
D: 'str_5353',
|
|
43
|
+
E: 'str_5354'
|
|
44
|
+
};
|
|
45
|
+
exports.MEMBERSHIP_SECTION_SUBSCRIPTION_PRODUCT_TYPE_TEXT = {
|
|
46
|
+
COUPON_FREE_FINITE: 'str_payment_option_coupon_free_finite',
|
|
47
|
+
COUPON_FREE_INFINITE: 'str_payment_option_coupon_free_infinite',
|
|
48
|
+
COUPON_ONCE_FINITE: 'str_payment_option_coupon_one_time',
|
|
49
|
+
COUPON_ONCE_INFINITE: 'str_payment_option_coupon_one_time',
|
|
50
|
+
FREE_FINITE: 'str_payment_option_subs_temporary_free',
|
|
51
|
+
FREE_INFINITE: 'str_payment_option_unlimited_free',
|
|
52
|
+
ONCE_FINITE: 'str_payment_option_one_time',
|
|
53
|
+
ONCE_INFINITE: 'str_payment_option_one_time',
|
|
54
|
+
SUBSCRIPTION_30DAYS: 'str_payment_option_subs_regularly',
|
|
55
|
+
SUBSCRIPTION_90DAYS: 'str_payment_option_subs_regularly',
|
|
56
|
+
SUBSCRIPTION_180DAYS: 'str_payment_option_subs_regularly',
|
|
57
|
+
SUBSCRIPTION_365DAYS: 'str_payment_option_subs_regularly'
|
|
58
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalTypeMembershipSection = exports.EditTypeMembershipSection = void 0;
|
|
4
|
+
var EditType_1 = require("./EditType");
|
|
5
|
+
Object.defineProperty(exports, "EditTypeMembershipSection", { enumerable: true, get: function () { return EditType_1.EditTypeMembershipSection; } });
|
|
6
|
+
var NormalType_1 = require("./NormalType");
|
|
7
|
+
Object.defineProperty(exports, "NormalTypeMembershipSection", { enumerable: true, get: function () { return NormalType_1.NormalTypeMembershipSection; } });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare type TypeOfMembershipSectionToneColor = {
|
|
2
|
+
[key in colorTonePreset]: string;
|
|
3
|
+
};
|
|
4
|
+
declare type colorTonePreset = 'contentBackgroundDimColor' | 'iconButtonBackgroundColor' | 'iconButtonBorderColor' | 'iconButtonDisabledBackgroundColor' | 'iconButtonDisabledIconColor' | 'iconButtonIconColor' | 'membershipPlanSheetBackgroundColor' | 'membershipSheetBackgroundColor' | 'membershipSheetTextLabelColor' | 'scrollbarColor' | 'disabledProgrammedItemActionButtonTextColor' | 'disabledProgrammedItemActionButtonBackgroundColor' | 'emptyMembershipSheetTextLabelColor';
|
|
5
|
+
export {};
|
|
@@ -3,4 +3,6 @@ export { ContentsSection } from './ContentsSection';
|
|
|
3
3
|
export { FooterSection } from './FooterSection';
|
|
4
4
|
export { InfoBoxSection } from './InfoBoxSection';
|
|
5
5
|
export { IntroSection } from './IntroSection';
|
|
6
|
+
export { EditTypeMembershipSection } from './MembershipSection';
|
|
7
|
+
export { NormalTypeMembershipSection } from './MembershipSection';
|
|
6
8
|
export { FullscreenIframeSection } from './FullscreenIframeSection';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FullscreenIframeSection = exports.IntroSection = exports.InfoBoxSection = exports.FooterSection = exports.ContentsSection = exports.ContentsCarouselSection = void 0;
|
|
3
|
+
exports.FullscreenIframeSection = exports.NormalTypeMembershipSection = exports.EditTypeMembershipSection = exports.IntroSection = exports.InfoBoxSection = exports.FooterSection = exports.ContentsSection = exports.ContentsCarouselSection = void 0;
|
|
4
4
|
var ContentsCarouselSection_1 = require("./ContentsCarouselSection");
|
|
5
5
|
Object.defineProperty(exports, "ContentsCarouselSection", { enumerable: true, get: function () { return ContentsCarouselSection_1.ContentsCarouselSection; } });
|
|
6
6
|
var ContentsSection_1 = require("./ContentsSection");
|
|
@@ -11,5 +11,9 @@ var InfoBoxSection_1 = require("./InfoBoxSection");
|
|
|
11
11
|
Object.defineProperty(exports, "InfoBoxSection", { enumerable: true, get: function () { return InfoBoxSection_1.InfoBoxSection; } });
|
|
12
12
|
var IntroSection_1 = require("./IntroSection");
|
|
13
13
|
Object.defineProperty(exports, "IntroSection", { enumerable: true, get: function () { return IntroSection_1.IntroSection; } });
|
|
14
|
+
var MembershipSection_1 = require("./MembershipSection");
|
|
15
|
+
Object.defineProperty(exports, "EditTypeMembershipSection", { enumerable: true, get: function () { return MembershipSection_1.EditTypeMembershipSection; } });
|
|
16
|
+
var MembershipSection_2 = require("./MembershipSection");
|
|
17
|
+
Object.defineProperty(exports, "NormalTypeMembershipSection", { enumerable: true, get: function () { return MembershipSection_2.NormalTypeMembershipSection; } });
|
|
14
18
|
var FullscreenIframeSection_1 = require("./FullscreenIframeSection");
|
|
15
19
|
Object.defineProperty(exports, "FullscreenIframeSection", { enumerable: true, get: function () { return FullscreenIframeSection_1.FullscreenIframeSection; } });
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { TypeOfSectionAction } from './sectionActionTypes';
|
|
2
3
|
export { TypeOfSectionAction };
|
|
3
|
-
export declare type TypeOfSectionManifestSchema = 'BASE_INTRO' | 'BASE_CONTENTS' | 'BASE_CONTENTS_CAROUSEL' | 'BASE_FOOTER' | 'BASE_INFO_BOX' | 'EXP_IFRAME';
|
|
4
|
-
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' | 'EXP_IFRAME_A';
|
|
4
|
+
export declare type TypeOfSectionManifestSchema = 'BASE_INTRO' | 'BASE_CONTENTS' | 'BASE_CONTENTS_CAROUSEL' | 'BASE_FOOTER' | 'BASE_INFO_BOX' | 'EXP_IFRAME' | 'PRG_MEMBERSHIP_DISPLAY' | 'CUSTOM_SECTION';
|
|
5
|
+
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' | 'EXP_IFRAME_A' | 'PRG_MEMBERSHIP_DISPLAY_A' | 'PRG_MEMBERSHIP_DISPLAY_B' | 'CUSTOM_SECTION_A';
|
|
5
6
|
export declare type TypeOfSectionContentMediaType = 'IMAGE' | 'YOUTUBE';
|
|
6
7
|
export declare type TypeOfSectionLinkType = 'WEB_LINK' | 'INTERNAL_LINK' | 'NONE';
|
|
8
|
+
export declare type TypeOfSectionType = 'PROGRAMMED' | 'DESIGNED' | 'CUSTOM';
|
|
7
9
|
export declare type TypeOfCarouselAutoplayMode = 'AUTO' | 'MANUAL';
|
|
8
10
|
export declare type TypeOfCarouselInfiniteLoopMode = 'USE' | 'NO_USE';
|
|
9
11
|
export declare type TypeOfBackgroundMediaType = 'IMAGE' | 'YOUTUBE';
|
|
@@ -12,8 +14,10 @@ export declare type TypeOfItemButtonDesignType = 'A' | 'B' | 'C' | 'D' | 'E' | '
|
|
|
12
14
|
export declare type TypeOfItemManifestSchema = 'BASE_CONTENTS_CAROUSEL_ITEM' | 'BASE_FOOTER_ITEM' | 'BASE_INFO_BOX_ITEM';
|
|
13
15
|
export declare type TypeOfItemLinkMethod = 'CLICK_ITEM' | 'CLICK_BUTTON_IN_ITEM' | 'NONE';
|
|
14
16
|
export declare type TypeOfItemLinkType = 'WEB_LINK' | 'INTERNAL_LINK' | 'NONE';
|
|
17
|
+
export declare type TypeOfItemToneType = 'LIGHT' | 'DARK';
|
|
18
|
+
export declare type TypeOfProgrammedItemActionButtonTextType = 'A' | 'B' | 'C' | 'D' | 'E';
|
|
15
19
|
declare type KeyOfSectionProperties = 'title' | 'description' | 'section_content_media_type' | 'section_content_media_src' | 'button_alpha_label' | 'button_alpha_link_type' | 'button_alpha_link_src' | 'button_bravo_label' | 'button_bravo_link_type' | 'button_bravo_link_src' | 'button_charlie_label' | 'button_charlie_link_type' | 'button_charlie_link_src' | 'button_delta_label' | 'button_delta_link_type' | 'button_delta_link_src' | 'button_echo_label' | 'button_echo_link_type' | 'button_echo_link_src' | 'carousel_autoplay_mode' | 'carousel_autoplay_time' | 'carousel_infinite_loop_mode' | 'item_link_method' | 'multi_purpose_url';
|
|
16
|
-
declare type KeyOfSectionStyles = 'title_color_in_hex' | 'description_color_in_hex' | 'background_color_in_hex' | 'background_media_type' | 'background_media_src' | 'background_overlay_color_in_hex' | 'button_alpha_design_type' | 'button_alpha_background_color_in_hex' | 'button_alpha_label_color_in_hex' | 'button_bravo_design_type' | 'button_bravo_background_color_in_hex' | 'button_bravo_label_color_in_hex' | 'button_charlie_design_type' | 'button_charlie_background_color_in_hex' | 'button_charlie_label_color_in_hex' | 'button_delta_design_type' | 'button_delta_background_color_in_hex' | 'button_delta_label_color_in_hex' | 'button_echo_design_type' | 'button_echo_background_color_in_hex' | 'button_echo_label_color_in_hex' | 'item_title_color_in_hex' | 'item_description_color_in_hex' | 'item_button_design_type' | 'item_button_background_color_in_hex' | 'item_button_label_color_in_hex';
|
|
20
|
+
declare type KeyOfSectionStyles = 'title_color_in_hex' | 'description_color_in_hex' | 'background_color_in_hex' | 'background_media_type' | 'background_media_src' | 'background_overlay_color_in_hex' | 'button_alpha_design_type' | 'button_alpha_background_color_in_hex' | 'button_alpha_label_color_in_hex' | 'button_bravo_design_type' | 'button_bravo_background_color_in_hex' | 'button_bravo_label_color_in_hex' | 'button_charlie_design_type' | 'button_charlie_background_color_in_hex' | 'button_charlie_label_color_in_hex' | 'button_delta_design_type' | 'button_delta_background_color_in_hex' | 'button_delta_label_color_in_hex' | 'button_echo_design_type' | 'button_echo_background_color_in_hex' | 'button_echo_label_color_in_hex' | 'item_title_color_in_hex' | 'item_description_color_in_hex' | 'item_button_design_type' | 'item_button_background_color_in_hex' | 'item_button_label_color_in_hex' | 'item_highlighting_color_in_hex' | 'item_tone_type' | 'programmed_item_action_button_text_type';
|
|
17
21
|
declare type KeyOfItemProperties = 'title' | 'description' | 'body' | 'logo_image_src' | 'image_src' | 'link_type' | 'link_src' | 'button_label';
|
|
18
22
|
export interface ISection {
|
|
19
23
|
id: number;
|
|
@@ -31,6 +35,35 @@ export interface ISection {
|
|
|
31
35
|
dynamicLayoutSectionItems: Array<IItem> | null;
|
|
32
36
|
insertedAt: string;
|
|
33
37
|
updatedAt: string;
|
|
38
|
+
type: TypeOfSectionType;
|
|
39
|
+
program?: 'MEMBERSHIP_DISPLAY';
|
|
40
|
+
componentBlocks?: any[];
|
|
41
|
+
programData?: {
|
|
42
|
+
mdid: string;
|
|
43
|
+
preview: {
|
|
44
|
+
availableResources: ['REAL.MEMBERSHIP_DISPLAY'];
|
|
45
|
+
resources: {
|
|
46
|
+
mock: Record<string, never>;
|
|
47
|
+
real: {
|
|
48
|
+
membershipDisplay: IMembershipDisplay;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export interface SubscriptionProductInList {
|
|
55
|
+
id: number;
|
|
56
|
+
type: SubscriptionProductType;
|
|
57
|
+
title: string;
|
|
58
|
+
alias: string;
|
|
59
|
+
expiryPeriodInDays: ExpiryPeriodInDaysType;
|
|
60
|
+
isDeactivated: boolean;
|
|
61
|
+
fee: {
|
|
62
|
+
currency: 'KRW' | 'USD';
|
|
63
|
+
amount: string;
|
|
64
|
+
};
|
|
65
|
+
insertedAt: string;
|
|
66
|
+
updatedAt: string;
|
|
34
67
|
}
|
|
35
68
|
export interface ISectionProperties {
|
|
36
69
|
title: string;
|
|
@@ -85,6 +118,9 @@ export interface ISectionStyles {
|
|
|
85
118
|
itemButtonDesignType: TypeOfItemButtonDesignType;
|
|
86
119
|
itemButtonBackgroundColorInHex: string;
|
|
87
120
|
itemButtonLabelColorInHex: string;
|
|
121
|
+
itemHighlightingColorInHex: string;
|
|
122
|
+
itemToneType: TypeOfItemToneType;
|
|
123
|
+
programmedItemActionButtonTextType: TypeOfProgrammedItemActionButtonTextType;
|
|
88
124
|
}
|
|
89
125
|
export interface IItem {
|
|
90
126
|
id: number;
|
|
@@ -99,7 +135,7 @@ export interface IItem {
|
|
|
99
135
|
insertedAt: string;
|
|
100
136
|
updatedAt: string;
|
|
101
137
|
}
|
|
102
|
-
interface IItemProperties {
|
|
138
|
+
export interface IItemProperties {
|
|
103
139
|
title: string;
|
|
104
140
|
description: string;
|
|
105
141
|
body: string;
|
|
@@ -178,4 +214,71 @@ export declare type DynamicLayoutProps = {
|
|
|
178
214
|
navigationHandler?: (linkType: 'WEB_LINK' | 'INTERNAL_LINK' | 'NONE', src: string) => void;
|
|
179
215
|
onClickEditSection?: (section: ISection) => void;
|
|
180
216
|
sectionActionHandler?: (action: TypeOfSectionAction) => void;
|
|
217
|
+
programmedSectionComponents?: IProgrammedSectionComponents;
|
|
218
|
+
};
|
|
219
|
+
export declare type SubscriptionProductType = 'FREE_INFINITE' | 'FREE_FINITE' | 'ONCE_INFINITE' | 'ONCE_FINITE' | 'COUPON_FREE_INFINITE' | 'COUPON_FREE_FINITE' | 'COUPON_ONCE_INFINITE' | 'COUPON_ONCE_FINITE' | 'SUBSCRIPTION_30DAYS' | 'SUBSCRIPTION_90DAYS' | 'SUBSCRIPTION_180DAYS' | 'SUBSCRIPTION_365DAYS';
|
|
220
|
+
declare type ExpiryPeriodInDaysType = 1 | 3 | 7 | 14 | 30;
|
|
221
|
+
export declare type IMembershipCardTemplate = {
|
|
222
|
+
backgroundImageSrc: string;
|
|
223
|
+
logoImageSrc: string;
|
|
224
|
+
overlayType: 'NONE' | 'SOLID' | 'GRADIENT';
|
|
225
|
+
overlayColorPrimary: string;
|
|
226
|
+
overlayColorSecondary: string;
|
|
227
|
+
designSchema: 'A' | 'B' | 'C';
|
|
228
|
+
};
|
|
229
|
+
export declare type IMembershipBenefitInfo = {
|
|
230
|
+
benefitAlpha?: string;
|
|
231
|
+
benefitBravo?: string;
|
|
232
|
+
benefitCharlie?: string;
|
|
233
|
+
benefitDelta?: string;
|
|
234
|
+
benefitEcho?: string;
|
|
235
|
+
};
|
|
236
|
+
export declare type IConnectedSubscriptionProducts = {
|
|
237
|
+
id: number;
|
|
238
|
+
order: number;
|
|
239
|
+
connectedMembershipId: number;
|
|
240
|
+
subscriptionProductId: number;
|
|
241
|
+
subscriptionProduct: {
|
|
242
|
+
id: number;
|
|
243
|
+
type: SubscriptionProductType;
|
|
244
|
+
title: string;
|
|
245
|
+
alias: string;
|
|
246
|
+
expiryPeriodInDays: ExpiryPeriodInDaysType;
|
|
247
|
+
isDeactivated: boolean;
|
|
248
|
+
fee: {
|
|
249
|
+
currency: 'KRW' | 'USD';
|
|
250
|
+
amount: string | number;
|
|
251
|
+
};
|
|
252
|
+
insertedAt: string;
|
|
253
|
+
updatedAt: string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
export declare type IMembership = {
|
|
257
|
+
id: number;
|
|
258
|
+
type: 'SYSTEM_GUEST' | 'SYSTEM_MEMBER' | 'SYSTEM_P_APP_UNLOCK' | 'GENERAL';
|
|
259
|
+
mid: string;
|
|
260
|
+
title: string;
|
|
261
|
+
insertedAt: string;
|
|
262
|
+
updatedAt: string;
|
|
263
|
+
membershipCardTemplate: IMembershipCardTemplate;
|
|
264
|
+
membershipBenefitInfo: IMembershipBenefitInfo;
|
|
265
|
+
totalSubscriptionProducts: number;
|
|
266
|
+
};
|
|
267
|
+
export declare type IConnectedMembership = {
|
|
268
|
+
id: number;
|
|
269
|
+
order: number;
|
|
270
|
+
mdid: string;
|
|
271
|
+
mid: string;
|
|
272
|
+
membership: IMembership;
|
|
273
|
+
connectedSubscriptionProducts: IConnectedSubscriptionProducts[];
|
|
274
|
+
};
|
|
275
|
+
export declare type IProgrammedSectionComponents = {
|
|
276
|
+
[key in TypeOfSectionManifestSchema]?: JSX.Element;
|
|
277
|
+
};
|
|
278
|
+
export declare type IMembershipDisplay = {
|
|
279
|
+
id: number;
|
|
280
|
+
mdid: string;
|
|
281
|
+
title: string;
|
|
282
|
+
isDefault: boolean;
|
|
283
|
+
connectedMemberships: IConnectedMembership[];
|
|
181
284
|
};
|