@networkinternational/ni-card-management-sdk 1.0.2
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/LICENSE +21 -0
- package/README.md +651 -0
- package/android/build.gradle +95 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/nicardmanagement/JsonDeserialization.kt +24 -0
- package/android/src/main/java/com/nicardmanagement/NiCardManagementModule.kt +163 -0
- package/android/src/main/java/com/nicardmanagement/NiCardManagementPackage.kt +17 -0
- package/ios/NiCardManagement-Bridging-Header.h +2 -0
- package/ios/NiCardManagement.mm +29 -0
- package/ios/NiCardManagement.swift +142 -0
- package/lib/commonjs/NICardManagementComponents/CardDetailsComponent.js +71 -0
- package/lib/commonjs/NICardManagementComponents/CardDetailsComponent.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/ChangePinView.js +44 -0
- package/lib/commonjs/NICardManagementComponents/ChangePinView.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/NiInputInterfaces.js +17 -0
- package/lib/commonjs/NICardManagementComponents/NiInputInterfaces.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/SetPinView.js +44 -0
- package/lib/commonjs/NICardManagementComponents/SetPinView.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/VerifyPinView.js +44 -0
- package/lib/commonjs/NICardManagementComponents/VerifyPinView.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/ViewPinComponent.js +52 -0
- package/lib/commonjs/NICardManagementComponents/ViewPinComponent.js.map +1 -0
- package/lib/commonjs/assets/icons/content-copy.png +0 -0
- package/lib/commonjs/assets/icons/eye-off-outline.png +0 -0
- package/lib/commonjs/assets/icons/eye-outline.png +0 -0
- package/lib/commonjs/assets/icons/icons8-arrow-100.png +0 -0
- package/lib/commonjs/assets/icons/icons8-arrow-100_1.png +0 -0
- package/lib/commonjs/assets/icons/red-eye-off-outline.png +0 -0
- package/lib/commonjs/assets/icons/red-eye-outline.png +0 -0
- package/lib/commonjs/assets/images/grayCard.png +0 -0
- package/lib/commonjs/components/CardDetails/CardDetails.js +27 -0
- package/lib/commonjs/components/CardDetails/CardDetails.js.map +1 -0
- package/lib/commonjs/components/CardDetails/CardDetailsBackgroundImage.js +29 -0
- package/lib/commonjs/components/CardDetails/CardDetailsBackgroundImage.js.map +1 -0
- package/lib/commonjs/components/CardDetails/CardDetailsGroups.js +94 -0
- package/lib/commonjs/components/CardDetails/CardDetailsGroups.js.map +1 -0
- package/lib/commonjs/components/CardDetails/CardHolderNameGroups.js +67 -0
- package/lib/commonjs/components/CardDetails/CardHolderNameGroups.js.map +1 -0
- package/lib/commonjs/components/CardDetails/CardNumberGroup.js +69 -0
- package/lib/commonjs/components/CardDetails/CardNumberGroup.js.map +1 -0
- package/lib/commonjs/components/CardDetails/DateCVVGroupOneRow.js +104 -0
- package/lib/commonjs/components/CardDetails/DateCVVGroupOneRow.js.map +1 -0
- package/lib/commonjs/components/CardDetails/styles.js +98 -0
- package/lib/commonjs/components/CardDetails/styles.js.map +1 -0
- package/lib/commonjs/components/ChangePin/CaptureCurrentPin.js +50 -0
- package/lib/commonjs/components/ChangePin/CaptureCurrentPin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/CaptureNewPin.js +50 -0
- package/lib/commonjs/components/ChangePin/CaptureNewPin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/ChangePin.js +135 -0
- package/lib/commonjs/components/ChangePin/ChangePin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/ConfirmPin.js +39 -0
- package/lib/commonjs/components/ChangePin/ConfirmPin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/ReenterNewPin.js +53 -0
- package/lib/commonjs/components/ChangePin/ReenterNewPin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/styles.js +29 -0
- package/lib/commonjs/components/ChangePin/styles.js.map +1 -0
- package/lib/commonjs/components/NIButton/NIButton.js +46 -0
- package/lib/commonjs/components/NIButton/NIButton.js.map +1 -0
- package/lib/commonjs/components/NIButton/styles.js +15 -0
- package/lib/commonjs/components/NIButton/styles.js.map +1 -0
- package/lib/commonjs/components/Pin/CapturePin.js +152 -0
- package/lib/commonjs/components/Pin/CapturePin.js.map +1 -0
- package/lib/commonjs/components/Pin/NextButton.js +40 -0
- package/lib/commonjs/components/Pin/NextButton.js.map +1 -0
- package/lib/commonjs/components/Pin/ShowHideButton.js +48 -0
- package/lib/commonjs/components/Pin/ShowHideButton.js.map +1 -0
- package/lib/commonjs/components/Pin/styles.js +61 -0
- package/lib/commonjs/components/Pin/styles.js.map +1 -0
- package/lib/commonjs/components/PinState/LoadingState.js +29 -0
- package/lib/commonjs/components/PinState/LoadingState.js.map +1 -0
- package/lib/commonjs/components/PinState/PinState.js +29 -0
- package/lib/commonjs/components/PinState/PinState.js.map +1 -0
- package/lib/commonjs/components/SetPin/ConfirmPin.js +39 -0
- package/lib/commonjs/components/SetPin/ConfirmPin.js.map +1 -0
- package/lib/commonjs/components/SetPin/ReenterCardPin.js +53 -0
- package/lib/commonjs/components/SetPin/ReenterCardPin.js.map +1 -0
- package/lib/commonjs/components/SetPin/SetPin.js +118 -0
- package/lib/commonjs/components/SetPin/SetPin.js.map +1 -0
- package/lib/commonjs/components/SetPin/SetUpNewCardPin.js +50 -0
- package/lib/commonjs/components/SetPin/SetUpNewCardPin.js.map +1 -0
- package/lib/commonjs/components/SetPin/styles.js +29 -0
- package/lib/commonjs/components/SetPin/styles.js.map +1 -0
- package/lib/commonjs/components/VerifyPin/CaptureVerifyPin.js +50 -0
- package/lib/commonjs/components/VerifyPin/CaptureVerifyPin.js.map +1 -0
- package/lib/commonjs/components/VerifyPin/ConfirmPin.js +40 -0
- package/lib/commonjs/components/VerifyPin/ConfirmPin.js.map +1 -0
- package/lib/commonjs/components/VerifyPin/VerifyPin.js +92 -0
- package/lib/commonjs/components/VerifyPin/VerifyPin.js.map +1 -0
- package/lib/commonjs/components/VerifyPin/styles.js +26 -0
- package/lib/commonjs/components/VerifyPin/styles.js.map +1 -0
- package/lib/commonjs/components/ViewPin/ViewPin.js +76 -0
- package/lib/commonjs/components/ViewPin/ViewPin.js.map +1 -0
- package/lib/commonjs/components/ViewPin/styles.js +19 -0
- package/lib/commonjs/components/ViewPin/styles.js.map +1 -0
- package/lib/commonjs/components/icons/PredeterminedIcon.js +43 -0
- package/lib/commonjs/components/icons/PredeterminedIcon.js.map +1 -0
- package/lib/commonjs/config/configCard.js +9 -0
- package/lib/commonjs/config/configCard.js.map +1 -0
- package/lib/commonjs/config/localization.js +47 -0
- package/lib/commonjs/config/localization.js.map +1 -0
- package/lib/commonjs/config/themeColors.js +34 -0
- package/lib/commonjs/config/themeColors.js.map +1 -0
- package/lib/commonjs/hooks/useChangePin.js +37 -0
- package/lib/commonjs/hooks/useChangePin.js.map +1 -0
- package/lib/commonjs/hooks/useGetCardDetails.js +37 -0
- package/lib/commonjs/hooks/useGetCardDetails.js.map +1 -0
- package/lib/commonjs/hooks/useSetPin.js +37 -0
- package/lib/commonjs/hooks/useSetPin.js.map +1 -0
- package/lib/commonjs/hooks/useVerifyPin.js +37 -0
- package/lib/commonjs/hooks/useVerifyPin.js.map +1 -0
- package/lib/commonjs/hooks/useViewPin.js +37 -0
- package/lib/commonjs/hooks/useViewPin.js.map +1 -0
- package/lib/commonjs/index.js +72 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/interfaces/NiCardManagementInterfaces.js +2 -0
- package/lib/commonjs/interfaces/NiCardManagementInterfaces.js.map +1 -0
- package/lib/commonjs/interfaces/NiInputInterfaces.js +39 -0
- package/lib/commonjs/interfaces/NiInputInterfaces.js.map +1 -0
- package/lib/commonjs/interfaces/NiInterfaces.js +14 -0
- package/lib/commonjs/interfaces/NiInterfaces.js.map +1 -0
- package/lib/commonjs/nativeComponents/NICardManagementSDKModule.js +9 -0
- package/lib/commonjs/nativeComponents/NICardManagementSDKModule.js.map +1 -0
- package/lib/commonjs/utils/formatInput.js +10 -0
- package/lib/commonjs/utils/formatInput.js.map +1 -0
- package/lib/commonjs/utils/localization.js +13 -0
- package/lib/commonjs/utils/localization.js.map +1 -0
- package/lib/module/NICardManagementComponents/CardDetailsComponent.js +57 -0
- package/lib/module/NICardManagementComponents/CardDetailsComponent.js.map +1 -0
- package/lib/module/NICardManagementComponents/ChangePinView.js +32 -0
- package/lib/module/NICardManagementComponents/ChangePinView.js.map +1 -0
- package/lib/module/NICardManagementComponents/NiInputInterfaces.js +3 -0
- package/lib/module/NICardManagementComponents/NiInputInterfaces.js.map +1 -0
- package/lib/module/NICardManagementComponents/SetPinView.js +32 -0
- package/lib/module/NICardManagementComponents/SetPinView.js.map +1 -0
- package/lib/module/NICardManagementComponents/VerifyPinView.js +32 -0
- package/lib/module/NICardManagementComponents/VerifyPinView.js.map +1 -0
- package/lib/module/NICardManagementComponents/ViewPinComponent.js +38 -0
- package/lib/module/NICardManagementComponents/ViewPinComponent.js.map +1 -0
- package/lib/module/assets/icons/content-copy.png +0 -0
- package/lib/module/assets/icons/eye-off-outline.png +0 -0
- package/lib/module/assets/icons/eye-outline.png +0 -0
- package/lib/module/assets/icons/icons8-arrow-100.png +0 -0
- package/lib/module/assets/icons/icons8-arrow-100_1.png +0 -0
- package/lib/module/assets/icons/red-eye-off-outline.png +0 -0
- package/lib/module/assets/icons/red-eye-outline.png +0 -0
- package/lib/module/assets/images/grayCard.png +0 -0
- package/lib/module/components/CardDetails/CardDetails.js +20 -0
- package/lib/module/components/CardDetails/CardDetails.js.map +1 -0
- package/lib/module/components/CardDetails/CardDetailsBackgroundImage.js +22 -0
- package/lib/module/components/CardDetails/CardDetailsBackgroundImage.js.map +1 -0
- package/lib/module/components/CardDetails/CardDetailsGroups.js +85 -0
- package/lib/module/components/CardDetails/CardDetailsGroups.js.map +1 -0
- package/lib/module/components/CardDetails/CardHolderNameGroups.js +60 -0
- package/lib/module/components/CardDetails/CardHolderNameGroups.js.map +1 -0
- package/lib/module/components/CardDetails/CardNumberGroup.js +62 -0
- package/lib/module/components/CardDetails/CardNumberGroup.js.map +1 -0
- package/lib/module/components/CardDetails/DateCVVGroupOneRow.js +97 -0
- package/lib/module/components/CardDetails/DateCVVGroupOneRow.js.map +1 -0
- package/lib/module/components/CardDetails/styles.js +92 -0
- package/lib/module/components/CardDetails/styles.js.map +1 -0
- package/lib/module/components/ChangePin/CaptureCurrentPin.js +43 -0
- package/lib/module/components/ChangePin/CaptureCurrentPin.js.map +1 -0
- package/lib/module/components/ChangePin/CaptureNewPin.js +43 -0
- package/lib/module/components/ChangePin/CaptureNewPin.js.map +1 -0
- package/lib/module/components/ChangePin/ChangePin.js +126 -0
- package/lib/module/components/ChangePin/ChangePin.js.map +1 -0
- package/lib/module/components/ChangePin/ConfirmPin.js +32 -0
- package/lib/module/components/ChangePin/ConfirmPin.js.map +1 -0
- package/lib/module/components/ChangePin/ReenterNewPin.js +46 -0
- package/lib/module/components/ChangePin/ReenterNewPin.js.map +1 -0
- package/lib/module/components/ChangePin/styles.js +23 -0
- package/lib/module/components/ChangePin/styles.js.map +1 -0
- package/lib/module/components/NIButton/NIButton.js +38 -0
- package/lib/module/components/NIButton/NIButton.js.map +1 -0
- package/lib/module/components/NIButton/styles.js +9 -0
- package/lib/module/components/NIButton/styles.js.map +1 -0
- package/lib/module/components/Pin/CapturePin.js +143 -0
- package/lib/module/components/Pin/CapturePin.js.map +1 -0
- package/lib/module/components/Pin/NextButton.js +33 -0
- package/lib/module/components/Pin/NextButton.js.map +1 -0
- package/lib/module/components/Pin/ShowHideButton.js +41 -0
- package/lib/module/components/Pin/ShowHideButton.js.map +1 -0
- package/lib/module/components/Pin/styles.js +55 -0
- package/lib/module/components/Pin/styles.js.map +1 -0
- package/lib/module/components/PinState/LoadingState.js +22 -0
- package/lib/module/components/PinState/LoadingState.js.map +1 -0
- package/lib/module/components/PinState/PinState.js +22 -0
- package/lib/module/components/PinState/PinState.js.map +1 -0
- package/lib/module/components/SetPin/ConfirmPin.js +32 -0
- package/lib/module/components/SetPin/ConfirmPin.js.map +1 -0
- package/lib/module/components/SetPin/ReenterCardPin.js +46 -0
- package/lib/module/components/SetPin/ReenterCardPin.js.map +1 -0
- package/lib/module/components/SetPin/SetPin.js +109 -0
- package/lib/module/components/SetPin/SetPin.js.map +1 -0
- package/lib/module/components/SetPin/SetUpNewCardPin.js +43 -0
- package/lib/module/components/SetPin/SetUpNewCardPin.js.map +1 -0
- package/lib/module/components/SetPin/styles.js +23 -0
- package/lib/module/components/SetPin/styles.js.map +1 -0
- package/lib/module/components/VerifyPin/CaptureVerifyPin.js +43 -0
- package/lib/module/components/VerifyPin/CaptureVerifyPin.js.map +1 -0
- package/lib/module/components/VerifyPin/ConfirmPin.js +33 -0
- package/lib/module/components/VerifyPin/ConfirmPin.js.map +1 -0
- package/lib/module/components/VerifyPin/VerifyPin.js +83 -0
- package/lib/module/components/VerifyPin/VerifyPin.js.map +1 -0
- package/lib/module/components/VerifyPin/styles.js +20 -0
- package/lib/module/components/VerifyPin/styles.js.map +1 -0
- package/lib/module/components/ViewPin/ViewPin.js +67 -0
- package/lib/module/components/ViewPin/ViewPin.js.map +1 -0
- package/lib/module/components/ViewPin/styles.js +13 -0
- package/lib/module/components/ViewPin/styles.js.map +1 -0
- package/lib/module/components/icons/PredeterminedIcon.js +35 -0
- package/lib/module/components/icons/PredeterminedIcon.js.map +1 -0
- package/lib/module/config/configCard.js +3 -0
- package/lib/module/config/configCard.js.map +1 -0
- package/lib/module/config/localization.js +41 -0
- package/lib/module/config/localization.js.map +1 -0
- package/lib/module/config/themeColors.js +29 -0
- package/lib/module/config/themeColors.js.map +1 -0
- package/lib/module/hooks/useChangePin.js +29 -0
- package/lib/module/hooks/useChangePin.js.map +1 -0
- package/lib/module/hooks/useGetCardDetails.js +29 -0
- package/lib/module/hooks/useGetCardDetails.js.map +1 -0
- package/lib/module/hooks/useSetPin.js +29 -0
- package/lib/module/hooks/useSetPin.js.map +1 -0
- package/lib/module/hooks/useVerifyPin.js +29 -0
- package/lib/module/hooks/useVerifyPin.js.map +1 -0
- package/lib/module/hooks/useViewPin.js +29 -0
- package/lib/module/hooks/useViewPin.js.map +1 -0
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/interfaces/NiCardManagementInterfaces.js +2 -0
- package/lib/module/interfaces/NiCardManagementInterfaces.js.map +1 -0
- package/lib/module/interfaces/NiInputInterfaces.js +33 -0
- package/lib/module/interfaces/NiInputInterfaces.js.map +1 -0
- package/lib/module/interfaces/NiInterfaces.js +8 -0
- package/lib/module/interfaces/NiInterfaces.js.map +1 -0
- package/lib/module/nativeComponents/NICardManagementSDKModule.js +3 -0
- package/lib/module/nativeComponents/NICardManagementSDKModule.js.map +1 -0
- package/lib/module/utils/formatInput.js +4 -0
- package/lib/module/utils/formatInput.js.map +1 -0
- package/lib/module/utils/localization.js +7 -0
- package/lib/module/utils/localization.js.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/CardDetailsComponent.d.ts +7 -0
- package/lib/typescript/src/NICardManagementComponents/CardDetailsComponent.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/ChangePinView.d.ts +6 -0
- package/lib/typescript/src/NICardManagementComponents/ChangePinView.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/NiInputInterfaces.d.ts +4 -0
- package/lib/typescript/src/NICardManagementComponents/NiInputInterfaces.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/SetPinView.d.ts +6 -0
- package/lib/typescript/src/NICardManagementComponents/SetPinView.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/VerifyPinView.d.ts +6 -0
- package/lib/typescript/src/NICardManagementComponents/VerifyPinView.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/ViewPinComponent.d.ts +6 -0
- package/lib/typescript/src/NICardManagementComponents/ViewPinComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardDetails.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardDetails.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardDetailsBackgroundImage.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardDetailsBackgroundImage.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardDetailsGroups.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardDetailsGroups.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardHolderNameGroups.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardHolderNameGroups.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardNumberGroup.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardNumberGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/DateCVVGroupOneRow.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/DateCVVGroupOneRow.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/styles.d.ts +90 -0
- package/lib/typescript/src/components/CardDetails/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/CaptureCurrentPin.d.ts +4 -0
- package/lib/typescript/src/components/ChangePin/CaptureCurrentPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/CaptureNewPin.d.ts +4 -0
- package/lib/typescript/src/components/ChangePin/CaptureNewPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/ChangePin.d.ts +5 -0
- package/lib/typescript/src/components/ChangePin/ChangePin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/ConfirmPin.d.ts +4 -0
- package/lib/typescript/src/components/ChangePin/ConfirmPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/ReenterNewPin.d.ts +4 -0
- package/lib/typescript/src/components/ChangePin/ReenterNewPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/styles.d.ts +22 -0
- package/lib/typescript/src/components/ChangePin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/NIButton/NIButton.d.ts +13 -0
- package/lib/typescript/src/components/NIButton/NIButton.d.ts.map +1 -0
- package/lib/typescript/src/components/NIButton/styles.d.ts +8 -0
- package/lib/typescript/src/components/NIButton/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/Pin/CapturePin.d.ts +4 -0
- package/lib/typescript/src/components/Pin/CapturePin.d.ts.map +1 -0
- package/lib/typescript/src/components/Pin/NextButton.d.ts +4 -0
- package/lib/typescript/src/components/Pin/NextButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Pin/ShowHideButton.d.ts +4 -0
- package/lib/typescript/src/components/Pin/ShowHideButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Pin/styles.d.ts +54 -0
- package/lib/typescript/src/components/Pin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/PinState/LoadingState.d.ts +7 -0
- package/lib/typescript/src/components/PinState/LoadingState.d.ts.map +1 -0
- package/lib/typescript/src/components/PinState/PinState.d.ts +8 -0
- package/lib/typescript/src/components/PinState/PinState.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/ConfirmPin.d.ts +4 -0
- package/lib/typescript/src/components/SetPin/ConfirmPin.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/ReenterCardPin.d.ts +4 -0
- package/lib/typescript/src/components/SetPin/ReenterCardPin.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/SetPin.d.ts +5 -0
- package/lib/typescript/src/components/SetPin/SetPin.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/SetUpNewCardPin.d.ts +4 -0
- package/lib/typescript/src/components/SetPin/SetUpNewCardPin.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/styles.d.ts +22 -0
- package/lib/typescript/src/components/SetPin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/VerifyPin/CaptureVerifyPin.d.ts +4 -0
- package/lib/typescript/src/components/VerifyPin/CaptureVerifyPin.d.ts.map +1 -0
- package/lib/typescript/src/components/VerifyPin/ConfirmPin.d.ts +5 -0
- package/lib/typescript/src/components/VerifyPin/ConfirmPin.d.ts.map +1 -0
- package/lib/typescript/src/components/VerifyPin/VerifyPin.d.ts +5 -0
- package/lib/typescript/src/components/VerifyPin/VerifyPin.d.ts.map +1 -0
- package/lib/typescript/src/components/VerifyPin/styles.d.ts +19 -0
- package/lib/typescript/src/components/VerifyPin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/ViewPin/ViewPin.d.ts +5 -0
- package/lib/typescript/src/components/ViewPin/ViewPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ViewPin/styles.d.ts +12 -0
- package/lib/typescript/src/components/ViewPin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/icons/PredeterminedIcon.d.ts +7 -0
- package/lib/typescript/src/components/icons/PredeterminedIcon.d.ts.map +1 -0
- package/lib/typescript/src/config/configCard.d.ts +3 -0
- package/lib/typescript/src/config/configCard.d.ts.map +1 -0
- package/lib/typescript/src/config/localization.d.ts +39 -0
- package/lib/typescript/src/config/localization.d.ts.map +1 -0
- package/lib/typescript/src/config/themeColors.d.ts +29 -0
- package/lib/typescript/src/config/themeColors.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useChangePin.d.ts +9 -0
- package/lib/typescript/src/hooks/useChangePin.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useGetCardDetails.d.ts +9 -0
- package/lib/typescript/src/hooks/useGetCardDetails.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSetPin.d.ts +9 -0
- package/lib/typescript/src/hooks/useSetPin.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useVerifyPin.d.ts +9 -0
- package/lib/typescript/src/hooks/useVerifyPin.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useViewPin.d.ts +9 -0
- package/lib/typescript/src/hooks/useViewPin.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +7 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/interfaces/NiCardManagementInterfaces.d.ts +37 -0
- package/lib/typescript/src/interfaces/NiCardManagementInterfaces.d.ts.map +1 -0
- package/lib/typescript/src/interfaces/NiInputInterfaces.d.ts +62 -0
- package/lib/typescript/src/interfaces/NiInputInterfaces.d.ts.map +1 -0
- package/lib/typescript/src/interfaces/NiInterfaces.d.ts +232 -0
- package/lib/typescript/src/interfaces/NiInterfaces.d.ts.map +1 -0
- package/lib/typescript/src/nativeComponents/NICardManagementSDKModule.d.ts +4 -0
- package/lib/typescript/src/nativeComponents/NICardManagementSDKModule.d.ts.map +1 -0
- package/lib/typescript/src/utils/formatInput.d.ts +4 -0
- package/lib/typescript/src/utils/formatInput.d.ts.map +1 -0
- package/lib/typescript/src/utils/localization.d.ts +20 -0
- package/lib/typescript/src/utils/localization.d.ts.map +1 -0
- package/package.json +167 -0
- package/react-native-ni-card-management.podspec +43 -0
- package/src/NICardManagementComponents/CardDetailsComponent.tsx +77 -0
- package/src/NICardManagementComponents/ChangePinView.tsx +41 -0
- package/src/NICardManagementComponents/NiInputInterfaces.ts +14 -0
- package/src/NICardManagementComponents/SetPinView.tsx +38 -0
- package/src/NICardManagementComponents/VerifyPinView.tsx +42 -0
- package/src/NICardManagementComponents/ViewPinComponent.tsx +48 -0
- package/src/assets/icons/content-copy.png +0 -0
- package/src/assets/icons/eye-off-outline.png +0 -0
- package/src/assets/icons/eye-outline.png +0 -0
- package/src/assets/icons/icons8-arrow-100.png +0 -0
- package/src/assets/icons/icons8-arrow-100_1.png +0 -0
- package/src/assets/icons/red-eye-off-outline.png +0 -0
- package/src/assets/icons/red-eye-outline.png +0 -0
- package/src/assets/images/grayCard.png +0 -0
- package/src/components/CardDetails/CardDetails.tsx +24 -0
- package/src/components/CardDetails/CardDetailsBackgroundImage.tsx +33 -0
- package/src/components/CardDetails/CardDetailsGroups.tsx +119 -0
- package/src/components/CardDetails/CardHolderNameGroups.tsx +101 -0
- package/src/components/CardDetails/CardNumberGroup.tsx +101 -0
- package/src/components/CardDetails/DateCVVGroupOneRow.tsx +146 -0
- package/src/components/CardDetails/styles.ts +105 -0
- package/src/components/ChangePin/CaptureCurrentPin.tsx +39 -0
- package/src/components/ChangePin/CaptureNewPin.tsx +39 -0
- package/src/components/ChangePin/ChangePin.tsx +153 -0
- package/src/components/ChangePin/ConfirmPin.tsx +47 -0
- package/src/components/ChangePin/ReenterNewPin.tsx +45 -0
- package/src/components/ChangePin/styles.ts +24 -0
- package/src/components/NIButton/NIButton.tsx +57 -0
- package/src/components/NIButton/styles.ts +10 -0
- package/src/components/Pin/CapturePin.tsx +227 -0
- package/src/components/Pin/NextButton.tsx +50 -0
- package/src/components/Pin/ShowHideButton.tsx +53 -0
- package/src/components/Pin/styles.ts +56 -0
- package/src/components/PinState/LoadingState.tsx +30 -0
- package/src/components/PinState/PinState.tsx +33 -0
- package/src/components/SetPin/ConfirmPin.tsx +47 -0
- package/src/components/SetPin/ReenterCardPin.tsx +45 -0
- package/src/components/SetPin/SetPin.tsx +140 -0
- package/src/components/SetPin/SetUpNewCardPin.tsx +39 -0
- package/src/components/SetPin/styles.ts +24 -0
- package/src/components/VerifyPin/CaptureVerifyPin.tsx +39 -0
- package/src/components/VerifyPin/ConfirmPin.tsx +49 -0
- package/src/components/VerifyPin/VerifyPin.tsx +105 -0
- package/src/components/VerifyPin/styles.ts +21 -0
- package/src/components/ViewPin/ViewPin.tsx +99 -0
- package/src/components/ViewPin/styles.ts +14 -0
- package/src/components/icons/PredeterminedIcon.tsx +41 -0
- package/src/config/configCard.ts +2 -0
- package/src/config/localization.ts +44 -0
- package/src/config/themeColors.ts +37 -0
- package/src/hooks/useChangePin.ts +39 -0
- package/src/hooks/useGetCardDetails.ts +38 -0
- package/src/hooks/useSetPin.ts +37 -0
- package/src/hooks/useVerifyPin.ts +37 -0
- package/src/hooks/useViewPin.ts +35 -0
- package/src/index.tsx +6 -0
- package/src/interfaces/NiCardManagementInterfaces.ts +61 -0
- package/src/interfaces/NiInputInterfaces.ts +78 -0
- package/src/interfaces/NiInterfaces.ts +259 -0
- package/src/nativeComponents/NICardManagementSDKModule.ts +5 -0
- package/src/utils/formatInput.ts +8 -0
- package/src/utils/localization.ts +10 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
const styles = StyleSheet.create({
|
|
3
|
+
capturePinSection: {
|
|
4
|
+
flexDirection: 'column',
|
|
5
|
+
marginTop: 2,
|
|
6
|
+
width: '80%',
|
|
7
|
+
height: 225,
|
|
8
|
+
justifyContent: 'space-between'
|
|
9
|
+
},
|
|
10
|
+
titleSection: {
|
|
11
|
+
flexDirection: 'column',
|
|
12
|
+
marginTop: 20,
|
|
13
|
+
alignSelf: 'center'
|
|
14
|
+
},
|
|
15
|
+
pinSection: {
|
|
16
|
+
flexDirection: 'column'
|
|
17
|
+
},
|
|
18
|
+
pinInputView: {
|
|
19
|
+
flexDirection: 'row',
|
|
20
|
+
marginTop: 15,
|
|
21
|
+
borderColor: 'gray',
|
|
22
|
+
color: 'gray',
|
|
23
|
+
borderWidth: 1,
|
|
24
|
+
borderRadius: 15,
|
|
25
|
+
paddingLeft: 16,
|
|
26
|
+
paddingRight: 16,
|
|
27
|
+
fontSize: 16,
|
|
28
|
+
height: 50
|
|
29
|
+
},
|
|
30
|
+
pinInput: {
|
|
31
|
+
borderColor: 'gray',
|
|
32
|
+
color: 'gray',
|
|
33
|
+
fontSize: 18,
|
|
34
|
+
height: 50
|
|
35
|
+
},
|
|
36
|
+
showHideButton: {
|
|
37
|
+
alignItems: 'flex-end',
|
|
38
|
+
paddingTop: 10
|
|
39
|
+
},
|
|
40
|
+
row: {
|
|
41
|
+
flexDirection: 'row',
|
|
42
|
+
flexWrap: 'wrap',
|
|
43
|
+
justifyContent: 'flex-start',
|
|
44
|
+
gap: 5
|
|
45
|
+
},
|
|
46
|
+
pinButton: {
|
|
47
|
+
alignSelf: 'flex-end',
|
|
48
|
+
marginBottom: 24
|
|
49
|
+
},
|
|
50
|
+
nextButton: {
|
|
51
|
+
borderRadius: 20
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export default styles;
|
|
55
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","styles","create","capturePinSection","flexDirection","marginTop","width","height","justifyContent","titleSection","alignSelf","pinSection","pinInputView","borderColor","color","borderWidth","borderRadius","paddingLeft","paddingRight","fontSize","pinInput","showHideButton","alignItems","paddingTop","row","flexWrap","gap","pinButton","marginBottom","nextButton"],"sourceRoot":"../../../../src","sources":["components/Pin/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,MAAMC,MAAM,GAAGD,UAAU,CAACE,MAAM,CAAC;EAC/BC,iBAAiB,EAAE;IACjBC,aAAa,EAAE,QAAQ;IACvBC,SAAS,EAAE,CAAC;IACZC,KAAK,EAAE,KAAK;IACZC,MAAM,EAAE,GAAG;IACXC,cAAc,EAAE;EAClB,CAAC;EACDC,YAAY,EAAE;IACZL,aAAa,EAAE,QAAQ;IACvBC,SAAS,EAAE,EAAE;IACbK,SAAS,EAAE;EACb,CAAC;EACDC,UAAU,EAAE;IACVP,aAAa,EAAE;EACjB,CAAC;EACDQ,YAAY,EAAE;IACZR,aAAa,EAAE,KAAK;IACpBC,SAAS,EAAE,EAAE;IACbQ,WAAW,EAAE,MAAM;IACnBC,KAAK,EAAE,MAAM;IACbC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE,EAAE;IACfC,YAAY,EAAE,EAAE;IAChBC,QAAQ,EAAE,EAAE;IACZZ,MAAM,EAAE;EACV,CAAC;EACDa,QAAQ,EAAE;IACRP,WAAW,EAAE,MAAM;IACnBC,KAAK,EAAE,MAAM;IACbK,QAAQ,EAAE,EAAE;IACZZ,MAAM,EAAE;EACV,CAAC;EACDc,cAAc,EAAE;IACdC,UAAU,EAAE,UAAU;IACtBC,UAAU,EAAE;EACd,CAAC;EACDC,GAAG,EAAE;IACHpB,aAAa,EAAE,KAAK;IACpBqB,QAAQ,EAAE,MAAM;IAChBjB,cAAc,EAAE,YAAY;IAC5BkB,GAAG,EAAE;EACP,CAAC;EACDC,SAAS,EAAE;IACTjB,SAAS,EAAE,UAAU;IACrBkB,YAAY,EAAE;EAChB,CAAC;EACDC,UAAU,EAAE;IACVb,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AAEF,eAAef,MAAM"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ActivityIndicator, View } from 'react-native';
|
|
3
|
+
import { themeColors } from '../../config/themeColors';
|
|
4
|
+
import { NIThemeEnum } from '../../interfaces/NiInputInterfaces';
|
|
5
|
+
import { HEIGHT_CARD } from '../../config/configCard';
|
|
6
|
+
export default function LoadingState({
|
|
7
|
+
isLoading,
|
|
8
|
+
theme,
|
|
9
|
+
isCardDetails
|
|
10
|
+
}) {
|
|
11
|
+
const color = theme === NIThemeEnum.light ? themeColors.light.colorActivityIndicator : themeColors.dark.colorActivityIndicator;
|
|
12
|
+
const LoadingIndicator = {
|
|
13
|
+
top: isCardDetails ? -(HEIGHT_CARD + 24) / 2 : 250
|
|
14
|
+
};
|
|
15
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
16
|
+
style: LoadingIndicator
|
|
17
|
+
}, isLoading && /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
18
|
+
size: "small",
|
|
19
|
+
color: color
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=LoadingState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ActivityIndicator","View","themeColors","NIThemeEnum","HEIGHT_CARD","LoadingState","isLoading","theme","isCardDetails","color","light","colorActivityIndicator","dark","LoadingIndicator","top","createElement","style","size"],"sourceRoot":"../../../../src","sources":["components/PinState/LoadingState.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,iBAAiB,EAAkBC,IAAI,QAAQ,cAAc;AAEtE,SAASC,WAAW,QAAQ,0BAA0B;AACtD,SAASC,WAAW,QAAQ,oCAAoC;AAChE,SAASC,WAAW,QAAQ,yBAAyB;AAErD,eAAe,SAASC,YAAYA,CAAC;EACnCC,SAAS;EACTC,KAAK;EACLC;AAKF,CAAC,EAAe;EACd,MAAMC,KAAK,GACTF,KAAK,KAAKJ,WAAW,CAACO,KAAK,GACvBR,WAAW,CAACQ,KAAK,CAACC,sBAAsB,GACxCT,WAAW,CAACU,IAAI,CAACD,sBAAsB;EAE7C,MAAME,gBAA2B,GAAG;IAClCC,GAAG,EAAEN,aAAa,GAAG,EAAEJ,WAAW,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG;EACjD,CAAC;EACD,oBACEL,KAAA,CAAAgB,aAAA,CAACd,IAAI;IAACe,KAAK,EAAEH;EAAiB,GAC3BP,SAAS,iBAAIP,KAAA,CAAAgB,aAAA,CAACf,iBAAiB;IAACiB,IAAI,EAAC,OAAO;IAACR,KAAK,EAAEA;EAAM,CAAE,CACzD,CAAC;AAEX"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import LoadingState from './LoadingState';
|
|
4
|
+
function PinState({
|
|
5
|
+
isLoading,
|
|
6
|
+
theme,
|
|
7
|
+
isCardDetails
|
|
8
|
+
}) {
|
|
9
|
+
const pinState = isCardDetails ? {} : {
|
|
10
|
+
position: 'absolute',
|
|
11
|
+
width: '100%'
|
|
12
|
+
};
|
|
13
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
14
|
+
style: pinState
|
|
15
|
+
}, /*#__PURE__*/React.createElement(LoadingState, {
|
|
16
|
+
isLoading: isLoading,
|
|
17
|
+
theme: theme,
|
|
18
|
+
isCardDetails: isCardDetails
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
21
|
+
export default PinState;
|
|
22
|
+
//# sourceMappingURL=PinState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","LoadingState","PinState","isLoading","theme","isCardDetails","pinState","position","width","createElement","style"],"sourceRoot":"../../../../src","sources":["components/PinState/PinState.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAyBC,IAAI,QAAQ,cAAc;AAEnD,OAAOC,YAAY,MAAM,gBAAgB;AAEzC,SAASC,QAAQA,CAAC;EAChBC,SAAS;EACTC,KAAK;EACLC;AAKF,CAAC,EAAe;EACd,MAAMC,QAAmB,GAAGD,aAAa,GACrC,CAAC,CAAC,GACF;IACEE,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE;EACT,CAAC;EAEL,oBACET,KAAA,CAAAU,aAAA,CAACT,IAAI;IAACU,KAAK,EAAEJ;EAAS,gBACpBP,KAAA,CAAAU,aAAA,CAACR,YAAY;IACXE,SAAS,EAAEA,SAAU;IACrBC,KAAK,EAAEA,KAAM;IACbC,aAAa,EAAEA;EAAc,CAC9B,CACG,CAAC;AAEX;AAEA,eAAeH,QAAQ"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { NIThemeEnum } from '../../interfaces/NiInputInterfaces';
|
|
4
|
+
import { themeColors } from '../../config/themeColors';
|
|
5
|
+
import { NIButton } from '../NIButton/NIButton';
|
|
6
|
+
import styles from './styles';
|
|
7
|
+
import localLabels from '../../utils/localization';
|
|
8
|
+
export default function ConfirmPin({
|
|
9
|
+
language,
|
|
10
|
+
theme,
|
|
11
|
+
disabled,
|
|
12
|
+
onConfirmPin
|
|
13
|
+
}) {
|
|
14
|
+
const buttonConfirmColorDisabled = theme === NIThemeEnum.light ? themeColors.light.buttonConfirmColorDisabled : themeColors.dark.buttonConfirmColorDisabled;
|
|
15
|
+
const confirmButton = {
|
|
16
|
+
backgroundColor: buttonConfirmColorDisabled,
|
|
17
|
+
borderRadius: 20
|
|
18
|
+
};
|
|
19
|
+
const confirmPinButtonsLinearGradientColors = theme === NIThemeEnum.light ? themeColors.light.confirmPinButtonsLinearGradientColors : themeColors.dark.confirmPinButtonsLinearGradientColors;
|
|
20
|
+
const textColor = theme === NIThemeEnum.light ? themeColors.light.buttonConfirmTextColor : themeColors.dark.buttonConfirmTextColor;
|
|
21
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
22
|
+
style: [styles.confirmButton, confirmButton]
|
|
23
|
+
}, /*#__PURE__*/React.createElement(NIButton, {
|
|
24
|
+
title: localLabels(language).setPinButtonLabel,
|
|
25
|
+
mode: "text",
|
|
26
|
+
disabled: disabled,
|
|
27
|
+
textColor: textColor,
|
|
28
|
+
colors: confirmPinButtonsLinearGradientColors,
|
|
29
|
+
onPress: onConfirmPin
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=ConfirmPin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","NIThemeEnum","themeColors","NIButton","styles","localLabels","ConfirmPin","language","theme","disabled","onConfirmPin","buttonConfirmColorDisabled","light","dark","confirmButton","backgroundColor","borderRadius","confirmPinButtonsLinearGradientColors","textColor","buttonConfirmTextColor","createElement","style","title","setPinButtonLabel","mode","colors","onPress"],"sourceRoot":"../../../../src","sources":["components/SetPin/ConfirmPin.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAyBC,IAAI,QAAQ,cAAc;AAEnD,SAASC,WAAW,QAAQ,oCAAoC;AAEhE,SAASC,WAAW,QAAQ,0BAA0B;AACtD,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,OAAOC,MAAM,MAAM,UAAU;AAC7B,OAAOC,WAAW,MAAM,0BAA0B;AAElD,eAAe,SAASC,UAAUA,CAAC;EACjCC,QAAQ;EACRC,KAAK;EACLC,QAAQ;EACRC;AACY,CAAC,EAAe;EAC5B,MAAMC,0BAA0B,GAC9BH,KAAK,KAAKP,WAAW,CAACW,KAAK,GACvBV,WAAW,CAACU,KAAK,CAACD,0BAA0B,GAC5CT,WAAW,CAACW,IAAI,CAACF,0BAA0B;EACjD,MAAMG,aAAwB,GAAG;IAC/BC,eAAe,EAAEJ,0BAA0B;IAC3CK,YAAY,EAAE;EAChB,CAAC;EACD,MAAMC,qCAAqC,GACzCT,KAAK,KAAKP,WAAW,CAACW,KAAK,GACvBV,WAAW,CAACU,KAAK,CAACK,qCAAqC,GACvDf,WAAW,CAACW,IAAI,CAACI,qCAAqC;EAE5D,MAAMC,SAAS,GACbV,KAAK,KAAKP,WAAW,CAACW,KAAK,GACvBV,WAAW,CAACU,KAAK,CAACO,sBAAsB,GACxCjB,WAAW,CAACW,IAAI,CAACM,sBAAsB;EAE7C,oBACEpB,KAAA,CAAAqB,aAAA,CAACpB,IAAI;IAACqB,KAAK,EAAE,CAACjB,MAAM,CAACU,aAAa,EAAEA,aAAa;EAAE,gBACjDf,KAAA,CAAAqB,aAAA,CAACjB,QAAQ;IACPmB,KAAK,EAAEjB,WAAW,CAACE,QAAQ,CAAC,CAACgB,iBAAkB;IAC/CC,IAAI,EAAC,MAAM;IACXf,QAAQ,EAAEA,QAAS;IACnBS,SAAS,EAAEA,SAAU;IACrBO,MAAM,EAAER,qCAAsC;IAC9CS,OAAO,EAAEhB;EAAa,CACvB,CACG,CAAC;AAEX"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NILabels } from '../../interfaces/NiInputInterfaces';
|
|
3
|
+
import { NIStepEnum } from '../../interfaces/NiInterfaces';
|
|
4
|
+
import CapturePin from '../Pin/CapturePin';
|
|
5
|
+
import localLabels from '../../utils/localization';
|
|
6
|
+
export default function ReenterCardPin({
|
|
7
|
+
setPin: {
|
|
8
|
+
confirmationPin,
|
|
9
|
+
setConfirmationPin,
|
|
10
|
+
pin,
|
|
11
|
+
pinEditable
|
|
12
|
+
},
|
|
13
|
+
setNextStep: {
|
|
14
|
+
step,
|
|
15
|
+
onConfirmPin
|
|
16
|
+
},
|
|
17
|
+
pinType,
|
|
18
|
+
language,
|
|
19
|
+
theme,
|
|
20
|
+
input
|
|
21
|
+
}) {
|
|
22
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, step === NIStepEnum.reEnterPinStep && /*#__PURE__*/React.createElement(CapturePin, {
|
|
23
|
+
setPin: {
|
|
24
|
+
pin: confirmationPin,
|
|
25
|
+
setPin: setConfirmationPin,
|
|
26
|
+
initialPin: pin,
|
|
27
|
+
pinEditable
|
|
28
|
+
},
|
|
29
|
+
setNextStep: {
|
|
30
|
+
step,
|
|
31
|
+
onConfirmPin
|
|
32
|
+
},
|
|
33
|
+
pinType: pinType,
|
|
34
|
+
title: localLabels(language).setPinButtonLabel,
|
|
35
|
+
pinLabel: localLabels(language).confirmCardPIN,
|
|
36
|
+
wrongPinLabel: localLabels(language).wrongCardPin,
|
|
37
|
+
pinLabelIndex: NILabels.setPinDescriptionLabel,
|
|
38
|
+
showHideLabels: {
|
|
39
|
+
show: localLabels(language).show,
|
|
40
|
+
hide: localLabels(language).hide
|
|
41
|
+
},
|
|
42
|
+
theme: theme,
|
|
43
|
+
input: input
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=ReenterCardPin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","NILabels","NIStepEnum","CapturePin","localLabels","ReenterCardPin","setPin","confirmationPin","setConfirmationPin","pin","pinEditable","setNextStep","step","onConfirmPin","pinType","language","theme","input","createElement","Fragment","reEnterPinStep","initialPin","title","setPinButtonLabel","pinLabel","confirmCardPIN","wrongPinLabel","wrongCardPin","pinLabelIndex","setPinDescriptionLabel","showHideLabels","show","hide"],"sourceRoot":"../../../../src","sources":["components/SetPin/ReenterCardPin.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,QAAQ,QAAQ,oCAAoC;AAC7D,SAEEC,UAAU,QACL,+BAA+B;AACtC,OAAOC,UAAU,MAAM,mBAAmB;AAC1C,OAAOC,WAAW,MAAM,0BAA0B;AAElD,eAAe,SAASC,cAAcA,CAAC;EACrCC,MAAM,EAAE;IAAEC,eAAe;IAAEC,kBAAkB;IAAEC,GAAG;IAAEC;EAAY,CAAC;EACjEC,WAAW,EAAE;IAAEC,IAAI;IAAEC;EAAa,CAAC;EACnCC,OAAO;EACPC,QAAQ;EACRC,KAAK;EACLC;AACgB,CAAC,EAAe;EAChC,oBACEjB,KAAA,CAAAkB,aAAA,CAAAlB,KAAA,CAAAmB,QAAA,QACGP,IAAI,KAAKV,UAAU,CAACkB,cAAc,iBACjCpB,KAAA,CAAAkB,aAAA,CAACf,UAAU;IACTG,MAAM,EAAE;MACNG,GAAG,EAAEF,eAAe;MACpBD,MAAM,EAAEE,kBAAkB;MAC1Ba,UAAU,EAAEZ,GAAG;MACfC;IACF,CAAE;IACFC,WAAW,EAAE;MAAEC,IAAI;MAAEC;IAAa,CAAE;IACpCC,OAAO,EAAEA,OAAQ;IACjBQ,KAAK,EAAElB,WAAW,CAACW,QAAQ,CAAC,CAACQ,iBAAkB;IAC/CC,QAAQ,EAAEpB,WAAW,CAACW,QAAQ,CAAC,CAACU,cAAe;IAC/CC,aAAa,EAAEtB,WAAW,CAACW,QAAQ,CAAC,CAACY,YAAa;IAClDC,aAAa,EAAE3B,QAAQ,CAAC4B,sBAAuB;IAC/CC,cAAc,EAAE;MACdC,IAAI,EAAE3B,WAAW,CAACW,QAAQ,CAAC,CAACgB,IAAI;MAChCC,IAAI,EAAE5B,WAAW,CAACW,QAAQ,CAAC,CAACiB;IAC9B,CAAE;IACFhB,KAAK,EAAEA,KAAM;IACbC,KAAK,EAAEA;EAAM,CACd,CAEH,CAAC;AAEP"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { Platform, TouchableWithoutFeedback, Keyboard, View, I18nManager } from 'react-native';
|
|
3
|
+
import { NIThemeEnum, NILanguageEnum, NIPinTypeEnum } from '../../interfaces/NiInputInterfaces';
|
|
4
|
+
import { NIStepEnum } from '../../interfaces/NiInterfaces';
|
|
5
|
+
import SetUpNewCardPin from './SetUpNewCardPin';
|
|
6
|
+
import ReenterCardPin from './ReenterCardPin';
|
|
7
|
+
import NextButton from '../Pin/NextButton';
|
|
8
|
+
import ConfirmPin from './ConfirmPin';
|
|
9
|
+
import styles from './styles';
|
|
10
|
+
import { themeColors } from '../../config/themeColors';
|
|
11
|
+
function SetPin({
|
|
12
|
+
input,
|
|
13
|
+
pinType,
|
|
14
|
+
result,
|
|
15
|
+
isLoading,
|
|
16
|
+
onSetPin,
|
|
17
|
+
callback
|
|
18
|
+
}) {
|
|
19
|
+
const [pin, setPin] = useState('');
|
|
20
|
+
const [confirmationPin, setConfirmationPin] = useState('');
|
|
21
|
+
const [step, setNextStep] = useState(NIStepEnum.setupPinStep);
|
|
22
|
+
const [pinEditable, setPinEditable] = useState(true);
|
|
23
|
+
const [keyboardHeight, setKeyboardHeight] = useState(0);
|
|
24
|
+
const [initialKeyboardHeight, setInitialKeyboardHeight] = useState(0);
|
|
25
|
+
const language = input && input.displayAttributes?.language || NILanguageEnum.english;
|
|
26
|
+
const theme = input?.displayAttributes?.theme || NIThemeEnum.light;
|
|
27
|
+
const container = {
|
|
28
|
+
backgroundColor: theme === NIThemeEnum.light ? themeColors.light.background : themeColors.dark.background,
|
|
29
|
+
paddingBottom: Platform.OS === 'ios' ? keyboardHeight : 0
|
|
30
|
+
};
|
|
31
|
+
const isVisibleConfirmationButtonStep = step === NIStepEnum.reEnterPinStep;
|
|
32
|
+
const isVisibleConfirmationButton = isVisibleConfirmationButtonStep && pin === confirmationPin;
|
|
33
|
+
const disabled = !isVisibleConfirmationButton || isLoading || !!result;
|
|
34
|
+
const pinLength = pinType === NIPinTypeEnum.dynamicFourToSix ? NIPinTypeEnum.sixDigits : pinType;
|
|
35
|
+
const isPinDone = pinType === NIPinTypeEnum.dynamicFourToSix ? pin.length >= NIPinTypeEnum.fourDigits : pin.length === pinLength;
|
|
36
|
+
function onConfirmPin() {
|
|
37
|
+
!disabled && input && onSetPin && onSetPin(pin, input, callback);
|
|
38
|
+
setPinEditable(false);
|
|
39
|
+
}
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
Keyboard.addListener('keyboardDidShow', () => {
|
|
42
|
+
const metrics = Keyboard.metrics();
|
|
43
|
+
if (!initialKeyboardHeight) {
|
|
44
|
+
setInitialKeyboardHeight(metrics?.height || 0);
|
|
45
|
+
}
|
|
46
|
+
setKeyboardHeight(metrics?.height || 0);
|
|
47
|
+
});
|
|
48
|
+
Keyboard.addListener('keyboardWillHide', () => {
|
|
49
|
+
setKeyboardHeight(0);
|
|
50
|
+
});
|
|
51
|
+
Keyboard.addListener('keyboardWillShow', () => {
|
|
52
|
+
if (initialKeyboardHeight) {
|
|
53
|
+
setKeyboardHeight(initialKeyboardHeight);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}, [initialKeyboardHeight]);
|
|
57
|
+
return /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
|
|
58
|
+
onPress: Keyboard.dismiss
|
|
59
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
60
|
+
style: [styles.container, container]
|
|
61
|
+
}, /*#__PURE__*/React.createElement(SetUpNewCardPin, {
|
|
62
|
+
setPin: {
|
|
63
|
+
pin,
|
|
64
|
+
setPin,
|
|
65
|
+
pinEditable
|
|
66
|
+
},
|
|
67
|
+
setNextStep: {
|
|
68
|
+
step,
|
|
69
|
+
setNextStep
|
|
70
|
+
},
|
|
71
|
+
pinType: pinType,
|
|
72
|
+
language: language,
|
|
73
|
+
theme: theme,
|
|
74
|
+
input: input
|
|
75
|
+
}), /*#__PURE__*/React.createElement(ReenterCardPin, {
|
|
76
|
+
setPin: {
|
|
77
|
+
confirmationPin,
|
|
78
|
+
setConfirmationPin,
|
|
79
|
+
pin,
|
|
80
|
+
pinEditable
|
|
81
|
+
},
|
|
82
|
+
setNextStep: {
|
|
83
|
+
step,
|
|
84
|
+
onConfirmPin
|
|
85
|
+
},
|
|
86
|
+
pinType: pinType,
|
|
87
|
+
language: language,
|
|
88
|
+
theme: theme,
|
|
89
|
+
input: input
|
|
90
|
+
}), !isVisibleConfirmationButtonStep && /*#__PURE__*/React.createElement(View, {
|
|
91
|
+
style: [styles.capturePinSection, I18nManager.isRTL ? {
|
|
92
|
+
flexDirection: 'row'
|
|
93
|
+
} : {}]
|
|
94
|
+
}, /*#__PURE__*/React.createElement(NextButton, {
|
|
95
|
+
setNextStep: {
|
|
96
|
+
step,
|
|
97
|
+
setNextStep
|
|
98
|
+
},
|
|
99
|
+
disabled: !isPinDone,
|
|
100
|
+
theme: theme
|
|
101
|
+
})), isVisibleConfirmationButtonStep && /*#__PURE__*/React.createElement(ConfirmPin, {
|
|
102
|
+
language: language,
|
|
103
|
+
theme: theme,
|
|
104
|
+
disabled: !pinEditable || disabled,
|
|
105
|
+
onConfirmPin: onConfirmPin
|
|
106
|
+
})));
|
|
107
|
+
}
|
|
108
|
+
export default SetPin;
|
|
109
|
+
//# sourceMappingURL=SetPin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","Platform","TouchableWithoutFeedback","Keyboard","View","I18nManager","NIThemeEnum","NILanguageEnum","NIPinTypeEnum","NIStepEnum","SetUpNewCardPin","ReenterCardPin","NextButton","ConfirmPin","styles","themeColors","SetPin","input","pinType","result","isLoading","onSetPin","callback","pin","setPin","confirmationPin","setConfirmationPin","step","setNextStep","setupPinStep","pinEditable","setPinEditable","keyboardHeight","setKeyboardHeight","initialKeyboardHeight","setInitialKeyboardHeight","language","displayAttributes","english","theme","light","container","backgroundColor","background","dark","paddingBottom","OS","isVisibleConfirmationButtonStep","reEnterPinStep","isVisibleConfirmationButton","disabled","pinLength","dynamicFourToSix","sixDigits","isPinDone","length","fourDigits","onConfirmPin","addListener","metrics","height","createElement","onPress","dismiss","style","capturePinSection","isRTL","flexDirection"],"sourceRoot":"../../../../src","sources":["components/SetPin/SetPin.tsx"],"mappings":"AAAA,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,EAAE;IAAM,CAAC,GAAG,CAAC,CAAC;EACjD,gBAEFrE,KAAA,CAAA+D,aAAA,CAACjD,UAAU;IACTgB,WAAW,EAAE;MAAED,IAAI;MAAEC;IAAY,CAAE;IACnCsB,QAAQ,EAAE,CAACI,SAAU;IACrBf,KAAK,EAAEA;EAAM,CACd,CACG,CACP,EACAQ,+BAA+B,iBAC9BjD,KAAA,CAAA+D,aAAA,CAAChD,UAAU;IACTuB,QAAQ,EAAEA,QAAS;IACnBG,KAAK,EAAEA,KAAM;IACbW,QAAQ,EAAE,CAACpB,WAAW,IAAIoB,QAAS;IACnCO,YAAY,EAAEA;EAAa,CAC5B,CAEC,CACkB,CAAC;AAE/B;AAEA,eAAezC,MAAM"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NILabels } from '../../interfaces/NiInputInterfaces';
|
|
3
|
+
import { NIStepEnum } from '../../interfaces/NiInterfaces';
|
|
4
|
+
import CapturePin from '../Pin/CapturePin';
|
|
5
|
+
import localLabels from '../../utils/localization';
|
|
6
|
+
export default function SetUpNewCardPin({
|
|
7
|
+
setPin: {
|
|
8
|
+
pin,
|
|
9
|
+
setPin,
|
|
10
|
+
pinEditable
|
|
11
|
+
},
|
|
12
|
+
setNextStep: {
|
|
13
|
+
step,
|
|
14
|
+
setNextStep
|
|
15
|
+
},
|
|
16
|
+
pinType,
|
|
17
|
+
language,
|
|
18
|
+
theme,
|
|
19
|
+
input
|
|
20
|
+
}) {
|
|
21
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, step === NIStepEnum.setupPinStep && /*#__PURE__*/React.createElement(CapturePin, {
|
|
22
|
+
setPin: {
|
|
23
|
+
pin,
|
|
24
|
+
setPin,
|
|
25
|
+
pinEditable
|
|
26
|
+
},
|
|
27
|
+
setNextStep: {
|
|
28
|
+
step,
|
|
29
|
+
setNextStep
|
|
30
|
+
},
|
|
31
|
+
pinType: pinType,
|
|
32
|
+
title: localLabels(language).setPinButtonLabel,
|
|
33
|
+
pinLabel: localLabels(language).enterNewCardPin,
|
|
34
|
+
pinLabelIndex: NILabels.setPinDescriptionLabel,
|
|
35
|
+
showHideLabels: {
|
|
36
|
+
show: localLabels(language).show,
|
|
37
|
+
hide: localLabels(language).hide
|
|
38
|
+
},
|
|
39
|
+
theme: theme,
|
|
40
|
+
input: input
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=SetUpNewCardPin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","NILabels","NIStepEnum","CapturePin","localLabels","SetUpNewCardPin","setPin","pin","pinEditable","setNextStep","step","pinType","language","theme","input","createElement","Fragment","setupPinStep","title","setPinButtonLabel","pinLabel","enterNewCardPin","pinLabelIndex","setPinDescriptionLabel","showHideLabels","show","hide"],"sourceRoot":"../../../../src","sources":["components/SetPin/SetUpNewCardPin.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,QAAQ,QAAQ,oCAAoC;AAC7D,SAEEC,UAAU,QACL,+BAA+B;AACtC,OAAOC,UAAU,MAAM,mBAAmB;AAC1C,OAAOC,WAAW,MAAM,0BAA0B;AAElD,eAAe,SAASC,eAAeA,CAAC;EACtCC,MAAM,EAAE;IAAEC,GAAG;IAAED,MAAM;IAAEE;EAAY,CAAC;EACpCC,WAAW,EAAE;IAAEC,IAAI;IAAED;EAAY,CAAC;EAClCE,OAAO;EACPC,QAAQ;EACRC,KAAK;EACLC;AACiB,CAAC,EAAe;EACjC,oBACEd,KAAA,CAAAe,aAAA,CAAAf,KAAA,CAAAgB,QAAA,QACGN,IAAI,KAAKR,UAAU,CAACe,YAAY,iBAC/BjB,KAAA,CAAAe,aAAA,CAACZ,UAAU;IACTG,MAAM,EAAE;MAAEC,GAAG;MAAED,MAAM;MAAEE;IAAY,CAAE;IACrCC,WAAW,EAAE;MAAEC,IAAI;MAAED;IAAY,CAAE;IACnCE,OAAO,EAAEA,OAAQ;IACjBO,KAAK,EAAEd,WAAW,CAACQ,QAAQ,CAAC,CAACO,iBAAkB;IAC/CC,QAAQ,EAAEhB,WAAW,CAACQ,QAAQ,CAAC,CAACS,eAAgB;IAChDC,aAAa,EAAErB,QAAQ,CAACsB,sBAAuB;IAC/CC,cAAc,EAAE;MACdC,IAAI,EAAErB,WAAW,CAACQ,QAAQ,CAAC,CAACa,IAAI;MAChCC,IAAI,EAAEtB,WAAW,CAACQ,QAAQ,CAAC,CAACc;IAC9B,CAAE;IACFb,KAAK,EAAEA,KAAM;IACbC,KAAK,EAAEA;EAAM,CACd,CAEH,CAAC;AAEP"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
const styles = StyleSheet.create({
|
|
3
|
+
pinContainer: {
|
|
4
|
+
flex: 1
|
|
5
|
+
},
|
|
6
|
+
container: {
|
|
7
|
+
flexDirection: 'column',
|
|
8
|
+
flex: 1,
|
|
9
|
+
justifyContent: 'space-between',
|
|
10
|
+
alignItems: 'center'
|
|
11
|
+
},
|
|
12
|
+
confirmButton: {
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
width: '80%',
|
|
15
|
+
marginBottom: 24,
|
|
16
|
+
height: 35
|
|
17
|
+
},
|
|
18
|
+
capturePinSection: {
|
|
19
|
+
width: '80%'
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export default styles;
|
|
23
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","styles","create","pinContainer","flex","container","flexDirection","justifyContent","alignItems","confirmButton","width","marginBottom","height","capturePinSection"],"sourceRoot":"../../../../src","sources":["components/SetPin/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,MAAMC,MAAM,GAAGD,UAAU,CAACE,MAAM,CAAC;EAC/BC,YAAY,EAAE;IACZC,IAAI,EAAE;EACR,CAAC;EACDC,SAAS,EAAE;IACTC,aAAa,EAAE,QAAQ;IACvBF,IAAI,EAAE,CAAC;IACPG,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE;EACd,CAAC;EACDC,aAAa,EAAE;IACbD,UAAU,EAAE,QAAQ;IACpBE,KAAK,EAAE,KAAK;IACZC,YAAY,EAAE,EAAE;IAChBC,MAAM,EAAE;EACV,CAAC;EACDC,iBAAiB,EAAE;IACjBH,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,eAAeT,MAAM"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NILabels } from '../../interfaces/NiInputInterfaces';
|
|
3
|
+
import { NIStepEnum } from '../../interfaces/NiInterfaces';
|
|
4
|
+
import CapturePin from '../Pin/CapturePin';
|
|
5
|
+
import localLabels from '../../utils/localization';
|
|
6
|
+
export default function CaptureVerifyPin({
|
|
7
|
+
setPin: {
|
|
8
|
+
pin,
|
|
9
|
+
setPin,
|
|
10
|
+
pinEditable
|
|
11
|
+
},
|
|
12
|
+
setNextStep: {
|
|
13
|
+
step,
|
|
14
|
+
onConfirmPin
|
|
15
|
+
},
|
|
16
|
+
pinType,
|
|
17
|
+
language,
|
|
18
|
+
theme,
|
|
19
|
+
input
|
|
20
|
+
}) {
|
|
21
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, step === NIStepEnum.verifyStep && /*#__PURE__*/React.createElement(CapturePin, {
|
|
22
|
+
setPin: {
|
|
23
|
+
pin,
|
|
24
|
+
setPin: setPin,
|
|
25
|
+
pinEditable
|
|
26
|
+
},
|
|
27
|
+
setNextStep: {
|
|
28
|
+
step,
|
|
29
|
+
onConfirmPin
|
|
30
|
+
},
|
|
31
|
+
pinType: pinType,
|
|
32
|
+
title: localLabels(language).verifyPinButtonLabel,
|
|
33
|
+
pinLabel: localLabels(language).enterVerifyCardPin,
|
|
34
|
+
pinLabelIndex: NILabels.setPinDescriptionLabel,
|
|
35
|
+
showHideLabels: {
|
|
36
|
+
show: localLabels(language).show,
|
|
37
|
+
hide: localLabels(language).hide
|
|
38
|
+
},
|
|
39
|
+
theme: theme,
|
|
40
|
+
input: input
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=CaptureVerifyPin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","NILabels","NIStepEnum","CapturePin","localLabels","CaptureVerifyPin","setPin","pin","pinEditable","setNextStep","step","onConfirmPin","pinType","language","theme","input","createElement","Fragment","verifyStep","title","verifyPinButtonLabel","pinLabel","enterVerifyCardPin","pinLabelIndex","setPinDescriptionLabel","showHideLabels","show","hide"],"sourceRoot":"../../../../src","sources":["components/VerifyPin/CaptureVerifyPin.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,QAAQ,QAAQ,oCAAoC;AAC7D,SACEC,UAAU,QAEL,+BAA+B;AACtC,OAAOC,UAAU,MAAM,mBAAmB;AAC1C,OAAOC,WAAW,MAAM,0BAA0B;AAElD,eAAe,SAASC,gBAAgBA,CAAC;EACvCC,MAAM,EAAE;IAAEC,GAAG;IAAED,MAAM;IAAEE;EAAY,CAAC;EACpCC,WAAW,EAAE;IAAEC,IAAI;IAAEC;EAAa,CAAC;EACnCC,OAAO;EACPC,QAAQ;EACRC,KAAK;EACLC;AACkB,CAAC,EAAe;EAClC,oBACEf,KAAA,CAAAgB,aAAA,CAAAhB,KAAA,CAAAiB,QAAA,QACGP,IAAI,KAAKR,UAAU,CAACgB,UAAU,iBAC7BlB,KAAA,CAAAgB,aAAA,CAACb,UAAU;IACTG,MAAM,EAAE;MAAEC,GAAG;MAAED,MAAM,EAAEA,MAAM;MAAEE;IAAY,CAAE;IAC7CC,WAAW,EAAE;MAAEC,IAAI;MAAEC;IAAa,CAAE;IACpCC,OAAO,EAAEA,OAAQ;IACjBO,KAAK,EAAEf,WAAW,CAACS,QAAQ,CAAC,CAACO,oBAAqB;IAClDC,QAAQ,EAAEjB,WAAW,CAACS,QAAQ,CAAC,CAACS,kBAAmB;IACnDC,aAAa,EAAEtB,QAAQ,CAACuB,sBAAuB;IAC/CC,cAAc,EAAE;MACdC,IAAI,EAAEtB,WAAW,CAACS,QAAQ,CAAC,CAACa,IAAI;MAChCC,IAAI,EAAEvB,WAAW,CAACS,QAAQ,CAAC,CAACc;IAC9B,CAAE;IACFb,KAAK,EAAEA,KAAM;IACbC,KAAK,EAAEA;EAAM,CACd,CAEH,CAAC;AAEP"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { NIThemeEnum } from '../../interfaces/NiInputInterfaces';
|
|
4
|
+
import { themeColors } from '../../config/themeColors';
|
|
5
|
+
import { NIButton } from '../NIButton/NIButton';
|
|
6
|
+
import styles from './styles';
|
|
7
|
+
import localLabels from '../../utils/localization';
|
|
8
|
+
function ConfirmPin({
|
|
9
|
+
language,
|
|
10
|
+
theme,
|
|
11
|
+
disabled,
|
|
12
|
+
onConfirmPin
|
|
13
|
+
}) {
|
|
14
|
+
const buttonConfirmColorDisabled = theme === NIThemeEnum.light ? themeColors.light.buttonConfirmColorDisabled : themeColors.dark.buttonConfirmColorDisabled;
|
|
15
|
+
const confirmButton = {
|
|
16
|
+
backgroundColor: buttonConfirmColorDisabled,
|
|
17
|
+
borderRadius: 20
|
|
18
|
+
};
|
|
19
|
+
const textColor = theme === NIThemeEnum.light ? themeColors.light.buttonConfirmTextColor : themeColors.dark.buttonConfirmTextColor;
|
|
20
|
+
const confirmPinButtonsLinearGradientColors = theme === NIThemeEnum.light ? themeColors.light.confirmPinButtonsLinearGradientColors : themeColors.dark.confirmPinButtonsLinearGradientColors;
|
|
21
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
22
|
+
style: [styles.confirmButton, confirmButton]
|
|
23
|
+
}, /*#__PURE__*/React.createElement(NIButton, {
|
|
24
|
+
title: localLabels(language).verifyPinButtonLabel,
|
|
25
|
+
mode: "text",
|
|
26
|
+
disabled: disabled,
|
|
27
|
+
textColor: textColor,
|
|
28
|
+
colors: confirmPinButtonsLinearGradientColors,
|
|
29
|
+
onPress: onConfirmPin
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
export default ConfirmPin;
|
|
33
|
+
//# sourceMappingURL=ConfirmPin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","NIThemeEnum","themeColors","NIButton","styles","localLabels","ConfirmPin","language","theme","disabled","onConfirmPin","buttonConfirmColorDisabled","light","dark","confirmButton","backgroundColor","borderRadius","textColor","buttonConfirmTextColor","confirmPinButtonsLinearGradientColors","createElement","style","title","verifyPinButtonLabel","mode","colors","onPress"],"sourceRoot":"../../../../src","sources":["components/VerifyPin/ConfirmPin.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAyBC,IAAI,QAAQ,cAAc;AAEnD,SAASC,WAAW,QAAQ,oCAAoC;AAEhE,SAASC,WAAW,QAAQ,0BAA0B;AACtD,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,OAAOC,MAAM,MAAM,UAAU;AAC7B,OAAOC,WAAW,MAAM,0BAA0B;AAElD,SAASC,UAAUA,CAAC;EAClBC,QAAQ;EACRC,KAAK;EACLC,QAAQ;EACRC;AACY,CAAC,EAAe;EAC5B,MAAMC,0BAA0B,GAC9BH,KAAK,KAAKP,WAAW,CAACW,KAAK,GACvBV,WAAW,CAACU,KAAK,CAACD,0BAA0B,GAC5CT,WAAW,CAACW,IAAI,CAACF,0BAA0B;EACjD,MAAMG,aAAwB,GAAG;IAC/BC,eAAe,EAAEJ,0BAA0B;IAC3CK,YAAY,EAAE;EAChB,CAAC;EAED,MAAMC,SAAS,GACbT,KAAK,KAAKP,WAAW,CAACW,KAAK,GACvBV,WAAW,CAACU,KAAK,CAACM,sBAAsB,GACxChB,WAAW,CAACW,IAAI,CAACK,sBAAsB;EAE7C,MAAMC,qCAAqC,GACzCX,KAAK,KAAKP,WAAW,CAACW,KAAK,GACvBV,WAAW,CAACU,KAAK,CAACO,qCAAqC,GACvDjB,WAAW,CAACW,IAAI,CAACM,qCAAqC;EAC5D,oBACEpB,KAAA,CAAAqB,aAAA,CAACpB,IAAI;IAACqB,KAAK,EAAE,CAACjB,MAAM,CAACU,aAAa,EAAEA,aAAa;EAAE,gBACjDf,KAAA,CAAAqB,aAAA,CAACjB,QAAQ;IACPmB,KAAK,EAAEjB,WAAW,CAACE,QAAQ,CAAC,CAACgB,oBAAqB;IAClDC,IAAI,EAAC,MAAM;IACXf,QAAQ,EAAEA,QAAS;IACnBQ,SAAS,EAAEA,SAAU;IACrBQ,MAAM,EAAEN,qCAAsC;IAC9CO,OAAO,EAAEhB;EAAa,CACvB,CACG,CAAC;AAEX;AAEA,eAAeJ,UAAU"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { View, Platform, TouchableWithoutFeedback, Keyboard } from 'react-native';
|
|
3
|
+
import { NILanguageEnum, NIPinTypeEnum, NIThemeEnum } from '../../interfaces/NiInputInterfaces';
|
|
4
|
+
import { NIStepEnum } from '../../interfaces/NiInterfaces';
|
|
5
|
+
import CaptureVerifyPin from './CaptureVerifyPin';
|
|
6
|
+
import ConfirmPin from './ConfirmPin';
|
|
7
|
+
import styles from './styles';
|
|
8
|
+
import { themeColors } from '../../config/themeColors';
|
|
9
|
+
function VerifyPin({
|
|
10
|
+
pinType,
|
|
11
|
+
input,
|
|
12
|
+
result,
|
|
13
|
+
isLoading,
|
|
14
|
+
onVerifyPin,
|
|
15
|
+
callback
|
|
16
|
+
}) {
|
|
17
|
+
const [pin, setPin] = useState('');
|
|
18
|
+
const [step, setNextStep] = useState(NIStepEnum.verifyStep);
|
|
19
|
+
const [pinEditable, setPinEditable] = useState(true);
|
|
20
|
+
const [keyboardHeight, setKeyboardHeight] = useState(0);
|
|
21
|
+
const [initialKeyboardHeight, setInitialKeyboardHeight] = useState(0);
|
|
22
|
+
const {
|
|
23
|
+
displayAttributes
|
|
24
|
+
} = input || {};
|
|
25
|
+
const language = displayAttributes?.language || NILanguageEnum.english;
|
|
26
|
+
const theme = input?.displayAttributes?.theme || NIThemeEnum.light;
|
|
27
|
+
const container = {
|
|
28
|
+
backgroundColor: theme === NIThemeEnum.light ? themeColors.light.background : themeColors.dark.background,
|
|
29
|
+
paddingBottom: Platform.OS === 'ios' ? keyboardHeight : 0
|
|
30
|
+
};
|
|
31
|
+
const isVisibleConfirmationButton = step === NIStepEnum.verifyStep;
|
|
32
|
+
const disabled = !isVisibleConfirmationButton || isLoading || !!result;
|
|
33
|
+
const pinLength = pinType === NIPinTypeEnum.dynamicFourToSix ? NIPinTypeEnum.sixDigits : pinType;
|
|
34
|
+
const isPinDone = pinType === NIPinTypeEnum.dynamicFourToSix ? pin.length >= NIPinTypeEnum.fourDigits : pin.length === pinLength;
|
|
35
|
+
function onConfirmPin() {
|
|
36
|
+
!disabled && input && onVerifyPin && onVerifyPin(pin, input, callback);
|
|
37
|
+
setPinEditable(false);
|
|
38
|
+
}
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
Keyboard.addListener('keyboardDidShow', () => {
|
|
41
|
+
const metrics = Keyboard.metrics();
|
|
42
|
+
if (!initialKeyboardHeight) {
|
|
43
|
+
setInitialKeyboardHeight(metrics?.height || 0);
|
|
44
|
+
}
|
|
45
|
+
setKeyboardHeight(metrics?.height || 0);
|
|
46
|
+
});
|
|
47
|
+
Keyboard.addListener('keyboardWillHide', () => {
|
|
48
|
+
setKeyboardHeight(0);
|
|
49
|
+
});
|
|
50
|
+
Keyboard.addListener('keyboardWillShow', () => {
|
|
51
|
+
if (initialKeyboardHeight) {
|
|
52
|
+
setKeyboardHeight(initialKeyboardHeight);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}, [initialKeyboardHeight]);
|
|
56
|
+
return /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
|
|
57
|
+
onPress: Keyboard.dismiss
|
|
58
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
59
|
+
style: [styles.container, container]
|
|
60
|
+
}, /*#__PURE__*/React.createElement(CaptureVerifyPin, {
|
|
61
|
+
setPin: {
|
|
62
|
+
pin,
|
|
63
|
+
setPin,
|
|
64
|
+
pinEditable
|
|
65
|
+
},
|
|
66
|
+
setNextStep: {
|
|
67
|
+
step,
|
|
68
|
+
setNextStep,
|
|
69
|
+
onConfirmPin
|
|
70
|
+
},
|
|
71
|
+
pinType: pinType,
|
|
72
|
+
language: language,
|
|
73
|
+
theme: theme,
|
|
74
|
+
input: input
|
|
75
|
+
}), /*#__PURE__*/React.createElement(ConfirmPin, {
|
|
76
|
+
language: language,
|
|
77
|
+
theme: theme,
|
|
78
|
+
disabled: !pinEditable || !isPinDone,
|
|
79
|
+
onConfirmPin: onConfirmPin
|
|
80
|
+
})));
|
|
81
|
+
}
|
|
82
|
+
export default VerifyPin;
|
|
83
|
+
//# sourceMappingURL=VerifyPin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","View","Platform","TouchableWithoutFeedback","Keyboard","NILanguageEnum","NIPinTypeEnum","NIThemeEnum","NIStepEnum","CaptureVerifyPin","ConfirmPin","styles","themeColors","VerifyPin","pinType","input","result","isLoading","onVerifyPin","callback","pin","setPin","step","setNextStep","verifyStep","pinEditable","setPinEditable","keyboardHeight","setKeyboardHeight","initialKeyboardHeight","setInitialKeyboardHeight","displayAttributes","language","english","theme","light","container","backgroundColor","background","dark","paddingBottom","OS","isVisibleConfirmationButton","disabled","pinLength","dynamicFourToSix","sixDigits","isPinDone","length","fourDigits","onConfirmPin","addListener","metrics","height","createElement","onPress","dismiss","style"],"sourceRoot":"../../../../src","sources":["components/VerifyPin/VerifyPin.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SACEC,IAAI,EACJC,QAAQ,EACRC,w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AAqB,CAAC,CAAC;EAE3B,oBACE/B,KAAA,CAAAwD,aAAA,CAACnD,wBAAwB;IAACoD,OAAO,EAAEnD,QAAQ,CAACoD;EAAQ,gBAClD1D,KAAA,CAAAwD,aAAA,CAACrD,IAAI;IAACwD,KAAK,EAAE,CAAC9C,MAAM,CAACyB,SAAS,EAAEA,SAAS;EAAE,gBACzCtC,KAAA,CAAAwD,aAAA,CAAC7C,gBAAgB;IACfY,MAAM,EAAE;MAAED,GAAG;MAAEC,MAAM;MAAEI;IAAY,CAAE;IACrCF,WAAW,EAAE;MAAED,IAAI;MAAEC,WAAW;MAAE2B;IAAa,CAAE;IACjDpC,OAAO,EAAEA,OAAQ;IACjBkB,QAAQ,EAAEA,QAAS;IACnBE,KAAK,EAAEA,KAAM;IACbnB,KAAK,EAAEA;EAAM,CACd,CAAC,eACFjB,KAAA,CAAAwD,aAAA,CAAC5C,UAAU;IACTsB,QAAQ,EAAEA,QAAS;IACnBE,KAAK,EAAEA,KAAM;IACbS,QAAQ,EAAE,CAAClB,WAAW,IAAI,CAACsB,SAAU;IACrCG,YAAY,EAAEA;EAAa,CAC5B,CACG,CACkB,CAAC;AAE/B;AAEA,eAAerC,SAAS"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
const styles = StyleSheet.create({
|
|
3
|
+
pinContainer: {
|
|
4
|
+
flex: 1
|
|
5
|
+
},
|
|
6
|
+
container: {
|
|
7
|
+
flexDirection: 'column',
|
|
8
|
+
flex: 1,
|
|
9
|
+
justifyContent: 'space-between',
|
|
10
|
+
alignItems: 'center'
|
|
11
|
+
},
|
|
12
|
+
confirmButton: {
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
width: '80%',
|
|
15
|
+
marginBottom: 24,
|
|
16
|
+
height: 35
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export default styles;
|
|
20
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","styles","create","pinContainer","flex","container","flexDirection","justifyContent","alignItems","confirmButton","width","marginBottom","height"],"sourceRoot":"../../../../src","sources":["components/VerifyPin/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,MAAMC,MAAM,GAAGD,UAAU,CAACE,MAAM,CAAC;EAC/BC,YAAY,EAAE;IACZC,IAAI,EAAE;EACR,CAAC;EACDC,SAAS,EAAE;IACTC,aAAa,EAAE,QAAQ;IACvBF,IAAI,EAAE,CAAC;IACPG,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE;EACd,CAAC;EACDC,aAAa,EAAE;IACbD,UAAU,EAAE,QAAQ;IACpBE,KAAK,EAAE,KAAK;IACZC,YAAY,EAAE,EAAE;IAChBC,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAEF,eAAeX,MAAM"}
|