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
|
@@ -17,9 +17,10 @@ var MainButton_1 = require("../MainButton");
|
|
|
17
17
|
var Radio_1 = require("../Radio");
|
|
18
18
|
var TextLabel_1 = require("../TextLabel");
|
|
19
19
|
function BasicListItem(_a) {
|
|
20
|
-
var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, titleText = _a.titleText, _c = _a.titleTextColorTheme, titleTextColorTheme = _c === void 0 ? 'none' : _c, descText = _a.descText, _d = _a.badgeMode, badgeMode = _d === void 0 ? 'none' : _d, _e = _a.badgeStatus, badgeStatus = _e === void 0 ? 'inactive' : _e, _f = _a.imageIconMode, imageIconMode = _f === void 0 ? 'none' : _f, _g = _a.imageShapeType, imageShapeType = _g === void 0 ? 'round' : _g, imageSrc = _a.imageSrc, iconName = _a.iconName, _h = _a.iconFillType, iconFillType = _h === void 0 ? 'line' : _h, _j = _a.displayType, displayType = _j === void 0 ? 'none' : _j, captionText = _a.captionText, iBtn1IconName = _a.iBtn1IconName, _k = _a.iBtn1IconFillType, iBtn1IconFillType = _k === void 0 ? 'line' : _k, iBtn2IconName = _a.iBtn2IconName, _l = _a.iBtn2IconFillType, iBtn2IconFillType = _l === void 0 ? 'line' : _l, _m = _a.mBtnFillType, mBtnFillType = _m === void 0 ? 'fill' : _m, mBtnText = _a.mBtnText, _o = _a.dividerType, dividerType = _o === void 0 ? 'none' : _o, _p = _a.titleFontWeight, titleFontWeight = _p === void 0 ? 'regular' : _p, checkboxId = _a.checkboxId, radioId = _a.radioId, radioValue = _a.radioValue, switchName = _a.switchName, _q = _a.switchState, switchState = _q === void 0 ? 'normal' : _q, _r = _a.switchStatus, switchStatus = _r === void 0 ? 'off' : _r, onClick = _a.onClick, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickMBtn = _a.onClickMBtn, onClickRadio = _a.onClickRadio, onClickSwitch = _a.onClickSwitch;
|
|
20
|
+
var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, titleText = _a.titleText, _c = _a.titleTextColorTheme, titleTextColorTheme = _c === void 0 ? 'none' : _c, descText = _a.descText, _d = _a.badgeMode, badgeMode = _d === void 0 ? 'none' : _d, _e = _a.badgeStatus, badgeStatus = _e === void 0 ? 'inactive' : _e, _f = _a.imageIconMode, imageIconMode = _f === void 0 ? 'none' : _f, _g = _a.imageShapeType, imageShapeType = _g === void 0 ? 'round' : _g, imageSrc = _a.imageSrc, iconName = _a.iconName, _h = _a.iconFillType, iconFillType = _h === void 0 ? 'line' : _h, _j = _a.displayType, displayType = _j === void 0 ? 'none' : _j, captionText = _a.captionText, iBtn1IconName = _a.iBtn1IconName, _k = _a.iBtn1IconFillType, iBtn1IconFillType = _k === void 0 ? 'line' : _k, iBtn2IconName = _a.iBtn2IconName, _l = _a.iBtn2IconFillType, iBtn2IconFillType = _l === void 0 ? 'line' : _l, _m = _a.mBtnFillType, mBtnFillType = _m === void 0 ? 'fill' : _m, mBtnText = _a.mBtnText, _o = _a.dividerType, dividerType = _o === void 0 ? 'none' : _o, _p = _a.titleFontWeight, titleFontWeight = _p === void 0 ? 'regular' : _p, checkboxId = _a.checkboxId, radioId = _a.radioId, radioValue = _a.radioValue, switchName = _a.switchName, _q = _a.switchState, switchState = _q === void 0 ? 'normal' : _q, _r = _a.switchStatus, switchStatus = _r === void 0 ? 'off' : _r, _s = _a.spacingMode, spacingMode = _s === void 0 ? 'use' : _s, onClick = _a.onClick, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickMBtn = _a.onClickMBtn, onClickRadio = _a.onClickRadio, onClickSwitch = _a.onClickSwitch;
|
|
21
21
|
var methods = (0, react_hook_form_1.useFormContext)();
|
|
22
22
|
var isSelected = methods === null || methods === void 0 ? void 0 : methods.watch((checkboxId === null || checkboxId === void 0 ? void 0 : checkboxId.toString()) || '');
|
|
23
|
+
var onlyLeftArea = displayType === 'none';
|
|
23
24
|
var handleCheckBoxClick = function (e) {
|
|
24
25
|
e.preventDefault();
|
|
25
26
|
if (!checkboxId) {
|
|
@@ -84,34 +85,63 @@ function BasicListItem(_a) {
|
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
var isBadgeLeftSpacingChecker = function (value) {
|
|
89
|
+
if (spacingMode !== value || selectionMode !== value) {
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
return false;
|
|
93
|
+
};
|
|
94
|
+
var isImageIconLeftSpacingChecker = function (value) {
|
|
95
|
+
if (selectionMode !== value ||
|
|
96
|
+
badgeMode !== value ||
|
|
97
|
+
(selectionMode === value && badgeMode === value && spacingMode !== value)) {
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
return false;
|
|
101
|
+
};
|
|
102
|
+
var isTextLabelLeftSpacingChecker = function (value) {
|
|
103
|
+
if (selectionMode !== value ||
|
|
104
|
+
badgeMode !== value ||
|
|
105
|
+
imageIconMode !== value ||
|
|
106
|
+
(selectionMode && badgeMode && imageIconMode && spacingMode) !== value) {
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
return false;
|
|
110
|
+
};
|
|
111
|
+
var isRightSpacingChecker = function (value) {
|
|
112
|
+
if (spacingMode === value) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
return true;
|
|
116
|
+
};
|
|
117
|
+
return (react_1.default.createElement(S_BasicListItem, { displayType: displayType, selectionMode: selectionMode, isSelected: isSelected, onClick: handleClick, hasOnClick: !!onClick, spacingMode: spacingMode },
|
|
118
|
+
react_1.default.createElement(S_BasicListItemBox, { imageIconMode: imageIconMode, captionText: captionText, spacingMode: spacingMode },
|
|
119
|
+
react_1.default.createElement(S_LeftBox, { onlyLeftArea: onlyLeftArea },
|
|
90
120
|
selectionMode !== 'none' && (react_1.default.createElement(S_SelectionBoxWrapper, { selectionMode: selectionMode },
|
|
91
121
|
selectionMode === 'check' && checkboxId && (react_1.default.createElement(Checkbox_1.Checkbox, { name: checkboxId.toString(), state: "normal", onChange: handleCheckBoxClick })),
|
|
92
122
|
selectionMode === 'radio' && radioValue && radioId && (react_1.default.createElement(Radio_1.Radio, { name: radioId, value: radioValue, onChange: handleRadioClick, checked: radioId === radioValue })))),
|
|
93
123
|
badgeMode === 'left' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
94
|
-
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }),
|
|
124
|
+
isBadgeLeftSpacingChecker('none') && (react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" })),
|
|
95
125
|
react_1.default.createElement(S_Badge, { badgeStatus: badgeStatus }))),
|
|
96
126
|
imageIconMode === 'image' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
97
|
-
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }),
|
|
127
|
+
isImageIconLeftSpacingChecker('none') && (react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" })),
|
|
98
128
|
react_1.default.createElement(hybrid_1.ImageView, { width: 40, height: 40, src: imageSrc, scaleType: "cover", shapeType: imageShapeType }))),
|
|
99
129
|
imageIconMode === 'icon' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
100
|
-
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }),
|
|
130
|
+
isImageIconLeftSpacingChecker('none') && (react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" })),
|
|
101
131
|
react_1.default.createElement(S_IconWrapper, null,
|
|
102
132
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, fillType: iconFillType, size: 24, colorKey: "ui_cpnt_list_icon_02" })))),
|
|
103
|
-
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }),
|
|
133
|
+
isTextLabelLeftSpacingChecker('none') && (react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" })),
|
|
104
134
|
react_1.default.createElement(S_TextBox, null,
|
|
105
135
|
react_1.default.createElement(S_TextWrapper, null,
|
|
106
136
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, colorTheme: titleTextColorTheme === 'none' ? 'sysTextPrimary' : 'sysTextError', styleTheme: titleFontWeight === 'bold' ? 'body2Bold' : 'body2Regular', singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 })),
|
|
107
137
|
captionText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
108
138
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
|
|
109
139
|
react_1.default.createElement(S_TextWrapper, null,
|
|
110
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, colorTheme: "sysTextTertiary", styleTheme: "caption1Regular", textAlign: "
|
|
140
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, colorTheme: "sysTextTertiary", styleTheme: "caption1Regular", textAlign: "left", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 })))))),
|
|
111
141
|
react_1.default.createElement(S_RightBox, { displayType: displayType },
|
|
112
142
|
(displayType === 'text' || displayType === 'ibtn_text') && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
113
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, colorTheme: "sysTextSecondary", styleTheme: "caption1Regular", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }),
|
|
114
|
-
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }))),
|
|
143
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, colorTheme: "sysTextSecondary", styleTheme: "caption1Regular", textAlign: "right", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }),
|
|
144
|
+
isRightSpacingChecker('none') && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }))),
|
|
115
145
|
(displayType === 'ibtn_amount1' ||
|
|
116
146
|
displayType === 'ibtn_amount2' ||
|
|
117
147
|
displayType === 'ibtn_text') && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
@@ -119,19 +149,19 @@ function BasicListItem(_a) {
|
|
|
119
149
|
react_1.default.createElement(S_IconWrapper, null, iBtn1IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconName: iBtn1IconName, iconFillType: iBtn1IconFillType, baseSize: "medium", iconSize: 20, shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleIBtn1Click, iconColorKey: "ui_cpnt_button_icon_default" }))))),
|
|
120
150
|
displayType === 'mbtn' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
121
151
|
react_1.default.createElement(MainButton_1.MainButton, { text: mBtnText, fillType: mBtnFillType, size: "small", onClick: handleMBtnClick }),
|
|
122
|
-
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }))),
|
|
152
|
+
isRightSpacingChecker('none') && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }))),
|
|
123
153
|
displayType === 'switch' && switchName && (react_1.default.createElement(S_SwitchWrapper, null,
|
|
124
154
|
react_1.default.createElement(hybrid_1.Switch, { name: switchName, onClick: handleSwitchClick, state: switchState, status: switchStatus }),
|
|
125
|
-
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }))))),
|
|
126
|
-
react_1.default.createElement(S_DividerWrapper,
|
|
155
|
+
isRightSpacingChecker('none') && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }))))),
|
|
156
|
+
react_1.default.createElement(S_DividerWrapper, { spacingMode: spacingMode }, dividerType === 'solid' && react_1.default.createElement(hybrid_1.Divider, { direction: "horizontal", displayType: "line" }))));
|
|
127
157
|
}
|
|
128
158
|
var S_BasicListItem = styled_components_1.default.li(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n cursor: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n cursor: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ", ";\n"])), function (_a) {
|
|
129
159
|
var theme = _a.theme, isSelected = _a.isSelected;
|
|
130
160
|
return isSelected ? theme.ui_cpnt_list_base_area_select : theme.ui_cpnt_list_base_area;
|
|
131
161
|
}, function (_a) {
|
|
132
|
-
var displayType = _a.displayType, selectionMode = _a.selectionMode,
|
|
162
|
+
var displayType = _a.displayType, selectionMode = _a.selectionMode, hasOnClick = _a.hasOnClick;
|
|
133
163
|
if (displayType === 'ibtn_amount1' || displayType === 'ibtn_text' || displayType === 'none') {
|
|
134
|
-
if (
|
|
164
|
+
if (hasOnClick) {
|
|
135
165
|
return 'pointer';
|
|
136
166
|
}
|
|
137
167
|
}
|
|
@@ -140,17 +170,20 @@ var S_BasicListItem = styled_components_1.default.li(templateObject_1 || (templa
|
|
|
140
170
|
}
|
|
141
171
|
return 'default';
|
|
142
172
|
}, function (_a) {
|
|
143
|
-
var theme = _a.theme;
|
|
144
|
-
return "0 " + theme.spacing.spacingC;
|
|
173
|
+
var spacingMode = _a.spacingMode, theme = _a.theme;
|
|
174
|
+
return spacingMode === 'use' && "0 " + theme.spacing.spacingC;
|
|
145
175
|
});
|
|
146
176
|
var S_BasicListItemBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: ", ";\n padding: ", ";\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n height: ", ";\n padding: ", ";\n width: 100%;\n"])), function (_a) {
|
|
147
177
|
var imageIconMode = _a.imageIconMode, captionText = _a.captionText;
|
|
148
178
|
return imageIconMode === 'image' || captionText ? '80px' : '56px';
|
|
149
179
|
}, function (_a) {
|
|
150
|
-
var theme = _a.theme;
|
|
151
|
-
return "0 " + theme.spacing.spacingC;
|
|
180
|
+
var spacingMode = _a.spacingMode, theme = _a.theme;
|
|
181
|
+
return spacingMode === 'use' && "0 " + theme.spacing.spacingC;
|
|
182
|
+
});
|
|
183
|
+
var S_LeftBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex: ", ";\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n flex: ", ";\n width: 100%;\n"])), function (_a) {
|
|
184
|
+
var onlyLeftArea = _a.onlyLeftArea;
|
|
185
|
+
return (onlyLeftArea ? 'auto' : 7);
|
|
152
186
|
});
|
|
153
|
-
var S_LeftBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex: 7;\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n flex: 7;\n width: 100%;\n"])));
|
|
154
187
|
var S_SelectionBoxWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 40px;\n justify-content: center;\n width: 40px;\n"], ["\n align-items: center;\n display: flex;\n height: 40px;\n justify-content: center;\n width: 40px;\n"])));
|
|
155
188
|
var S_IconWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n"])));
|
|
156
189
|
var S_TextBox = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"], ["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"])));
|
|
@@ -169,6 +202,9 @@ var S_RightBox = styled_components_1.default.div(templateObject_9 || (templateOb
|
|
|
169
202
|
return (displayType === 'text' ? '40px' : 'auto');
|
|
170
203
|
});
|
|
171
204
|
var S_SwitchWrapper = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n min-width: 68px;\n min-height: 32px;\n position: relative;\n right: 0;\n"], ["\n display: flex;\n justify-content: flex-end;\n min-width: 68px;\n min-height: 32px;\n position: relative;\n right: 0;\n"])));
|
|
172
|
-
var S_DividerWrapper = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n width:
|
|
205
|
+
var S_DividerWrapper = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) {
|
|
206
|
+
var spacingMode = _a.spacingMode;
|
|
207
|
+
return (spacingMode !== 'none' ? 'calc(100% - 24px)' : '100%');
|
|
208
|
+
});
|
|
173
209
|
exports.default = BasicListItem;
|
|
174
210
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { PDSTextType } from '../../../common';
|
|
3
3
|
export declare type CardProps = {
|
|
4
4
|
titleText?: PDSTextType;
|
|
@@ -6,7 +6,7 @@ export declare type CardProps = {
|
|
|
6
6
|
imageIconMode?: 'none' | 'image' | 'icon';
|
|
7
7
|
imageSrc?: string;
|
|
8
8
|
selectState?: 'unselected' | 'selected';
|
|
9
|
-
onClick?: () => void;
|
|
9
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
10
10
|
};
|
|
11
11
|
declare function Card({ titleText, descText, imageIconMode, imageSrc, selectState, onClick }: CardProps): JSX.Element;
|
|
12
12
|
export default Card;
|
|
@@ -13,9 +13,9 @@ var hybrid_1 = require("../../../hybrid");
|
|
|
13
13
|
var TextLabel_1 = require("../TextLabel");
|
|
14
14
|
function Card(_a) {
|
|
15
15
|
var titleText = _a.titleText, descText = _a.descText, _b = _a.imageIconMode, imageIconMode = _b === void 0 ? 'none' : _b, imageSrc = _a.imageSrc, _c = _a.selectState, selectState = _c === void 0 ? 'unselected' : _c, onClick = _a.onClick;
|
|
16
|
-
var handleClick = function () {
|
|
16
|
+
var handleClick = function (e) {
|
|
17
17
|
if (onClick) {
|
|
18
|
-
onClick();
|
|
18
|
+
onClick(e);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
return (react_1.default.createElement(S_CardGroups, { selectState: selectState, onClick: handleClick },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Props as ChatListProps } from './ChatList';
|
|
3
|
-
declare const Body: React.ForwardRefExoticComponent<Pick<ChatListProps, "children" | "scrollVisibleType" | "bodyMBtnText" | "bodySpacingMode"> & {
|
|
3
|
+
declare const Body: React.ForwardRefExoticComponent<Pick<ChatListProps, "children" | "scrollVisibleType" | "bodyMBtnText" | "bodySpacingMode" | "bodyChildren"> & {
|
|
4
4
|
isSubmitted: boolean;
|
|
5
5
|
callBackAfterScrollToBottom: () => void;
|
|
6
6
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -31,7 +31,7 @@ var styled_components_1 = __importStar(require("styled-components"));
|
|
|
31
31
|
var MainButton_1 = require("../MainButton");
|
|
32
32
|
var useAutoScrollToBottom_1 = __importDefault(require("./useAutoScrollToBottom"));
|
|
33
33
|
var Body = react_1.default.forwardRef(function (_a, ref) {
|
|
34
|
-
var scrollVisibleType = _a.scrollVisibleType, children = _a.children, isSubmitted = _a.isSubmitted, bodyMBtnText = _a.bodyMBtnText, bodySpacingMode = _a.bodySpacingMode, callBackAfterScrollToBottom = _a.callBackAfterScrollToBottom;
|
|
34
|
+
var bodyChildren = _a.bodyChildren, scrollVisibleType = _a.scrollVisibleType, children = _a.children, isSubmitted = _a.isSubmitted, bodyMBtnText = _a.bodyMBtnText, bodySpacingMode = _a.bodySpacingMode, callBackAfterScrollToBottom = _a.callBackAfterScrollToBottom;
|
|
35
35
|
var _b = (0, react_1.useState)(false), isButtonShow = _b[0], setIsButtonShow = _b[1];
|
|
36
36
|
var _c = (0, useAutoScrollToBottom_1.default)(), triggerScrollToBottom = _c.triggerScrollToBottom, EndOfList = _c.EndOfList;
|
|
37
37
|
/**
|
|
@@ -73,6 +73,7 @@ var Body = react_1.default.forwardRef(function (_a, ref) {
|
|
|
73
73
|
react_1.default.createElement(S_ChatMessageBox, { id: "chatMessageBox", onScroll: handleScroll, scrollVisibleType: scrollVisibleType, ref: ref },
|
|
74
74
|
children,
|
|
75
75
|
react_1.default.createElement(EndOfList, null)),
|
|
76
|
+
bodyChildren,
|
|
76
77
|
isButtonShow && (react_1.default.createElement(S_BottomButtonWrapper, null,
|
|
77
78
|
react_1.default.createElement(MainButton_1.MainButton, { text: bodyMBtnText, size: "small", onClick: handleClickMBtn })))));
|
|
78
79
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
|
|
3
3
|
export declare type Props = {
|
|
4
|
-
|
|
4
|
+
colorTheme?: 'solid' | 'translucent' | 'transparent';
|
|
5
5
|
headerMode?: 'none' | 'use';
|
|
6
6
|
titleText?: PDSTextType;
|
|
7
7
|
descText?: PDSTextType;
|
|
@@ -11,6 +11,7 @@ export declare type Props = {
|
|
|
11
11
|
headerIBtn1IconName?: FillIconNameKeys | LineIconNameKeys;
|
|
12
12
|
headerIBtn1IconFillType?: 'line' | 'fill';
|
|
13
13
|
children?: React.ReactNode;
|
|
14
|
+
bodyChildren?: React.ReactNode;
|
|
14
15
|
textFieldState?: 'normal' | 'read_only' | 'disabled';
|
|
15
16
|
textFieldHintText?: PDSTextType;
|
|
16
17
|
textFieldDefaultText?: PDSTextType;
|
|
@@ -47,10 +47,10 @@ var Header_1 = __importDefault(require("./Header"));
|
|
|
47
47
|
var baseBackgroundColors = {
|
|
48
48
|
solid: 'ui_cpnt_list_base_area_solid',
|
|
49
49
|
translucent: 'ui_cpnt_list_base_area_translucent',
|
|
50
|
-
transparent: '
|
|
50
|
+
transparent: 'ui_cpnt_list_base_area_transparent'
|
|
51
51
|
};
|
|
52
52
|
var ChatList = react_1.default.forwardRef(function (_a, ref) {
|
|
53
|
-
var _b = _a.
|
|
53
|
+
var _b = _a.colorTheme, colorTheme = _b === void 0 ? 'solid' : _b, _c = _a.headerMode, headerMode = _c === void 0 ? 'use' : _c, titleText = _a.titleText, descText = _a.descText, captionText = _a.captionText, _d = _a.titleStyleTheme, titleStyleTheme = _d === void 0 ? 'subTitleBold' : _d, _e = _a.headerDisplayType, headerDisplayType = _e === void 0 ? 'none' : _e, _f = _a.headerIBtn1IconName, headerIBtn1IconName = _f === void 0 ? 'ic_xmark' : _f, _g = _a.headerIBtn1IconFillType, headerIBtn1IconFillType = _g === void 0 ? 'line' : _g, children = _a.children, bodyChildren = _a.bodyChildren, _h = _a.textFieldState, textFieldState = _h === void 0 ? 'normal' : _h, textFieldHintText = _a.textFieldHintText, textFieldDefaultText = _a.textFieldDefaultText, textFieldMaxLength = _a.textFieldMaxLength, _j = _a.scrollVisibleType, scrollVisibleType = _j === void 0 ? 'moving' : _j, footerChildren = _a.footerChildren, _k = _a.submitIBtnState, submitIBtnState = _k === void 0 ? 'normal' : _k, bodyMBtnText = _a.bodyMBtnText, _l = _a.bodySpacingMode, bodySpacingMode = _l === void 0 ? 'none' : _l, onSubmit = _a.onSubmit, onClickHeaderIBtn1 = _a.onClickHeaderIBtn1, submitIBtnIconName = _a.submitIBtnIconName, submitIBtnIconFillType = _a.submitIBtnIconFillType, _m = _a.footerIBtn1State, footerIBtn1State = _m === void 0 ? 'normal' : _m, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, _o = _a.footerIBtn1Type, footerIBtn1Type = _o === void 0 ? 'button' : _o, onClickFooterIBtn1 = _a.onClickFooterIBtn1, _p = _a.footerIBtn2State, footerIBtn2State = _p === void 0 ? 'normal' : _p, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, _q = _a.footerIBtn2Type, footerIBtn2Type = _q === void 0 ? 'button' : _q, onClickFooterIBtn2 = _a.onClickFooterIBtn2, _r = _a.footerIBtn3State, footerIBtn3State = _r === void 0 ? 'normal' : _r, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, _s = _a.footerIBtn3Type, footerIBtn3Type = _s === void 0 ? 'button' : _s, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
54
54
|
var methods = (0, react_hook_form_1.useForm)({
|
|
55
55
|
mode: 'onChange',
|
|
56
56
|
defaultValues: {
|
|
@@ -85,16 +85,16 @@ var ChatList = react_1.default.forwardRef(function (_a, ref) {
|
|
|
85
85
|
var callBackAfterScrollToBottom = function () {
|
|
86
86
|
reset();
|
|
87
87
|
};
|
|
88
|
-
return (react_1.default.createElement(S_ChatList, { backgroundColor: baseBackgroundColors[
|
|
88
|
+
return (react_1.default.createElement(S_ChatList, { backgroundColor: baseBackgroundColors[colorTheme], id: "chatList" },
|
|
89
89
|
headerMode === 'use' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
90
|
-
react_1.default.createElement(Header_1.default, {
|
|
91
|
-
react_1.default.createElement(hybrid_1.Divider,
|
|
92
|
-
react_1.default.createElement(Body_1.default, { scrollVisibleType: scrollVisibleType, isSubmitted: isSubmitSuccessful, bodyMBtnText: bodyMBtnText, bodySpacingMode: bodySpacingMode, callBackAfterScrollToBottom: callBackAfterScrollToBottom, ref: ref }, children),
|
|
93
|
-
react_1.default.createElement(hybrid_1.Divider,
|
|
90
|
+
react_1.default.createElement(Header_1.default, { colorTheme: colorTheme, titleText: titleText, descText: descText, captionText: captionText, titleStyleTheme: titleStyleTheme, headerDisplayType: headerDisplayType, headerIBtn1IconName: headerIBtn1IconName, headerIBtn1IconFillType: headerIBtn1IconFillType, onClickHeaderIBtn1: onClickHeaderIBtn1 }),
|
|
91
|
+
react_1.default.createElement(hybrid_1.Divider, { colorTheme: colorTheme === 'transparent' ? 'divider2' : 'none' }))),
|
|
92
|
+
react_1.default.createElement(Body_1.default, { scrollVisibleType: scrollVisibleType, isSubmitted: isSubmitSuccessful, bodyMBtnText: bodyMBtnText, bodySpacingMode: bodySpacingMode, callBackAfterScrollToBottom: callBackAfterScrollToBottom, bodyChildren: bodyChildren, ref: ref }, children),
|
|
93
|
+
react_1.default.createElement(hybrid_1.Divider, { colorTheme: colorTheme === 'transparent' ? 'divider2' : 'none' }),
|
|
94
94
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d" }),
|
|
95
95
|
react_1.default.createElement(react_hook_form_1.FormProvider, __assign({}, methods),
|
|
96
96
|
react_1.default.createElement("form", { onSubmit: handleSubmit(handleSubmitChat) },
|
|
97
|
-
react_1.default.createElement(Footer_1.default, { textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, footerChildren: footerChildren, isSubmitBtnActive: isSubmitButtonActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }))),
|
|
97
|
+
react_1.default.createElement(Footer_1.default, { colorTheme: colorTheme, textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, footerChildren: footerChildren, isSubmitBtnActive: isSubmitButtonActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }))),
|
|
98
98
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d" })));
|
|
99
99
|
});
|
|
100
100
|
var S_ChatList = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n"], ["\n background-color: ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n"])), function (_a) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FillIconNameKeys, LineIconNameKeys } from '../../../common';
|
|
3
3
|
import type { Props as ChatListProps } from './ChatList';
|
|
4
|
-
declare type Props = Pick<ChatListProps, 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept'> & {
|
|
4
|
+
declare type Props = Pick<ChatListProps, 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept' | 'colorTheme'> & {
|
|
5
5
|
isSubmitBtnActive?: boolean;
|
|
6
6
|
submitIBtnIconName?: FillIconNameKeys | LineIconNameKeys;
|
|
7
7
|
submitIBtnIconFillType?: 'fill' | 'line';
|
|
@@ -21,5 +21,5 @@ declare type Props = Pick<ChatListProps, 'textFieldDefaultText' | 'textFieldHint
|
|
|
21
21
|
footerIBtn3Type?: 'button' | 'upload';
|
|
22
22
|
onClickFooterIBtn3?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
23
23
|
};
|
|
24
|
-
declare function ChatTextField({ textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, isSubmitBtnActive, submitIBtnIconName, submitIBtnIconFillType, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
24
|
+
declare function ChatTextField({ colorTheme, textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, isSubmitBtnActive, submitIBtnIconName, submitIBtnIconFillType, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
25
25
|
export default ChatTextField;
|
|
@@ -13,7 +13,7 @@ var IconButton_1 = require("../IconButton");
|
|
|
13
13
|
var TextField_1 = require("../TextField");
|
|
14
14
|
var UploadIconButton_1 = require("../UploadIconButton");
|
|
15
15
|
function ChatTextField(_a) {
|
|
16
|
-
var textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, isSubmitBtnActive = _a.isSubmitBtnActive, _b = _a.submitIBtnIconName, submitIBtnIconName = _b === void 0 ? 'ic_paper_plane' : _b, _c = _a.submitIBtnIconFillType, submitIBtnIconFillType = _c === void 0 ? 'fill' : _c, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
16
|
+
var colorTheme = _a.colorTheme, textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, isSubmitBtnActive = _a.isSubmitBtnActive, _b = _a.submitIBtnIconName, submitIBtnIconName = _b === void 0 ? 'ic_paper_plane' : _b, _c = _a.submitIBtnIconFillType, submitIBtnIconFillType = _c === void 0 ? 'fill' : _c, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
17
17
|
var chatValidation = {
|
|
18
18
|
validate: function (value) {
|
|
19
19
|
if (!value)
|
|
@@ -34,7 +34,7 @@ function ChatTextField(_a) {
|
|
|
34
34
|
? 'ui_cpnt_button_icon_primary'
|
|
35
35
|
: 'ui_cpnt_button_icon_disabled', iconFillType: footerIBtn2IconFillType, iconSize: 24, state: footerIBtn2State, onClick: onClickFooterIBtn2 })))),
|
|
36
36
|
react_1.default.createElement(S_TextFieldWrapper, null,
|
|
37
|
-
react_1.default.createElement(TextField_1.TextField, { name: "chat", responsiveMode: "use", textLineType: "single", inputType: "text", hintText: textFieldHintText, defaultText: textFieldDefaultText, validation: chatValidation, maxLength: textFieldMaxLength, enterSubmitMode: "use", validationPoint: "onChange", state: textFieldState, autoComplete: "off" })),
|
|
37
|
+
react_1.default.createElement(TextField_1.TextField, { name: "chat", responsiveMode: "use", textLineType: "single", inputType: "text", hintText: textFieldHintText, defaultText: textFieldDefaultText, validation: chatValidation, maxLength: textFieldMaxLength, colorTheme: colorTheme === 'transparent' ? 'transparent' : 'none', enterSubmitMode: "use", validationPoint: "onChange", state: textFieldState, autoComplete: "off" })),
|
|
38
38
|
footerIBtn1IconName && (react_1.default.createElement(react_1.default.Fragment, null, footerIBtn1Type === 'button' ? (react_1.default.createElement(IconButton_1.IconButton, { iconName: footerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: footerIBtn1State === 'normal'
|
|
39
39
|
? 'ui_cpnt_button_icon_primary'
|
|
40
40
|
: 'ui_cpnt_button_icon_disabled', iconFillType: footerIBtn1IconFillType, iconSize: 24, state: footerIBtn1State, onClick: onClickFooterIBtn1 })) : (react_1.default.createElement(UploadIconButton_1.UploadIconButton, { iconName: footerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: footerIBtn1State === 'normal'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FillIconNameKeys, LineIconNameKeys } from '../../../common';
|
|
3
3
|
import type { Props as ChatListProps } from './ChatList';
|
|
4
|
-
declare type Props = Pick<ChatListProps, 'footerChildren' | 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept'> & {
|
|
4
|
+
declare type Props = Pick<ChatListProps, 'footerChildren' | 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept' | 'colorTheme'> & {
|
|
5
5
|
isSubmitBtnActive: boolean;
|
|
6
6
|
submitIBtnIconName?: FillIconNameKeys | LineIconNameKeys;
|
|
7
7
|
submitIBtnIconFillType?: 'fill' | 'line';
|
|
@@ -21,5 +21,5 @@ declare type Props = Pick<ChatListProps, 'footerChildren' | 'textFieldDefaultTex
|
|
|
21
21
|
footerIBtn3Type?: 'button' | 'upload';
|
|
22
22
|
onClickFooterIBtn3?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
23
23
|
};
|
|
24
|
-
declare function Footer({ footerChildren, textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, submitIBtnIconName, submitIBtnIconFillType, isSubmitBtnActive, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
24
|
+
declare function Footer({ colorTheme, footerChildren, textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, submitIBtnIconName, submitIBtnIconFillType, isSubmitBtnActive, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
25
25
|
export default Footer;
|
|
@@ -11,9 +11,9 @@ var react_1 = __importDefault(require("react"));
|
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var ChatTextField_1 = __importDefault(require("./ChatTextField"));
|
|
13
13
|
function Footer(_a) {
|
|
14
|
-
var footerChildren = _a.footerChildren, textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, submitIBtnIconName = _a.submitIBtnIconName, submitIBtnIconFillType = _a.submitIBtnIconFillType, isSubmitBtnActive = _a.isSubmitBtnActive, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
14
|
+
var colorTheme = _a.colorTheme, footerChildren = _a.footerChildren, textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, submitIBtnIconName = _a.submitIBtnIconName, submitIBtnIconFillType = _a.submitIBtnIconFillType, isSubmitBtnActive = _a.isSubmitBtnActive, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
15
15
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
16
|
-
react_1.default.createElement(ChatTextField_1.default, { textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, isSubmitBtnActive: isSubmitBtnActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }),
|
|
16
|
+
react_1.default.createElement(ChatTextField_1.default, { colorTheme: colorTheme, textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, isSubmitBtnActive: isSubmitBtnActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }),
|
|
17
17
|
react_1.default.createElement(S_FooterChildrenWrapper, null, footerChildren)));
|
|
18
18
|
}
|
|
19
19
|
var S_FooterChildrenWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Props as ChatListProps } from './ChatList';
|
|
3
|
-
declare type Props = Required<Pick<ChatListProps, '
|
|
4
|
-
declare function Header({
|
|
3
|
+
declare type Props = Required<Pick<ChatListProps, 'colorTheme'>> & Pick<ChatListProps, 'titleText' | 'descText' | 'captionText' | 'titleStyleTheme' | 'headerDisplayType' | 'headerIBtn1IconName' | 'headerIBtn1IconFillType' | 'onClickHeaderIBtn1'>;
|
|
4
|
+
declare function Header({ colorTheme, titleText, descText, captionText, titleStyleTheme, headerDisplayType, headerIBtn1IconName, headerIBtn1IconFillType, onClickHeaderIBtn1 }: Props): JSX.Element;
|
|
5
5
|
export default Header;
|
|
@@ -23,17 +23,17 @@ var iconColors = {
|
|
|
23
23
|
transparent: 'ui_cpnt_button_icon_white'
|
|
24
24
|
};
|
|
25
25
|
function Header(_a) {
|
|
26
|
-
var
|
|
26
|
+
var colorTheme = _a.colorTheme, titleText = _a.titleText, descText = _a.descText, captionText = _a.captionText, titleStyleTheme = _a.titleStyleTheme, headerDisplayType = _a.headerDisplayType, headerIBtn1IconName = _a.headerIBtn1IconName, headerIBtn1IconFillType = _a.headerIBtn1IconFillType, onClickHeaderIBtn1 = _a.onClickHeaderIBtn1;
|
|
27
27
|
return (react_1.default.createElement(S_HeaderContentWrapper, null,
|
|
28
28
|
react_1.default.createElement(S_HeaderLeftBox, null,
|
|
29
|
-
titleText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: titleStyleTheme, colorTheme: titleTextColors[
|
|
29
|
+
titleText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: titleStyleTheme, colorTheme: titleTextColors[colorTheme], wordBreak: "break_all" })),
|
|
30
30
|
descText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
31
31
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c" }),
|
|
32
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, styleTheme: "body2Regular", colorTheme:
|
|
32
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, styleTheme: "body2Regular", colorTheme: colorTheme === 'solid' ? 'sysTextSecondary' : 'sysTextWhite', colorOverride: colorTheme === 'translucent' ? 'ui_cpnt_list_text_caption_02' : undefined, wordBreak: "break_all" }))),
|
|
33
33
|
captionText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
34
34
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
|
|
35
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, styleTheme: "caption1Regular", colorTheme:
|
|
36
|
-
headerDisplayType === 'ibtn1' && headerIBtn1IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconName: headerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: iconColors[
|
|
35
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, styleTheme: "caption1Regular", colorTheme: colorTheme === 'solid' ? 'sysTextTertiary' : 'sysTextWhite', colorOverride: colorTheme === 'translucent' ? 'ui_cpnt_list_text_caption_03' : undefined, wordBreak: "break_all" })))),
|
|
36
|
+
headerDisplayType === 'ibtn1' && headerIBtn1IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconName: headerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: iconColors[colorTheme], iconSize: 24, iconFillType: headerIBtn1IconFillType, onClick: onClickHeaderIBtn1 }))));
|
|
37
37
|
}
|
|
38
38
|
var S_HeaderContentWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"], ["\n align-items: center;\n display: flex;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"])), function (_a) {
|
|
39
39
|
var theme = _a.theme;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
import { FillIconNameKeys, LineIconNameKeys, PDSTextType, PDSValueOption } from '../../../common';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FillIconNameKeys, LineIconNameKeys, PDSTextType, PDSValueOption, UiColors } from '../../../common';
|
|
3
3
|
declare type DisplayType = 'category_choice' | 'filter_single' | 'filter_multi' | 'removable' | 'label' | 'time' | 'information';
|
|
4
4
|
export declare type ChipProps = {
|
|
5
5
|
displayType?: DisplayType;
|
|
6
|
+
text?: PDSTextType;
|
|
6
7
|
filterIconMode?: 'none' | 'left';
|
|
7
8
|
iconFillType?: 'line' | 'fill';
|
|
8
9
|
iconName?: FillIconNameKeys | LineIconNameKeys;
|
|
9
|
-
|
|
10
|
+
overrideTextColorKey?: UiColors;
|
|
11
|
+
overrideBackgroundColorKey?: UiColors;
|
|
10
12
|
value?: PDSValueOption['value'];
|
|
11
13
|
id?: PDSValueOption['value'];
|
|
12
|
-
onClickChip?: () => void;
|
|
14
|
+
onClickChip?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
13
15
|
onClickXMarkIcon?: () => void;
|
|
14
16
|
/** @deprecated value 필드를 대신 사용하세요. */
|
|
15
17
|
activeChipId?: string | number;
|
|
16
18
|
/** @deprecated id 필드를 대신 사용하세요. */
|
|
17
19
|
chipId?: string | number;
|
|
18
20
|
};
|
|
19
|
-
export default function Chip({ displayType, filterIconMode, iconFillType, iconName,
|
|
21
|
+
export default function Chip({ displayType, text, filterIconMode, iconFillType, iconName, overrideTextColorKey, overrideBackgroundColorKey, value, id, activeChipId, chipId, onClickChip, onClickXMarkIcon }: ChipProps): JSX.Element;
|
|
20
22
|
export {};
|
|
@@ -32,7 +32,7 @@ var hybrid_1 = require("../../../hybrid");
|
|
|
32
32
|
var Icon_1 = require("../../../hybrid/components/Icon");
|
|
33
33
|
var TextLabel_1 = require("../TextLabel");
|
|
34
34
|
function Chip(_a) {
|
|
35
|
-
var _b = _a.displayType, displayType = _b === void 0 ? 'filter_single' : _b, _c = _a.filterIconMode, filterIconMode = _c === void 0 ? 'none' : _c, _d = _a.iconFillType, iconFillType = _d === void 0 ? 'line' : _d, iconName = _a.iconName,
|
|
35
|
+
var _b = _a.displayType, displayType = _b === void 0 ? 'filter_single' : _b, text = _a.text, _c = _a.filterIconMode, filterIconMode = _c === void 0 ? 'none' : _c, _d = _a.iconFillType, iconFillType = _d === void 0 ? 'line' : _d, iconName = _a.iconName, overrideTextColorKey = _a.overrideTextColorKey, overrideBackgroundColorKey = _a.overrideBackgroundColorKey, value = _a.value, id = _a.id, activeChipId = _a.activeChipId, chipId = _a.chipId, onClickChip = _a.onClickChip, onClickXMarkIcon = _a.onClickXMarkIcon;
|
|
36
36
|
var isActive = (0, react_1.useMemo)(function () {
|
|
37
37
|
if (activeChipId !== undefined && chipId !== undefined) {
|
|
38
38
|
return activeChipId === chipId;
|
|
@@ -42,9 +42,9 @@ function Chip(_a) {
|
|
|
42
42
|
}
|
|
43
43
|
return false;
|
|
44
44
|
}, [activeChipId, chipId, value, id]);
|
|
45
|
-
var handleClickChip = function () {
|
|
45
|
+
var handleClickChip = function (e) {
|
|
46
46
|
if (onClickChip) {
|
|
47
|
-
onClickChip();
|
|
47
|
+
onClickChip(e);
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
var handleClickXMarkIcon = function (e) {
|
|
@@ -65,8 +65,8 @@ function Chip(_a) {
|
|
|
65
65
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }),
|
|
66
66
|
react_1.default.createElement(Icon_1.Icon, { size: 12, fillType: "line", iconName: "ic_xmark", colorKey: "ui_cpnt_chip_fill_icon_active_01" })))));
|
|
67
67
|
case 'information':
|
|
68
|
-
return (react_1.default.createElement(S_InfoChip, { onClick: handleClickChip },
|
|
69
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Regular", singleLineMode: "use", colorTheme: "sysTextPrimary", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
68
|
+
return (react_1.default.createElement(S_InfoChip, { onClick: handleClickChip, overrideBackgroundColorKey: overrideBackgroundColorKey },
|
|
69
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Regular", singleLineMode: "use", colorTheme: "sysTextPrimary", colorOverride: overrideTextColorKey, ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
70
70
|
case 'label':
|
|
71
71
|
return (react_1.default.createElement(S_LabelChip, { onClick: handleClickChip },
|
|
72
72
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Bold", singleLineMode: "use", colorTheme: "sysTextTertiary", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
@@ -80,8 +80,9 @@ function Chip(_a) {
|
|
|
80
80
|
react_1.default.createElement(Icon_1.Icon, { size: 12, iconName: "ic_xmark", fillType: "line", colorKey: "ui_cpnt_chip_fill_icon_inactive" }))));
|
|
81
81
|
default:
|
|
82
82
|
return (react_1.default.createElement(S_FilterSingleChip, { isActive: isActive, onClick: handleClickChip },
|
|
83
|
-
filterIconMode === 'left' && (react_1.default.createElement(
|
|
84
|
-
react_1.default.createElement(Icon_1.Icon, { fillType: iconFillType, iconName: iconName, size: 16, colorKey: isActive ? 'ui_cpnt_chip_fill_icon_active_01' : 'ui_cpnt_chip_line_icon_02' })
|
|
83
|
+
filterIconMode === 'left' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
84
|
+
react_1.default.createElement(Icon_1.Icon, { fillType: iconFillType, iconName: iconName, size: 16, colorKey: isActive ? 'ui_cpnt_chip_fill_icon_active_01' : 'ui_cpnt_chip_line_icon_02' }),
|
|
85
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }))),
|
|
85
86
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: isActive ? 'usrTextBrandOnPrimary' : 'sysTextSecondary', ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
86
87
|
}
|
|
87
88
|
};
|
|
@@ -105,8 +106,10 @@ var S_CategoryChoiceChip = styled_components_1.default.div(templateObject_1 || (
|
|
|
105
106
|
return isActive ? '' : "border: 1px solid " + theme.ui_cpnt_chip_line_border_01;
|
|
106
107
|
});
|
|
107
108
|
var S_InfoChip = styled_components_1.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: 12px;\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n border-radius: 12px;\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"])), function (_a) {
|
|
108
|
-
var theme = _a.theme;
|
|
109
|
-
return
|
|
109
|
+
var theme = _a.theme, overrideBackgroundColorKey = _a.overrideBackgroundColorKey;
|
|
110
|
+
return overrideBackgroundColorKey
|
|
111
|
+
? theme[overrideBackgroundColorKey]
|
|
112
|
+
: theme.ui_cpnt_chip_fill_base_inactive;
|
|
110
113
|
}, function (_a) {
|
|
111
114
|
var theme = _a.theme;
|
|
112
115
|
return theme.spacing.spacingC;
|
|
@@ -138,23 +141,19 @@ var S_FilterSingleChip = styled_components_1.default.div(templateObject_5 || (te
|
|
|
138
141
|
var theme = _a.theme;
|
|
139
142
|
return theme.spacing.spacingC;
|
|
140
143
|
});
|
|
141
|
-
var
|
|
142
|
-
var theme = _a.theme;
|
|
143
|
-
return theme.spacing.spacingA;
|
|
144
|
-
});
|
|
145
|
-
var S_LabelChip = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border: 1px solid ", ";\n border-radius: 10px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20px;\n padding: 0 ", ";\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"], ["\n border: 1px solid ", ";\n border-radius: 10px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20px;\n padding: 0 ", ";\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"])), function (_a) {
|
|
144
|
+
var S_LabelChip = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border: 1px solid ", ";\n border-radius: 10px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20px;\n padding: 0 ", ";\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"], ["\n border: 1px solid ", ";\n border-radius: 10px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20px;\n padding: 0 ", ";\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"])), function (_a) {
|
|
146
145
|
var theme = _a.theme;
|
|
147
146
|
return theme.ui_cpnt_chip_line_border_01;
|
|
148
147
|
}, function (_a) {
|
|
149
148
|
var theme = _a.theme;
|
|
150
149
|
return theme.spacing.spacingB;
|
|
151
150
|
});
|
|
152
|
-
var S_TimeChip = styled_components_1.default.div(
|
|
151
|
+
var S_TimeChip = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n height: 20px;\n padding: 0 ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"], ["\n background-color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n height: 20px;\n padding: 0 ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"])), function (_a) {
|
|
153
152
|
var theme = _a.theme;
|
|
154
153
|
return theme.ui_cpnt_chip_base_playtime;
|
|
155
154
|
}, function (_a) {
|
|
156
155
|
var theme = _a.theme;
|
|
157
156
|
return theme.spacing.spacingB;
|
|
158
157
|
});
|
|
159
|
-
var S_ChipWrapper = styled_components_1.default.div(
|
|
160
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8
|
|
158
|
+
var S_ChipWrapper = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: inline-block;\n vertical-align: bottom;\n min-width: fit-content;\n"], ["\n display: inline-block;\n vertical-align: bottom;\n min-width: fit-content;\n"])));
|
|
159
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -14,9 +14,9 @@ declare type DesktopAlertDialogProps = {
|
|
|
14
14
|
tBtn1Type?: 'button' | 'submit';
|
|
15
15
|
tBtn2Type?: 'button' | 'submit';
|
|
16
16
|
tBtn3Type?: 'button' | 'submit';
|
|
17
|
-
onClickTBtn1?: () =>
|
|
18
|
-
onClickTBtn2?: () =>
|
|
19
|
-
onClickTBtn3?: () =>
|
|
17
|
+
onClickTBtn1?: () => void;
|
|
18
|
+
onClickTBtn2?: () => void;
|
|
19
|
+
onClickTBtn3?: () => void;
|
|
20
20
|
};
|
|
21
21
|
declare function DesktopAlertDialog({ iconMode, titleText, contentText, btnMode, tBtn1Text, tBtn2Text, tBtn3Text, tBtn1State, tBtn2State, tBtn3State, tBtn1Type, tBtn2Type, tBtn3Type, onClickTBtn1, onClickTBtn2, onClickTBtn3 }: DesktopAlertDialogProps): React.ReactPortal;
|
|
22
22
|
export default DesktopAlertDialog;
|
|
@@ -166,7 +166,7 @@ function Dropdown(_a) {
|
|
|
166
166
|
return (react_1.default.createElement(S_Dropdown, { className: "container", size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode, customWidth: customWidth },
|
|
167
167
|
react_1.default.createElement(S_Select, { size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme, responsiveMode: responsiveMode, customWidth: customWidth },
|
|
168
168
|
react_1.default.createElement(S_TextLabel, { size: size, responsiveMode: responsiveMode },
|
|
169
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.text) || hintText, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: getTextColorTheme(), colorOverride: getTextColorOverride(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })),
|
|
169
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.text) || (value === null || value === void 0 ? void 0 : value.text) || (defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.text) || hintText, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: getTextColorTheme(), colorOverride: getTextColorOverride(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })),
|
|
170
170
|
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getIconColorKey() }),
|
|
171
171
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" })),
|
|
172
172
|
isFocused && (react_1.default.createElement(S_ContextMenuWrapper, null,
|
|
@@ -11,6 +11,8 @@ declare type BrandLogo = {
|
|
|
11
11
|
declare type UserProfile = {
|
|
12
12
|
src: string;
|
|
13
13
|
href: string;
|
|
14
|
+
leftIconButton?: React.ReactNode;
|
|
15
|
+
overrideUserProfile?: React.ReactNode;
|
|
14
16
|
};
|
|
15
17
|
export declare type Props = {
|
|
16
18
|
isPreview?: boolean;
|
|
@@ -20,6 +22,7 @@ export declare type Props = {
|
|
|
20
22
|
secondaryMenus: ParsedNode[] | null;
|
|
21
23
|
template: TemplateNamesType;
|
|
22
24
|
basePath: string;
|
|
25
|
+
colorTheme?: 'none' | 'transparent';
|
|
23
26
|
};
|
|
24
27
|
declare type ContextProp = {
|
|
25
28
|
basePath: string;
|
|
@@ -27,5 +30,5 @@ declare type ContextProp = {
|
|
|
27
30
|
handleClickInternalMenuItemNav: (url: string) => void;
|
|
28
31
|
};
|
|
29
32
|
export declare const BasePathContext: React.Context<ContextProp>;
|
|
30
|
-
declare function DynamicDesktopNavBar({ isPreview, template, brandLogo, primaryMenus, secondaryMenus, userProfile, basePath }: Props): JSX.Element;
|
|
33
|
+
declare function DynamicDesktopNavBar({ isPreview, template, brandLogo, primaryMenus, secondaryMenus, userProfile, basePath, colorTheme }: Props): JSX.Element;
|
|
31
34
|
export default DynamicDesktopNavBar;
|