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
|
@@ -46,15 +46,18 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
49
|
+
/* eslint-disable better-styled-components/sort-declarations-alphabetically */
|
|
49
50
|
/* eslint-disable react/jsx-no-bind */
|
|
50
51
|
var react_1 = require("react");
|
|
51
52
|
var react_hook_form_1 = require("react-hook-form");
|
|
53
|
+
var components_1 = require("../../../../hybrid/components");
|
|
52
54
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
53
55
|
var common_1 = require("../../../../common");
|
|
54
56
|
var IconButton_1 = require("../../../components/IconButton");
|
|
57
|
+
var constants_1 = require("./constants");
|
|
55
58
|
function TextFieldBase(_a) {
|
|
56
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, validation = _a.validation, _c = _a.preventBlankMode, preventBlankMode = _c === void 0 ? 'none' : _c, _d = _a.enterSubmitMode, enterSubmitMode = _d === void 0 ? 'none' : _d, _e = _a.textLineType, textLineType = _e === void 0 ? 'single' : _e, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _f = _a.inputType, inputType = _f === void 0 ? 'text' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, min = _a.min, max = _a.max, _j = _a.maxLength, maxLength = _j === void 0 ? Infinity : _j, _k = _a.textSize, textSize = _k === void 0 ? 'form2' : _k, _l = _a.textWeight, textWeight = _l === void 0 ? 'normal' : _l, textPadding = _a.textPadding, _m = _a.fieldHeight, fieldHeight = _m === void 0 ? 48 : _m, _o = _a.deleteIconMode, deleteIconMode = _o === void 0 ? 'use' : _o, _p = _a.deleteIconSize, deleteIconSize = _p === void 0 ? 20 : _p, _q = _a.deleteIconColor, deleteIconColor = _q === void 0 ? 'ui_cpnt_button_icon_disabled' : _q, isFocused = _a.isFocused, _r = _a.autoComplete, autoComplete = _r === void 0 ? 'on' : _r, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, inputRef = _a.inputRef, rest = __rest(_a, ["name", "hintText", "defaultText", "textAlign", "validation", "preventBlankMode", "enterSubmitMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "isFocused", "autoComplete", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget", "inputRef"]);
|
|
57
|
-
var
|
|
59
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, validation = _a.validation, _c = _a.preventBlankMode, preventBlankMode = _c === void 0 ? 'none' : _c, _d = _a.enterSubmitMode, enterSubmitMode = _d === void 0 ? 'none' : _d, _e = _a.textLineType, textLineType = _e === void 0 ? 'single' : _e, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _f = _a.inputType, inputType = _f === void 0 ? 'text' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, min = _a.min, max = _a.max, _j = _a.maxLength, maxLength = _j === void 0 ? Infinity : _j, _k = _a.textSize, textSize = _k === void 0 ? 'form2' : _k, _l = _a.textWeight, textWeight = _l === void 0 ? 'normal' : _l, textPadding = _a.textPadding, _m = _a.fieldHeight, fieldHeight = _m === void 0 ? 48 : _m, _o = _a.deleteIconMode, deleteIconMode = _o === void 0 ? 'use' : _o, _p = _a.deleteIconSize, deleteIconSize = _p === void 0 ? 20 : _p, _q = _a.deleteIconColor, deleteIconColor = _q === void 0 ? 'ui_cpnt_button_icon_disabled' : _q, isFocused = _a.isFocused, _r = _a.autoComplete, autoComplete = _r === void 0 ? 'on' : _r, _s = _a.stepperMode, stepperMode = _s === void 0 ? 'none' : _s, innerSpinButtonSize = _a.innerSpinButtonSize, step = _a.step, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, inputRef = _a.inputRef, rest = __rest(_a, ["name", "hintText", "defaultText", "textAlign", "validation", "preventBlankMode", "enterSubmitMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "isFocused", "autoComplete", "stepperMode", "innerSpinButtonSize", "step", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget", "inputRef"]);
|
|
60
|
+
var _t = (0, react_hook_form_1.useFormContext)(), register = _t.register, setValue = _t.setValue, getValues = _t.getValues, clearErrors = _t.clearErrors;
|
|
58
61
|
var timeout;
|
|
59
62
|
(0, react_1.useEffect)(function () {
|
|
60
63
|
return function () { return clearTimeout(timeout); };
|
|
@@ -116,7 +119,7 @@ function TextFieldBase(_a) {
|
|
|
116
119
|
}
|
|
117
120
|
}
|
|
118
121
|
var textAreaRef = (0, react_1.useRef)(null);
|
|
119
|
-
var
|
|
122
|
+
var _u = register(name, validation), ref = _u.ref, refRest = __rest(_u, ["ref"]);
|
|
120
123
|
(0, react_1.useEffect)(function () {
|
|
121
124
|
if (textAreaRef === null || textAreaRef.current === null) {
|
|
122
125
|
return;
|
|
@@ -177,12 +180,12 @@ function TextFieldBase(_a) {
|
|
|
177
180
|
}
|
|
178
181
|
var S_TextFieldBase = function () {
|
|
179
182
|
if (textLineType === 'single') {
|
|
180
|
-
return ((0, jsx_runtime_1.jsxs)(S_InputWrapper, { children: [(0, jsx_runtime_1.jsx)(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
183
|
+
return ((0, jsx_runtime_1.jsxs)(S_InputWrapper, { children: [(0, jsx_runtime_1.jsx)(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, autoComplete: autoComplete, stepperMode: stepperMode, innerSpinButtonSize: innerSpinButtonSize, step: step, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
181
184
|
ref(e);
|
|
182
185
|
if (inputRef) {
|
|
183
186
|
inputRef.current = e;
|
|
184
187
|
}
|
|
185
|
-
} }), void 0), deleteIconMode === 'use' && isFocused && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: deleteValue }, void 0))] }, void 0));
|
|
188
|
+
} }), void 0), stepperMode === 'use' && ((0, jsx_runtime_1.jsxs)(S_IconBox, __assign({ innerSpinButtonSize: innerSpinButtonSize }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_up", fillType: "fill", size: innerSpinButtonSize }, void 0), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_down", fillType: "fill", size: innerSpinButtonSize }, void 0)] }), void 0)), deleteIconMode === 'use' && isFocused && stepperMode === 'none' && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: deleteValue }, void 0))] }, void 0));
|
|
186
189
|
}
|
|
187
190
|
if (textLineType === 'multi') {
|
|
188
191
|
return ((0, jsx_runtime_1.jsx)(S_Multi, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, rows: multiRows, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
@@ -206,7 +209,7 @@ function TextFieldBase(_a) {
|
|
|
206
209
|
};
|
|
207
210
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: S_TextFieldBase() }, void 0);
|
|
208
211
|
}
|
|
209
|
-
var S_InputWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n width: 100%;\n"])));
|
|
212
|
+
var S_InputWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n position: relative;\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n position: relative;\n width: 100%;\n"])));
|
|
210
213
|
var read_only = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
211
214
|
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
212
215
|
return colorTheme &&
|
|
@@ -225,7 +228,7 @@ var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_
|
|
|
225
228
|
transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_disabled
|
|
226
229
|
}[colorTheme];
|
|
227
230
|
});
|
|
228
|
-
var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n
|
|
231
|
+
var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n cursor: ", ";\n display: inline-flex;\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n justify-content: center;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n text-align: ", ";\n width: 100%;\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"], ["\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n cursor: ", ";\n display: inline-flex;\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n justify-content: center;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n text-align: ", ";\n width: 100%;\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"])), function (_a) {
|
|
229
232
|
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
230
233
|
return colorTheme &&
|
|
231
234
|
{
|
|
@@ -277,11 +280,33 @@ var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObjec
|
|
|
277
280
|
var textPadding = _a.textPadding;
|
|
278
281
|
return textPadding && "padding: " + textPadding + ";";
|
|
279
282
|
});
|
|
280
|
-
var
|
|
283
|
+
var inputInnerSpinButtonStyle = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n -webkit-appearance: none;\n cursor: pointer;\n height: ", ";\n margin-left: ", ";\n opacity: 1;\n width: ", ";\n"], ["\n -webkit-appearance: none;\n cursor: pointer;\n height: ", ";\n margin-left: ", ";\n opacity: 1;\n width: ", ";\n"])), function (_a) {
|
|
284
|
+
var innerSpinButtonSize = _a.innerSpinButtonSize;
|
|
285
|
+
return innerSpinButtonSize && innerSpinButtonSize * 2 + "px";
|
|
286
|
+
}, function (_a) {
|
|
287
|
+
var theme = _a.theme;
|
|
288
|
+
return theme.spacing.spacingB;
|
|
289
|
+
}, function (_a) {
|
|
290
|
+
var innerSpinButtonSize = _a.innerSpinButtonSize;
|
|
291
|
+
return innerSpinButtonSize && innerSpinButtonSize + "px";
|
|
292
|
+
});
|
|
293
|
+
var S_Input = styled_components_1.default.input(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n flex: 1;\n line-height: ", ";\n z-index: 20;\n\n ::-webkit-inner-spin-button {\n ", "\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"], ["\n ", "\n flex: 1;\n line-height: ", ";\n z-index: 20;\n\n ::-webkit-inner-spin-button {\n ", "\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), basicStyle, function (_a) {
|
|
281
294
|
var theme = _a.theme;
|
|
282
295
|
return theme.desktopLineHeight.singleLine;
|
|
296
|
+
}, function (_a) {
|
|
297
|
+
var stepperMode = _a.stepperMode, type = _a.type;
|
|
298
|
+
return stepperMode === 'use' && type === 'number'
|
|
299
|
+
? inputInnerSpinButtonStyle
|
|
300
|
+
: '-webkit-appearance: none; margin: 0;';
|
|
301
|
+
});
|
|
302
|
+
var S_IconBox = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-direction: column;\n height: ", ";\n justify-content: center;\n position: absolute;\n right: ", "px;\n width: ", ";\n z-index: 1;\n"], ["\n align-items: center;\n display: flex;\n flex-direction: column;\n height: ", ";\n justify-content: center;\n position: absolute;\n right: ", "px;\n width: ", ";\n z-index: 1;\n"])), function (_a) {
|
|
303
|
+
var innerSpinButtonSize = _a.innerSpinButtonSize;
|
|
304
|
+
return innerSpinButtonSize && innerSpinButtonSize * 2 + "px";
|
|
305
|
+
}, constants_1.PIXEL_FOR_ICONS_CENTER, function (_a) {
|
|
306
|
+
var innerSpinButtonSize = _a.innerSpinButtonSize;
|
|
307
|
+
return innerSpinButtonSize && innerSpinButtonSize + "px";
|
|
283
308
|
});
|
|
284
|
-
var S_Auto = styled_components_1.default.textarea(
|
|
309
|
+
var S_Auto = styled_components_1.default.textarea(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n ", "\n ", ";\n"], ["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n ", "\n ", ";\n"])), basicStyle, function (_a) {
|
|
285
310
|
var autoMaxRows = _a.autoMaxRows, textSize = _a.textSize, fieldHeight = _a.fieldHeight;
|
|
286
311
|
return autoMaxRows &&
|
|
287
312
|
fieldHeight &&
|
|
@@ -296,6 +321,6 @@ var S_Auto = styled_components_1.default.textarea(templateObject_6 || (templateO
|
|
|
296
321
|
Number(common_1.desktopLineHeight[textSize]) *
|
|
297
322
|
autoMinRows + "px;";
|
|
298
323
|
});
|
|
299
|
-
var S_Multi = styled_components_1.default.textarea(
|
|
324
|
+
var S_Multi = styled_components_1.default.textarea(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n"], ["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n"])), basicStyle);
|
|
300
325
|
exports.default = TextFieldBase;
|
|
301
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
326
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PIXEL_FOR_ICONS_CENTER = 1;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FillIconNameKeys, LineIconNameKeys, UiColors } from '../../../common';
|
|
2
|
+
import type { FillIconNameKeys, LineIconNameKeys, PDSTextType, UiColors } from '../../../common';
|
|
3
3
|
export declare type IconButtonProps = {
|
|
4
|
+
tooltipText?: PDSTextType;
|
|
5
|
+
tooltipPosition?: 'left_top' | 'left_bottom' | 'center_top' | 'center_bottom' | 'right_top' | 'right_bottom';
|
|
4
6
|
fillType?: 'fill' | 'line';
|
|
5
7
|
shapeType?: 'circular' | 'rectangle';
|
|
6
8
|
baseSize?: 'xxlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
@@ -18,5 +20,5 @@ export declare type IconButtonProps = {
|
|
|
18
20
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
21
|
onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
20
22
|
};
|
|
21
|
-
declare function IconButton({ fillType, shapeType, baseSize, baseColorKey, borderColorKey, iconSize, iconFillType, iconName, iconColorKey, shadow, colorTheme, type, state, tabIndex, onClick, onMouseDown }: IconButtonProps): JSX.Element;
|
|
23
|
+
declare function IconButton({ tooltipText, tooltipPosition, fillType, shapeType, baseSize, baseColorKey, borderColorKey, iconSize, iconFillType, iconName, iconColorKey, shadow, colorTheme, type, state, tabIndex, onClick, onMouseDown }: IconButtonProps): JSX.Element;
|
|
22
24
|
export default IconButton;
|
|
@@ -35,11 +35,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
35
35
|
};
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
|
+
var react_1 = require("react");
|
|
38
39
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
39
40
|
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
40
41
|
var hybrid_1 = require("../../../hybrid");
|
|
42
|
+
var TextLabel_1 = require("../TextLabel");
|
|
43
|
+
var constants_1 = require("./constants");
|
|
41
44
|
function IconButton(_a) {
|
|
42
|
-
var _b = _a.
|
|
45
|
+
var tooltipText = _a.tooltipText, _b = _a.tooltipPosition, tooltipPosition = _b === void 0 ? 'center_bottom' : _b, _c = _a.fillType, fillType = _c === void 0 ? 'fill' : _c, _d = _a.shapeType, shapeType = _d === void 0 ? 'rectangle' : _d, _e = _a.baseSize, baseSize = _e === void 0 ? 'small' : _e, baseColorKey = _a.baseColorKey, borderColorKey = _a.borderColorKey, _f = _a.iconSize, iconSize = _f === void 0 ? 24 : _f, _g = _a.iconFillType, iconFillType = _g === void 0 ? 'line' : _g, iconName = _a.iconName, iconColorKey = _a.iconColorKey, _h = _a.shadow, shadow = _h === void 0 ? 'hidden' : _h, _j = _a.colorTheme, colorTheme = _j === void 0 ? 'none' : _j, _k = _a.type, type = _k === void 0 ? 'button' : _k, _l = _a.state, state = _l === void 0 ? 'normal' : _l, tabIndex = _a.tabIndex, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
46
|
+
var _m = (0, react_1.useState)(false), isTooltipOpen = _m[0], setIsTooltipOpen = _m[1];
|
|
47
|
+
var handleTooltipToggle = function (value) {
|
|
48
|
+
setIsTooltipOpen(value);
|
|
49
|
+
};
|
|
43
50
|
var handleClick = function (e) {
|
|
44
51
|
if (onClick) {
|
|
45
52
|
onClick(e);
|
|
@@ -73,7 +80,7 @@ function IconButton(_a) {
|
|
|
73
80
|
}
|
|
74
81
|
return iconStateColorObj[fillType];
|
|
75
82
|
};
|
|
76
|
-
return ((0, jsx_runtime_1.
|
|
83
|
+
return ((0, jsx_runtime_1.jsxs)(S_IconButton, __assign({ "x-pds-name": "IconButton", "x-pds-element-type": "component", "x-pds-device-type": "desktop", fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', tabIndex: tabIndex, onClick: handleClick, onMouseDown: handleMouseDown, onMouseEnter: function () { return tooltipText && handleTooltipToggle(true); }, onMouseLeave: function () { return tooltipText && handleTooltipToggle(false); } }, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Icon, { iconName: iconName, size: iconSize, colorKey: IconColorSelect(), fillType: iconFillType }, void 0), tooltipText && isTooltipOpen && ((0, jsx_runtime_1.jsx)(S_TooltipWrapper, __assign({ className: "TooltipWrapper", isTooltipOpen: isTooltipOpen, tooltipPosition: tooltipPosition, baseSize: baseSize }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: tooltipText, colorOverride: "ui_cpnt_textlabel_button_tooltip", styleTheme: "caption2Regular", colorTheme: "sysTextSecondary" }, void 0) }), void 0))] }), void 0));
|
|
77
84
|
}
|
|
78
85
|
var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
79
86
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
@@ -81,7 +88,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
81
88
|
? ''
|
|
82
89
|
: theme.ui_cpnt_button_fill_base_disabled;
|
|
83
90
|
});
|
|
84
|
-
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n
|
|
91
|
+
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n background-color: transparent;\n border-radius: inherit;\n content: '';\n height: 100%;\n position: absolute;\n width: 100%;\n ", "\n }\n\n &:hover:enabled::before {\n background-color: ", ";\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n background-color: transparent;\n border-radius: inherit;\n content: '';\n height: 100%;\n position: absolute;\n width: 100%;\n ", "\n }\n\n &:hover:enabled::before {\n background-color: ", ";\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
85
92
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
86
93
|
return baseColorKey ? theme[baseColorKey] : theme.ui_cpnt_button_fill_base_primary;
|
|
87
94
|
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
@@ -172,5 +179,46 @@ var iconButtonStyle = (0, styled_components_1.css)(templateObject_12 || (templat
|
|
|
172
179
|
}[baseSize];
|
|
173
180
|
});
|
|
174
181
|
var S_IconButton = styled_components_1.default.button(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), iconButtonStyle);
|
|
182
|
+
var tooltipPositionSpacing = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
183
|
+
var baseSize = _a.baseSize;
|
|
184
|
+
return baseSize &&
|
|
185
|
+
{
|
|
186
|
+
xxlarge: constants_1.TOOLTIP_POSITION_SPACING.xxlarge,
|
|
187
|
+
large: constants_1.TOOLTIP_POSITION_SPACING.large,
|
|
188
|
+
medium: constants_1.TOOLTIP_POSITION_SPACING.medium,
|
|
189
|
+
small: constants_1.TOOLTIP_POSITION_SPACING.small,
|
|
190
|
+
xsmall: constants_1.TOOLTIP_POSITION_SPACING.xsmall
|
|
191
|
+
}[baseSize];
|
|
192
|
+
});
|
|
193
|
+
var tooltipLeftTop = (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n bottom: ", ";\n right: 0;\n"], ["\n bottom: ", ";\n right: 0;\n"])), tooltipPositionSpacing);
|
|
194
|
+
var tooltipLeftBottom = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n right: 0;\n top: ", ";\n"], ["\n right: 0;\n top: ", ";\n"])), tooltipPositionSpacing);
|
|
195
|
+
var tooltipCenterTop = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n bottom: ", ";\n"], ["\n bottom: ", ";\n"])), tooltipPositionSpacing);
|
|
196
|
+
var tooltipCenterBottom = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n top: ", ";\n"], ["\n top: ", ";\n"])), tooltipPositionSpacing);
|
|
197
|
+
var tooltipRightTop = (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n bottom: ", ";\n left: 0;\n"], ["\n bottom: ", ";\n left: 0;\n"])), tooltipPositionSpacing);
|
|
198
|
+
var tooltipRightBottom = (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n left: 0;\n top: ", ";\n"], ["\n left: 0;\n top: ", ";\n"])), tooltipPositionSpacing);
|
|
199
|
+
var S_TooltipWrapper = styled_components_1.default.div(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding: ", ";\n position: absolute;\n width: max-content;\n z-index: 400;\n\n ", ";\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding: ", ";\n position: absolute;\n width: max-content;\n z-index: 400;\n\n ", ";\n\n ", "\n"])), function (_a) {
|
|
200
|
+
var theme = _a.theme;
|
|
201
|
+
return theme.ui_cpnt_button_tooltip_base;
|
|
202
|
+
}, function (_a) {
|
|
203
|
+
var theme = _a.theme;
|
|
204
|
+
return theme.spacing.spacingA;
|
|
205
|
+
}, function (_a) {
|
|
206
|
+
var theme = _a.theme;
|
|
207
|
+
return theme.spacing.spacingA + " " + theme.spacing.spacingB;
|
|
208
|
+
}, function (_a) {
|
|
209
|
+
var isTooltipOpen = _a.isTooltipOpen;
|
|
210
|
+
return !isTooltipOpen && 'display: none';
|
|
211
|
+
}, function (_a) {
|
|
212
|
+
var tooltipPosition = _a.tooltipPosition;
|
|
213
|
+
return tooltipPosition &&
|
|
214
|
+
{
|
|
215
|
+
left_top: tooltipLeftTop,
|
|
216
|
+
left_bottom: tooltipLeftBottom,
|
|
217
|
+
center_top: tooltipCenterTop,
|
|
218
|
+
center_bottom: tooltipCenterBottom,
|
|
219
|
+
right_top: tooltipRightTop,
|
|
220
|
+
right_bottom: tooltipRightBottom
|
|
221
|
+
}[tooltipPosition];
|
|
222
|
+
});
|
|
175
223
|
exports.default = IconButton;
|
|
176
|
-
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;
|
|
224
|
+
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, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const ICON_BUTTON_SIZE: {
|
|
2
|
+
xxlarge: number;
|
|
3
|
+
large: number;
|
|
4
|
+
medium: number;
|
|
5
|
+
small: number;
|
|
6
|
+
xsmall: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const ICON_BUTTON_TOOLTIP_SPACING = 8;
|
|
9
|
+
export declare const TOOLTIP_POSITION_SPACING: {
|
|
10
|
+
xxlarge: string;
|
|
11
|
+
large: string;
|
|
12
|
+
medium: string;
|
|
13
|
+
small: string;
|
|
14
|
+
xsmall: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOOLTIP_POSITION_SPACING = exports.ICON_BUTTON_TOOLTIP_SPACING = exports.ICON_BUTTON_SIZE = void 0;
|
|
4
|
+
exports.ICON_BUTTON_SIZE = {
|
|
5
|
+
xxlarge: 96,
|
|
6
|
+
large: 48,
|
|
7
|
+
medium: 40,
|
|
8
|
+
small: 32,
|
|
9
|
+
xsmall: 24
|
|
10
|
+
};
|
|
11
|
+
exports.ICON_BUTTON_TOOLTIP_SPACING = 8;
|
|
12
|
+
// NOTE - iconSize 크기에 따라 위치를 이동시켜주고, iconButtonSize에 간격까지 8px을 추가해준 값입니다.(IconButton과 tooltip의 간격)
|
|
13
|
+
exports.TOOLTIP_POSITION_SPACING = {
|
|
14
|
+
xxlarge: "calc(" + exports.ICON_BUTTON_SIZE.xxlarge + "px + " + exports.ICON_BUTTON_TOOLTIP_SPACING + "px)",
|
|
15
|
+
large: "calc(" + exports.ICON_BUTTON_SIZE.large + "px + " + exports.ICON_BUTTON_TOOLTIP_SPACING + "px)",
|
|
16
|
+
medium: "calc(" + exports.ICON_BUTTON_SIZE.medium + "px + " + exports.ICON_BUTTON_TOOLTIP_SPACING + "px)",
|
|
17
|
+
small: "calc(" + exports.ICON_BUTTON_SIZE.small + "px + " + exports.ICON_BUTTON_TOOLTIP_SPACING + "px)",
|
|
18
|
+
xsmall: "calc(" + exports.ICON_BUTTON_SIZE.xsmall + "px + " + exports.ICON_BUTTON_TOOLTIP_SPACING + "px)"
|
|
19
|
+
};
|
|
@@ -32,6 +32,8 @@ export declare type TextFieldProps = {
|
|
|
32
32
|
min?: number;
|
|
33
33
|
customWidth?: string;
|
|
34
34
|
autoComplete?: string;
|
|
35
|
+
numberStepperMode?: 'none' | 'use';
|
|
36
|
+
numberStep?: number;
|
|
35
37
|
onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
36
38
|
onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
37
39
|
onClickIBtn1?: () => void;
|
|
@@ -41,5 +43,5 @@ export declare type TextFieldProps = {
|
|
|
41
43
|
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
42
44
|
onTarget?: () => void;
|
|
43
45
|
};
|
|
44
|
-
declare function TextField({ name, hintText, defaultText, textAlign, prefixText, suffixText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, customWidth, autoComplete, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onKeyDown, onTarget }: TextFieldProps): JSX.Element;
|
|
46
|
+
declare function TextField({ name, hintText, defaultText, textAlign, prefixText, suffixText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, customWidth, autoComplete, numberStepperMode, numberStep, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onKeyDown, onTarget }: TextFieldProps): JSX.Element;
|
|
45
47
|
export default TextField;
|
|
@@ -46,7 +46,7 @@ var IconButton_1 = require("../IconButton");
|
|
|
46
46
|
var TextLabel_1 = require("../TextLabel");
|
|
47
47
|
function TextField(_a) {
|
|
48
48
|
var _b;
|
|
49
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _c = _a.textAlign, textAlign = _c === void 0 ? 'left' : _c, prefixText = _a.prefixText, suffixText = _a.suffixText, validation = _a.validation, _d = _a.validationPoint, validationPoint = _d === void 0 ? 'onBlur' : _d, _e = _a.preventBlankMode, preventBlankMode = _e === void 0 ? 'none' : _e, _f = _a.enterSubmitMode, enterSubmitMode = _f === void 0 ? 'none' : _f, _g = _a.size, size = _g === void 0 ? 'large' : _g, _h = _a.responsiveMode, responsiveMode = _h === void 0 ? 'none' : _h, _j = _a.textLineType, textLineType = _j === void 0 ? 'single' : _j, _k = _a.multiRows, multiRows = _k === void 0 ? 8 : _k, _l = _a.autoMinRows, autoMinRows = _l === void 0 ? 8 : _l, autoMaxRows = _a.autoMaxRows, _m = _a.inputType, inputType = _m === void 0 ? 'text' : _m, _o = _a.state, state = _o === void 0 ? 'normal' : _o, iBtn1IconName = _a.iBtn1IconName, _p = _a.iBtn1IconFillType, iBtn1IconFillType = _p === void 0 ? 'line' : _p, iBtn2IconName = _a.iBtn2IconName, _q = _a.iBtn2IconFillType, iBtn2IconFillType = _q === void 0 ? 'line' : _q, _r = _a.colorTheme, colorTheme = _r === void 0 ? 'none' : _r, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, _s = _a.autoComplete, autoComplete = _s === void 0 ? 'on' : _s, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onKeyDown = _a.onKeyDown, onTarget = _a.onTarget;
|
|
49
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _c = _a.textAlign, textAlign = _c === void 0 ? 'left' : _c, prefixText = _a.prefixText, suffixText = _a.suffixText, validation = _a.validation, _d = _a.validationPoint, validationPoint = _d === void 0 ? 'onBlur' : _d, _e = _a.preventBlankMode, preventBlankMode = _e === void 0 ? 'none' : _e, _f = _a.enterSubmitMode, enterSubmitMode = _f === void 0 ? 'none' : _f, _g = _a.size, size = _g === void 0 ? 'large' : _g, _h = _a.responsiveMode, responsiveMode = _h === void 0 ? 'none' : _h, _j = _a.textLineType, textLineType = _j === void 0 ? 'single' : _j, _k = _a.multiRows, multiRows = _k === void 0 ? 8 : _k, _l = _a.autoMinRows, autoMinRows = _l === void 0 ? 8 : _l, autoMaxRows = _a.autoMaxRows, _m = _a.inputType, inputType = _m === void 0 ? 'text' : _m, _o = _a.state, state = _o === void 0 ? 'normal' : _o, iBtn1IconName = _a.iBtn1IconName, _p = _a.iBtn1IconFillType, iBtn1IconFillType = _p === void 0 ? 'line' : _p, iBtn2IconName = _a.iBtn2IconName, _q = _a.iBtn2IconFillType, iBtn2IconFillType = _q === void 0 ? 'line' : _q, _r = _a.colorTheme, colorTheme = _r === void 0 ? 'none' : _r, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, _s = _a.autoComplete, autoComplete = _s === void 0 ? 'on' : _s, _t = _a.numberStepperMode, numberStepperMode = _t === void 0 ? 'none' : _t, numberStep = _a.numberStep, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onKeyDown = _a.onKeyDown, onTarget = _a.onTarget;
|
|
50
50
|
var basicThemeIconColors = {
|
|
51
51
|
normal: 'ui_cpnt_button_icon_default',
|
|
52
52
|
read_only: 'ui_cpnt_button_icon_default',
|
|
@@ -62,9 +62,9 @@ function TextField(_a) {
|
|
|
62
62
|
read_only: 'ui_cpnt_textfield_icon_colortheme_transparent_readonly',
|
|
63
63
|
disabled: 'ui_cpnt_textfield_icon_colortheme_transparent_disabled'
|
|
64
64
|
};
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
var
|
|
65
|
+
var _u = (0, react_1.useState)(false), isFocused = _u[0], setIsFocused = _u[1];
|
|
66
|
+
var _v = (0, react_hook_form_1.useFormContext)(), register = _v.register, trigger = _v.trigger, errors = _v.formState.errors;
|
|
67
|
+
var _w = register(name, validation), validateOnChange = _w.onChange, validateOnBlur = _w.onBlur;
|
|
68
68
|
var isError = Object.keys(errors).some(function (error) { return error === name; });
|
|
69
69
|
var handleClickIBtn1 = function () {
|
|
70
70
|
if (onClickIBtn1) {
|
|
@@ -136,7 +136,7 @@ function TextField(_a) {
|
|
|
136
136
|
break;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [prefixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: prefixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", singleLineMode: "use" }, void 0), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)] }, void 0)), (0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: textAlign, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isFocused, autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }, void 0), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [suffixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: suffixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", textAlign: "right", singleLineMode: "use" }, void 0), size === 'large' ? ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)) : ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }, void 0))] }, void 0)), iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn2IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: colorTheme &&
|
|
139
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [prefixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: prefixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", singleLineMode: "use" }, void 0), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)] }, void 0)), (0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: inputType === 'number' && numberStepperMode === 'use' ? 'right' : textAlign, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isFocused, autoComplete: autoComplete, stepperMode: inputType === 'number' && numberStepperMode === 'use' ? 'use' : 'none', innerSpinButtonSize: size === 'small' ? 12 : 16, step: numberStep, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }, void 0), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [suffixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: suffixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", textAlign: "right", singleLineMode: "use" }, void 0), size === 'large' ? ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)) : ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }, void 0))] }, void 0)), iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn2IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: colorTheme &&
|
|
140
140
|
{
|
|
141
141
|
none: basicThemeIconColors[state],
|
|
142
142
|
dark: darkThemeIconColors[state],
|
package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/ContentsContainer.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { UiColors } from '../../../../../common';
|
|
|
3
3
|
export declare type ContentsContainerProps = {
|
|
4
4
|
content1?: JSX.Element;
|
|
5
5
|
content2?: JSX.Element;
|
|
6
|
-
layoutType: 'WSA_1' | 'WSB_1' | 'WSB_2' | 'WSC_1' | 'WSD_1' | 'WSE_1' | 'WSF_1' | 'WSF_2' | 'WSF_3' | 'WSF_4' | 'WSF_5' | 'WSF_6' | 'WSF_7' | 'WSG_1' | 'WSG_2' | 'WSG_3' | 'WSG_4' | 'WSG_5' | 'WSH_1';
|
|
6
|
+
layoutType: 'WSA_1' | 'WSB_1' | 'WSB_2' | 'WSC_1' | 'WSD_1' | 'WSE_1' | 'WSF_1' | 'WSF_2' | 'WSF_3' | 'WSF_4' | 'WSF_5' | 'WSF_6' | 'WSF_7' | 'WSG_1' | 'WSG_2' | 'WSG_3' | 'WSG_4' | 'WSG_5' | 'WSH_1' | 'WSI_1';
|
|
7
7
|
containerColor?: string;
|
|
8
8
|
areaColor?: string;
|
|
9
9
|
isLoadingContainer1?: boolean;
|
|
@@ -23,7 +23,8 @@ var ContentsContainer = function (_a) {
|
|
|
23
23
|
WSG_3: ((0, jsx_runtime_1.jsx)(variation_1.WSG, { layoutType: "WSG_3", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, isLoadingContainer2: isLoadingContainer2, overrideContainer1ColorKey: overrideContainer1ColorKey, overrideContainer2ColorKey: overrideContainer2ColorKey }, void 0)),
|
|
24
24
|
WSG_4: ((0, jsx_runtime_1.jsx)(variation_1.WSG, { layoutType: "WSG_4", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, isLoadingContainer2: isLoadingContainer2, overrideContainer1ColorKey: overrideContainer1ColorKey, overrideContainer2ColorKey: overrideContainer2ColorKey }, void 0)),
|
|
25
25
|
WSG_5: ((0, jsx_runtime_1.jsx)(variation_1.WSG, { layoutType: "WSG_5", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, isLoadingContainer2: isLoadingContainer2, overrideContainer1ColorKey: overrideContainer1ColorKey, overrideContainer2ColorKey: overrideContainer2ColorKey }, void 0)),
|
|
26
|
-
WSH_1: ((0, jsx_runtime_1.jsx)(variation_1.WSH, { layoutType: "WSH_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, isLoadingContainer2: isLoadingContainer2, overrideContainer1ColorKey: overrideContainer1ColorKey, overrideContainer2ColorKey: overrideContainer2ColorKey }, void 0))
|
|
26
|
+
WSH_1: ((0, jsx_runtime_1.jsx)(variation_1.WSH, { layoutType: "WSH_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, isLoadingContainer2: isLoadingContainer2, overrideContainer1ColorKey: overrideContainer1ColorKey, overrideContainer2ColorKey: overrideContainer2ColorKey }, void 0)),
|
|
27
|
+
WSI_1: ((0, jsx_runtime_1.jsx)(variation_1.WSI, { layoutType: "WSI_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, isLoadingContainer2: isLoadingContainer2, overrideContainer1ColorKey: overrideContainer1ColorKey, overrideContainer2ColorKey: overrideContainer2ColorKey }, void 0))
|
|
27
28
|
}[layoutType] }, void 0));
|
|
28
29
|
};
|
|
29
30
|
exports.default = ContentsContainer;
|
|
@@ -51,23 +51,33 @@ var overrideStyleContainer2 = (0, styled_components_1.css)(templateObject_2 || (
|
|
|
51
51
|
return overrideContainer2ColorKey && theme[overrideContainer2ColorKey];
|
|
52
52
|
});
|
|
53
53
|
var S_Box = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n height: 100%;\n"], ["\n display: flex;\n height: 100%;\n"])));
|
|
54
|
-
var
|
|
54
|
+
var WSG_1Container1Style = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100%;\n"], ["\n height: 100%;\n"])));
|
|
55
|
+
var WSG_2Container1Style = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n overflow-x: hidden;\n overflow-y: auto;\n"], ["\n overflow-x: hidden;\n overflow-y: auto;\n"])));
|
|
56
|
+
var WSG_3Container1Style = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n overflow-x: hidden;\n overflow-y: auto;\n"], ["\n overflow-x: hidden;\n overflow-y: auto;\n"])));
|
|
57
|
+
var WSG_4Container1Style = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n overflow-x: hidden;\n overflow-y: auto;\n width: 480px;\n"], ["\n overflow-x: hidden;\n overflow-y: auto;\n width: 480px;\n"])));
|
|
58
|
+
var WSG_5Container1Style = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n overflow-x: hidden;\n overflow-y: auto;\n width: 480px;\n"], ["\n overflow-x: hidden;\n overflow-y: auto;\n width: 480px;\n"])));
|
|
59
|
+
var S_ContentsContainer1 = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: ", ";\n min-width: 480px;\n width: 50%;\n ", ";\n ", ";\n\n ", "\n ", "\n"], ["\n background-color: ", ";\n min-width: 480px;\n width: 50%;\n ", ";\n ", ";\n\n ", "\n ", "\n"])), function (_a) {
|
|
55
60
|
var theme = _a.theme;
|
|
56
61
|
return theme.ui_contentscontainer01_background;
|
|
57
62
|
}, function (_a) {
|
|
58
63
|
var layoutType = _a.layoutType;
|
|
59
64
|
return ({
|
|
60
|
-
WSG_1:
|
|
61
|
-
WSG_2:
|
|
62
|
-
WSG_3:
|
|
63
|
-
WSG_4:
|
|
64
|
-
WSG_5:
|
|
65
|
+
WSG_1: WSG_1Container1Style,
|
|
66
|
+
WSG_2: WSG_2Container1Style,
|
|
67
|
+
WSG_3: WSG_3Container1Style,
|
|
68
|
+
WSG_4: WSG_4Container1Style,
|
|
69
|
+
WSG_5: WSG_5Container1Style
|
|
65
70
|
}[layoutType]);
|
|
66
71
|
}, function (_a) {
|
|
67
72
|
var containerColor = _a.containerColor;
|
|
68
73
|
return "background-color: " + containerColor;
|
|
69
74
|
}, scrollbarStyle_1.scrollbarStyle, overrideStyleContainer1);
|
|
70
|
-
var
|
|
75
|
+
var WSG_1Container2Style = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n height: 100%;\n"], ["\n height: 100%;\n"])));
|
|
76
|
+
var WSG_2Container2Style = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n overflow-x: hidden;\n overflow-y: auto;\n"], ["\n overflow-x: hidden;\n overflow-y: auto;\n"])));
|
|
77
|
+
var WSG_3Container2Style = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n height: 100%;\n"], ["\n height: 100%;\n"])));
|
|
78
|
+
var WSG_4Container2Style = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n flex: 1;\n height: 100%;\n"], ["\n flex: 1;\n height: 100%;\n"])));
|
|
79
|
+
var WSG_5Container2Style = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n flex: 1;\n height: 100%;\n"], ["\n flex: 1;\n height: 100%;\n"])));
|
|
80
|
+
var S_ContentsContainer2 = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n background-color: ", ";\n border-left: 1px solid ", ";\n min-width: 480px;\n width: 50%;\n ", ";\n ", ";\n\n ", "\n ", "\n"], ["\n background-color: ", ";\n border-left: 1px solid ", ";\n min-width: 480px;\n width: 50%;\n ", ";\n ", ";\n\n ", "\n ", "\n"])), function (_a) {
|
|
71
81
|
var theme = _a.theme;
|
|
72
82
|
return theme.ui_contentscontainer02_background;
|
|
73
83
|
}, function (_a) {
|
|
@@ -76,61 +86,76 @@ var S_ContentsContainer2 = styled_components_1.default.div(templateObject_5 || (
|
|
|
76
86
|
}, function (_a) {
|
|
77
87
|
var layoutType = _a.layoutType;
|
|
78
88
|
return ({
|
|
79
|
-
WSG_1:
|
|
80
|
-
WSG_2:
|
|
81
|
-
WSG_3:
|
|
82
|
-
WSG_4:
|
|
83
|
-
WSG_5:
|
|
89
|
+
WSG_1: WSG_1Container2Style,
|
|
90
|
+
WSG_2: WSG_2Container2Style,
|
|
91
|
+
WSG_3: WSG_3Container2Style,
|
|
92
|
+
WSG_4: WSG_4Container2Style,
|
|
93
|
+
WSG_5: WSG_5Container2Style
|
|
84
94
|
}[layoutType]);
|
|
85
95
|
}, function (_a) {
|
|
86
96
|
var containerColor = _a.containerColor;
|
|
87
97
|
return "background-color: " + containerColor;
|
|
88
98
|
}, scrollbarStyle_1.scrollbarStyle, overrideStyleContainer2);
|
|
89
|
-
var
|
|
99
|
+
var WSG_1Area1Style = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n height: 100%;\n"], ["\n height: 100%;\n"])));
|
|
100
|
+
var WSG_2Area1Style = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n"], ["\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n"])));
|
|
101
|
+
var WSG_3Area1Style = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n"], ["\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n"])));
|
|
102
|
+
var WSG_4Area1Style = (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n"], ["\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n"])));
|
|
103
|
+
var WSG_5Area1Style = (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n"], ["\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n"])));
|
|
104
|
+
var S_ContentsArea1 = styled_components_1.default.div(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-top: 24px;\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n padding-top: 24px;\n ", ";\n ", ";\n"])), function (_a) {
|
|
90
105
|
var layoutType = _a.layoutType;
|
|
91
106
|
return ({
|
|
92
|
-
WSG_1:
|
|
93
|
-
WSG_2:
|
|
94
|
-
WSG_3:
|
|
95
|
-
WSG_4:
|
|
96
|
-
WSG_5:
|
|
107
|
+
WSG_1: WSG_1Area1Style,
|
|
108
|
+
WSG_2: WSG_2Area1Style,
|
|
109
|
+
WSG_3: WSG_3Area1Style,
|
|
110
|
+
WSG_4: WSG_4Area1Style,
|
|
111
|
+
WSG_5: WSG_5Area1Style
|
|
97
112
|
}[layoutType]);
|
|
98
113
|
}, function (_a) {
|
|
99
114
|
var areaColor = _a.areaColor;
|
|
100
115
|
return "background-color: " + areaColor;
|
|
101
116
|
});
|
|
102
|
-
var
|
|
117
|
+
var WSG_1Area2Style = (0, styled_components_1.css)(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n height: 100%;\n padding-top: 24px;\n"], ["\n height: 100%;\n padding-top: 24px;\n"])));
|
|
118
|
+
var WSG_2Area2Style = (0, styled_components_1.css)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n padding-top: 24px;\n"], ["\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n padding-top: 24px;\n"])));
|
|
119
|
+
var WSG_3Area2Style = (0, styled_components_1.css)(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n height: 100%;\n padding-top: 24px;\n"], ["\n height: 100%;\n padding-top: 24px;\n"])));
|
|
120
|
+
var WSG_4Area2Style = (0, styled_components_1.css)(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n height: 100%;\n padding-top: 24px;\n"], ["\n height: 100%;\n padding-top: 24px;\n"])));
|
|
121
|
+
var WSG_5Area2Style = (0, styled_components_1.css)(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n height: 100%;\n"], ["\n height: 100%;\n"])));
|
|
122
|
+
var S_ContentsArea2 = styled_components_1.default.div(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n box-sizing: border-box;\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n ", ";\n ", ";\n"])), function (_a) {
|
|
103
123
|
var layoutType = _a.layoutType;
|
|
104
124
|
return ({
|
|
105
|
-
WSG_1:
|
|
106
|
-
WSG_2:
|
|
107
|
-
WSG_3:
|
|
108
|
-
WSG_4:
|
|
109
|
-
WSG_5:
|
|
125
|
+
WSG_1: WSG_1Area2Style,
|
|
126
|
+
WSG_2: WSG_2Area2Style,
|
|
127
|
+
WSG_3: WSG_3Area2Style,
|
|
128
|
+
WSG_4: WSG_4Area2Style,
|
|
129
|
+
WSG_5: WSG_5Area2Style
|
|
110
130
|
}[layoutType]);
|
|
111
131
|
}, function (_a) {
|
|
112
132
|
var areaColor = _a.areaColor;
|
|
113
133
|
return "background-color: " + areaColor;
|
|
114
134
|
});
|
|
115
|
-
var
|
|
135
|
+
var WSG_1Content1Style = (0, styled_components_1.css)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n height: 100%;\n overflow: hidden;\n"], ["\n height: 100%;\n overflow: hidden;\n"])));
|
|
136
|
+
var S_Content1 = styled_components_1.default.div(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
116
137
|
var layoutType = _a.layoutType;
|
|
117
138
|
return ({
|
|
118
|
-
WSG_1:
|
|
139
|
+
WSG_1: WSG_1Content1Style,
|
|
119
140
|
WSG_2: '',
|
|
120
141
|
WSG_3: '',
|
|
121
142
|
WSG_4: '',
|
|
122
143
|
WSG_5: ''
|
|
123
144
|
}[layoutType]);
|
|
124
145
|
});
|
|
125
|
-
var
|
|
146
|
+
var WSG_1Content2Style = (0, styled_components_1.css)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n height: 100%;\n overflow: hidden;\n"], ["\n height: 100%;\n overflow: hidden;\n"])));
|
|
147
|
+
var WSG_3Content2Style = (0, styled_components_1.css)(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n height: 100%;\n overflow: hidden;\n"], ["\n height: 100%;\n overflow: hidden;\n"])));
|
|
148
|
+
var WSG_4Content2Style = (0, styled_components_1.css)(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n height: 100%;\n overflow: hidden;\n"], ["\n height: 100%;\n overflow: hidden;\n"])));
|
|
149
|
+
var WSG_5Content2Style = (0, styled_components_1.css)(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n height: 100%;\n overflow: hidden;\n"], ["\n height: 100%;\n overflow: hidden;\n"])));
|
|
150
|
+
var S_Content2 = styled_components_1.default.div(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
126
151
|
var layoutType = _a.layoutType;
|
|
127
152
|
return ({
|
|
128
|
-
WSG_1:
|
|
153
|
+
WSG_1: WSG_1Content2Style,
|
|
129
154
|
WSG_2: '',
|
|
130
|
-
WSG_3:
|
|
131
|
-
WSG_4:
|
|
132
|
-
WSG_5:
|
|
155
|
+
WSG_3: WSG_3Content2Style,
|
|
156
|
+
WSG_4: WSG_4Content2Style,
|
|
157
|
+
WSG_5: WSG_5Content2Style
|
|
133
158
|
}[layoutType]);
|
|
134
159
|
});
|
|
135
160
|
exports.default = WSG;
|
|
136
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
161
|
+
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, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { UiColors } from '../../../../../../common';
|
|
3
|
+
export declare type WSIProps = {
|
|
4
|
+
content1?: JSX.Element;
|
|
5
|
+
content2?: JSX.Element;
|
|
6
|
+
layoutType: 'WSI_1';
|
|
7
|
+
containerColor?: string;
|
|
8
|
+
areaColor?: string;
|
|
9
|
+
isLoadingContainer1?: boolean;
|
|
10
|
+
isLoadingContainer2?: boolean;
|
|
11
|
+
overrideContainer1ColorKey?: UiColors;
|
|
12
|
+
overrideContainer2ColorKey?: UiColors;
|
|
13
|
+
};
|
|
14
|
+
declare const WSI: ({ content1, content2, layoutType, containerColor, areaColor, isLoadingContainer1, isLoadingContainer2, overrideContainer1ColorKey, overrideContainer2ColorKey }: WSIProps) => JSX.Element;
|
|
15
|
+
export default WSI;
|