pds-dev-kit-web-test 0.1.0 → 0.1.1
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 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +16 -0
- package/dist/src/GlobalStyle.js +4 -1
- package/dist/src/common/assets/icons/fill/ArrowDown.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ArrowDown.js +34 -0
- package/dist/src/common/assets/icons/fill/ArrowUp.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ArrowUp.js +34 -0
- package/dist/src/common/assets/icons/fill/ToggleDown.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ToggleDown.js +36 -0
- package/dist/src/common/assets/icons/fill/ToggleUp.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ToggleUp.js +36 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/index.js +8 -0
- package/dist/src/common/assets/icons/line/Confetti.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Confetti.js +36 -0
- package/dist/src/common/assets/icons/line/CsBold.d.ts +4 -0
- package/dist/src/common/assets/icons/line/CsBold.js +34 -0
- package/dist/src/common/assets/icons/line/CsFace.d.ts +4 -0
- package/dist/src/common/assets/icons/line/CsFace.js +34 -0
- package/dist/src/common/assets/icons/line/DeviceApp.d.ts +4 -0
- package/dist/src/common/assets/icons/line/DeviceApp.js +36 -0
- package/dist/src/common/assets/icons/line/DeviceDesktop.d.ts +4 -0
- package/dist/src/common/assets/icons/line/DeviceDesktop.js +36 -0
- package/dist/src/common/assets/icons/line/DeviceMobile.d.ts +4 -0
- package/dist/src/common/assets/icons/line/DeviceMobile.js +34 -0
- package/dist/src/common/assets/icons/line/EditorLeftSide.d.ts +4 -0
- package/dist/src/common/assets/icons/line/EditorLeftSide.js +34 -0
- package/dist/src/common/assets/icons/line/EditorRightSide.d.ts +4 -0
- package/dist/src/common/assets/icons/line/EditorRightSide.js +34 -0
- package/dist/src/common/assets/icons/line/Mail.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Mail.js +36 -0
- package/dist/src/common/assets/icons/line/News.d.ts +4 -0
- package/dist/src/common/assets/icons/line/News.js +36 -0
- package/dist/src/common/assets/icons/line/Rocket.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Rocket.js +36 -0
- package/dist/src/common/assets/icons/line/VideoGuide.d.ts +4 -0
- package/dist/src/common/assets/icons/line/VideoGuide.js +36 -0
- package/dist/src/common/assets/icons/line/index.d.ts +12 -0
- package/dist/src/common/assets/icons/line/index.js +24 -0
- package/dist/src/common/services/i18n/resources/en.json +4852 -1257
- package/dist/src/common/services/i18n/resources/es.json +6105 -2510
- package/dist/src/common/services/i18n/resources/index.d.ts +28084 -16
- package/dist/src/common/services/i18n/resources/index.js +5 -1
- package/dist/src/common/services/i18n/resources/jp.json +6114 -2519
- package/dist/src/common/services/i18n/resources/ko.json +3816 -221
- package/dist/src/common/services/i18n/resources/zh-tw.json +6844 -0
- package/dist/src/common/services/i18n/resources/zh-zh.json +6844 -0
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +22 -8
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +22 -8
- package/dist/src/common/styles/colorSet/SemanticColor.json +11 -5
- package/dist/src/common/styles/colorSet/UIColor.json +47 -7
- package/dist/src/common/styles/colorSet/index.d.ts +339 -265
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/common/styles/colorSet/ui-type.d.ts +44 -4
- package/dist/src/common/styles/index.d.ts +4 -0
- package/dist/src/common/styles/movement/animationStyle.d.ts +4 -0
- package/dist/src/common/styles/movement/animationStyle.js +8 -4
- package/dist/src/common/styles/movement/keyframes.d.ts +3 -1
- package/dist/src/common/styles/movement/keyframes.js +11 -9
- package/dist/src/common/styles/movement/transitionStyle.d.ts +1 -1
- package/dist/src/common/styles/movement/transitionStyle.js +2 -2
- package/dist/src/common/styles/scroll/scrollbarStyle.d.ts +2 -0
- package/dist/src/common/styles/scroll/scrollbarStyle.js +14 -0
- package/dist/src/common/styles/theme.d.ts +4 -0
- package/dist/src/common/styles/theme.js +17 -13
- package/dist/src/common/types/styled-components.d.ts +9 -5
- package/dist/src/desktop/components/AdminList/AdminList.d.ts +2 -1
- package/dist/src/desktop/components/AdminList/AdminList.js +4 -4
- package/dist/src/desktop/components/AdminList/HeaderRow.d.ts +2 -1
- package/dist/src/desktop/components/AdminList/HeaderRow.js +21 -17
- package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +1 -0
- package/dist/src/desktop/components/AdminListItem/AdminListItem.js +19 -15
- package/dist/src/desktop/components/BasicFormGroup/BasicFormGroup.d.ts +1 -1
- package/dist/src/desktop/components/BasicFormGroup/BasicFormGroup.js +1 -1
- package/dist/src/desktop/components/BodyTextGroup/BodyTextGroup.d.ts +2 -1
- package/dist/src/desktop/components/BodyTextGroup/BodyTextGroup.js +3 -3
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubble.d.ts +1 -1
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubble.js +5 -4
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +4 -3
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +88 -57
- package/dist/src/desktop/components/DesktopAlertDialog/DesktopAlertDialog.js +3 -3
- package/dist/src/desktop/components/Dropdown/Dropdown.js +31 -11
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +7 -7
- package/dist/src/desktop/components/LottieReactionButton/LottieReactionButton.js +2 -2
- package/dist/src/desktop/components/MainButton/MainButton.d.ts +1 -1
- package/dist/src/desktop/components/MainButton/MainButton.js +120 -33
- package/dist/src/desktop/components/ReactionButton/ReactionButton.js +4 -1
- package/dist/src/desktop/components/Select/Select.js +26 -10
- package/dist/src/desktop/components/TextField/TextField.js +34 -14
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +7 -5
- package/dist/src/desktop/components/TextLabel/TextLabel.js +61 -42
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.d.ts +1 -1
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +131 -34
- package/dist/src/desktop/components/UploadMainButton/types.d.ts +0 -10
- package/dist/src/desktop/components/UploadMainButton/types.js +1 -11
- package/dist/src/desktop/components/UserDesktopSideTab/UserDesktopSideTab.js +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.d.ts +5 -3
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.js +29 -24
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFA.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFA.js +22 -10
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFB.d.ts +3 -2
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFB.js +34 -17
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFC.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFC.js +31 -8
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFD.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFD.js +31 -8
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFE.d.ts +4 -3
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFE.js +55 -34
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFF.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFF.js +31 -8
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFG.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFG.js +41 -14
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFH.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFH.js +31 -8
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFI.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFI.js +41 -14
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFJ.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFJ.js +31 -8
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFK.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFK.js +41 -14
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFL.d.ts +15 -0
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFL.js +75 -0
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/index.d.ts +1 -0
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/index.js +3 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/PageMenuContainer/PageMenuContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/PageMenuContainer/PageMenuContainer.js +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/PageMenuContainer/variation/PageMenu.js +5 -2
- package/dist/src/desktop/layout/LayoutWF/Containers/PageMenuContainer/variation/WizardPageMenu.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/PageMenuContainer/variation/WizardPageMenu.js +14 -5
- package/dist/src/desktop/layout/LayoutWF/Containers/StepContainer/StepContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/StepContainer/StepContainer.js +3 -2
- package/dist/src/desktop/layout/LayoutWF/Containers/StepContainer/variation/Step.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/StepContainer/variation/Step.js +14 -5
- package/dist/src/desktop/layout/LayoutWF/Containers/index.d.ts +1 -0
- package/dist/src/desktop/layout/LayoutWF/Containers/index.js +3 -1
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.d.ts +5 -2
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.js +55 -27
- package/dist/src/desktop/layout/LayoutWF/LayoutWF.js +1 -1
- package/dist/src/desktop/layout/LayoutWH/Containers/ContentsContainer/ContentsContainer.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWH/Containers/ContentsContainer/ContentsContainer.js +17 -17
- package/dist/src/desktop/layout/LayoutWH/Containers/ContentsContainer/variation/WHA.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWH/Containers/ContentsContainer/variation/WHA.js +31 -8
- package/dist/src/desktop/layout/LayoutWH/Containers/ContentsContainer/variation/WHB.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWH/Containers/ContentsContainer/variation/WHB.js +41 -14
- package/dist/src/desktop/layout/LayoutWH/Containers/ContentsContainer/variation/WHC.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWH/Containers/ContentsContainer/variation/WHC.js +31 -8
- package/dist/src/desktop/layout/LayoutWH/Containers/ContentsContainer/variation/WHD.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWH/Containers/ContentsContainer/variation/WHD.js +41 -14
- package/dist/src/desktop/layout/LayoutWH/Containers/ContentsContainer/variation/WHE.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWH/Containers/ContentsContainer/variation/WHE.js +31 -8
- package/dist/src/desktop/layout/LayoutWH/ContainersBox/ContainersBox.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWH/ContainersBox/ContainersBox.js +2 -2
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/ContentsContainer.d.ts +5 -2
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/ContentsContainer.js +20 -19
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSA.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSA.js +32 -8
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSB.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSB.js +38 -8
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSC.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSC.js +31 -8
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSD.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSD.js +32 -8
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSE.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSE.js +33 -9
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSF.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSF.js +42 -14
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSG.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSG.js +42 -14
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSH.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSH.js +41 -14
- package/dist/src/desktop/layout/LayoutWS/ContainersBox/ContainersBox.d.ts +5 -2
- package/dist/src/desktop/layout/LayoutWS/ContainersBox/ContainersBox.js +2 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.js +45 -45
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTA.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTA.js +31 -8
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTB.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTB.js +31 -8
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTC.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTC.js +31 -8
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTD.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTD.js +41 -14
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTE.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTE.js +31 -8
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTF.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTF.js +41 -14
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTG.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTG.js +31 -8
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTH.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTH.js +31 -8
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTI.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTI.js +31 -8
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTJ.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTJ.js +41 -14
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTK.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTK.js +17 -13
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTL.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTL.js +31 -8
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTM.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTM.js +31 -8
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTN.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTN.js +31 -8
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTO.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTO.js +31 -8
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTP.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTP.js +31 -8
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTQ.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTQ.js +41 -14
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTS.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTS.js +15 -11
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTT.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTT.js +15 -11
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +22 -17
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.d.ts +4 -1
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.js +2 -2
- package/dist/src/desktop/panels/DesktopBasicModal/DesktopBasicModal.d.ts +3 -2
- package/dist/src/desktop/panels/DesktopBasicModal/DesktopBasicModal.js +30 -17
- package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.js +9 -12
- package/dist/src/hybrid/components/Icon/Icon.d.ts +1 -1
- package/dist/src/mobile/components/BasicFormGroup/BasicFormGroup.d.ts +1 -1
- package/dist/src/mobile/components/BasicFormGroup/BasicFormGroup.js +1 -1
- package/dist/src/mobile/components/BodyTextGroup/BodyTextGroup.d.ts +2 -1
- package/dist/src/mobile/components/BodyTextGroup/BodyTextGroup.js +3 -3
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubble.d.ts +1 -1
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubble.js +5 -4
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +4 -3
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +88 -57
- package/dist/src/mobile/components/Dropdown/Dropdown.js +18 -8
- package/dist/src/mobile/components/LottieReactionButton/LottieReactionButton.js +1 -1
- package/dist/src/mobile/components/MainButton/MainButton.d.ts +1 -1
- package/dist/src/mobile/components/MainButton/MainButton.js +114 -30
- package/dist/src/mobile/components/MobileAlertDialog/MobileAlertDialog.js +3 -3
- package/dist/src/mobile/components/Select/Select.js +15 -7
- package/dist/src/mobile/components/TextField/TextField.js +19 -9
- package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +7 -5
- package/dist/src/mobile/components/TextLabel/TextLabel.js +57 -38
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.d.ts +1 -1
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +126 -32
- package/dist/src/mobile/components/UploadMainButton/types.d.ts +0 -10
- package/dist/src/mobile/components/UploadMainButton/types.js +1 -11
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/ContentsContainer.d.ts +4 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/ContentsContainer.js +8 -8
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFA.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFA.js +31 -8
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.d.ts +4 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.js +41 -14
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.js +31 -8
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.js +31 -8
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.d.ts +4 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.js +41 -14
- package/dist/src/mobile/layout/LayoutMF/ContainersBox/ContainersBox.d.ts +4 -1
- package/dist/src/mobile/layout/LayoutMF/ContainersBox/ContainersBox.js +2 -2
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/ContentsContainer.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/ContentsContainer.js +3 -3
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMA.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMA.js +31 -8
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.js +31 -8
- package/dist/src/mobile/layout/LayoutMM/ContainersBox/ContainersBox.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMM/ContainersBox/ContainersBox.js +2 -2
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/ContentsContainer.d.ts +4 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/ContentsContainer.js +9 -9
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.js +31 -8
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.js +31 -8
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.d.ts +4 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.js +41 -14
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.js +31 -8
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.js +31 -8
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.d.ts +4 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.js +41 -14
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/ContentsContainer.d.ts +4 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/ContentsContainer.js +12 -12
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.js +31 -8
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.js +31 -8
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.d.ts +4 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.js +41 -14
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.js +31 -8
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.js +31 -8
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.d.ts +4 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.js +41 -14
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.js +31 -8
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.js +31 -8
- package/dist/src/mobile/layout/LayoutMS/ContainersBox/ContainersBox.d.ts +4 -1
- package/dist/src/mobile/layout/LayoutMS/ContainersBox/ContainersBox.js +2 -2
- package/dist/src/mobile/panels/MobileBasicModal/MobileBasicModal.js +2 -2
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +6 -94
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +25 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/OverlayBorders.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/OverlayBorders.js +49 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +129 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +48 -0
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/index.js +8 -0
- package/dist/src/sub/DynamicLayout/hooks/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/hooks/index.js +5 -1
- package/dist/src/sub/DynamicLayout/hooks/useLazyUnmount/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/hooks/useLazyUnmount/index.js +8 -0
- package/dist/src/sub/DynamicLayout/hooks/useLazyUnmount/useLazyUnmount.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/hooks/useLazyUnmount/useLazyUnmount.js +61 -0
- package/dist/src/sub/DynamicLayout/hooks/useUnmountStyle/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/hooks/useUnmountStyle/index.js +8 -0
- package/dist/src/sub/DynamicLayout/hooks/useUnmountStyle/useUmountStyle.d.ts +10 -0
- package/dist/src/sub/DynamicLayout/hooks/useUnmountStyle/useUmountStyle.js +65 -0
- package/dist/src/sub/DynamicLayout/types.d.ts +2 -1
- package/dist/storybook-static/{0.ade47ed3.iframe.bundle.d.ts → 0.69b174ef.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{0.ade47ed3.iframe.bundle.js → 0.69b174ef.iframe.bundle.js} +8 -8
- package/dist/storybook-static/{4.93bcde3d.iframe.bundle.d.ts → 4.32dc09b1.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{4.93bcde3d.iframe.bundle.js → 4.32dc09b1.iframe.bundle.js} +71 -71
- package/dist/storybook-static/{5.ea6583af.iframe.bundle.d.ts → 5.c1637fa3.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{5.ea6583af.iframe.bundle.js → 5.c1637fa3.iframe.bundle.js} +13 -13
- package/dist/storybook-static/{6.e40cb5e6.iframe.bundle.d.ts → 6.9d79e5b5.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{6.e40cb5e6.iframe.bundle.js → 6.9d79e5b5.iframe.bundle.js} +6 -6
- package/dist/storybook-static/{7.a63b16b9.iframe.bundle.d.ts → 7.b309bb58.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{7.a63b16b9.iframe.bundle.js → 7.b309bb58.iframe.bundle.js} +3 -3
- package/dist/storybook-static/{main.997ab4f6.iframe.bundle.d.ts → main.9a5b3a3c.iframe.bundle.d.ts} +1113 -1220
- package/dist/storybook-static/main.9a5b3a3c.iframe.bundle.js +17145 -0
- package/dist/storybook-static/{runtime~main.a437dbd3.iframe.bundle.d.ts → runtime~main.b6fc2c86.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{runtime~main.a437dbd3.iframe.bundle.js → runtime~main.b6fc2c86.iframe.bundle.js} +1 -1
- package/dist/storybook-static/{vendors~main.7bb94765.iframe.bundle.d.ts → vendors~main.0fbc3a5b.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{vendors~main.7bb94765.iframe.bundle.js → vendors~main.0fbc3a5b.iframe.bundle.js} +828 -828
- package/package.json +1 -1
- package/release-note.md +4 -3
- package/dist/src/common/hooks/useAnimation.d.ts +0 -2
- package/dist/src/common/hooks/useAnimation.js +0 -19
- package/dist/storybook-static/main.997ab4f6.iframe.bundle.js +0 -16278
|
@@ -1,8 +1,4 @@
|
|
|
1
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
2
|
var __assign = (this && this.__assign) || function () {
|
|
7
3
|
__assign = Object.assign || function(t) {
|
|
8
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -14,36 +10,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
14
10
|
};
|
|
15
11
|
return __assign.apply(this, arguments);
|
|
16
12
|
};
|
|
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
13
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
48
14
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
49
15
|
if (ar || !(i in from)) {
|
|
@@ -57,71 +23,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
57
23
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
58
24
|
};
|
|
59
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60
|
-
var react_1 =
|
|
61
|
-
var
|
|
26
|
+
var react_1 = __importDefault(require("react"));
|
|
27
|
+
var EditModeSectionMatcher_1 = require("./components/EditModeSectionMatcher");
|
|
28
|
+
var SectionMatcher_1 = require("./components/SectionMatcher");
|
|
62
29
|
var dynamicLayoutContext_1 = require("./dynamicLayoutContext");
|
|
63
|
-
var sections_1 = require("./sections");
|
|
64
30
|
function DynamicLayout(_a) {
|
|
65
|
-
var device = _a.device, _b = _a.mode, mode = _b === void 0 ? 'NORMAL' : _b, isPreview = _a.isPreview, sections = _a.sections,
|
|
31
|
+
var device = _a.device, _b = _a.mode, mode = _b === void 0 ? 'NORMAL' : _b, isPreview = _a.isPreview, sections = _a.sections, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, editingSectionId = _a.editingSectionId, navigationHandler = _a.navigationHandler, onClickEditSection = _a.onClickEditSection;
|
|
66
32
|
var filteredSortedSection = __spreadArray([], sections, true).filter(function (section) { return section.display; })
|
|
67
33
|
.sort(function (a, b) { return a.order - b.order; });
|
|
68
34
|
return (react_1.default.createElement(dynamicLayoutContext_1.dynamicLayoutContext.Provider, { value: { device: device, mode: mode, isPreview: isPreview, navigationHandler: navigationHandler } },
|
|
69
|
-
mode === 'EDIT' && onClickEditSection && (react_1.default.createElement(
|
|
35
|
+
mode === 'EDIT' && onClickEditSection && (react_1.default.createElement(EditModeSectionMatcher_1.EditModeSectionMatcher, { editingSectionId: editingSectionId, scrollDownTargetSectionId: scrollDownTargetSectionId, filteredSortedSection: filteredSortedSection, onClickEditSection: onClickEditSection })),
|
|
70
36
|
mode !== 'EDIT' &&
|
|
71
|
-
filteredSortedSection.map(function (section) { return react_1.default.createElement(SectionMatcher, __assign({ key: section.id }, section)); })));
|
|
72
|
-
}
|
|
73
|
-
function SectionMatcher(_a) {
|
|
74
|
-
var props = __rest(_a, []);
|
|
75
|
-
var schema = props.manifest.schema;
|
|
76
|
-
switch (schema) {
|
|
77
|
-
case 'BASE_INTRO':
|
|
78
|
-
return react_1.default.createElement(sections_1.IntroSection, __assign({}, props));
|
|
79
|
-
case 'BASE_CONTENTS':
|
|
80
|
-
return react_1.default.createElement(sections_1.ContentsSection, __assign({}, props));
|
|
81
|
-
case 'BASE_CONTENTS_CAROUSEL':
|
|
82
|
-
return react_1.default.createElement(sections_1.ContentsCarouselSection, __assign({}, props));
|
|
83
|
-
case 'BASE_FOOTER':
|
|
84
|
-
return react_1.default.createElement(sections_1.FooterSection, __assign({}, props));
|
|
85
|
-
case 'BASE_INFO_BOX':
|
|
86
|
-
return react_1.default.createElement(sections_1.InfoBoxSection, __assign({}, props));
|
|
87
|
-
default:
|
|
88
|
-
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
89
|
-
}
|
|
37
|
+
filteredSortedSection.map(function (section) { return react_1.default.createElement(SectionMatcher_1.SectionMatcher, __assign({ key: section.id }, section)); })));
|
|
90
38
|
}
|
|
91
39
|
exports.default = DynamicLayout;
|
|
92
|
-
function EditModeSections(_a) {
|
|
93
|
-
var filteredSortedSection = _a.filteredSortedSection, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, onClickEditSection = _a.onClickEditSection;
|
|
94
|
-
return (react_1.default.createElement(react_1.default.Fragment, null, filteredSortedSection.map(function (section) { return (react_1.default.createElement(SectionBox, { scrollIntoThisSection: section.id === scrollDownTargetSectionId, key: section.id, onClick: function () { return onClickEditSection(section); } },
|
|
95
|
-
react_1.default.createElement(SectionMatcher, __assign({ key: section.id }, section)))); })));
|
|
96
|
-
}
|
|
97
|
-
function SectionBox(_a) {
|
|
98
|
-
var scrollIntoThisSection = _a.scrollIntoThisSection, children = _a.children, onClick = _a.onClick;
|
|
99
|
-
var _b = (0, react_1.useState)(false), isHover = _b[0], setHover = _b[1];
|
|
100
|
-
var sectionRef = (0, react_1.useRef)(null);
|
|
101
|
-
(0, react_1.useEffect)(function () {
|
|
102
|
-
var _a;
|
|
103
|
-
if (!sectionRef) {
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
if (scrollIntoThisSection) {
|
|
107
|
-
(_a = sectionRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: 'smooth' });
|
|
108
|
-
}
|
|
109
|
-
}, [scrollIntoThisSection]);
|
|
110
|
-
var onMouseEnter = function () {
|
|
111
|
-
setHover(true);
|
|
112
|
-
};
|
|
113
|
-
var onMouseLeave = function () {
|
|
114
|
-
setHover(false);
|
|
115
|
-
};
|
|
116
|
-
return (react_1.default.createElement(S_SectionBox, { ref: sectionRef, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave },
|
|
117
|
-
isHover && (react_1.default.createElement(DimmedEditOverlay, null,
|
|
118
|
-
react_1.default.createElement(S_EditButton, null, "\uC774 Section \uC218\uC815\uD558\uAE30"))),
|
|
119
|
-
children));
|
|
120
|
-
}
|
|
121
|
-
var S_EditButton = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: #ddf68c;\n font-weight: bold;\n padding: ", ";\n"], ["\n background-color: #ddf68c;\n font-weight: bold;\n padding: ", ";\n"])), function (_a) {
|
|
122
|
-
var theme = _a.theme;
|
|
123
|
-
return theme.spacing.spacingE;
|
|
124
|
-
});
|
|
125
|
-
var S_SectionBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
126
|
-
var DimmedEditOverlay = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n background-color: #f7f7f7c4;\n z-index: 10;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n"], ["\n position: absolute;\n background-color: #f7f7f7c4;\n z-index: 10;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
|
|
127
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ISection } from '../../types';
|
|
3
|
+
export default function EditModeSectionMatcher({ filteredSortedSection, scrollDownTargetSectionId, editingSectionId, onClickEditSection }: {
|
|
4
|
+
filteredSortedSection: ISection[];
|
|
5
|
+
scrollDownTargetSectionId?: number;
|
|
6
|
+
editingSectionId?: number;
|
|
7
|
+
onClickEditSection: (section: ISection) => void;
|
|
8
|
+
}): JSX.Element;
|
package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var react_1 = __importDefault(require("react"));
|
|
18
|
+
var SectionMatcher_1 = require("../SectionMatcher");
|
|
19
|
+
var SectionBox_1 = __importDefault(require("./SectionBox"));
|
|
20
|
+
function EditModeSectionMatcher(_a) {
|
|
21
|
+
var filteredSortedSection = _a.filteredSortedSection, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, editingSectionId = _a.editingSectionId, onClickEditSection = _a.onClickEditSection;
|
|
22
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, filteredSortedSection.map(function (section) { return (react_1.default.createElement(SectionBox_1.default, { isEditing: editingSectionId === section.id, scrollIntoThisSection: section.id === scrollDownTargetSectionId, key: section.id, onClick: function () { return onClickEditSection(section); } },
|
|
23
|
+
react_1.default.createElement(SectionMatcher_1.SectionMatcher, __assign({ key: section.id }, section)))); })));
|
|
24
|
+
}
|
|
25
|
+
exports.default = EditModeSectionMatcher;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var react_1 = __importDefault(require("react"));
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
function OverlayBorders(_a) {
|
|
13
|
+
var zIndex = _a.zIndex;
|
|
14
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
15
|
+
react_1.default.createElement(Absolute_Border_Top, { zIndex: zIndex }),
|
|
16
|
+
react_1.default.createElement(Absolute_Border_Left, { zIndex: zIndex }),
|
|
17
|
+
react_1.default.createElement(Absolute_Border_Right, { zIndex: zIndex }),
|
|
18
|
+
react_1.default.createElement(Absolute_Border_Bottom, { zIndex: zIndex })));
|
|
19
|
+
}
|
|
20
|
+
exports.default = OverlayBorders;
|
|
21
|
+
var Absolute_Border_Top = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n top: 0;\n position: absolute;\n height: 4px;\n width: 100%;\n background-color: ", ";\n transition: background-color 0.2s ease-out;\n z-index: ", ";\n"], ["\n top: 0;\n position: absolute;\n height: 4px;\n width: 100%;\n background-color: ", ";\n transition: background-color 0.2s ease-out;\n z-index: ", ";\n"])), function (_a) {
|
|
22
|
+
var theme = _a.theme;
|
|
23
|
+
return theme.ui_editor_preview_editing;
|
|
24
|
+
}, function (_a) {
|
|
25
|
+
var zIndex = _a.zIndex;
|
|
26
|
+
return zIndex;
|
|
27
|
+
});
|
|
28
|
+
var Absolute_Border_Left = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n left: 0;\n width: 4px;\n height: 100%;\n position: absolute;\n background-color: ", ";\n transition: background-color 0.2s ease-out;\n z-index: ", ";\n"], ["\n left: 0;\n width: 4px;\n height: 100%;\n position: absolute;\n background-color: ", ";\n transition: background-color 0.2s ease-out;\n z-index: ", ";\n"])), function (_a) {
|
|
29
|
+
var theme = _a.theme;
|
|
30
|
+
return theme.ui_editor_preview_editing;
|
|
31
|
+
}, function (_a) {
|
|
32
|
+
var zIndex = _a.zIndex;
|
|
33
|
+
return zIndex;
|
|
34
|
+
});
|
|
35
|
+
var Absolute_Border_Right = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n right: 0;\n position: absolute;\n height: 100%;\n width: 4px;\n background-color: ", ";\n z-index: ", ";\n transition: background-color 0.2s ease-out;\n"], ["\n right: 0;\n position: absolute;\n height: 100%;\n width: 4px;\n background-color: ", ";\n z-index: ", ";\n transition: background-color 0.2s ease-out;\n"])), function (_a) {
|
|
36
|
+
var theme = _a.theme;
|
|
37
|
+
return theme.ui_editor_preview_editing;
|
|
38
|
+
}, function (_a) {
|
|
39
|
+
var zIndex = _a.zIndex;
|
|
40
|
+
return zIndex;
|
|
41
|
+
});
|
|
42
|
+
var Absolute_Border_Bottom = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n bottom: 0;\n position: absolute;\n height: 4px;\n width: 100%;\n background-color: ", ";\n transition: background-color 0.2s ease-out;\n z-index: ", ";\n"], ["\n bottom: 0;\n position: absolute;\n height: 4px;\n width: 100%;\n background-color: ", ";\n transition: background-color 0.2s ease-out;\n z-index: ", ";\n"])), function (_a) {
|
|
43
|
+
var theme = _a.theme;
|
|
44
|
+
return theme.ui_editor_preview_editing;
|
|
45
|
+
}, function (_a) {
|
|
46
|
+
var zIndex = _a.zIndex;
|
|
47
|
+
return zIndex;
|
|
48
|
+
});
|
|
49
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -0,0 +1,129 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
var react_1 = __importStar(require("react"));
|
|
30
|
+
var react_i18next_1 = require("react-i18next");
|
|
31
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
32
|
+
var desktop_1 = require("../../../../desktop");
|
|
33
|
+
var useLazyUnmount_1 = require("../../hooks/useLazyUnmount");
|
|
34
|
+
var OverlayBorders_1 = __importDefault(require("./OverlayBorders"));
|
|
35
|
+
function SectionBox(_a) {
|
|
36
|
+
var scrollIntoThisSection = _a.scrollIntoThisSection, isEditing = _a.isEditing, children = _a.children, onClick = _a.onClick;
|
|
37
|
+
var t = (0, react_i18next_1.useTranslation)('translation').t;
|
|
38
|
+
var sectionRef = (0, react_1.useRef)(null);
|
|
39
|
+
var _b = (0, react_1.useState)(false), isHover = _b[0], setIsHover = _b[1];
|
|
40
|
+
var _c = (0, react_1.useState)(false), fadeOut = _c[0], setFadeout = _c[1];
|
|
41
|
+
var _d = (0, react_1.useState)(false), hasNoChild = _d[0], setHasNoChild = _d[1];
|
|
42
|
+
var onMouseLeaveAsync = (0, useLazyUnmount_1.useLazyUnmount)({ doUnmount: function () { return setIsHover(false); } }, 150);
|
|
43
|
+
var onClickDelayedAsync = (0, useLazyUnmount_1.useLazyUnmount)({
|
|
44
|
+
doUnmount: function () {
|
|
45
|
+
onClick();
|
|
46
|
+
setFadeout(false);
|
|
47
|
+
}
|
|
48
|
+
}, 150);
|
|
49
|
+
(0, react_1.useEffect)(function () {
|
|
50
|
+
var _a;
|
|
51
|
+
if (!sectionRef) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (scrollIntoThisSection) {
|
|
55
|
+
(_a = sectionRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: 'smooth' });
|
|
56
|
+
}
|
|
57
|
+
}, [scrollIntoThisSection]);
|
|
58
|
+
(0, react_1.useEffect)(function () {
|
|
59
|
+
if (!sectionRef.current) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (sectionRef.current.getBoundingClientRect().height === 0) {
|
|
63
|
+
setHasNoChild(true);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
setHasNoChild(false);
|
|
67
|
+
}, [isEditing, children]);
|
|
68
|
+
var onMouseEnter = function () {
|
|
69
|
+
if (hasNoChild) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
setIsHover(true);
|
|
73
|
+
};
|
|
74
|
+
var onClickSectionBox = function () {
|
|
75
|
+
if (hasNoChild) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
setFadeout(true);
|
|
79
|
+
setIsHover(false);
|
|
80
|
+
onClickDelayedAsync();
|
|
81
|
+
};
|
|
82
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
83
|
+
react_1.default.createElement(S_SectionBox, { ref: sectionRef, onClick: onClickSectionBox, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeaveAsync, isEditing: isEditing },
|
|
84
|
+
isEditing && !hasNoChild && (react_1.default.createElement(S_Editing, null,
|
|
85
|
+
react_1.default.createElement(OverlayBorders_1.default, { zIndex: 1 }),
|
|
86
|
+
react_1.default.createElement(TopRightAbsoluteBox, null,
|
|
87
|
+
react_1.default.createElement(desktop_1.D_TextLabel, { text: t('str_4657'), styleTheme: "caption1Bold", colorOverride: "ui_cpnt_textlabel_sys_black", singleLineMode: "use", customFontWeight: "bold", textAlign: "center" })))),
|
|
88
|
+
!isEditing && (react_1.default.createElement(DimmedEditOverlay, { isHover: isHover, fadeOut: fadeOut },
|
|
89
|
+
react_1.default.createElement(S_EditButton, null,
|
|
90
|
+
react_1.default.createElement(desktop_1.D_TextLabel, { text: t('str_4653'), colorOverride: "ui_cpnt_textlabel_sys_black", singleLineMode: "use", customFontWeight: "bold", textAlign: "center" })))),
|
|
91
|
+
children)));
|
|
92
|
+
}
|
|
93
|
+
exports.default = SectionBox;
|
|
94
|
+
var TopRightAbsoluteBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n top: 0;\n right: 0;\n position: absolute;\n z-index: 4;\n background-color: ", ";\n padding: 8px 10px;\n transition: background-color 0.2s ease-out;\n"], ["\n top: 0;\n right: 0;\n position: absolute;\n z-index: 4;\n background-color: ", ";\n padding: 8px 10px;\n transition: background-color 0.2s ease-out;\n"])), function (_a) {
|
|
95
|
+
var theme = _a.theme;
|
|
96
|
+
return theme.ui_editor_preview_editing;
|
|
97
|
+
});
|
|
98
|
+
var S_SectionBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
99
|
+
var DimmedEditOverlay = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n animation: ", ";\n background-color: ", ";\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n left: 0;\n\n opacity: ", ";\n\n position: absolute;\n right: 0;\n top: 0;\n transition: opacity 0.2s ease-out;\n z-index: 10;\n\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.6;\n }\n\n 100% {\n opacity: 0;\n }\n }\n"], ["\n align-items: center;\n animation: ", ";\n background-color: ", ";\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n left: 0;\n\n opacity: ", ";\n\n position: absolute;\n right: 0;\n top: 0;\n transition: opacity 0.2s ease-out;\n z-index: 10;\n\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.6;\n }\n\n 100% {\n opacity: 0;\n }\n }\n"])), function (_a) {
|
|
100
|
+
var fadeOut = _a.fadeOut;
|
|
101
|
+
return fadeOut && 'fadeOut 0.2s ease-out';
|
|
102
|
+
}, function (_a) {
|
|
103
|
+
var theme = _a.theme;
|
|
104
|
+
return theme.ui_pages_section_dimmed;
|
|
105
|
+
}, function (_a) {
|
|
106
|
+
var isHover = _a.isHover, fadeOut = _a.fadeOut;
|
|
107
|
+
if (fadeOut) {
|
|
108
|
+
return 0;
|
|
109
|
+
}
|
|
110
|
+
if (isHover) {
|
|
111
|
+
return 1;
|
|
112
|
+
}
|
|
113
|
+
return 0;
|
|
114
|
+
});
|
|
115
|
+
var S_EditButton = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", ";\n font-weight: bold;\n height: 56px;\n display: flex;\n border-radius: 14px;\n justify-content: center;\n align-items: center;\n padding: 0 ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"], ["\n background-color: ", ";\n font-weight: bold;\n height: 56px;\n display: flex;\n border-radius: 14px;\n justify-content: center;\n align-items: center;\n padding: 0 ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
116
|
+
var theme = _a.theme;
|
|
117
|
+
return theme.ui_71;
|
|
118
|
+
}, function (_a) {
|
|
119
|
+
var theme = _a.theme;
|
|
120
|
+
return theme.spacing.spacingE;
|
|
121
|
+
}, function (_a) {
|
|
122
|
+
var theme = _a.theme;
|
|
123
|
+
return theme.ui_72;
|
|
124
|
+
}, function (_a) {
|
|
125
|
+
var theme = _a.theme;
|
|
126
|
+
return theme.ui_73;
|
|
127
|
+
});
|
|
128
|
+
var S_Editing = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n & > div {\n animation: fadeIn 0.2s ease-out;\n }\n\n @keyframes fadeIn {\n 0% {\n opacity: 0.2;\n }\n\n 50% {\n opacity: 0.6;\n }\n\n 100% {\n opacity: 1;\n }\n }\n"], ["\n & > div {\n animation: fadeIn 0.2s ease-out;\n }\n\n @keyframes fadeIn {\n 0% {\n opacity: 0.2;\n }\n\n 50% {\n opacity: 0.6;\n }\n\n 100% {\n opacity: 1;\n }\n }\n"])));
|
|
129
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EditModeSectionMatcher } from './EditModeSectionMatcher';
|
|
@@ -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.EditModeSectionMatcher = void 0;
|
|
7
|
+
var EditModeSectionMatcher_1 = require("./EditModeSectionMatcher");
|
|
8
|
+
Object.defineProperty(exports, "EditModeSectionMatcher", { enumerable: true, get: function () { return __importDefault(EditModeSectionMatcher_1).default; } });
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var react_1 = __importDefault(require("react"));
|
|
29
|
+
var sections_1 = require("../../sections");
|
|
30
|
+
function SectionMatcher(_a) {
|
|
31
|
+
var props = __rest(_a, []);
|
|
32
|
+
var schema = props.manifest.schema;
|
|
33
|
+
switch (schema) {
|
|
34
|
+
case 'BASE_INTRO':
|
|
35
|
+
return react_1.default.createElement(sections_1.IntroSection, __assign({}, props));
|
|
36
|
+
case 'BASE_CONTENTS':
|
|
37
|
+
return react_1.default.createElement(sections_1.ContentsSection, __assign({}, props));
|
|
38
|
+
case 'BASE_CONTENTS_CAROUSEL':
|
|
39
|
+
return react_1.default.createElement(sections_1.ContentsCarouselSection, __assign({}, props));
|
|
40
|
+
case 'BASE_FOOTER':
|
|
41
|
+
return react_1.default.createElement(sections_1.FooterSection, __assign({}, props));
|
|
42
|
+
case 'BASE_INFO_BOX':
|
|
43
|
+
return react_1.default.createElement(sections_1.InfoBoxSection, __assign({}, props));
|
|
44
|
+
default:
|
|
45
|
+
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.default = SectionMatcher;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SectionMatcher } from './SectionMatcher';
|
|
@@ -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.SectionMatcher = void 0;
|
|
7
|
+
var SectionMatcher_1 = require("./SectionMatcher");
|
|
8
|
+
Object.defineProperty(exports, "SectionMatcher", { enumerable: true, get: function () { return __importDefault(SectionMatcher_1).default; } });
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.usePrevious = void 0;
|
|
3
|
+
exports.useLazyUnmount = exports.usePrevious = exports.useUnmountStyle = void 0;
|
|
4
|
+
var useUnmountStyle_1 = require("./useUnmountStyle");
|
|
5
|
+
Object.defineProperty(exports, "useUnmountStyle", { enumerable: true, get: function () { return useUnmountStyle_1.useUnmountStyle; } });
|
|
4
6
|
var usePrevious_1 = require("./usePrevious");
|
|
5
7
|
Object.defineProperty(exports, "usePrevious", { enumerable: true, get: function () { return usePrevious_1.usePrevious; } });
|
|
8
|
+
var useLazyUnmount_1 = require("./useLazyUnmount");
|
|
9
|
+
Object.defineProperty(exports, "useLazyUnmount", { enumerable: true, get: function () { return useLazyUnmount_1.useLazyUnmount; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useLazyUnmount } from './useLazyUnmount';
|
|
@@ -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.useLazyUnmount = void 0;
|
|
7
|
+
var useLazyUnmount_1 = require("./useLazyUnmount");
|
|
8
|
+
Object.defineProperty(exports, "useLazyUnmount", { enumerable: true, get: function () { return __importDefault(useLazyUnmount_1).default; } });
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
// NOTE: promise의 delay time은 정확하지 않기때문에, transition 딜레이보다 짧게 가는것이 보기 좋습니다.
|
|
40
|
+
function useLazyUnmount(_a, delayTime) {
|
|
41
|
+
var doUnmount = _a.doUnmount;
|
|
42
|
+
function lazyUnmountAsync() {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
44
|
+
return __generator(this, function (_a) {
|
|
45
|
+
switch (_a.label) {
|
|
46
|
+
case 0: return [4 /*yield*/, new Promise(function (resolve) {
|
|
47
|
+
setTimeout(function () {
|
|
48
|
+
doUnmount();
|
|
49
|
+
resolve(true);
|
|
50
|
+
}, delayTime);
|
|
51
|
+
})];
|
|
52
|
+
case 1:
|
|
53
|
+
_a.sent();
|
|
54
|
+
return [2 /*return*/];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return lazyUnmountAsync;
|
|
60
|
+
}
|
|
61
|
+
exports.default = useLazyUnmount;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useUnmountStyle } from './useUmountStyle';
|
|
@@ -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.useUnmountStyle = void 0;
|
|
7
|
+
var useUmountStyle_1 = require("./useUmountStyle");
|
|
8
|
+
Object.defineProperty(exports, "useUnmountStyle", { enumerable: true, get: function () { return __importDefault(useUmountStyle_1).default; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare type Options = {
|
|
2
|
+
mountStyle: Record<string, unknown>;
|
|
3
|
+
unmountStyle: Record<string, unknown>;
|
|
4
|
+
handleUnmount: () => void;
|
|
5
|
+
};
|
|
6
|
+
export default function useUnmountStyle({ mountStyle, unmountStyle, handleUnmount }: Options, delayTime: number): {
|
|
7
|
+
animationStyle: Record<string, unknown>;
|
|
8
|
+
handleUnmountWithAnimation: () => Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
var react_1 = require("react");
|
|
40
|
+
// NOTE: promise의 delay time은 정확하지 않기때문에, 애니메이션 딜레이보다 짧게 가는것이 보기 좋습니다.
|
|
41
|
+
function useUnmountStyle(_a, delayTime) {
|
|
42
|
+
var mountStyle = _a.mountStyle, unmountStyle = _a.unmountStyle, handleUnmount = _a.handleUnmount;
|
|
43
|
+
var _b = (0, react_1.useState)(mountStyle), animationStyle = _b[0], setAnimationStyle = _b[1];
|
|
44
|
+
function handleUnmountWithAnimation() {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
46
|
+
return __generator(this, function (_a) {
|
|
47
|
+
switch (_a.label) {
|
|
48
|
+
case 0:
|
|
49
|
+
setAnimationStyle(unmountStyle);
|
|
50
|
+
return [4 /*yield*/, new Promise(function (resolve) {
|
|
51
|
+
setTimeout(function () {
|
|
52
|
+
handleUnmount();
|
|
53
|
+
resolve(true);
|
|
54
|
+
}, delayTime);
|
|
55
|
+
})];
|
|
56
|
+
case 1:
|
|
57
|
+
_a.sent();
|
|
58
|
+
return [2 /*return*/];
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return { animationStyle: animationStyle, handleUnmountWithAnimation: handleUnmountWithAnimation };
|
|
64
|
+
}
|
|
65
|
+
exports.default = useUnmountStyle;
|