ordering-ui-external 1.6.3 → 1.6.4
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/_bundles/{0.ordering-ui.9399c2752e3ad5f2250b.js → 0.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{1.ordering-ui.9399c2752e3ad5f2250b.js → 1.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{2.ordering-ui.9399c2752e3ad5f2250b.js → 2.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{4.ordering-ui.9399c2752e3ad5f2250b.js → 4.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{5.ordering-ui.9399c2752e3ad5f2250b.js → 5.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{6.ordering-ui.9399c2752e3ad5f2250b.js → 6.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{7.ordering-ui.9399c2752e3ad5f2250b.js → 7.ordering-ui.2b0f914882a17cd0b389.js} +1 -1
- package/_bundles/{7.ordering-ui.9399c2752e3ad5f2250b.js.LICENSE.txt → 7.ordering-ui.2b0f914882a17cd0b389.js.LICENSE.txt} +0 -0
- package/_bundles/{8.ordering-ui.9399c2752e3ad5f2250b.js → 8.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{9.ordering-ui.9399c2752e3ad5f2250b.js → 9.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/ordering-ui.2b0f914882a17cd0b389.js +2 -0
- package/_bundles/{ordering-ui.9399c2752e3ad5f2250b.js.LICENSE.txt → ordering-ui.2b0f914882a17cd0b389.js.LICENSE.txt} +0 -0
- package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +31 -14
- package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +36 -22
- package/_modules/themes/five/src/components/Checkout/index.js +2 -1
- package/_modules/themes/five/src/components/Header/index.js +2 -2
- package/_modules/themes/five/src/components/Header/styles.js +13 -4
- package/_modules/themes/five/src/components/LoginForm/index.js +8 -17
- package/_modules/themes/five/src/components/LoginForm/styles.js +1 -1
- package/_modules/themes/five/src/components/SignUpForm/index.js +7 -13
- package/_modules/themes/five/src/components/SignUpForm/styles.js +33 -33
- package/_modules/themes/five/src/styles/Buttons/index.js +3 -1
- package/package.json +2 -2
- package/src/themes/five/src/components/BusinessBasicInformation/index.js +95 -73
- package/src/themes/five/src/components/BusinessBasicInformation/styles.js +19 -4
- package/src/themes/five/src/components/Checkout/index.js +4 -1
- package/src/themes/five/src/components/Header/index.js +2 -2
- package/src/themes/five/src/components/Header/styles.js +40 -0
- package/src/themes/five/src/components/LoginForm/index.js +5 -11
- package/src/themes/five/src/components/LoginForm/styles.js +29 -8
- package/src/themes/five/src/components/SignUpForm/index.js +6 -12
- package/src/themes/five/src/components/SignUpForm/styles.js +3 -1
- package/src/themes/five/src/styles/Buttons/index.js +4 -0
- package/_bundles/ordering-ui.9399c2752e3ad5f2250b.js +0 -2
|
@@ -233,18 +233,18 @@ export const OtpWrapper = styled.div`
|
|
|
233
233
|
.otp-container{
|
|
234
234
|
display: flex;
|
|
235
235
|
justify-content: space-evenly;
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
flex-wrap: wrap;
|
|
237
|
+
margin-bottom: 20px;
|
|
238
|
+
|
|
238
239
|
.otp-input{
|
|
239
|
-
width:
|
|
240
|
-
height:
|
|
241
|
-
|
|
242
|
-
border:
|
|
243
|
-
border-radius: 16px;
|
|
240
|
+
width: 25px !important;
|
|
241
|
+
height: 35px;
|
|
242
|
+
border: 1px solid #CCC;
|
|
243
|
+
border-radius: 8px;
|
|
244
244
|
background-color: #FFF;
|
|
245
245
|
outline: none;
|
|
246
246
|
font-size: 20px;
|
|
247
|
-
font-weight: bold;
|
|
247
|
+
font-weight: bold;
|
|
248
248
|
|
|
249
249
|
&:focus{
|
|
250
250
|
border-color: ${() => darken(0.07, '#CCC')} !important;
|
|
@@ -259,6 +259,27 @@ export const OtpWrapper = styled.div`
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
+
@media (min-width: 768px) {
|
|
263
|
+
.otp-container {
|
|
264
|
+
margin: 20px;
|
|
265
|
+
div {
|
|
266
|
+
padding: 10px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.otp-input {
|
|
270
|
+
width: 80px !important;
|
|
271
|
+
height: 100px;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
@media (min-width: 1024px) {
|
|
276
|
+
.otp-container {
|
|
277
|
+
.otp-input {
|
|
278
|
+
width: 60px !important;
|
|
279
|
+
height: 80px;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
262
283
|
`
|
|
263
284
|
|
|
264
285
|
export const CountdownTimer = styled.div`
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
useLanguage,
|
|
18
18
|
useConfig,
|
|
19
19
|
useSession,
|
|
20
|
+
useToast, ToastType,
|
|
20
21
|
ReCaptcha,
|
|
21
22
|
useEvent
|
|
22
23
|
} from 'ordering-components-external'
|
|
@@ -98,6 +99,7 @@ const SignUpFormUI = (props) => {
|
|
|
98
99
|
useSignUpOtpCellphone
|
|
99
100
|
} = props
|
|
100
101
|
const [, t] = useLanguage()
|
|
102
|
+
const [, { showToast }] = useToast()
|
|
101
103
|
const [{ configs }] = useConfig()
|
|
102
104
|
const formMethods = useForm()
|
|
103
105
|
const [events] = useEvent()
|
|
@@ -110,8 +112,7 @@ const SignUpFormUI = (props) => {
|
|
|
110
112
|
const facebookLoginEnabled = configs?.facebook_login_enabled?.value === '1' || !configs?.facebook_login_enabled?.enabled
|
|
111
113
|
const appleLoginEnabled = configs?.apple_login_enabled?.value === '1' || !configs?.apple_login_enabled?.enabled
|
|
112
114
|
|
|
113
|
-
const
|
|
114
|
-
const [otpLeftTime, _, resetOtpLeftTime] = useCountdownTimer(600, !checkPhoneCodeState?.loading && willVerifyOtpState)
|
|
115
|
+
const [otpLeftTime, , resetOtpLeftTime] = useCountdownTimer(600, !checkPhoneCodeState?.loading && willVerifyOtpState)
|
|
115
116
|
const [userPhoneNumber, setUserPhoneNumber] = useState('')
|
|
116
117
|
const [isValidPhoneNumber, setIsValidPhoneNumber] = useState(null)
|
|
117
118
|
const [passwordSee, setPasswordSee] = useState(false)
|
|
@@ -310,15 +311,9 @@ const SignUpFormUI = (props) => {
|
|
|
310
311
|
|
|
311
312
|
useEffect(() => {
|
|
312
313
|
if (checkPhoneCodeState?.result?.error) {
|
|
313
|
-
|
|
314
|
-
open: true,
|
|
315
|
-
content: checkPhoneCodeState?.result?.result || [t('ERROR', 'Error')]
|
|
316
|
-
})
|
|
314
|
+
showToast(ToastType.Error, checkPhoneCodeState?.result?.result || [t('ERROR', 'Error')])
|
|
317
315
|
} else if (checkPhoneCodeState?.result?.result && checkPhoneCodeState?.result?.result?.[0] === 'VERIFICATION_CODE_WAS_SENT_TO') {
|
|
318
|
-
|
|
319
|
-
open: true,
|
|
320
|
-
content: t('CODE_SENT', 'The code has been sent')
|
|
321
|
-
})
|
|
316
|
+
showToast(ToastType.Success, t('CODE_SENT', 'The code has been sent'))
|
|
322
317
|
resetOtpLeftTime()
|
|
323
318
|
}
|
|
324
319
|
}, [checkPhoneCodeState])
|
|
@@ -613,13 +608,12 @@ const SignUpFormUI = (props) => {
|
|
|
613
608
|
numInputs={numOtpInputs || 6}
|
|
614
609
|
containerStyle='otp-container'
|
|
615
610
|
inputStyle='otp-input'
|
|
616
|
-
placeholder={otpPlaceholder}
|
|
617
611
|
isInputNum
|
|
618
612
|
shouldAutoFocus
|
|
619
613
|
/>
|
|
620
614
|
</OtpWrapper>
|
|
621
615
|
<ResendCode disabled={otpLeftTime > 520} onClick={handleSendOtp}>
|
|
622
|
-
{t('
|
|
616
|
+
{t('LANG_SEND_AGAIN', 'Send again')}?
|
|
623
617
|
</ResendCode>
|
|
624
618
|
<Button
|
|
625
619
|
type='button'
|
|
@@ -4,7 +4,9 @@ export const SignUpContainer = styled.div`
|
|
|
4
4
|
width: 100%;
|
|
5
5
|
height: 100%;
|
|
6
6
|
display: flex;
|
|
7
|
-
|
|
7
|
+
${({ isPopup }) => !isPopup && css`
|
|
8
|
+
min-height: calc(100vh - 65px);
|
|
9
|
+
`}
|
|
8
10
|
padding: 0 10px;
|
|
9
11
|
box-sizing: border-box;
|
|
10
12
|
|
|
@@ -90,6 +90,10 @@ export const Button = styled.button`
|
|
|
90
90
|
&:active {
|
|
91
91
|
background: ${props => darken(0.07, props.theme.colors.primary)};
|
|
92
92
|
}
|
|
93
|
+
&:hover {
|
|
94
|
+
background: ${props => darken(0.07, props.theme.colors.primary)};
|
|
95
|
+
color: #FFF;
|
|
96
|
+
}
|
|
93
97
|
${({ outline }) => outline && css`
|
|
94
98
|
background: #FFF;
|
|
95
99
|
color: ${props => props.theme.colors.primary};
|