@oxyhq/services 5.13.0 → 5.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/core/OxyServices.js +7 -7
- package/lib/commonjs/core/OxyServices.js.map +1 -1
- package/lib/commonjs/i18n/index.js +37 -1
- package/lib/commonjs/i18n/index.js.map +1 -1
- package/lib/commonjs/i18n/locales/ar-SA.json +128 -0
- package/lib/commonjs/i18n/locales/ca-ES.json +128 -0
- package/lib/commonjs/i18n/locales/de-DE.json +128 -0
- package/lib/commonjs/i18n/locales/en-US.json +85 -12
- package/lib/commonjs/i18n/locales/es-ES.json +58 -6
- package/lib/commonjs/i18n/locales/fr-FR.json +128 -0
- package/lib/commonjs/i18n/locales/it-IT.json +128 -0
- package/lib/commonjs/i18n/locales/ja-JP.json +127 -0
- package/lib/commonjs/i18n/locales/ko-KR.json +128 -0
- package/lib/commonjs/i18n/locales/pt-PT.json +128 -0
- package/lib/commonjs/i18n/locales/zh-CN.json +128 -0
- package/lib/commonjs/ui/components/FontLoader.js +22 -42
- package/lib/commonjs/ui/components/FontLoader.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +5 -8
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js +64 -44
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +14 -35
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -1
- package/lib/commonjs/ui/components/internal/PinInput.js +2 -2
- package/lib/commonjs/ui/components/internal/PinInput.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +434 -321
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignInScreen.js +43 -39
- package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +139 -125
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js +2 -4
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/RecoverRequestStep.js +45 -25
- package/lib/commonjs/ui/screens/steps/RecoverRequestStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/RecoverResetPasswordStep.js +88 -53
- package/lib/commonjs/ui/screens/steps/RecoverResetPasswordStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/RecoverSuccessStep.js +79 -58
- package/lib/commonjs/ui/screens/steps/RecoverSuccessStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/RecoverVerifyStep.js +61 -52
- package/lib/commonjs/ui/screens/steps/RecoverVerifyStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/SignInPasswordStep.js +220 -31
- package/lib/commonjs/ui/screens/steps/SignInPasswordStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/SignInTotpStep.js +77 -50
- package/lib/commonjs/ui/screens/steps/SignInTotpStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/SignInUsernameStep.js +527 -66
- package/lib/commonjs/ui/screens/steps/SignInUsernameStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/SignUpIdentityStep.js +55 -30
- package/lib/commonjs/ui/screens/steps/SignUpIdentityStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/SignUpSecurityStep.js +64 -46
- package/lib/commonjs/ui/screens/steps/SignUpSecurityStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/SignUpSummaryStep.js +84 -146
- package/lib/commonjs/ui/screens/steps/SignUpSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/SignUpWelcomeStep.js +113 -34
- package/lib/commonjs/ui/screens/steps/SignUpWelcomeStep.js.map +1 -1
- package/lib/commonjs/ui/stores/authStore.js +16 -20
- package/lib/commonjs/ui/stores/authStore.js.map +1 -1
- package/lib/commonjs/ui/styles/authStyles.js +2 -1
- package/lib/commonjs/ui/styles/authStyles.js.map +1 -1
- package/lib/commonjs/ui/styles/index.js +11 -0
- package/lib/commonjs/ui/styles/index.js.map +1 -1
- package/lib/commonjs/ui/styles/spacing.js +51 -0
- package/lib/commonjs/ui/styles/spacing.js.map +1 -0
- package/lib/commonjs/utils/validationUtils.js +1 -1
- package/lib/module/core/OxyServices.js +7 -7
- package/lib/module/core/OxyServices.js.map +1 -1
- package/lib/module/i18n/index.js +37 -1
- package/lib/module/i18n/index.js.map +1 -1
- package/lib/module/i18n/locales/ar-SA.json +128 -0
- package/lib/module/i18n/locales/ca-ES.json +128 -0
- package/lib/module/i18n/locales/de-DE.json +128 -0
- package/lib/module/i18n/locales/en-US.json +85 -12
- package/lib/module/i18n/locales/es-ES.json +58 -6
- package/lib/module/i18n/locales/fr-FR.json +128 -0
- package/lib/module/i18n/locales/it-IT.json +128 -0
- package/lib/module/i18n/locales/ja-JP.json +127 -0
- package/lib/module/i18n/locales/ko-KR.json +128 -0
- package/lib/module/i18n/locales/pt-PT.json +128 -0
- package/lib/module/i18n/locales/zh-CN.json +128 -0
- package/lib/module/ui/components/FontLoader.js +23 -43
- package/lib/module/ui/components/FontLoader.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +6 -8
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/StepBasedScreen.js +65 -45
- package/lib/module/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/module/ui/components/internal/GroupedPillButtons.js +14 -35
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -1
- package/lib/module/ui/components/internal/PinInput.js +2 -2
- package/lib/module/ui/components/internal/PinInput.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +434 -321
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/SignInScreen.js +44 -40
- package/lib/module/ui/screens/SignInScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +138 -126
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/internal/SignInUsernameStep.js +2 -4
- package/lib/module/ui/screens/internal/SignInUsernameStep.js.map +1 -1
- package/lib/module/ui/screens/steps/RecoverRequestStep.js +45 -25
- package/lib/module/ui/screens/steps/RecoverRequestStep.js.map +1 -1
- package/lib/module/ui/screens/steps/RecoverResetPasswordStep.js +89 -54
- package/lib/module/ui/screens/steps/RecoverResetPasswordStep.js.map +1 -1
- package/lib/module/ui/screens/steps/RecoverSuccessStep.js +80 -59
- package/lib/module/ui/screens/steps/RecoverSuccessStep.js.map +1 -1
- package/lib/module/ui/screens/steps/RecoverVerifyStep.js +62 -53
- package/lib/module/ui/screens/steps/RecoverVerifyStep.js.map +1 -1
- package/lib/module/ui/screens/steps/SignInPasswordStep.js +221 -32
- package/lib/module/ui/screens/steps/SignInPasswordStep.js.map +1 -1
- package/lib/module/ui/screens/steps/SignInTotpStep.js +78 -51
- package/lib/module/ui/screens/steps/SignInTotpStep.js.map +1 -1
- package/lib/module/ui/screens/steps/SignInUsernameStep.js +530 -68
- package/lib/module/ui/screens/steps/SignInUsernameStep.js.map +1 -1
- package/lib/module/ui/screens/steps/SignUpIdentityStep.js +55 -30
- package/lib/module/ui/screens/steps/SignUpIdentityStep.js.map +1 -1
- package/lib/module/ui/screens/steps/SignUpSecurityStep.js +65 -47
- package/lib/module/ui/screens/steps/SignUpSecurityStep.js.map +1 -1
- package/lib/module/ui/screens/steps/SignUpSummaryStep.js +84 -146
- package/lib/module/ui/screens/steps/SignUpSummaryStep.js.map +1 -1
- package/lib/module/ui/screens/steps/SignUpWelcomeStep.js +114 -35
- package/lib/module/ui/screens/steps/SignUpWelcomeStep.js.map +1 -1
- package/lib/module/ui/stores/authStore.js +16 -20
- package/lib/module/ui/stores/authStore.js.map +1 -1
- package/lib/module/ui/styles/authStyles.js +2 -1
- package/lib/module/ui/styles/authStyles.js.map +1 -1
- package/lib/module/ui/styles/index.js +1 -0
- package/lib/module/ui/styles/index.js.map +1 -1
- package/lib/module/ui/styles/spacing.js +48 -0
- package/lib/module/ui/styles/spacing.js.map +1 -0
- package/lib/module/utils/validationUtils.js +1 -1
- package/lib/typescript/core/OxyServices.d.ts +4 -2
- package/lib/typescript/core/OxyServices.d.ts.map +1 -1
- package/lib/typescript/i18n/index.d.ts.map +1 -1
- package/lib/typescript/ui/components/FontLoader.d.ts +3 -3
- package/lib/typescript/ui/components/FontLoader.d.ts.map +1 -1
- package/lib/typescript/ui/components/OxyProvider.d.ts +2 -2
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/ui/components/StepBasedScreen.d.ts.map +1 -1
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -1
- package/lib/typescript/ui/context/OxyContext.d.ts +1 -0
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/RecoverRequestStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/RecoverResetPasswordStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/RecoverSuccessStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/RecoverVerifyStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/SignInPasswordStep.d.ts +2 -0
- package/lib/typescript/ui/screens/steps/SignInPasswordStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/SignInTotpStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/SignInUsernameStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/SignUpIdentityStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/SignUpSecurityStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/SignUpSummaryStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/SignUpWelcomeStep.d.ts.map +1 -1
- package/lib/typescript/ui/stores/authStore.d.ts +7 -3
- package/lib/typescript/ui/stores/authStore.d.ts.map +1 -1
- package/lib/typescript/ui/styles/authStyles.d.ts +1 -0
- package/lib/typescript/ui/styles/authStyles.d.ts.map +1 -1
- package/lib/typescript/ui/styles/index.d.ts +1 -0
- package/lib/typescript/ui/styles/index.d.ts.map +1 -1
- package/lib/typescript/ui/styles/spacing.d.ts +43 -0
- package/lib/typescript/ui/styles/spacing.d.ts.map +1 -0
- package/lib/typescript/utils/validationUtils.d.ts +1 -1
- package/package.json +1 -1
- package/src/core/OxyServices.ts +10 -8
- package/src/i18n/index.ts +36 -0
- package/src/i18n/locales/ar-SA.json +128 -0
- package/src/i18n/locales/ca-ES.json +128 -0
- package/src/i18n/locales/de-DE.json +128 -0
- package/src/i18n/locales/en-US.json +85 -12
- package/src/i18n/locales/es-ES.json +58 -6
- package/src/i18n/locales/fr-FR.json +128 -0
- package/src/i18n/locales/it-IT.json +128 -0
- package/src/i18n/locales/ja-JP.json +127 -0
- package/src/i18n/locales/ko-KR.json +128 -0
- package/src/i18n/locales/pt-PT.json +128 -0
- package/src/i18n/locales/zh-CN.json +128 -0
- package/src/ui/components/FontLoader.tsx +17 -37
- package/src/ui/components/OxyProvider.tsx +14 -13
- package/src/ui/components/StepBasedScreen.tsx +66 -43
- package/src/ui/components/internal/GroupedPillButtons.tsx +15 -31
- package/src/ui/components/internal/PinInput.tsx +2 -2
- package/src/ui/context/OxyContext.tsx +404 -285
- package/src/ui/screens/FileManagementScreen.tsx +15 -15
- package/src/ui/screens/SignInScreen.tsx +59 -36
- package/src/ui/screens/WelcomeNewUserScreen.tsx +102 -91
- package/src/ui/screens/internal/SignInUsernameStep.tsx +1 -1
- package/src/ui/screens/steps/RecoverRequestStep.tsx +34 -24
- package/src/ui/screens/steps/RecoverResetPasswordStep.tsx +65 -36
- package/src/ui/screens/steps/RecoverSuccessStep.tsx +71 -47
- package/src/ui/screens/steps/RecoverVerifyStep.tsx +60 -50
- package/src/ui/screens/steps/SignInPasswordStep.tsx +191 -29
- package/src/ui/screens/steps/SignInTotpStep.tsx +68 -34
- package/src/ui/screens/steps/SignInUsernameStep.tsx +586 -57
- package/src/ui/screens/steps/SignUpIdentityStep.tsx +49 -35
- package/src/ui/screens/steps/SignUpSecurityStep.tsx +56 -39
- package/src/ui/screens/steps/SignUpSummaryStep.tsx +99 -89
- package/src/ui/screens/steps/SignUpWelcomeStep.tsx +88 -20
- package/src/ui/stores/authStore.ts +15 -19
- package/src/ui/styles/authStyles.ts +2 -1
- package/src/ui/styles/index.ts +1 -0
- package/src/ui/styles/spacing.ts +46 -0
- package/src/utils/validationUtils.ts +1 -1
|
@@ -10,6 +10,7 @@ var _vectorIcons = require("@expo/vector-icons");
|
|
|
10
10
|
var _GroupedPillButtons = _interopRequireDefault(require("../../components/internal/GroupedPillButtons"));
|
|
11
11
|
var _PinInput = _interopRequireDefault(require("../../components/internal/PinInput"));
|
|
12
12
|
var _useI18n = require("../../hooks/useI18n");
|
|
13
|
+
var _spacing = require("../../styles/spacing");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
16
|
const SignInTotpStep = ({
|
|
@@ -30,6 +31,10 @@ const SignInTotpStep = ({
|
|
|
30
31
|
const {
|
|
31
32
|
t
|
|
32
33
|
} = (0, _useI18n.useI18n)();
|
|
34
|
+
const baseStyles = _spacing.stepStyles;
|
|
35
|
+
const webShadowReset = _reactNative.Platform.OS === 'web' ? {
|
|
36
|
+
boxShadow: 'none'
|
|
37
|
+
} : null;
|
|
33
38
|
const handleVerify = async () => {
|
|
34
39
|
if (!code || code.length !== 6) {
|
|
35
40
|
setErrorMessage?.(t('recover.enterCode'));
|
|
@@ -46,48 +51,46 @@ const SignInTotpStep = ({
|
|
|
46
51
|
};
|
|
47
52
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
48
53
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
49
|
-
style:
|
|
54
|
+
style: [baseStyles.container, baseStyles.sectionSpacing, baseStyles.header],
|
|
50
55
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
51
|
-
style: [styles.modernTitle, {
|
|
52
|
-
color: colors.text
|
|
56
|
+
style: [styles.modernTitle, baseStyles.title, {
|
|
57
|
+
color: colors.text,
|
|
58
|
+
marginBottom: 0,
|
|
59
|
+
marginTop: 0
|
|
53
60
|
}],
|
|
54
61
|
children: t('signin.totp.title') || 'Two‑Factor Code'
|
|
55
62
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
56
|
-
style: [styles.modernSubtitle, {
|
|
57
|
-
color: colors.secondaryText
|
|
63
|
+
style: [styles.modernSubtitle, baseStyles.subtitle, {
|
|
64
|
+
color: colors.secondaryText,
|
|
65
|
+
marginBottom: 0,
|
|
66
|
+
marginTop: 0
|
|
58
67
|
}],
|
|
59
68
|
children: t('signin.totp.subtitle', {
|
|
60
69
|
username
|
|
61
70
|
}) || `Enter the 6‑digit code from your authenticator app for @${username}`
|
|
62
71
|
})]
|
|
63
72
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
64
|
-
style:
|
|
65
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
style: [baseStyles.container, baseStyles.sectionSpacing, stylesheet.inputSection],
|
|
74
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
75
|
+
style: stylesheet.pinInputWrapper,
|
|
76
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PinInput.default, {
|
|
77
|
+
ref: inputRef,
|
|
78
|
+
value: code,
|
|
79
|
+
onChange: setCode,
|
|
80
|
+
length: 6,
|
|
81
|
+
disabled: isLoading,
|
|
82
|
+
autoFocus: true,
|
|
83
|
+
colors: colors
|
|
84
|
+
})
|
|
73
85
|
}), errorMessage ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
74
|
-
style: {
|
|
75
|
-
flexDirection: 'row',
|
|
76
|
-
alignItems: 'center',
|
|
77
|
-
marginTop: 16,
|
|
78
|
-
padding: 12,
|
|
86
|
+
style: [stylesheet.errorContainer, {
|
|
79
87
|
backgroundColor: colors.error + '10',
|
|
80
|
-
borderRadius: 8,
|
|
81
|
-
borderWidth: 1,
|
|
82
88
|
borderColor: colors.error + '30'
|
|
83
|
-
},
|
|
89
|
+
}, webShadowReset],
|
|
84
90
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
85
91
|
name: "alert-circle",
|
|
86
92
|
size: 20,
|
|
87
|
-
color: colors.error
|
|
88
|
-
style: {
|
|
89
|
-
marginRight: 8
|
|
90
|
-
}
|
|
93
|
+
color: colors.error
|
|
91
94
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
92
95
|
style: [styles.footerText, {
|
|
93
96
|
color: colors.error,
|
|
@@ -96,37 +99,33 @@ const SignInTotpStep = ({
|
|
|
96
99
|
children: errorMessage
|
|
97
100
|
})]
|
|
98
101
|
}) : null]
|
|
99
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
102
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
103
|
+
style: [baseStyles.container, baseStyles.sectionSpacing, baseStyles.buttonContainer],
|
|
104
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GroupedPillButtons.default, {
|
|
105
|
+
buttons: [{
|
|
106
|
+
text: t('common.actions.back'),
|
|
107
|
+
onPress: prevStep,
|
|
108
|
+
icon: 'arrow-back',
|
|
109
|
+
variant: 'transparent'
|
|
110
|
+
}, {
|
|
111
|
+
text: t('signin.actions.verify'),
|
|
112
|
+
onPress: handleVerify,
|
|
113
|
+
icon: 'shield-checkmark',
|
|
114
|
+
variant: 'primary',
|
|
115
|
+
loading: isLoading,
|
|
116
|
+
disabled: isLoading || code.length !== 6
|
|
117
|
+
}],
|
|
118
|
+
colors: colors
|
|
119
|
+
})
|
|
114
120
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
115
|
-
style:
|
|
116
|
-
marginTop: 12,
|
|
117
|
-
alignItems: 'center'
|
|
118
|
-
},
|
|
121
|
+
style: [baseStyles.container, baseStyles.sectionSpacing, stylesheet.footerContainer],
|
|
119
122
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
120
123
|
style: [styles.footerText, {
|
|
121
124
|
color: colors.secondaryText
|
|
122
125
|
}],
|
|
123
126
|
children: t('signin.totp.noAccess') || 'No access to your authenticator?'
|
|
124
127
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
125
|
-
style:
|
|
126
|
-
flexDirection: 'row',
|
|
127
|
-
gap: 12,
|
|
128
|
-
marginTop: 6
|
|
129
|
-
},
|
|
128
|
+
style: stylesheet.footerLinks,
|
|
130
129
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
131
130
|
onPress: () => navigate('RecoverAccount', {
|
|
132
131
|
prefillUsername: username
|
|
@@ -158,4 +157,32 @@ const SignInTotpStep = ({
|
|
|
158
157
|
});
|
|
159
158
|
};
|
|
160
159
|
var _default = exports.default = SignInTotpStep;
|
|
160
|
+
const stylesheet = _reactNative.StyleSheet.create({
|
|
161
|
+
inputSection: {
|
|
162
|
+
gap: _spacing.STEP_INNER_GAP
|
|
163
|
+
},
|
|
164
|
+
pinInputWrapper: {
|
|
165
|
+
marginBottom: 0,
|
|
166
|
+
marginTop: 0
|
|
167
|
+
},
|
|
168
|
+
errorContainer: {
|
|
169
|
+
flexDirection: 'row',
|
|
170
|
+
alignItems: 'center',
|
|
171
|
+
marginTop: 0,
|
|
172
|
+
padding: _spacing.STEP_INNER_GAP,
|
|
173
|
+
borderRadius: 8,
|
|
174
|
+
borderWidth: 1,
|
|
175
|
+
shadowColor: 'transparent',
|
|
176
|
+
gap: _spacing.STEP_INNER_GAP
|
|
177
|
+
},
|
|
178
|
+
footerContainer: {
|
|
179
|
+
alignItems: 'center',
|
|
180
|
+
gap: _spacing.STEP_INNER_GAP
|
|
181
|
+
},
|
|
182
|
+
footerLinks: {
|
|
183
|
+
flexDirection: 'row',
|
|
184
|
+
gap: _spacing.STEP_INNER_GAP,
|
|
185
|
+
marginTop: 0
|
|
186
|
+
}
|
|
187
|
+
});
|
|
161
188
|
//# sourceMappingURL=SignInTotpStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_vectorIcons","_GroupedPillButtons","_interopRequireDefault","_PinInput","_useI18n","_jsxRuntime","e","__esModule","default","SignInTotpStep","colors","styles","navigate","prevStep","nextStep","username","mfaToken","completeMfaLogin","errorMessage","setErrorMessage","isLoading","code","setCode","useState","inputRef","useRef","t","useI18n","handleVerify","length","message","setTimeout","current","focus","jsxs","Fragment","children","View","style","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_vectorIcons","_GroupedPillButtons","_interopRequireDefault","_PinInput","_useI18n","_spacing","_jsxRuntime","e","__esModule","default","SignInTotpStep","colors","styles","navigate","prevStep","nextStep","username","mfaToken","completeMfaLogin","errorMessage","setErrorMessage","isLoading","code","setCode","useState","inputRef","useRef","t","useI18n","baseStyles","stepStyles","webShadowReset","Platform","OS","boxShadow","handleVerify","length","message","setTimeout","current","focus","jsxs","Fragment","children","View","style","container","sectionSpacing","header","jsx","Text","modernTitle","title","color","text","marginBottom","marginTop","modernSubtitle","subtitle","secondaryText","stylesheet","inputSection","pinInputWrapper","ref","value","onChange","disabled","autoFocus","errorContainer","backgroundColor","error","borderColor","Ionicons","name","size","footerText","fontSize","buttonContainer","buttons","onPress","icon","variant","loading","footerContainer","footerLinks","TouchableOpacity","prefillUsername","linkText","primary","_default","exports","StyleSheet","create","gap","STEP_INNER_GAP","flexDirection","alignItems","padding","borderRadius","borderWidth","shadowColor"],"sourceRoot":"../../../../../src","sources":["ui/screens/steps/SignInTotpStep.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AAA4E,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAI,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA0B5E,MAAMG,cAA6C,GAAGA,CAAC;EACrDC,MAAM;EACNC,MAAM;EACNC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,gBAAgB;EAChBC,YAAY;EACZC,eAAe;EACfC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,IAAI,EAAEC,OAAO,CAAC,GAAG,IAAAC,eAAQ,EAAC,EAAE,CAAC;EACpC,MAAMC,QAAQ,GAAG,IAAAC,aAAM,EAAwB,IAAI,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