@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,38 @@
|
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
import { NIPinTypeEnum, NIThemeEnum } from '../interfaces/NiInputInterfaces';
|
|
3
|
+
import { useViewPin } from '../hooks/useViewPin';
|
|
4
|
+
import PinState from '../components/PinState/PinState';
|
|
5
|
+
import ViewPin from '../components/ViewPin/ViewPin';
|
|
6
|
+
function ViewPinComponent({
|
|
7
|
+
input,
|
|
8
|
+
type: pinType,
|
|
9
|
+
callback
|
|
10
|
+
}) {
|
|
11
|
+
const theme = input?.displayAttributes?.theme || NIThemeEnum.light;
|
|
12
|
+
const countdownTime = input?.timer;
|
|
13
|
+
const {
|
|
14
|
+
result: viewPinResult,
|
|
15
|
+
error: viewPinError,
|
|
16
|
+
isLoading: isViewPinLoading,
|
|
17
|
+
onViewPin
|
|
18
|
+
} = useViewPin();
|
|
19
|
+
(!!viewPinResult || !!viewPinError) && console.log('ViewPinView', {
|
|
20
|
+
viewPinResult,
|
|
21
|
+
viewPinError,
|
|
22
|
+
isViewPinLoading
|
|
23
|
+
});
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
input && onViewPin(input, callback);
|
|
26
|
+
}, []);
|
|
27
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ViewPin, {
|
|
28
|
+
input: input,
|
|
29
|
+
pinType: pinType || NIPinTypeEnum.dynamicFourToSix,
|
|
30
|
+
result: viewPinResult || '',
|
|
31
|
+
countdownTime: countdownTime || 0
|
|
32
|
+
}), /*#__PURE__*/React.createElement(PinState, {
|
|
33
|
+
isLoading: isViewPinLoading,
|
|
34
|
+
theme: theme
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
export { ViewPinComponent, useViewPin };
|
|
38
|
+
//# sourceMappingURL=ViewPinComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","NIPinTypeEnum","NIThemeEnum","useViewPin","PinState","ViewPin","ViewPinComponent","input","type","pinType","callback","theme","displayAttributes","light","countdownTime","timer","result","viewPinResult","error","viewPinError","isLoading","isViewPinLoading","onViewPin","console","log","createElement","Fragment","dynamicFourToSix"],"sourceRoot":"../../../src","sources":["NICardManagementComponents/ViewPinComponent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AAExC,SAASC,aAAa,EAAEC,WAAW,QAAQ,iCAAiC;AAE5E,SAASC,UAAU,QAAQ,qBAAqB;AAChD,OAAOC,QAAQ,MAAM,iCAAiC;AACtD,OAAOC,OAAO,MAAM,+BAA+B;AAEnD,SAASC,gBAAgBA,CAAC;EACxBC,KAAK;EACLC,IAAI,EAAEC,OAAO;EACbC;AACkB,CAAC,EAAe;EAClC,MAAMC,KAAK,GAAGJ,KAAK,EAAEK,iBAAiB,EAAED,KAAK,IAAIT,WAAW,CAACW,KAAK;EAClE,MAAMC,aAAa,GAAGP,KAAK,EAAEQ,KAAK;EAElC,MAAM;IACJC,MAAM,EAAEC,aAAa;IACrBC,KAAK,EAAEC,YAAY;IACnBC,SAAS,EAAEC,gBAAgB;IAC3BC;EACF,CAAC,GAAGnB,UAAU,CAAC,CAAC;EAEhB,CAAC,CAAC,CAACc,aAAa,IAAI,CAAC,CAACE,YAAY,KAChCI,OAAO,CAACC,GAAG,CAAC,aAAa,EAAE;IACzBP,aAAa;IACbE,YAAY;IACZE;EACF,CAAC,CAAC;EAEJrB,SAAS,CAAC,MAAM;IACdO,KAAK,IAAIe,SAAS,CAACf,KAAK,EAAEG,QAAQ,CAAC;EACrC,CAAC,EAAE,EAAE,CAAC;EAEN,oBACEX,KAAA,CAAA0B,aAAA,CAAA1B,KAAA,CAAA2B,QAAA,qBACE3B,KAAA,CAAA0B,aAAA,CAACpB,OAAO;IACNE,KAAK,EAAEA,KAAM;IACbE,OAAO,EAAEA,OAAO,IAAIR,aAAa,CAAC0B,gBAAiB;IACnDX,MAAM,EAAEC,aAAa,IAAI,EAAG;IAC5BH,aAAa,EAAEA,aAAa,IAAI;EAAE,CACnC,CAAC,eACFf,KAAA,CAAA0B,aAAA,CAACrB,QAAQ;IAACgB,SAAS,EAAEC,gBAAiB;IAACV,KAAK,EAAEA;EAAM,CAAE,CACtD,CAAC;AAEP;AAEA,SAASL,gBAAgB,EAAEH,UAAU"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardDetailsBackgroundImage } from './CardDetailsBackgroundImage';
|
|
3
|
+
import styles from './styles';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
export function CardDetails({
|
|
6
|
+
displayAttributes,
|
|
7
|
+
getCardDetailsResult,
|
|
8
|
+
isError
|
|
9
|
+
}) {
|
|
10
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
11
|
+
style: styles.cardDetailsContainer
|
|
12
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
13
|
+
style: styles.cardDetailsRow
|
|
14
|
+
}, /*#__PURE__*/React.createElement(CardDetailsBackgroundImage, {
|
|
15
|
+
displayAttributes: displayAttributes,
|
|
16
|
+
getCardDetailsResult: getCardDetailsResult,
|
|
17
|
+
isError: isError
|
|
18
|
+
})));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=CardDetails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","CardDetailsBackgroundImage","styles","View","CardDetails","displayAttributes","getCardDetailsResult","isError","createElement","style","cardDetailsContainer","cardDetailsRow"],"sourceRoot":"../../../../src","sources":["components/CardDetails/CardDetails.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,SAASC,0BAA0B,QAAQ,8BAA8B;AACzE,OAAOC,MAAM,MAAM,UAAU;AAC7B,SAASC,IAAI,QAAQ,cAAc;AAEnC,OAAO,SAASC,WAAWA,CAAC;EAC1BC,iBAAiB;EACjBC,oBAAoB;EACpBC;AACa,CAAC,EAAe;EAC7B,oBACEP,KAAA,CAAAQ,aAAA,CAACL,IAAI;IAACM,KAAK,EAAEP,MAAM,CAACQ;EAAqB,gBACvCV,KAAA,CAAAQ,aAAA,CAACL,IAAI;IAACM,KAAK,EAAEP,MAAM,CAACS;EAAe,gBACjCX,KAAA,CAAAQ,aAAA,CAACP,0BAA0B;IACzBI,iBAAiB,EAAEA,iBAAkB;IACrCC,oBAAoB,EAAEA,oBAAqB;IAC3CC,OAAO,EAAEA;EAAQ,CAClB,CACG,CACF,CAAC;AAEX"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ImageBackground } from 'react-native';
|
|
3
|
+
import { CardDetailsGroups } from './CardDetailsGroups';
|
|
4
|
+
import { styles } from './styles';
|
|
5
|
+
export function CardDetailsBackgroundImage({
|
|
6
|
+
displayAttributes,
|
|
7
|
+
getCardDetailsResult,
|
|
8
|
+
isError
|
|
9
|
+
}) {
|
|
10
|
+
const backgroundImageDefault = require('../../assets/images/grayCard.png');
|
|
11
|
+
const backgroundImage = displayAttributes?.cardAttributes?.backgroundImage || backgroundImageDefault;
|
|
12
|
+
return /*#__PURE__*/React.createElement(ImageBackground, {
|
|
13
|
+
source: backgroundImage,
|
|
14
|
+
style: styles.containerCardDetails,
|
|
15
|
+
imageStyle: styles.backgroundImageStyle
|
|
16
|
+
}, /*#__PURE__*/React.createElement(CardDetailsGroups, {
|
|
17
|
+
displayAttributes: displayAttributes,
|
|
18
|
+
getCardDetailsResult: getCardDetailsResult,
|
|
19
|
+
isError: isError
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=CardDetailsBackgroundImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ImageBackground","CardDetailsGroups","styles","CardDetailsBackgroundImage","displayAttributes","getCardDetailsResult","isError","backgroundImageDefault","require","backgroundImage","cardAttributes","createElement","source","style","containerCardDetails","imageStyle","backgroundImageStyle"],"sourceRoot":"../../../../src","sources":["components/CardDetails/CardDetailsBackgroundImage.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAA6B,cAAc;AAGnE,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,MAAM,QAAQ,UAAU;AAEjC,OAAO,SAASC,0BAA0BA,CAAC;EACzCC,iBAAiB;EACjBC,oBAAoB;EACpBC;AACkB,CAAC,EAAe;EAClC,MAAMC,sBAAsB,GAC1BC,OAAO,CAAC,kCAAkC,CAAmB;EAE/D,MAAMC,eAAe,GACnBL,iBAAiB,EAAEM,cAAc,EAAED,eAAe,IAClDF,sBAAsB;EAExB,oBACER,KAAA,CAAAY,aAAA,CAACX,eAAe;IACdY,MAAM,EAAEH,eAAgB;IACxBI,KAAK,EAAEX,MAAM,CAACY,oBAAqB;IACnCC,UAAU,EAAEb,MAAM,CAACc;EAAqB,gBAExCjB,KAAA,CAAAY,aAAA,CAACV,iBAAiB;IAChBG,iBAAiB,EAAEA,iBAAkB;IACrCC,oBAAoB,EAAEA,oBAAqB;IAC3CC,OAAO,EAAEA;EAAQ,CAClB,CACc,CAAC;AAEtB"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { View, useWindowDimensions, I18nManager } from 'react-native';
|
|
3
|
+
import { NILabels, NILanguageEnum, NIThemeEnum } from '../../interfaces/NiInputInterfaces';
|
|
4
|
+
import { CardDetailsCardNumberGroup } from './CardNumberGroup';
|
|
5
|
+
import { CardDetailsDateCVVGroupOneRow } from './DateCVVGroupOneRow';
|
|
6
|
+
import { CardDetailsCardHolderNameGroups } from './CardHolderNameGroups';
|
|
7
|
+
import { styles } from './styles';
|
|
8
|
+
import { WIDTH_CARD } from '../../config/configCard';
|
|
9
|
+
import { NIButton } from '../NIButton/NIButton';
|
|
10
|
+
import { themeColors } from '../../config/themeColors';
|
|
11
|
+
import localLabels from '../../utils/localization';
|
|
12
|
+
export function CardDetailsGroups({
|
|
13
|
+
displayAttributes,
|
|
14
|
+
getCardDetailsResult,
|
|
15
|
+
isError
|
|
16
|
+
}) {
|
|
17
|
+
const language = displayAttributes?.language || NILanguageEnum.english;
|
|
18
|
+
const theme = displayAttributes?.theme || NIThemeEnum.light;
|
|
19
|
+
const shouldHide = displayAttributes?.cardAttributes?.shouldHide || false;
|
|
20
|
+
const [cardDetailsVisible, setCardDetailsVisible] = useState(shouldHide);
|
|
21
|
+
const [isVisibleCopiedButton, setIsVisibleCopiedButton] = useState(false);
|
|
22
|
+
const [timeoutId, setTimeoutId] = useState();
|
|
23
|
+
const {
|
|
24
|
+
width
|
|
25
|
+
} = useWindowDimensions();
|
|
26
|
+
const leftAlignment = displayAttributes?.cardAttributes?.textPositioning?.leftAlignment || 0.09;
|
|
27
|
+
const groupsLeftAlignment = Math.round(leftAlignment * width * WIDTH_CARD / 100);
|
|
28
|
+
const containerGroupsLeftAlignmentStyle = {
|
|
29
|
+
marginLeft: groupsLeftAlignment
|
|
30
|
+
};
|
|
31
|
+
const textColor = theme === NIThemeEnum.light ? themeColors.light.buttonCopiedTextColor : themeColors.dark.buttonCopiedTextColor;
|
|
32
|
+
const setTimeOut = () => {
|
|
33
|
+
clearTimeout(timeoutId);
|
|
34
|
+
setTimeoutId(setTimeout(() => {
|
|
35
|
+
setIsVisibleCopiedButton(false);
|
|
36
|
+
setTimeoutId(undefined);
|
|
37
|
+
}, 4000));
|
|
38
|
+
};
|
|
39
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, getCardDetailsResult && /*#__PURE__*/React.createElement(View, {
|
|
40
|
+
style: [styles.containerGroupsLeftAlignment, containerGroupsLeftAlignmentStyle, I18nManager.isRTL ? {
|
|
41
|
+
flexDirection: 'row-reverse'
|
|
42
|
+
} : {}]
|
|
43
|
+
}, /*#__PURE__*/React.createElement(CardDetailsCardNumberGroup, {
|
|
44
|
+
clearPan: getCardDetailsResult.clearPan,
|
|
45
|
+
maskedPan: getCardDetailsResult.maskedPan,
|
|
46
|
+
pinContentIndex: NILabels.cardNumberValueLabel,
|
|
47
|
+
cardDetailsVisible: cardDetailsVisible,
|
|
48
|
+
setIsVisibleCopiedButton: setIsVisibleCopiedButton,
|
|
49
|
+
displayAttributes: displayAttributes,
|
|
50
|
+
setTimeOut: setTimeOut
|
|
51
|
+
}), /*#__PURE__*/React.createElement(CardDetailsDateCVVGroupOneRow, {
|
|
52
|
+
expiry: getCardDetailsResult.expiry,
|
|
53
|
+
clearCVV2: getCardDetailsResult.clearCVV2,
|
|
54
|
+
pinLabelIndex: NILabels.expiryDateLabel,
|
|
55
|
+
pinContentIndex: NILabels.expiryDateValueLabel,
|
|
56
|
+
pinLabel1Index: NILabels.cvvLabel,
|
|
57
|
+
pinContent1Index: NILabels.cvvValueLabel,
|
|
58
|
+
cardDetailsVisible: {
|
|
59
|
+
cardDetailsVisible,
|
|
60
|
+
setCardDetailsVisible
|
|
61
|
+
},
|
|
62
|
+
shouldHide: shouldHide,
|
|
63
|
+
displayAttributes: displayAttributes,
|
|
64
|
+
isError: isError
|
|
65
|
+
}), /*#__PURE__*/React.createElement(CardDetailsCardHolderNameGroups, {
|
|
66
|
+
cardholderName: getCardDetailsResult.cardholderName,
|
|
67
|
+
pinContentIndex: NILabels.cardholderNameLabel,
|
|
68
|
+
cardDetailsVisible: cardDetailsVisible,
|
|
69
|
+
setIsVisibleCopiedButton: setIsVisibleCopiedButton,
|
|
70
|
+
setTimeOut: setTimeOut,
|
|
71
|
+
displayAttributes: displayAttributes
|
|
72
|
+
}), isVisibleCopiedButton && /*#__PURE__*/React.createElement(View, {
|
|
73
|
+
style: [styles.copyButton, I18nManager.isRTL ? {
|
|
74
|
+
marginRight: '15%'
|
|
75
|
+
} : {}]
|
|
76
|
+
}, /*#__PURE__*/React.createElement(NIButton, {
|
|
77
|
+
title: localLabels(language).copiedToClipboard,
|
|
78
|
+
mode: "text",
|
|
79
|
+
textColor: textColor,
|
|
80
|
+
colors: ['#bbb', '#bbb', '#bbb'],
|
|
81
|
+
disabled: false,
|
|
82
|
+
opacity: 0.8
|
|
83
|
+
}))));
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=CardDetailsGroups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","View","useWindowDimensions","I18nManager","NILabels","NILanguageEnum","NIThemeEnum","CardDetailsCardNumberGroup","CardDetailsDateCVVGroupOneRow","CardDetailsCardHolderNameGroups","styles","WIDTH_CARD","NIButton","themeColors","localLabels","CardDetailsGroups","displayAttributes","getCardDetailsResult","isError","language","english","theme","light","shouldHide","cardAttributes","cardDetailsVisible","setCardDetailsVisible","isVisibleCopiedButton","setIsVisibleCopiedButton","timeoutId","setTimeoutId","width","leftAlignment","textPositioning","groupsLeftAlignment","Math","round","containerGroupsLeftAlignmentStyle","marginLeft","textColor","buttonCopiedTextColor","dark","setTimeOut","clearTimeout","setTimeout","undefined","createElement","Fragment","style","containerGroupsLeftAlignment","isRTL","flexDirection","clearPan","maskedPan","pinContentIndex","cardNumberValueLabel","expiry","clearCVV2","pinLabelIndex","expiryDateLabel","expiryDateValueLabel","pinLabel1Index","cvvLabel","pinContent1Index","cvvValueLabel","cardholderName","cardholderNameLabel","copyButton","marginRight","title","copiedToClipboard","mode","colors","disabled","opacity"],"sourceRoot":"../../../../src","sources":["components/CardDetails/CardDetailsGroups.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,IAAI,EAAEC,mBAAmB,EAAEC,WAAW,QAAQ,cAAc;AAErE,SACEC,QAAQ,EACRC,cAAc,EACdC,WAAW,QACN,oCAAoC;AAE3C,SAASC,0BAA0B,QAAQ,mBAAmB;AAC9D,SAASC,6BAA6B,QAAQ,sBAAsB;AACpE,SAASC,+BAA+B,QAAQ,wBAAwB;AACxE,SAAS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AA+C,aAAA,CAACrC,+BAA+B;IAC9BwD,cAAc,EAAEhD,oBAAoB,CAACgD,cAAe;IACpDX,eAAe,EAAElD,QAAQ,CAAC8D,mBAAoB;IAC9CzC,kBAAkB,EAAEA,kBAAmB;IACvCG,wBAAwB,EAAEA,wBAAyB;IACnDc,UAAU,EAAEA,UAAW;IACvB1B,iBAAiB,EAAEA;EAAkB,CACtC,CAAC,EACDW,qBAAqB,iBACpB5B,KAAA,CAAA+C,aAAA,CAAC7C,IAAI;IACH+C,KAAK,EAAE,CACLtC,MAAM,CAACyD,UAAU,EACjBhE,WAAW,CAAC+C,KAAK,GAAG;MAAEkB,WAAW,EAAE;IAAM,CAAC,GAAG,CAAC,CAAC;EAC/C,gBAEFrE,KAAA,CAAA+C,aAAA,CAAClC,QAAQ;IACPyD,KAAK,EAAEvD,WAAW,CAACK,QAAQ,CAAC,CAACmD,iBAAkB;IAC/CC,IAAI,EAAC,MAAM;IACXhC,SAAS,EAAEA,SAAU;IACrBiC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAE;IACjCC,QAAQ,EAAE,KAAM;IAChBC,OAAO,EAAE;EAAI,CACd,CACG,CAEJ,CAER,CAAC;AAEP"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, TouchableOpacity, I18nManager } from 'react-native';
|
|
3
|
+
import { useClipboard } from '@react-native-community/clipboard';
|
|
4
|
+
import { NIThemeEnum } from '../../interfaces/NiInputInterfaces';
|
|
5
|
+
import { styles } from './styles';
|
|
6
|
+
import { HEIGHT_CARD } from '../../config/configCard';
|
|
7
|
+
import { themeColors } from '../../config/themeColors';
|
|
8
|
+
import { PredeterminedIcon } from '../icons/PredeterminedIcon';
|
|
9
|
+
export function CardDetailsCardHolderNameGroups({
|
|
10
|
+
cardholderName,
|
|
11
|
+
pinContentIndex,
|
|
12
|
+
cardDetailsVisible,
|
|
13
|
+
setIsVisibleCopiedButton,
|
|
14
|
+
displayAttributes,
|
|
15
|
+
setTimeOut
|
|
16
|
+
}) {
|
|
17
|
+
const [data, setString] = useClipboard();
|
|
18
|
+
const maskedCardholderName = cardholderName.replace(/\b\w*/g, function (s) {
|
|
19
|
+
return s.replace(/(?<!^)./g, '*');
|
|
20
|
+
});
|
|
21
|
+
const cardholderNameRendered = cardDetailsVisible ? maskedCardholderName : cardholderName;
|
|
22
|
+
const holderNameContentGroupTopAlignment = Math.round((displayAttributes?.cardAttributes?.textPositioning?.cardHolderNameGroupTopAlignment || 0.8) * HEIGHT_CARD);
|
|
23
|
+
const containerHolderNameContentGroupTopAlignmentStyle = {
|
|
24
|
+
position: 'absolute',
|
|
25
|
+
top: holderNameContentGroupTopAlignment
|
|
26
|
+
};
|
|
27
|
+
const theme = displayAttributes?.theme || NIThemeEnum.light;
|
|
28
|
+
const textFonts = displayAttributes?.fonts?.filter(item => item.label === pinContentIndex);
|
|
29
|
+
let textFont = textFonts && textFonts.length && textFonts[0]?.font;
|
|
30
|
+
textFont = textFont || {
|
|
31
|
+
name: 'Helvetica',
|
|
32
|
+
size: 17
|
|
33
|
+
};
|
|
34
|
+
const contentStyleText = {
|
|
35
|
+
color: theme === NIThemeEnum.light ? themeColors.light.colorCard : themeColors.dark.colorCard,
|
|
36
|
+
fontSize: textFont.size,
|
|
37
|
+
fontFamily: textFont.name
|
|
38
|
+
};
|
|
39
|
+
async function handleOnPress() {
|
|
40
|
+
await setString(cardholderName);
|
|
41
|
+
setIsVisibleCopiedButton(true);
|
|
42
|
+
setTimeOut();
|
|
43
|
+
}
|
|
44
|
+
!!data && console.log('clipboard', data);
|
|
45
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(View, {
|
|
46
|
+
style: [styles.containerHolderNameContentGroupTopAlignment, containerHolderNameContentGroupTopAlignmentStyle]
|
|
47
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
48
|
+
style: [styles.copyRow, I18nManager.isRTL ? {
|
|
49
|
+
flexDirection: 'row-reverse'
|
|
50
|
+
} : {}]
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
52
|
+
style: [styles.textContent, contentStyleText]
|
|
53
|
+
}, cardholderNameRendered), !cardDetailsVisible && /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
54
|
+
onPress: handleOnPress
|
|
55
|
+
}, /*#__PURE__*/React.createElement(PredeterminedIcon, {
|
|
56
|
+
name: "content-copy",
|
|
57
|
+
size: 13
|
|
58
|
+
})))));
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=CardHolderNameGroups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Text","TouchableOpacity","I18nManager","useClipboard","NIThemeEnum","styles","HEIGHT_CARD","themeColors","PredeterminedIcon","CardDetailsCardHolderNameGroups","cardholderName","pinContentIndex","cardDetailsVisible","setIsVisibleCopiedButton","displayAttributes","setTimeOut","data","setString","maskedCardholderName","replace","s","cardholderNameRendered","holderNameContentGroupTopAlignment","Math","round","cardAttributes","textPositioning","cardHolderNameGroupTopAlignment","containerHolderNameContentGroupTopAlignmentStyle","position","top","theme","light","textFonts","fonts","filter","item","label","textFont","length","font","name","size","contentStyleText","color","colorCard","dark","fontSize","fontFamily","handleOnPress","console","log","createElement","Fragment","style","containerHolderNameContentGroupTopAlignment","copyRow","isRTL","flexDirection","textContent","onPress"],"sourceRoot":"../../../../src","sources":["components/CardDetails/CardHolderNameGroups.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAEEC,IAAI,EACJC,IAAI,EACJC,gBAAgB,EAChBC,WAAW,QACN,cAAc;AACrB,SAASC,YAAY,QAAQ,mCAAmC;AAEhE,SAEEC,WAAW,QACN,oCAAoC;AAE3C,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,WAAW,QAAQ,0BAA0B;AACtD,SAASC,iBAAiB,QAAQ,4BAA4B;A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,EAAET,QAAQ,CAACI,IAAI;IACvBM,UAAU,EAAEV,QAAQ,CAACG;EACvB,CAAC;EAED,eAAeQ,aAAaA,CAAA,EAAkB;IAC5C,MAAMhC,SAAS,CAACP,cAAc,CAAC;IAC/BG,wBAAwB,CAAC,IAAI,CAAC;IAC9BE,UAAU,CAAC,CAAC;EACd;EACA,CAAC,CAACC,IAAI,IAAIkC,OAAO,CAACC,GAAG,CAAC,WAAW,EAAEnC,IAAI,CAAC;EAExC,oBACElB,KAAA,CAAAsD,aAAA,CAAAtD,KAAA,CAAAuD,QAAA,qBACEvD,KAAA,CAAAsD,aAAA,CAACrD,IAAI;IACHuD,KAAK,EAAE,CACLjD,MAAM,CAACkD,2CAA2C,EAClD3B,gDAAgD;EAChD,gBAEF9B,KAAA,CAAAsD,aAAA,CAACrD,IAAI;IACHuD,KAAK,EAAE,CACLjD,MAAM,CAACmD,OAAO,EACdtD,WAAW,CAACuD,KAAK,GAAG;MAAEC,aAAa,EAAE;IAAc,CAAC,GAAG,CAAC,CAAC;EACzD,gBAEF5D,KAAA,CAAAsD,aAAA,CAACpD,IAAI;IAACsD,KAAK,EAAE,CAACjD,MAAM,CAACsD,WAAW,EAAEhB,gBAAgB;EAAE,GACjDtB,sBACG,CAAC,EACN,CAACT,kBAAkB,iBAClBd,KAAA,CAAAsD,aAAA,CAACnD,gBAAgB;IAAC2D,OAAO,EAAEX;EAAc,gBACvCnD,KAAA,CAAAsD,aAAA,CAAC5C,iBAAiB;IAACiC,IAAI,EAAC,cAAc;IAACC,IAAI,EAAE;EAAG,CAAE,CAClC,CAEhB,CACF,CACN,CAAC;AAEP"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, TouchableOpacity, Text, I18nManager } from 'react-native';
|
|
3
|
+
import { useClipboard } from '@react-native-community/clipboard';
|
|
4
|
+
import { NIThemeEnum } from '../../interfaces/NiInputInterfaces';
|
|
5
|
+
import { styles } from './styles';
|
|
6
|
+
import { HEIGHT_CARD } from '../../config/configCard';
|
|
7
|
+
import { themeColors } from '../../config/themeColors';
|
|
8
|
+
import { PredeterminedIcon } from '../icons/PredeterminedIcon';
|
|
9
|
+
export function CardDetailsCardNumberGroup({
|
|
10
|
+
clearPan,
|
|
11
|
+
maskedPan,
|
|
12
|
+
pinContentIndex,
|
|
13
|
+
cardDetailsVisible,
|
|
14
|
+
setIsVisibleCopiedButton,
|
|
15
|
+
displayAttributes,
|
|
16
|
+
setTimeOut
|
|
17
|
+
}) {
|
|
18
|
+
const [data, setString] = useClipboard();
|
|
19
|
+
const clearPanRendered = clearPan.replace(/.{4}/g, '$& ');
|
|
20
|
+
const maskedPanRendered = maskedPan.replace(/[a-zA-Z0-9]+(?=....)/g, function (s) {
|
|
21
|
+
return '*'.repeat(s.length);
|
|
22
|
+
}).replace(/.{4}/g, '$& ');
|
|
23
|
+
const cardNumber = cardDetailsVisible ? maskedPanRendered : clearPanRendered;
|
|
24
|
+
const cardNumberGroupTopAlignment = Math.round((displayAttributes?.cardAttributes?.textPositioning?.cardNumberGroupTopAlignment || 0.4) * HEIGHT_CARD);
|
|
25
|
+
const containerCardNumberContentGroupTopAlignmentStyle = {
|
|
26
|
+
position: 'absolute',
|
|
27
|
+
top: cardNumberGroupTopAlignment
|
|
28
|
+
};
|
|
29
|
+
const theme = displayAttributes?.theme || NIThemeEnum.light;
|
|
30
|
+
const textFonts = displayAttributes?.fonts?.filter(item => item.label === pinContentIndex);
|
|
31
|
+
let textFont = textFonts && textFonts.length && textFonts[0]?.font;
|
|
32
|
+
textFont = textFont || {
|
|
33
|
+
name: 'Helvetica',
|
|
34
|
+
size: 17
|
|
35
|
+
};
|
|
36
|
+
const contentStyleText = {
|
|
37
|
+
color: theme === NIThemeEnum.light ? themeColors.light.colorCard : themeColors.dark.colorCard,
|
|
38
|
+
fontSize: textFont.size,
|
|
39
|
+
fontFamily: textFont.name
|
|
40
|
+
};
|
|
41
|
+
async function handleOnPress() {
|
|
42
|
+
await setString(clearPan);
|
|
43
|
+
setIsVisibleCopiedButton(true);
|
|
44
|
+
setTimeOut();
|
|
45
|
+
}
|
|
46
|
+
!!data && console.log('clipboard', data);
|
|
47
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(View, {
|
|
48
|
+
style: [styles.containerCardNumberContentGroupTopAlignment, containerCardNumberContentGroupTopAlignmentStyle]
|
|
49
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
50
|
+
style: [styles.copyRow, I18nManager.isRTL ? {
|
|
51
|
+
flexDirection: 'row-reverse'
|
|
52
|
+
} : {}]
|
|
53
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
54
|
+
style: [styles.textContent, contentStyleText]
|
|
55
|
+
}, cardNumber), !cardDetailsVisible && /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
56
|
+
onPress: handleOnPress
|
|
57
|
+
}, /*#__PURE__*/React.createElement(PredeterminedIcon, {
|
|
58
|
+
name: "content-copy",
|
|
59
|
+
size: 13
|
|
60
|
+
})))));
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=CardNumberGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","TouchableOpacity","Text","I18nManager","useClipboard","NIThemeEnum","styles","HEIGHT_CARD","themeColors","PredeterminedIcon","CardDetailsCardNumberGroup","clearPan","maskedPan","pinContentIndex","cardDetailsVisible","setIsVisibleCopiedButton","displayAttributes","setTimeOut","data","setString","clearPanRendered","replace","maskedPanRendered","s","repeat","length","cardNumber","cardNumberGroupTopAlignment","Math","round","cardAttributes","textPositioning","containerCardNumberContentGroupTopAlignmentStyle","position","top","theme","light","textFonts","fonts","filter","item","label","textFont","font","name","size","contentStyleText","color","colorCard","dark","fontSize","fontFamily","handleOnPress","console","log","createElement","Fragment","style","containerCardNumberContentGroupTopAlignment","copyRow","isRTL","flexDirection","textContent","onPress"],"sourceRoot":"../../../../src","sources":["components/CardDetails/CardNumberGroup.t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ACjDpB,UACG,CAAC,EACN,CAACZ,kBAAkB,iBAClBf,KAAA,CAAAwD,aAAA,CAACtD,gBAAgB;IAAC8D,OAAO,EAAEX;EAAc,gBACvCrD,KAAA,CAAAwD,aAAA,CAAC9C,iBAAiB;IAACmC,IAAI,EAAC,cAAc;IAACC,IAAI,EAAE;EAAG,CAAE,CAClC,CAEhB,CACF,CACN,CAAC;AAEP"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, TouchableOpacity, Text, I18nManager } from 'react-native';
|
|
3
|
+
import { NILanguageEnum, NIThemeEnum } from '../../interfaces/NiInputInterfaces';
|
|
4
|
+
import { styles } from './styles';
|
|
5
|
+
import localLabels from '../../utils/localization';
|
|
6
|
+
import { HEIGHT_CARD } from '../../config/configCard';
|
|
7
|
+
import { themeColors } from '../../config/themeColors';
|
|
8
|
+
import { PredeterminedIcon } from '../icons/PredeterminedIcon';
|
|
9
|
+
export function CardDetailsDateCVVGroupOneRow({
|
|
10
|
+
expiry,
|
|
11
|
+
clearCVV2,
|
|
12
|
+
pinLabelIndex,
|
|
13
|
+
pinContentIndex,
|
|
14
|
+
pinLabel1Index,
|
|
15
|
+
pinContent1Index,
|
|
16
|
+
cardDetailsVisible: {
|
|
17
|
+
cardDetailsVisible,
|
|
18
|
+
setCardDetailsVisible
|
|
19
|
+
},
|
|
20
|
+
shouldHide,
|
|
21
|
+
displayAttributes,
|
|
22
|
+
isError
|
|
23
|
+
}) {
|
|
24
|
+
const expiryRendered = isError ? expiry : !cardDetailsVisible ? expiry.replace(/(\d{2})/, '$&/') : '**/**';
|
|
25
|
+
const clearCVV2Rendered = cardDetailsVisible ? clearCVV2.replace(/[0-9]/g, '*') : clearCVV2;
|
|
26
|
+
const language = displayAttributes?.language || NILanguageEnum.english;
|
|
27
|
+
const dateCVVContentGroupTopAlignment = Math.round((displayAttributes?.cardAttributes?.textPositioning?.dateCvvGroupTopAlignment || 0.6) * HEIGHT_CARD);
|
|
28
|
+
const containerDateCVVContentGroupTopAlignmentStyle = {
|
|
29
|
+
position: 'absolute',
|
|
30
|
+
top: dateCVVContentGroupTopAlignment,
|
|
31
|
+
gap: 10
|
|
32
|
+
};
|
|
33
|
+
const theme = displayAttributes?.theme || NIThemeEnum.light;
|
|
34
|
+
const labelFonts = displayAttributes?.fonts?.filter(item => item.label === pinLabelIndex);
|
|
35
|
+
let labelFont = labelFonts && labelFonts.length && labelFonts[0]?.font;
|
|
36
|
+
labelFont = labelFont || {
|
|
37
|
+
name: 'Helvetica',
|
|
38
|
+
size: 17
|
|
39
|
+
};
|
|
40
|
+
const labelStyleText = {
|
|
41
|
+
color: theme === NIThemeEnum.light ? themeColors.light.colorCard : themeColors.dark.colorCard,
|
|
42
|
+
fontSize: labelFont.size,
|
|
43
|
+
fontFamily: labelFont.name
|
|
44
|
+
};
|
|
45
|
+
const labelFonts1 = displayAttributes?.fonts?.filter(item => item.label === pinLabel1Index);
|
|
46
|
+
let labelFont1 = labelFonts1 && labelFonts1.length && labelFonts1[0]?.font;
|
|
47
|
+
labelFont1 = labelFont1 || {
|
|
48
|
+
name: 'Helvetica',
|
|
49
|
+
size: 17
|
|
50
|
+
};
|
|
51
|
+
const labelStyleText1 = {
|
|
52
|
+
color: theme === NIThemeEnum.light ? themeColors.light.colorCard : themeColors.dark.colorCard,
|
|
53
|
+
fontSize: labelFont1.size,
|
|
54
|
+
fontFamily: labelFont1.name
|
|
55
|
+
};
|
|
56
|
+
const textFonts = displayAttributes?.fonts?.filter(item => item.label === pinContentIndex);
|
|
57
|
+
let textFont = textFonts && textFonts.length && textFonts[0]?.font;
|
|
58
|
+
textFont = textFont || {
|
|
59
|
+
name: 'Helvetica',
|
|
60
|
+
size: 17
|
|
61
|
+
};
|
|
62
|
+
const contentStyleText = {
|
|
63
|
+
color: theme === NIThemeEnum.light ? themeColors.light.colorCard : themeColors.dark.colorCard,
|
|
64
|
+
fontSize: textFont.size,
|
|
65
|
+
fontFamily: textFont.name
|
|
66
|
+
};
|
|
67
|
+
const textFonts1 = displayAttributes?.fonts?.filter(item => item.label === pinContent1Index);
|
|
68
|
+
let textFont1 = textFonts1 && textFonts1.length && textFonts1[0]?.font;
|
|
69
|
+
textFont1 = textFont1 || {
|
|
70
|
+
name: 'Helvetica',
|
|
71
|
+
size: 17
|
|
72
|
+
};
|
|
73
|
+
const contentStyleText1 = {
|
|
74
|
+
color: theme === NIThemeEnum.light ? themeColors.light.colorCard : themeColors.dark.colorCard,
|
|
75
|
+
fontSize: textFont1.size,
|
|
76
|
+
fontFamily: textFont1.name
|
|
77
|
+
};
|
|
78
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
79
|
+
style: [styles.containerDateCVVContentGroupTopAlignment, containerDateCVVContentGroupTopAlignmentStyle, I18nManager.isRTL ? {
|
|
80
|
+
flexDirection: 'row-reverse'
|
|
81
|
+
} : {}]
|
|
82
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
83
|
+
style: [styles.textLabel, labelStyleText]
|
|
84
|
+
}, localLabels(language).expiry), /*#__PURE__*/React.createElement(Text, {
|
|
85
|
+
style: [styles.textContent, contentStyleText]
|
|
86
|
+
}, expiryRendered), /*#__PURE__*/React.createElement(Text, {
|
|
87
|
+
style: [styles.textLabel, labelStyleText1]
|
|
88
|
+
}, localLabels(language).CVV), /*#__PURE__*/React.createElement(Text, {
|
|
89
|
+
style: [styles.textContent, contentStyleText1]
|
|
90
|
+
}, clearCVV2Rendered), !isError && shouldHide && /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
91
|
+
onPress: () => setCardDetailsVisible(!cardDetailsVisible)
|
|
92
|
+
}, /*#__PURE__*/React.createElement(PredeterminedIcon, {
|
|
93
|
+
name: cardDetailsVisible ? 'eye' : 'eye-off',
|
|
94
|
+
size: 13
|
|
95
|
+
})));
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=DateCVVGroupOneRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","TouchableOpacity","Text","I18nManager","NILanguageEnum","NIThemeEnum","styles","localLabels","HEIGHT_CARD","themeColors","PredeterminedIcon","CardDetailsDateCVVGroupOneRow","expiry","clearCVV2","pinLabelIndex","pinContentIndex","pinLabel1Index","pinContent1Index","cardDetailsVisible","setCardDetailsVisible","shouldHide","displayAttributes","isError","expiryRendered","replace","clearCVV2Rendered","language","english","dateCVVContentGroupTopAlignment","Math","round","cardAttributes","textPositioning","dateCvvGroupTopAlignment","containerDateCVVContentGroupTopAlignmentStyle","position","top","gap","theme","light","labelFonts","fonts","filter","item","label","labelFont","length","font","name","size","labelStyleText","color","colorCard","dark","fontSize","fontFamily","labelFonts1","labelFont1","labelStyleText1","textFonts","textFont","contentStyleText","textFonts1","textFont1","contentStyleText1","createElement","style","containerDateCVVContentGroupTopAlignment","isRTL","flexDirection","textLabel","textContent","CVV","onPress"],"sourceRoot":"../../../../src","sources":["components/CardDetails/DateCVVGroupOneRow.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAEEC,IAAI,EAEJC,gBAAgB,EAChBC,IAAI,EACJC,WAAW,QACN,cAAc;AAErB,SAEEC,cAAc,EACdC,WAAW,QACN,oCAAoC;AAE3C,SAASC,MAAM,QAAQ,UAAU;AACjC,OAAOC,WAAW,MAAM,0BAA0B;AAClD,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,WAAW,QAAQ,0BAA0B;AACtD,SAASC,iBAAiB,QAAQ,4BAA4B;AAE9D,OAAO,SAASC,6BAA6BA,CAAC;EAC5CC,MAAM;EACNC,SAAS;EACTC,aAAa;EACbC,eAAe;EACfC,cAAc;EACdC,gBAAgB;EAChBC,kBAAkB,EAAE;IAAEA,kBAAkB;IAAEC;EAAsB,CAAC;EACjEC,UAAU;EACVC,iBAAiB;EACjBC;AAC+B,CAAC,EAAe;EAC/C,MAAMC,cAAc,GAAGD,OAAO,GAC1BV,MAAM,GACN,CAACM,kBAAkB,GACnBN,MAAM,CAACY,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BAAgB;IACfwE,OAAO,EAAEA,CAAA,KAAMtD,qBAAqB,CAAC,CAACD,kBAAkB;EAAE,gBAE1DnB,KAAA,CAAAkE,aAAA,CAACvD,iBAAiB;IAChBsC,IAAI,EAAE9B,kBAAkB,GAAG,KAAK,GAAG,SAAU;IAC7C+B,IAAI,EAAE;EAAG,CACV,CACe,CAEhB,CAAC;AAEX"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { HEIGHT_CARD, WIDTH_CARD } from '../../config/configCard';
|
|
3
|
+
export const styles = StyleSheet.create({
|
|
4
|
+
cardDetailsContainer: {
|
|
5
|
+
flexDirection: 'column',
|
|
6
|
+
alignItems: 'center',
|
|
7
|
+
width: '100%'
|
|
8
|
+
},
|
|
9
|
+
cardDetailsRow: {
|
|
10
|
+
width: `${WIDTH_CARD}%`,
|
|
11
|
+
height: HEIGHT_CARD,
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
borderRadius: 20
|
|
14
|
+
},
|
|
15
|
+
containerCardDetails: {
|
|
16
|
+
width: '100%',
|
|
17
|
+
height: '100%',
|
|
18
|
+
borderRadius: 20
|
|
19
|
+
},
|
|
20
|
+
backgroundImageStyle: {
|
|
21
|
+
resizeMode: 'cover',
|
|
22
|
+
borderRadius: 20
|
|
23
|
+
},
|
|
24
|
+
copyRow: {
|
|
25
|
+
flexDirection: 'row',
|
|
26
|
+
flexWrap: 'wrap',
|
|
27
|
+
justifyContent: 'flex-start',
|
|
28
|
+
gap: 5
|
|
29
|
+
},
|
|
30
|
+
textLabel: {
|
|
31
|
+
color: 'white',
|
|
32
|
+
fontFamily: 'Helvetica',
|
|
33
|
+
fontWeight: '100',
|
|
34
|
+
fontSize: 12,
|
|
35
|
+
textAlign: 'left',
|
|
36
|
+
letterSpacing: 0,
|
|
37
|
+
writingDirection: 'ltr'
|
|
38
|
+
},
|
|
39
|
+
textContent: {
|
|
40
|
+
color: 'white',
|
|
41
|
+
fontFamily: 'Helvetica',
|
|
42
|
+
fontWeight: '400',
|
|
43
|
+
fontSize: 18,
|
|
44
|
+
textAlign: 'left',
|
|
45
|
+
letterSpacing: 0,
|
|
46
|
+
writingDirection: 'ltr'
|
|
47
|
+
},
|
|
48
|
+
containerGroupsLeftAlignment: {
|
|
49
|
+
marginLeft: 40
|
|
50
|
+
},
|
|
51
|
+
containerCardNumberGroupTopAlignment: {
|
|
52
|
+
flexDirection: 'row',
|
|
53
|
+
flexWrap: 'wrap',
|
|
54
|
+
position: 'absolute',
|
|
55
|
+
top: 60
|
|
56
|
+
},
|
|
57
|
+
containerCardNumberContentGroupTopAlignment: {
|
|
58
|
+
position: 'absolute',
|
|
59
|
+
top: 65
|
|
60
|
+
},
|
|
61
|
+
containerDateCVVGroupTopAlignment: {
|
|
62
|
+
flexDirection: 'row',
|
|
63
|
+
flexWrap: 'wrap',
|
|
64
|
+
position: 'absolute',
|
|
65
|
+
top: 85,
|
|
66
|
+
gap: 50
|
|
67
|
+
},
|
|
68
|
+
containerDateCVVContentGroupTopAlignment: {
|
|
69
|
+
flexDirection: 'row',
|
|
70
|
+
flexWrap: 'wrap',
|
|
71
|
+
position: 'absolute',
|
|
72
|
+
top: 110,
|
|
73
|
+
gap: 45
|
|
74
|
+
},
|
|
75
|
+
containerHolderNameGroupTopAlignment: {
|
|
76
|
+
flexDirection: 'row',
|
|
77
|
+
flexWrap: 'wrap',
|
|
78
|
+
position: 'absolute',
|
|
79
|
+
top: 135
|
|
80
|
+
},
|
|
81
|
+
containerHolderNameContentGroupTopAlignment: {
|
|
82
|
+
position: 'absolute',
|
|
83
|
+
top: 160
|
|
84
|
+
},
|
|
85
|
+
copyButton: {
|
|
86
|
+
alignSelf: 'center',
|
|
87
|
+
marginTop: '30%',
|
|
88
|
+
width: '60%'
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
export default styles;
|
|
92
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","HEIGHT_CARD","WIDTH_CARD","styles","create","cardDetailsContainer","flexDirection","alignItems","width","cardDetailsRow","height","borderRadius","containerCardDetails","backgroundImageStyle","resizeMode","copyRow","flexWrap","justifyContent","gap","textLabel","color","fontFamily","fontWeight","fontSize","textAlign","letterSpacing","writingDirection","textContent","containerGroupsLeftAlignment","marginLeft","containerCardNumberGroupTopAlignment","position","top","containerCardNumberContentGroupTopAlignment","containerDateCVVGroupTopAlignment","containerDateCVVContentGroupTopAlignment","containerHolderNameGroupTopAlignment","containerHolderNameContentGroupTopAlignment","copyButton","alignSelf","marginTop"],"sourceRoot":"../../../../src","sources":["components/CardDetails/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,WAAW,EAAEC,UAAU,QAAQ,yBAAyB;AAEjE,OAAO,MAAMC,MAAM,GAAGH,UAAU,CAACI,MAAM,CAAC;EACtCC,oBAAoB,EAAE;IACpBC,aAAa,EAAE,QAAQ;IACvBC,UAAU,EAAE,QAAQ;IACpBC,KAAK,EAAE;EACT,CAAC;EACDC,cAAc,EAAE;IACdD,KAAK,EAAG,GAAEN,UAAW,GAAE;IACvBQ,MAAM,EAAET,WAAW;IACnBM,UAAU,EAAE,QAAQ;IACpBI,YAAY,EAAE;EAChB,CAAC;EAEDC,oBAAoB,EAAE;IACpBJ,KAAK,EAAE,MAAM;IACbE,MAAM,EAAE,MAAM;IACdC,YAAY,EAAE;EAChB,CAAC;EAEDE,oBAAoB,EAAE;IACpBC,UAAU,EAAE,OAAO;IACnBH,YAAY,EAAE;EAChB,CAAC;EAEDI,OAAO,EAAE;IACPT,aAAa,EAAE,KAAK;IACpBU,QAAQ,EAAE,MAAM;IAChBC,cAAc,EAAE,YAAY;IAC5BC,GAAG,EAAE;EACP,CAAC;EAEDC,SAAS,EAAE;IACTC,KAAK,EAAE,OAAO;IACdC,UAAU,EAAE,WAAW;IACvBC,UAAU,EAAE,KAAK;IACjBC,QAAQ,EA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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 CaptureCurrentPin({
|
|
7
|
+
setPin: {
|
|
8
|
+
currentPin,
|
|
9
|
+
setCurrentPin,
|
|
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.currentPinStep && /*#__PURE__*/React.createElement(CapturePin, {
|
|
22
|
+
setPin: {
|
|
23
|
+
pin: currentPin,
|
|
24
|
+
setPin: setCurrentPin,
|
|
25
|
+
pinEditable
|
|
26
|
+
},
|
|
27
|
+
setNextStep: {
|
|
28
|
+
step,
|
|
29
|
+
setNextStep
|
|
30
|
+
},
|
|
31
|
+
pinType: pinType,
|
|
32
|
+
title: localLabels(language).changePinButtonLabel,
|
|
33
|
+
pinLabel: localLabels(language).enterCurrentCardPin,
|
|
34
|
+
pinLabelIndex: NILabels.changePinDescriptionLabel,
|
|
35
|
+
showHideLabels: {
|
|
36
|
+
show: localLabels(language).show,
|
|
37
|
+
hide: localLabels(language).hide
|
|
38
|
+
},
|
|
39
|
+
theme: theme,
|
|
40
|
+
input: input
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=CaptureCurrentPin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","NILabels","NIStepEnum","CapturePin","localLabels","CaptureCurrentPin","setPin","currentPin","setCurrentPin","pinEditable","setNextStep","step","pinType","language","theme","input","createElement","Fragment","currentPinStep","pin","title","changePinButtonLabel","pinLabel","enterCurrentCardPin","pinLabelIndex","changePinDescriptionLabel","showHideLabels","show","hide"],"sourceRoot":"../../../../src","sources":["components/ChangePin/CaptureCurrentPin.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,iBAAiBA,CAAC;EACxCC,MAAM,EAAE;IAAEC,UAAU;IAAEC,aAAa;IAAEC;EAAY,CAAC;EAClDC,WAAW,EAAE;IAAEC,IAAI;IAAED;EAAY,CAAC;EAClCE,OAAO;EACPC,QAAQ;EACRC,KAAK;EACLC;AACgB,CAAC,EAAe;EAChC,oBACEf,KAAA,CAAAgB,aAAA,CAAAhB,KAAA,CAAAiB,QAAA,QACGN,IAAI,KAAKT,UAAU,CAACgB,cAAc,iBACjClB,KAAA,CAAAgB,aAAA,CAACb,UAAU;IACTG,MAAM,EAAE;MAAEa,GAAG,EAAEZ,UAAU;MAAED,MAAM,EAAEE,aAAa;MAAEC;IAAY,CAAE;IAChEC,WAAW,EAAE;MAAEC,IAAI;MAAED;IAAY,CAAE;IACnCE,OAAO,EAAEA,OAAQ;IACjBQ,KAAK,EAAEhB,WAAW,CAACS,QAAQ,CAAC,CAACQ,oBAAqB;IAClDC,QAAQ,EAAElB,WAAW,CAACS,QAAQ,CAAC,CAACU,mBAAoB;IACpDC,aAAa,EAAEvB,QAAQ,CAACwB,yBAA0B;IAClDC,cAAc,EAAE;MACdC,IAAI,EAAEvB,WAAW,CAACS,QAAQ,CAAC,CAACc,IAAI;MAChCC,IAAI,EAAExB,WAAW,CAACS,QAAQ,CAAC,CAACe;IAC9B,CAAE;IACFd,KAAK,EAAEA,KAAM;IACbC,KAAK,EAAEA;EAAM,CACd,CAEH,CAAC;AAEP"}
|