pds-dev-kit-web-test 0.0.10 → 0.0.12
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/.vscode/settings.json +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/index.js +21 -6
- package/dist/src/common/assets/icons/fill/Bookmark.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Bookmark.js +34 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +1 -0
- package/dist/src/common/assets/icons/fill/index.js +2 -0
- package/dist/src/common/assets/icons/line/BellNotification.js +2 -2
- package/dist/src/common/assets/icons/line/Bookmark.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Bookmark.js +34 -0
- package/dist/src/common/assets/icons/line/HeartCare.d.ts +4 -0
- package/dist/src/common/assets/icons/line/HeartCare.js +36 -0
- package/dist/src/common/assets/icons/line/PhotoMultiple.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PhotoMultiple.js +37 -0
- package/dist/src/common/assets/icons/line/PostArticle.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PostArticle.js +36 -0
- package/dist/src/common/assets/icons/line/Unlock.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Unlock.js +36 -0
- package/dist/src/common/assets/icons/line/VodShorts.d.ts +4 -0
- package/dist/src/common/assets/icons/line/VodShorts.js +36 -0
- package/dist/src/common/assets/icons/line/index.d.ts +6 -0
- package/dist/src/common/assets/icons/line/index.js +12 -0
- package/dist/src/common/assets/lotties/Confetti.json +1 -0
- package/dist/src/common/assets/lotties/Fire.json +1 -0
- package/dist/src/common/assets/lotties/Heart.json +1 -0
- package/dist/src/common/assets/lotties/Sad.json +1 -0
- package/dist/src/common/assets/lotties/ThumbUp.json +1 -0
- package/dist/src/common/assets/lotties/index.d.ts +2513 -0
- package/dist/src/common/assets/lotties/index.js +18 -0
- package/dist/src/common/components/CircularProgress/CircularProgress.d.ts +8 -0
- package/dist/src/common/components/CircularProgress/CircularProgress.js +74 -0
- package/dist/src/common/components/CircularProgress/index.d.ts +1 -0
- package/dist/src/common/components/CircularProgress/index.js +8 -0
- package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.d.ts +7 -0
- package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.js +26 -0
- package/dist/src/common/components/ThreeBarProgress/index.d.ts +1 -0
- package/dist/src/common/components/ThreeBarProgress/index.js +8 -0
- package/dist/src/common/components/index.d.ts +3 -1
- package/dist/src/common/components/index.js +5 -1
- package/dist/src/common/index.d.ts +2 -2
- package/dist/src/common/index.js +5 -1
- package/dist/src/common/styles/ToneTest/ToneTest.js +12 -0
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +33 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +33 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +13 -1
- package/dist/src/common/styles/colorSet/UIColor.json +62 -2
- package/dist/src/common/styles/colorSet/index.d.ts +316 -180
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/common/styles/colorSet/ui-type.d.ts +60 -0
- package/dist/src/common/styles/index.d.ts +49 -0
- package/dist/src/common/styles/index.js +9 -1
- package/dist/src/common/styles/loading/index.d.ts +1 -0
- package/dist/src/common/styles/loading/index.js +5 -0
- package/dist/src/common/styles/loading/skeletonLoadingStyle.d.ts +1 -0
- package/dist/src/common/styles/loading/skeletonLoadingStyle.js +28 -0
- package/dist/src/common/styles/theme.js +16 -17
- package/dist/src/common/types/components.d.ts +1 -1
- package/dist/src/common/types/styled-components.d.ts +13 -13
- package/dist/src/common/utils/numberHelper.d.ts +2 -0
- package/dist/src/common/utils/numberHelper.js +11 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +1 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +8 -4
- package/dist/src/desktop/components/AdminList/AdminList.d.ts +2 -1
- package/dist/src/desktop/components/AdminList/AdminList.js +7 -4
- package/dist/src/desktop/components/AdminList/HeaderRow.d.ts +2 -1
- package/dist/src/desktop/components/AdminList/HeaderRow.js +2 -2
- package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +4 -3
- package/dist/src/desktop/components/AdminListItem/AdminListItem.js +30 -6
- package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.d.ts +1 -1
- package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.js +7 -3
- package/dist/src/desktop/components/BasicList/BasicList.d.ts +2 -1
- package/dist/src/desktop/components/BasicList/BasicList.js +4 -4
- package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +5 -1
- package/dist/src/desktop/components/BasicListItem/BasicListItem.js +58 -22
- package/dist/src/desktop/components/Card/Card.d.ts +2 -2
- package/dist/src/desktop/components/Card/Card.js +2 -2
- package/dist/src/desktop/components/ChatList/Body.d.ts +1 -1
- package/dist/src/desktop/components/ChatList/Body.js +2 -1
- package/dist/src/desktop/components/ChatList/ChatList.d.ts +2 -1
- package/dist/src/desktop/components/ChatList/ChatList.js +8 -8
- package/dist/src/desktop/components/ChatList/ChatTextField.d.ts +2 -2
- package/dist/src/desktop/components/ChatList/ChatTextField.js +2 -2
- package/dist/src/desktop/components/ChatList/Footer.d.ts +2 -2
- package/dist/src/desktop/components/ChatList/Footer.js +2 -2
- package/dist/src/desktop/components/ChatList/Header.d.ts +2 -2
- package/dist/src/desktop/components/ChatList/Header.js +5 -5
- package/dist/src/desktop/components/Chip/Chip.d.ts +7 -5
- package/dist/src/desktop/components/Chip/Chip.js +16 -17
- package/dist/src/desktop/components/DesktopAlertDialog/DesktopAlertDialog.d.ts +3 -3
- package/dist/src/desktop/components/Dropdown/Dropdown.js +1 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.d.ts +4 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.js +28 -11
- package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/PrimaryMenu.js +1 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/UserProfile.d.ts +4 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/UserProfile.js +8 -4
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/InternalLinkMenuItemNav.js +4 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/utils.d.ts +1 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/utils.js +19 -0
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +1 -1
- package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.d.ts +3 -3
- package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.js +4 -4
- package/dist/src/desktop/components/LottieReactionButton/LottieReactionButton.d.ts +18 -0
- package/dist/src/desktop/components/LottieReactionButton/LottieReactionButton.js +154 -0
- package/dist/src/desktop/components/LottieReactionButton/index.d.ts +1 -0
- package/dist/src/desktop/components/LottieReactionButton/index.js +8 -0
- package/dist/src/desktop/components/MainButton/MainButton.d.ts +6 -4
- package/dist/src/desktop/components/MainButton/MainButton.js +47 -15
- package/dist/src/desktop/components/ReactionButton/ReactionButton.d.ts +4 -4
- package/dist/src/desktop/components/ReactionButton/ReactionButton.js +10 -20
- package/dist/src/desktop/components/TextButton/TextButton.d.ts +2 -2
- package/dist/src/desktop/components/TextButton/TextButton.js +2 -2
- package/dist/src/desktop/components/TextField/TextField.d.ts +1 -1
- package/dist/src/desktop/components/TextField/TextField.js +81 -31
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +1 -0
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.d.ts +3 -1
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +72 -31
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +1 -0
- package/dist/src/desktop/components/UserDesktopSideTab/UserDesktopSideTab.js +1 -1
- package/dist/src/desktop/components/index.d.ts +2 -1
- package/dist/src/desktop/components/index.js +3 -1
- package/dist/src/desktop/index.d.ts +4 -4
- package/dist/src/desktop/index.js +6 -2
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.js +24 -24
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFA.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFA.js +8 -6
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFB.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFB.js +4 -3
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFC.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFC.js +4 -4
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFD.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFD.js +4 -4
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFE.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFE.js +4 -3
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFF.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFF.js +4 -4
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFG.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFG.js +6 -7
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFH.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFH.js +4 -4
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFI.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFI.js +6 -7
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFJ.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFJ.js +4 -4
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFK.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFK.js +6 -7
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.js +3 -3
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/ContentsContainer.d.ts +4 -2
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/ContentsContainer.js +19 -18
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSA.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSA.js +4 -4
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSB.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSB.js +4 -4
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSC.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSC.js +4 -4
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSD.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSD.js +4 -4
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSE.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSE.js +5 -5
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSF.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSF.js +6 -7
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSG.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSG.js +6 -7
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSH.d.ts +12 -0
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSH.js +80 -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 +4 -2
- package/dist/src/desktop/layout/LayoutWS/ContainersBox/ContainersBox.js +2 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts +4 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.js +44 -43
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTA.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTA.js +4 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTB.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTB.js +4 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTC.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTC.js +4 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTD.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTD.js +6 -7
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTE.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTE.js +4 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTF.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTF.js +6 -7
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTG.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTG.js +4 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTH.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTH.js +4 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTI.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTI.js +4 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTJ.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTJ.js +6 -7
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTK.d.ts +5 -3
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTK.js +48 -13
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTL.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTL.js +4 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTM.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTM.js +4 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTN.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTN.js +4 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTO.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTO.js +4 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTP.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTP.js +4 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTQ.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTQ.js +6 -7
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTS.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTS.js +4 -3
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTT.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTT.js +4 -3
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.d.ts +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +6 -7
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.d.ts +4 -2
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.js +6 -2
- package/dist/src/desktop/panels/AnnotationSheet/AnnotationSheet.d.ts +57 -0
- package/dist/src/desktop/panels/AnnotationSheet/AnnotationSheet.js +134 -0
- package/dist/src/desktop/panels/AnnotationSheet/index.d.ts +1 -0
- package/dist/src/desktop/panels/AnnotationSheet/index.js +8 -0
- package/dist/src/desktop/panels/ContentSheet/ContentSheet.d.ts +60 -0
- package/dist/src/desktop/panels/ContentSheet/ContentSheet.js +142 -0
- package/dist/src/desktop/panels/ContentSheet/index.d.ts +1 -0
- package/dist/src/desktop/panels/ContentSheet/index.js +8 -0
- package/dist/src/desktop/panels/SectionSheet/SectionSheet.d.ts +57 -0
- package/dist/src/desktop/panels/SectionSheet/SectionSheet.js +134 -0
- package/dist/src/desktop/panels/SectionSheet/index.d.ts +1 -0
- package/dist/src/desktop/panels/SectionSheet/index.js +8 -0
- package/dist/src/desktop/panels/index.d.ts +4 -1
- package/dist/src/desktop/panels/index.js +7 -1
- package/dist/src/hybrid/components/Divider/Divider.d.ts +1 -1
- package/dist/src/hybrid/components/Divider/Divider.js +17 -4
- package/dist/src/hybrid/components/Icon/Icon.js +2 -1
- package/dist/src/hybrid/components/ImageView/ImageView.d.ts +3 -2
- package/dist/src/hybrid/components/ImageView/ImageView.js +38 -4
- package/dist/src/hybrid/components/LinearProgress/LinearProgress.d.ts +6 -0
- package/dist/src/hybrid/components/LinearProgress/LinearProgress.js +29 -0
- package/dist/src/hybrid/components/LinearProgress/index.d.ts +1 -0
- package/dist/src/hybrid/components/LinearProgress/index.js +8 -0
- package/dist/src/hybrid/components/LottieIcon/LottieIcon.d.ts +13 -0
- package/dist/src/hybrid/components/LottieIcon/LottieIcon.js +34 -0
- package/dist/src/hybrid/components/LottieIcon/index.d.ts +1 -0
- package/dist/src/hybrid/components/LottieIcon/index.js +8 -0
- package/dist/src/hybrid/components/index.d.ts +3 -1
- package/dist/src/hybrid/components/index.js +5 -1
- package/dist/src/hybrid/index.d.ts +2 -2
- package/dist/src/hybrid/index.js +3 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +1 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +8 -4
- package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.d.ts +1 -1
- package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.js +7 -3
- package/dist/src/mobile/components/BasicList/BasicList.d.ts +2 -1
- package/dist/src/mobile/components/BasicList/BasicList.js +4 -4
- package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +4 -1
- package/dist/src/mobile/components/BasicListItem/BasicListItem.js +58 -22
- package/dist/src/mobile/components/Card/Card.d.ts +2 -2
- package/dist/src/mobile/components/Card/Card.js +2 -2
- package/dist/src/mobile/components/ChatList/Body.d.ts +1 -1
- package/dist/src/mobile/components/ChatList/Body.js +2 -1
- package/dist/src/mobile/components/ChatList/ChatList.d.ts +2 -1
- package/dist/src/mobile/components/ChatList/ChatList.js +8 -8
- package/dist/src/mobile/components/ChatList/ChatTextField.d.ts +2 -2
- package/dist/src/mobile/components/ChatList/ChatTextField.js +2 -2
- package/dist/src/mobile/components/ChatList/Footer.d.ts +2 -2
- package/dist/src/mobile/components/ChatList/Footer.js +2 -2
- package/dist/src/mobile/components/ChatList/Header.d.ts +2 -2
- package/dist/src/mobile/components/ChatList/Header.js +5 -5
- package/dist/src/mobile/components/Chip/Chip.d.ts +7 -5
- package/dist/src/mobile/components/Chip/Chip.js +16 -17
- package/dist/src/mobile/components/Dropdown/Dropdown.js +1 -1
- package/dist/src/mobile/components/FloatingActionButton/FloatingActionButton.d.ts +16 -0
- package/dist/src/mobile/components/FloatingActionButton/FloatingActionButton.js +89 -0
- package/dist/src/mobile/components/FloatingActionButton/index.d.ts +1 -0
- package/dist/src/mobile/components/FloatingActionButton/index.js +8 -0
- package/dist/src/mobile/components/LottieReactionButton/LottieReactionButton.d.ts +20 -0
- package/dist/src/mobile/components/LottieReactionButton/LottieReactionButton.js +157 -0
- package/dist/src/mobile/components/LottieReactionButton/index.d.ts +1 -0
- package/dist/src/mobile/components/LottieReactionButton/index.js +8 -0
- package/dist/src/mobile/components/MainButton/MainButton.d.ts +6 -4
- package/dist/src/mobile/components/MainButton/MainButton.js +46 -15
- package/dist/src/mobile/components/MobileAlertDialog/MobileAlertDialog.d.ts +3 -3
- package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.d.ts +4 -4
- package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.js +6 -6
- package/dist/src/mobile/components/ReactionButton/ReactionButton.d.ts +4 -4
- package/dist/src/mobile/components/ReactionButton/ReactionButton.js +10 -20
- package/dist/src/mobile/components/TextButton/TextButton.d.ts +2 -2
- package/dist/src/mobile/components/TextButton/TextButton.js +2 -2
- package/dist/src/mobile/components/TextField/TextField.d.ts +1 -1
- package/dist/src/mobile/components/TextField/TextField.js +81 -31
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +1 -0
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.d.ts +3 -1
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +58 -21
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +1 -0
- package/dist/src/mobile/components/index.d.ts +3 -1
- package/dist/src/mobile/components/index.js +5 -1
- package/dist/src/mobile/index.d.ts +4 -4
- package/dist/src/mobile/index.js +6 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/ContentsContainer.d.ts +3 -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 +2 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFA.js +4 -4
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.js +6 -7
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.d.ts +2 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.js +4 -4
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.d.ts +2 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.js +4 -4
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.js +6 -7
- package/dist/src/mobile/layout/LayoutMF/ContainersBox/ContainersBox.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMF/ContainersBox/ContainersBox.js +2 -2
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/ContentsContainer.d.ts +2 -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 +2 -1
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMA.js +4 -4
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.d.ts +2 -1
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.js +4 -4
- package/dist/src/mobile/layout/LayoutMM/ContainersBox/ContainersBox.d.ts +2 -1
- package/dist/src/mobile/layout/LayoutMM/ContainersBox/ContainersBox.js +2 -2
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/ContentsContainer.d.ts +3 -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 +2 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.js +4 -4
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.d.ts +2 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.js +4 -4
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.js +6 -7
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.d.ts +2 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.js +4 -4
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.d.ts +2 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.js +4 -4
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.js +6 -7
- package/dist/src/mobile/layout/LayoutMP/ContainersBox/ContainersBox.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMP/ContainersBox/ContainersBox.js +2 -2
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/ContentsContainer.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/ContentsContainer.js +11 -11
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.d.ts +2 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.js +4 -4
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.d.ts +2 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.js +4 -4
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.js +6 -7
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.d.ts +2 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.js +4 -4
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.d.ts +2 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.js +4 -4
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.js +6 -7
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.d.ts +2 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.js +4 -4
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.d.ts +2 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.js +4 -4
- package/dist/src/mobile/layout/LayoutMS/ContainersBox/ContainersBox.d.ts +3 -1
- package/dist/src/mobile/layout/LayoutMS/ContainersBox/ContainersBox.js +2 -2
- package/dist/src/mobile/panels/AnnotationSheet/AnnotationSheet.d.ts +56 -0
- package/dist/src/mobile/panels/AnnotationSheet/AnnotationSheet.js +131 -0
- package/dist/src/mobile/panels/AnnotationSheet/index.d.ts +1 -0
- package/dist/src/mobile/panels/AnnotationSheet/index.js +8 -0
- package/dist/src/mobile/panels/ContentSheet/ContentSheet.d.ts +59 -0
- package/dist/src/mobile/panels/ContentSheet/ContentSheet.js +139 -0
- package/dist/src/mobile/panels/ContentSheet/index.d.ts +1 -0
- package/dist/src/mobile/panels/ContentSheet/index.js +8 -0
- package/dist/src/mobile/panels/SectionSheet/SectionSheet.d.ts +56 -0
- package/dist/src/mobile/panels/SectionSheet/SectionSheet.js +131 -0
- package/dist/src/mobile/panels/SectionSheet/index.d.ts +1 -0
- package/dist/src/mobile/panels/SectionSheet/index.js +8 -0
- package/dist/src/mobile/panels/index.d.ts +4 -1
- package/dist/src/mobile/panels/index.js +7 -1
- package/package.json +2 -1
- package/release-note.md +9 -4
|
@@ -0,0 +1,89 @@
|
|
|
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 = __importDefault(require("react"));
|
|
30
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
+
var hybrid_1 = require("../../../hybrid");
|
|
32
|
+
var TextLabel_1 = require("../TextLabel");
|
|
33
|
+
function FloatingActionButton(_a) {
|
|
34
|
+
var text = _a.text, _b = _a.displayType, displayType = _b === void 0 ? 'icon_text' : _b, _c = _a.size, size = _c === void 0 ? 'large' : _c, _d = _a.fontWeight, fontWeight = _d === void 0 ? 'bold' : _d, _e = _a.iconFillType, iconFillType = _e === void 0 ? 'line' : _e, iconName = _a.iconName, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
35
|
+
var handleClick = function (e) {
|
|
36
|
+
if (onClick) {
|
|
37
|
+
onClick(e);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var handleMouseDown = function (e) {
|
|
41
|
+
if (onMouseDown) {
|
|
42
|
+
onMouseDown(e);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var iconColor = function () {
|
|
46
|
+
if (state === 'disable') {
|
|
47
|
+
return 'ui_cpnt_button_icon_disabled';
|
|
48
|
+
}
|
|
49
|
+
return 'ui_cpnt_button_icon_on_primary';
|
|
50
|
+
};
|
|
51
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
52
|
+
displayType === 'icon_only' && (react_1.default.createElement(S_ButtonIconOnly, { size: size, colorTheme: colorTheme, state: state, disabled: state === 'disable', onClick: handleClick, onMouseDown: handleMouseDown },
|
|
53
|
+
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' ? 20 : 24, colorKey: iconColor(), fillType: iconFillType }))),
|
|
54
|
+
displayType !== 'icon_only' && (react_1.default.createElement(S_Button, { size: size, colorTheme: colorTheme, state: state, disabled: state === 'disable', onClick: handleClick, onMouseDown: handleMouseDown },
|
|
55
|
+
displayType === 'text_only' && (react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: fontWeight === 'regular' ? 'body1Regular' : 'body1Bold', singleLineMode: "use", colorTheme: state === 'disable' ? 'sysTextTertiary' : 'usrTextBrandOnPrimary', colorOverride: state === 'disable' ? 'ui_cpnt_button_icon_darktheme_disabled' : undefined })),
|
|
56
|
+
displayType === 'icon_text' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
57
|
+
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: 20, colorKey: iconColor(), fillType: iconFillType }),
|
|
58
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }),
|
|
59
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: fontWeight === 'regular' ? 'body1Regular' : 'body1Bold', singleLineMode: "use", colorTheme: state === 'disable' ? 'sysTextTertiary' : 'usrTextBrandOnPrimary', colorOverride: state === 'disable' ? 'ui_cpnt_button_icon_darktheme_disabled' : undefined })))))));
|
|
60
|
+
}
|
|
61
|
+
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n width: 48px;\n border-radius: 24px;\n"], ["\n height: 48px;\n width: 48px;\n border-radius: 24px;\n"])));
|
|
62
|
+
var xlarge = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 64px;\n width: 64px;\n border-radius: 32px;\n"], ["\n height: 64px;\n width: 64px;\n border-radius: 32px;\n"])));
|
|
63
|
+
var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
64
|
+
var theme = _a.theme;
|
|
65
|
+
return theme.ui_cpnt_button_fill_base_disabled;
|
|
66
|
+
});
|
|
67
|
+
var floatingActionButtonStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n right: 24px;\n bottom: 24px;\n background-color: ", ";\n border: none;\n box-sizing: border-box;\n box-shadow: ", ";\n z-index: 101;\n\n &:focus {\n outline: none;\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n right: 24px;\n bottom: 24px;\n background-color: ", ";\n border: none;\n box-sizing: border-box;\n box-shadow: ", ";\n z-index: 101;\n\n &:focus {\n outline: none;\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"])), function (_a) {
|
|
68
|
+
var theme = _a.theme;
|
|
69
|
+
return theme.ui_cpnt_button_fill_base_primary;
|
|
70
|
+
}, function (_a) {
|
|
71
|
+
var theme = _a.theme;
|
|
72
|
+
return theme.boxShadow.elevation3;
|
|
73
|
+
}, function (_a) {
|
|
74
|
+
var theme = _a.theme;
|
|
75
|
+
return "background-image: linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_pressed + ",\n " + theme.ui_cpnt_button_fill_on_base_pressed + "\n );";
|
|
76
|
+
}, function (_a) {
|
|
77
|
+
var state = _a.state;
|
|
78
|
+
return state === 'disable' && disabled;
|
|
79
|
+
});
|
|
80
|
+
var S_ButtonIconOnly = styled_components_1.default.button(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding: none;\n ", ";\n ", ";\n"], ["\n padding: none;\n ", ";\n ", ";\n"])), floatingActionButtonStyle, function (_a) {
|
|
81
|
+
var size = _a.size;
|
|
82
|
+
return size && { large: large, xlarge: xlarge }[size];
|
|
83
|
+
});
|
|
84
|
+
var S_Button = styled_components_1.default.button(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n height: 48px;\n padding: ", ";\n border-radius: 14px;\n ", ";\n"], ["\n height: 48px;\n padding: ", ";\n border-radius: 14px;\n ", ";\n"])), function (_a) {
|
|
85
|
+
var theme = _a.theme;
|
|
86
|
+
return "0 " + theme.spacing.spacingE;
|
|
87
|
+
}, floatingActionButtonStyle);
|
|
88
|
+
exports.default = FloatingActionButton;
|
|
89
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FloatingActionButton } from './FloatingActionButton';
|
|
@@ -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.FloatingActionButton = void 0;
|
|
7
|
+
var FloatingActionButton_1 = require("./FloatingActionButton");
|
|
8
|
+
Object.defineProperty(exports, "FloatingActionButton", { enumerable: true, get: function () { return __importDefault(FloatingActionButton_1).default; } });
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { AnimationEventHandler } from 'react';
|
|
2
|
+
import { PDSTextType, UiColors } from '../../../common';
|
|
3
|
+
import { LottieIconNameKeys } from '../../../common/assets/lotties';
|
|
4
|
+
export declare type LottieReactionButtonProps = {
|
|
5
|
+
text?: PDSTextType;
|
|
6
|
+
actionText?: PDSTextType;
|
|
7
|
+
iconName?: LottieIconNameKeys;
|
|
8
|
+
displayType?: 'icon_only' | 'icon_text';
|
|
9
|
+
backgroundColorTheme?: 'base1' | 'base2' | 'base3' | 'base4' | 'base5';
|
|
10
|
+
overrideBackgroundColorKey?: UiColors;
|
|
11
|
+
state?: 'normal' | 'view_only' | 'disabled';
|
|
12
|
+
type?: 'button' | 'submit';
|
|
13
|
+
onTouchStart?: (e: React.TouchEvent<HTMLButtonElement>) => void;
|
|
14
|
+
onTouchEnd?: (e: React.TouchEvent<HTMLButtonElement>) => void;
|
|
15
|
+
onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
16
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
17
|
+
onComplete?: AnimationEventHandler | null;
|
|
18
|
+
};
|
|
19
|
+
declare function LottieReactionButton({ text, actionText, iconName, displayType, backgroundColorTheme, overrideBackgroundColorKey, type, state, onTouchStart, onTouchEnd, onMouseDown, onClick, onComplete }: LottieReactionButtonProps): JSX.Element;
|
|
20
|
+
export default LottieReactionButton;
|
|
@@ -0,0 +1,157 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
var react_1 = __importStar(require("react"));
|
|
27
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
28
|
+
var numberHelper_1 = require("../../../common/utils/numberHelper");
|
|
29
|
+
var hybrid_1 = require("../../../hybrid");
|
|
30
|
+
var TextLabel_1 = require("../TextLabel");
|
|
31
|
+
function LottieReactionButton(_a) {
|
|
32
|
+
var text = _a.text, actionText = _a.actionText, _b = _a.iconName, iconName = _b === void 0 ? 'ic_lottie_heart' : _b, _c = _a.displayType, displayType = _c === void 0 ? 'icon_text' : _c, _d = _a.backgroundColorTheme, backgroundColorTheme = _d === void 0 ? 'base1' : _d, overrideBackgroundColorKey = _a.overrideBackgroundColorKey, _e = _a.type, type = _e === void 0 ? 'button' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, onTouchStart = _a.onTouchStart, onTouchEnd = _a.onTouchEnd, onMouseDown = _a.onMouseDown, onClick = _a.onClick, onComplete = _a.onComplete;
|
|
33
|
+
var lottieRef = (0, react_1.useRef)(null);
|
|
34
|
+
var convertFormatHelper = function (value) {
|
|
35
|
+
if (typeof value !== 'number')
|
|
36
|
+
return value;
|
|
37
|
+
return (0, numberHelper_1.formatCompactNumber)(value);
|
|
38
|
+
};
|
|
39
|
+
var convertFormatText = convertFormatHelper(text);
|
|
40
|
+
var _g = (0, react_1.useState)(false), isAnimation = _g[0], setIsAnimation = _g[1];
|
|
41
|
+
var _h = (0, react_1.useState)(convertFormatText), textWord = _h[0], setTextWord = _h[1];
|
|
42
|
+
var handleTouchStart = function (e) {
|
|
43
|
+
setIsAnimation(false);
|
|
44
|
+
if (onTouchStart) {
|
|
45
|
+
onTouchStart(e);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
var handleTouchEnd = function (e) {
|
|
49
|
+
var _a, _b;
|
|
50
|
+
setIsAnimation(true);
|
|
51
|
+
(_a = lottieRef.current) === null || _a === void 0 ? void 0 : _a.playSegments([[0, 30]], true);
|
|
52
|
+
setTextWord((_b = actionText !== null && actionText !== void 0 ? actionText : convertFormatText) !== null && _b !== void 0 ? _b : '');
|
|
53
|
+
if (onTouchEnd) {
|
|
54
|
+
onTouchEnd(e);
|
|
55
|
+
}
|
|
56
|
+
e.preventDefault();
|
|
57
|
+
};
|
|
58
|
+
var handleMouseDown = function (e) {
|
|
59
|
+
setIsAnimation(false);
|
|
60
|
+
if (onMouseDown) {
|
|
61
|
+
onMouseDown(e);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var handleClick = function (e) {
|
|
65
|
+
var _a, _b;
|
|
66
|
+
setIsAnimation(true);
|
|
67
|
+
(_a = lottieRef.current) === null || _a === void 0 ? void 0 : _a.playSegments([[0, 30]], true);
|
|
68
|
+
setTextWord((_b = actionText !== null && actionText !== void 0 ? actionText : convertFormatText) !== null && _b !== void 0 ? _b : '');
|
|
69
|
+
if (onClick) {
|
|
70
|
+
onClick(e);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
var handleLottieIconComplete = function (e) {
|
|
74
|
+
setTextWord(convertFormatText);
|
|
75
|
+
if (onComplete) {
|
|
76
|
+
onComplete(e);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
return (react_1.default.createElement(S_Button, { displayType: displayType, backgroundColorTheme: backgroundColorTheme, overrideBackgroundColorKey: overrideBackgroundColorKey, state: state, disabled: state === 'disabled' || state === 'view_only', type: type, onTouchStart: handleTouchStart, onTouchEnd: handleTouchEnd, onMouseDown: handleMouseDown, onClick: handleClick, isAnimation: isAnimation },
|
|
80
|
+
react_1.default.createElement(hybrid_1.LottieIcon, { iconName: iconName, lottieRef: lottieRef, autoplayMode: "none", loopMode: "none", onComplete: handleLottieIconComplete }),
|
|
81
|
+
displayType === 'icon_text' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
82
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }),
|
|
83
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: textWord, singleLineMode: "use", colorTheme: "sysTextWhite", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })))));
|
|
84
|
+
}
|
|
85
|
+
var disabled = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n cursor: default;\n"], ["\n background-color: ", ";\n cursor: default;\n"])), function (_a) {
|
|
86
|
+
var theme = _a.theme;
|
|
87
|
+
return theme.ui_cpnt_button_fill_base_disabled;
|
|
88
|
+
});
|
|
89
|
+
var normal = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n\n &:focus {\n outline: none;\n }\n\n &:active:enabled {\n ", "\n }\n"], ["\n cursor: pointer;\n\n &:focus {\n outline: none;\n }\n\n &:active:enabled {\n ", "\n }\n"])), function (_a) {
|
|
90
|
+
var theme = _a.theme;
|
|
91
|
+
return "background-image: linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_pressed + ",\n " + theme.ui_cpnt_button_fill_on_base_pressed + "\n );";
|
|
92
|
+
});
|
|
93
|
+
var view_only = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n cursor: default;\n"], ["\n cursor: default;\n"])));
|
|
94
|
+
var buttonAnimation = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n @keyframes gelatine {\n from,\n to {\n transform: scale(1, 1);\n }\n 25% {\n transform: scale(0.95, 1.1);\n }\n 50% {\n transform: scale(1.05, 0.9);\n }\n 75% {\n transform: scale(0.97, 1.05);\n }\n }\n\n animation: gelatine 1s 1;\n"], ["\n @keyframes gelatine {\n from,\n to {\n transform: scale(1, 1);\n }\n 25% {\n transform: scale(0.95, 1.1);\n }\n 50% {\n transform: scale(1.05, 0.9);\n }\n 75% {\n transform: scale(0.97, 1.05);\n }\n }\n\n animation: gelatine 1s 1;\n"])));
|
|
95
|
+
var icon_only = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 32px;\n width: 32px;\n min-height: 32px;\n min-width: 32px;\n border-radius: 16px;\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n height: 32px;\n width: 32px;\n min-height: 32px;\n min-width: 32px;\n border-radius: 16px;\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])));
|
|
96
|
+
var icon_text = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n height: 32px;\n min-height: 32px;\n min-width: 64px;\n border-radius: 16px;\n padding: 0 ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n height: 32px;\n min-height: 32px;\n min-width: 64px;\n border-radius: 16px;\n padding: 0 ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
|
|
97
|
+
var theme = _a.theme;
|
|
98
|
+
return theme.spacing.spacingB;
|
|
99
|
+
});
|
|
100
|
+
var base1 = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
101
|
+
var theme = _a.theme;
|
|
102
|
+
return theme.ui_cpnt_lottiereactionbutton_base_01;
|
|
103
|
+
});
|
|
104
|
+
var base2 = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
105
|
+
var theme = _a.theme;
|
|
106
|
+
return theme.ui_cpnt_lottiereactionbutton_base_02;
|
|
107
|
+
});
|
|
108
|
+
var base3 = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
109
|
+
var theme = _a.theme;
|
|
110
|
+
return theme.ui_cpnt_lottiereactionbutton_base_03;
|
|
111
|
+
});
|
|
112
|
+
var base4 = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
113
|
+
var theme = _a.theme;
|
|
114
|
+
return theme.ui_cpnt_lottiereactionbutton_base_04;
|
|
115
|
+
});
|
|
116
|
+
var base5 = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
117
|
+
var theme = _a.theme;
|
|
118
|
+
return theme.ui_cpnt_lottiereactionbutton_base_05;
|
|
119
|
+
});
|
|
120
|
+
var overrideStyle = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
121
|
+
var theme = _a.theme, overrideBackgroundColorKey = _a.overrideBackgroundColorKey;
|
|
122
|
+
return overrideBackgroundColorKey && theme[overrideBackgroundColorKey];
|
|
123
|
+
});
|
|
124
|
+
var S_Button = styled_components_1.default.button(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
|
125
|
+
var backgroundColorTheme = _a.backgroundColorTheme;
|
|
126
|
+
return backgroundColorTheme &&
|
|
127
|
+
{
|
|
128
|
+
base1: base1,
|
|
129
|
+
base2: base2,
|
|
130
|
+
base3: base3,
|
|
131
|
+
base4: base4,
|
|
132
|
+
base5: base5
|
|
133
|
+
}[backgroundColorTheme];
|
|
134
|
+
}, function (_a) {
|
|
135
|
+
var isAnimation = _a.isAnimation;
|
|
136
|
+
return isAnimation && buttonAnimation;
|
|
137
|
+
}, function (_a) {
|
|
138
|
+
var displayType = _a.displayType;
|
|
139
|
+
return displayType &&
|
|
140
|
+
{
|
|
141
|
+
icon_only: icon_only,
|
|
142
|
+
icon_text: icon_text
|
|
143
|
+
}[displayType];
|
|
144
|
+
}, function (_a) {
|
|
145
|
+
var overrideBackgroundColorKey = _a.overrideBackgroundColorKey;
|
|
146
|
+
return overrideBackgroundColorKey && overrideStyle;
|
|
147
|
+
}, function (_a) {
|
|
148
|
+
var state = _a.state;
|
|
149
|
+
return state &&
|
|
150
|
+
{
|
|
151
|
+
normal: normal,
|
|
152
|
+
disabled: disabled,
|
|
153
|
+
view_only: view_only
|
|
154
|
+
}[state];
|
|
155
|
+
});
|
|
156
|
+
exports.default = LottieReactionButton;
|
|
157
|
+
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LottieReactionButton } from './LottieReactionButton';
|
|
@@ -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.LottieReactionButton = void 0;
|
|
7
|
+
var LottieReactionButton_1 = require("./LottieReactionButton");
|
|
8
|
+
Object.defineProperty(exports, "LottieReactionButton", { enumerable: true, get: function () { return __importDefault(LottieReactionButton_1).default; } });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
|
|
3
3
|
export declare type MainButtonProps = {
|
|
4
4
|
text?: PDSTextType;
|
|
@@ -14,8 +14,10 @@ export declare type MainButtonProps = {
|
|
|
14
14
|
colorTheme?: 'none' | 'line1' | 'line2' | 'line3';
|
|
15
15
|
type?: 'button' | 'submit';
|
|
16
16
|
state?: 'normal' | 'disabled';
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
isSubmitting?: boolean;
|
|
19
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
20
|
+
onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
21
|
};
|
|
20
|
-
declare function MainButton({ text, shapeType, fillType, styleTheme, size, responsiveMode, fontWeight, iconMode, iconFillType, iconName, colorTheme, type, state, onClick, onMouseDown }: MainButtonProps): JSX.Element;
|
|
22
|
+
declare function MainButton({ text, shapeType, fillType, styleTheme, size, responsiveMode, fontWeight, iconMode, iconFillType, iconName, colorTheme, type, state, isLoading, isSubmitting, onClick, onMouseDown }: MainButtonProps): JSX.Element;
|
|
21
23
|
export default MainButton;
|
|
@@ -28,6 +28,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
+
var components_1 = require("../../../common/components");
|
|
32
|
+
var styles_1 = require("../../../common/styles");
|
|
31
33
|
var hybrid_1 = require("../../../hybrid");
|
|
32
34
|
var TextLabel_1 = require("../TextLabel");
|
|
33
35
|
// NOTE : 기획상 아직 사용하지 않는 props
|
|
@@ -36,17 +38,35 @@ var TextLabel_1 = require("../TextLabel");
|
|
|
36
38
|
// borderColorKey?: string;
|
|
37
39
|
// shadow?: 'hidden' | 'visible';
|
|
38
40
|
function MainButton(_a) {
|
|
39
|
-
var text = _a.text, _b = _a.shapeType, shapeType = _b === void 0 ? 'round' : _b, fillType = _a.fillType, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? 'large' : _d, _e = _a.responsiveMode, responsiveMode = _e === void 0 ? 'none' : _e, fontWeight = _a.fontWeight, _f = _a.iconMode, iconMode = _f === void 0 ? 'none' : _f, _g = _a.iconFillType, iconFillType = _g === void 0 ? 'line' : _g, iconName = _a.iconName, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, _j = _a.type, type = _j === void 0 ? 'button' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
40
|
-
var handleClick = function () {
|
|
41
|
+
var text = _a.text, _b = _a.shapeType, shapeType = _b === void 0 ? 'round' : _b, fillType = _a.fillType, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? 'large' : _d, _e = _a.responsiveMode, responsiveMode = _e === void 0 ? 'none' : _e, fontWeight = _a.fontWeight, _f = _a.iconMode, iconMode = _f === void 0 ? 'none' : _f, _g = _a.iconFillType, iconFillType = _g === void 0 ? 'line' : _g, iconName = _a.iconName, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, _j = _a.type, type = _j === void 0 ? 'button' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, isLoading = _a.isLoading, isSubmitting = _a.isSubmitting, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
42
|
+
var handleClick = function (e) {
|
|
41
43
|
if (onClick) {
|
|
42
|
-
onClick();
|
|
44
|
+
onClick(e);
|
|
43
45
|
}
|
|
44
46
|
};
|
|
45
|
-
var handleMouseDown = function () {
|
|
47
|
+
var handleMouseDown = function (e) {
|
|
46
48
|
if (onMouseDown) {
|
|
47
|
-
onMouseDown();
|
|
49
|
+
onMouseDown(e);
|
|
48
50
|
}
|
|
49
51
|
};
|
|
52
|
+
var submittingProgressColor = function () {
|
|
53
|
+
if (fillType === 'line' && colorTheme !== 'none' && state !== 'disabled') {
|
|
54
|
+
return textThemeColorLineObj[colorTheme];
|
|
55
|
+
}
|
|
56
|
+
if (fillType === 'fill') {
|
|
57
|
+
return 'ui_cpnt_textlabel_usr_brandonprimary';
|
|
58
|
+
}
|
|
59
|
+
if (fillType === 'line') {
|
|
60
|
+
return 'ui_cpnt_textlabel_sys_primary';
|
|
61
|
+
}
|
|
62
|
+
if (styleTheme === 'primary') {
|
|
63
|
+
return 'ui_cpnt_textlabel_usr_brandonprimary';
|
|
64
|
+
}
|
|
65
|
+
if (styleTheme === 'secondary') {
|
|
66
|
+
return 'ui_cpnt_textlabel_usr_brandprimary';
|
|
67
|
+
}
|
|
68
|
+
return 'ui_cpnt_textlabel_usr_brandonprimary';
|
|
69
|
+
};
|
|
50
70
|
var textStyle = {
|
|
51
71
|
rlarge: 'body1Bold',
|
|
52
72
|
large: 'body1Bold',
|
|
@@ -113,14 +133,24 @@ function MainButton(_a) {
|
|
|
113
133
|
return iconStyleThemeColorObj[styleTheme];
|
|
114
134
|
}
|
|
115
135
|
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
react_1.default.createElement(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
136
|
+
var MainButtonVariation = function () {
|
|
137
|
+
if (isLoading) {
|
|
138
|
+
return (react_1.default.createElement(S_LoadingMainButton, { shapeType: shapeType, size: size, responsiveMode: responsiveMode, state: "disabled", disabled: true }));
|
|
139
|
+
}
|
|
140
|
+
if (isSubmitting) {
|
|
141
|
+
return (react_1.default.createElement(S_MainButton, { shapeType: shapeType, fillType: fillType, styleTheme: styleTheme, size: size, responsiveMode: responsiveMode, colorTheme: colorTheme, state: "normal", disabled: true },
|
|
142
|
+
react_1.default.createElement(components_1.CircularProgress, { colorKey: submittingProgressColor(), size: size === 'rlarge' ? 'large' : size })));
|
|
143
|
+
}
|
|
144
|
+
return (react_1.default.createElement(S_MainButton, { shapeType: shapeType, fillType: fillType, styleTheme: styleTheme, size: size, responsiveMode: responsiveMode, fontWeight: fontWeight, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', onClick: handleClick, onMouseDown: handleMouseDown },
|
|
145
|
+
size !== 'xsmall' && iconMode === 'left' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
146
|
+
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType }),
|
|
147
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }))),
|
|
148
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], singleLineMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor(), colorOverride: selectTextThemeColor(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }),
|
|
149
|
+
size !== 'xsmall' && iconMode === 'right' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
150
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }),
|
|
151
|
+
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType })))));
|
|
152
|
+
};
|
|
153
|
+
return MainButtonVariation();
|
|
124
154
|
}
|
|
125
155
|
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n ", "\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n ", "\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
|
|
126
156
|
var theme = _a.theme;
|
|
@@ -241,7 +271,7 @@ var secondary = (0, styled_components_1.css)(templateObject_16 || (templateObjec
|
|
|
241
271
|
var state = _a.state;
|
|
242
272
|
return state === 'disabled' && secondaryDisabled;
|
|
243
273
|
});
|
|
244
|
-
var
|
|
274
|
+
var S_MainButton = styled_components_1.default.button(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n\n ", "\n ", "\n ", "\n ", ";\n\n & > div {\n ", ";\n }\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n\n ", "\n ", "\n ", "\n ", ";\n\n & > div {\n ", ";\n }\n"])), function (_a) {
|
|
245
275
|
var styleTheme = _a.styleTheme;
|
|
246
276
|
return styleTheme && { primary: primary, secondary: secondary }[styleTheme];
|
|
247
277
|
}, function (_a) {
|
|
@@ -261,5 +291,6 @@ var S_Button = styled_components_1.default.button(templateObject_17 || (template
|
|
|
261
291
|
regular: "font-weight: " + theme.fontWeight.normal
|
|
262
292
|
}[fontWeight];
|
|
263
293
|
});
|
|
294
|
+
var S_LoadingMainButton = (0, styled_components_1.default)(S_MainButton)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), styles_1.skeletonLoadingStyle);
|
|
264
295
|
exports.default = MainButton;
|
|
265
|
-
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;
|
|
296
|
+
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;
|
|
@@ -15,9 +15,9 @@ declare type MobileAlertDialogProps = {
|
|
|
15
15
|
tBtn1Type?: 'button' | 'submit';
|
|
16
16
|
tBtn2Type?: 'button' | 'submit';
|
|
17
17
|
tBtn3Type?: 'button' | 'submit';
|
|
18
|
-
onClickTBtn1?: () =>
|
|
19
|
-
onClickTBtn2?: () =>
|
|
20
|
-
onClickTBtn3?: () =>
|
|
18
|
+
onClickTBtn1?: () => void;
|
|
19
|
+
onClickTBtn2?: () => void;
|
|
20
|
+
onClickTBtn3?: () => void;
|
|
21
21
|
};
|
|
22
22
|
declare function MobileAlertDialog({ iconMode, titleText, contentText, btnStack, btnMode, tBtn1Text, tBtn2Text, tBtn3Text, tBtn1State, tBtn2State, tBtn3State, tBtn1Type, tBtn2Type, tBtn3Type, onClickTBtn1, onClickTBtn2, onClickTBtn3 }: MobileAlertDialogProps): React.ReactPortal;
|
|
23
23
|
export default MobileAlertDialog;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FillIconNameKeys, LineIconNameKeys, PDSTextType, UiColors } from '../../../common';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
titleType?: 'text' | 'profile' | 'image';
|
|
@@ -18,9 +18,9 @@ declare type Props = {
|
|
|
18
18
|
iBtn1Type?: 'submit' | 'reset' | 'button';
|
|
19
19
|
iBtn2State?: 'normal' | 'disabled';
|
|
20
20
|
iBtn2Type?: 'submit' | 'reset' | 'button';
|
|
21
|
-
onClickLeftBtn?: () => void;
|
|
22
|
-
onClickIBtn1?: () => void;
|
|
23
|
-
onClickIBtn2?: () => void;
|
|
21
|
+
onClickLeftBtn?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
22
|
+
onClickIBtn1?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
23
|
+
onClickIBtn2?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
24
24
|
};
|
|
25
25
|
declare function MobileHeaderBar({ titleType, titleText, captionText, leftBtnMode, displayType, iBtn1IconName, iBtn1IconFillType, iBtn1IconColorKey, iBtn2IconName, iBtn2IconFillType, iBtn2IconColorKey, dividerMode, imageSrc, iBtn1State, iBtn1Type, iBtn2State, iBtn2Type, onClickLeftBtn, onClickIBtn1, onClickIBtn2 }: Props): JSX.Element;
|
|
26
26
|
export default MobileHeaderBar;
|
|
@@ -14,19 +14,19 @@ var IconButton_1 = require("../IconButton");
|
|
|
14
14
|
var TextLabel_1 = require("../TextLabel");
|
|
15
15
|
function MobileHeaderBar(_a) {
|
|
16
16
|
var _b = _a.titleType, titleType = _b === void 0 ? 'text' : _b, titleText = _a.titleText, captionText = _a.captionText, _c = _a.leftBtnMode, leftBtnMode = _c === void 0 ? 'back' : _c, _d = _a.displayType, displayType = _d === void 0 ? 'none' : _d, iBtn1IconName = _a.iBtn1IconName, _e = _a.iBtn1IconFillType, iBtn1IconFillType = _e === void 0 ? 'line' : _e, _f = _a.iBtn1IconColorKey, iBtn1IconColorKey = _f === void 0 ? 'ui_cpnt_button_icon_enabled' : _f, iBtn2IconName = _a.iBtn2IconName, _g = _a.iBtn2IconFillType, iBtn2IconFillType = _g === void 0 ? 'line' : _g, _h = _a.iBtn2IconColorKey, iBtn2IconColorKey = _h === void 0 ? 'ui_cpnt_button_icon_enabled' : _h, _j = _a.dividerMode, dividerMode = _j === void 0 ? 'none' : _j, imageSrc = _a.imageSrc, _k = _a.iBtn1State, iBtn1State = _k === void 0 ? 'normal' : _k, _l = _a.iBtn1Type, iBtn1Type = _l === void 0 ? 'button' : _l, _m = _a.iBtn2State, iBtn2State = _m === void 0 ? 'normal' : _m, _o = _a.iBtn2Type, iBtn2Type = _o === void 0 ? 'button' : _o, onClickLeftBtn = _a.onClickLeftBtn, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2;
|
|
17
|
-
var handleClickLeftBtn = function () {
|
|
17
|
+
var handleClickLeftBtn = function (e) {
|
|
18
18
|
if (onClickLeftBtn) {
|
|
19
|
-
onClickLeftBtn();
|
|
19
|
+
onClickLeftBtn(e);
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
var handleClickIBtn1 = function () {
|
|
22
|
+
var handleClickIBtn1 = function (e) {
|
|
23
23
|
if (onClickIBtn1) {
|
|
24
|
-
onClickIBtn1();
|
|
24
|
+
onClickIBtn1(e);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
var handleClickIBtn2 = function () {
|
|
27
|
+
var handleClickIBtn2 = function (e) {
|
|
28
28
|
if (onClickIBtn2) {
|
|
29
|
-
onClickIBtn2();
|
|
29
|
+
onClickIBtn2(e);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
var getLeftIconName = function () {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { PDSTextType } from '../../../common';
|
|
3
3
|
export declare type ReactionButtonProps = {
|
|
4
|
-
text
|
|
4
|
+
text?: PDSTextType;
|
|
5
5
|
iconName?: 'ic_thumb_up' | 'ic_heart' | 'ic_thumb_down' | 'ic_reply';
|
|
6
6
|
status?: 'default' | 'select';
|
|
7
7
|
colorTheme?: 'none' | 'dark';
|
|
8
|
-
onClick?: (e
|
|
9
|
-
onMouseDown?: (e
|
|
8
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
+
onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
10
10
|
};
|
|
11
11
|
declare function ReactionButton({ text, iconName, status, colorTheme, onClick, onMouseDown }: ReactionButtonProps): JSX.Element;
|
|
12
12
|
export default ReactionButton;
|
|
@@ -28,18 +28,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
+
var numberHelper_1 = require("../../../common/utils/numberHelper");
|
|
31
32
|
var hybrid_1 = require("../../../hybrid");
|
|
32
33
|
var TextLabel_1 = require("../TextLabel");
|
|
33
34
|
function ReactionButton(_a) {
|
|
34
35
|
var text = _a.text, _b = _a.iconName, iconName = _b === void 0 ? 'ic_thumb_up' : _b, _c = _a.status, status = _c === void 0 ? 'default' : _c, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'none' : _d, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
35
|
-
var handleClick = function () {
|
|
36
|
+
var handleClick = function (e) {
|
|
36
37
|
if (onClick) {
|
|
37
|
-
onClick();
|
|
38
|
+
onClick(e);
|
|
38
39
|
}
|
|
39
40
|
};
|
|
40
|
-
var handleMouseDown = function () {
|
|
41
|
+
var handleMouseDown = function (e) {
|
|
41
42
|
if (onMouseDown) {
|
|
42
|
-
onMouseDown();
|
|
43
|
+
onMouseDown(e);
|
|
43
44
|
}
|
|
44
45
|
};
|
|
45
46
|
var IconColorByStatus = function () {
|
|
@@ -79,28 +80,17 @@ function ReactionButton(_a) {
|
|
|
79
80
|
}
|
|
80
81
|
return;
|
|
81
82
|
};
|
|
82
|
-
|
|
83
|
-
var convertFormatHelper = function (value) {
|
|
83
|
+
var convertTextFormatHelper = function (value) {
|
|
84
84
|
if (typeof value !== 'number')
|
|
85
85
|
return value;
|
|
86
|
-
|
|
87
|
-
case value >= 1000 && value < 1000000:
|
|
88
|
-
return Math.floor(value / 1000)
|
|
89
|
-
.toString()
|
|
90
|
-
.replace(/\.0$/, '') + "K";
|
|
91
|
-
case value >= 1000000:
|
|
92
|
-
return Math.floor(value / 1000000)
|
|
93
|
-
.toString()
|
|
94
|
-
.replace(/\.0$/, '') + "M";
|
|
95
|
-
default:
|
|
96
|
-
return value;
|
|
97
|
-
}
|
|
86
|
+
return (0, numberHelper_1.formatCompactNumber)(value);
|
|
98
87
|
};
|
|
99
88
|
return (react_1.default.createElement(S_ReactionButton, { onClick: handleClick, onMouseDown: handleMouseDown },
|
|
100
89
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }),
|
|
101
90
|
react_1.default.createElement(hybrid_1.Icon, { size: 20, fillType: "fill", iconName: iconName, colorKey: colorTheme === 'none' ? IconColorByStatus() : IconColorByColorByTheme() }),
|
|
102
|
-
react_1.default.createElement(
|
|
103
|
-
|
|
91
|
+
text && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
92
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }),
|
|
93
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: convertTextFormatHelper(text), styleTheme: "body2Bold", singleLineMode: "use", colorTheme: TextLabelColorBySelect(), colorOverride: TextLabelColorByByColorTheme() }))),
|
|
104
94
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" })));
|
|
105
95
|
}
|
|
106
96
|
var ReactionButtonStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding: 0;\n height: 32px;\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding: 0;\n height: 32px;\n"])));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { PDSTextType } from '../../../common';
|
|
3
3
|
export declare type TextButtonProps = {
|
|
4
4
|
text?: PDSTextType;
|
|
@@ -8,7 +8,7 @@ export declare type TextButtonProps = {
|
|
|
8
8
|
type?: 'submit' | 'reset' | 'button';
|
|
9
9
|
state?: 'normal' | 'disabled';
|
|
10
10
|
colorTheme?: 'none' | 'red' | 'grey_01' | 'white';
|
|
11
|
-
onClick?: (
|
|
11
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
12
12
|
};
|
|
13
13
|
declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, colorTheme, onClick, ...rest }: TextButtonProps): JSX.Element;
|
|
14
14
|
export default TextButton;
|
|
@@ -66,9 +66,9 @@ var textColor = {
|
|
|
66
66
|
};
|
|
67
67
|
function TextButton(_a) {
|
|
68
68
|
var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.responsiveMode, responsiveMode = _c === void 0 ? 'none' : _c, fontWeight = _a.fontWeight, _d = _a.type, type = _d === void 0 ? 'button' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, onClick = _a.onClick, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "colorTheme", "onClick"]);
|
|
69
|
-
var handleClick = function () {
|
|
69
|
+
var handleClick = function (e) {
|
|
70
70
|
if (onClick) {
|
|
71
|
-
onClick();
|
|
71
|
+
onClick(e);
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
return (react_1.default.createElement(S_Button, __assign({}, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled', colorTheme: colorTheme }),
|
|
@@ -23,7 +23,7 @@ export declare type TextFieldProps = {
|
|
|
23
23
|
iBtn2IconName?: FillIconNameKeys | LineIconNameKeys;
|
|
24
24
|
iBtn1IconFillType?: 'line' | 'fill';
|
|
25
25
|
iBtn2IconFillType?: 'line' | 'fill';
|
|
26
|
-
colorTheme?: 'none' | 'dark';
|
|
26
|
+
colorTheme?: 'none' | 'dark' | 'transparent';
|
|
27
27
|
max?: number;
|
|
28
28
|
maxLength?: number;
|
|
29
29
|
min?: number;
|