namirasoft-site-react 1.3.403 → 1.3.405
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/dist/App.js +2 -2
- package/dist/App.js.map +1 -1
- package/dist/CopyToClipboard.d.ts +1 -1
- package/dist/CopyToClipboard.js +1 -1
- package/dist/CopyToClipboard.js.map +1 -1
- package/dist/components/NSAssistantButton.d.ts +1 -2
- package/dist/components/NSAssistantButton.js +3 -4
- package/dist/components/NSAssistantButton.js.map +1 -1
- package/dist/components/NSBoxEmail.d.ts +0 -1
- package/dist/components/NSBoxEmail.js +3 -4
- package/dist/components/NSBoxEmail.js.map +1 -1
- package/dist/components/NSBoxSearch.js +2 -2
- package/dist/components/NSBoxSearch.js.map +1 -1
- package/dist/components/NSBoxString.js +3 -3
- package/dist/components/NSBoxString.js.map +1 -1
- package/dist/components/NSButton.d.ts +1 -1
- package/dist/components/NSButton.js +1 -1
- package/dist/components/NSButton.js.map +1 -1
- package/dist/components/NSButtonBlue.js +1 -1
- package/dist/components/NSButtonBlue.js.map +1 -1
- package/dist/components/NSButtonGreen.js +1 -1
- package/dist/components/NSButtonGreen.js.map +1 -1
- package/dist/components/NSButtonRed.js +1 -1
- package/dist/components/NSButtonRed.js.map +1 -1
- package/dist/components/NSElectronicCard.d.ts +1 -2
- package/dist/components/NSElectronicCard.js +1 -2
- package/dist/components/NSElectronicCard.js.map +1 -1
- package/dist/components/NSFilterBox.js +1 -1
- package/dist/components/NSFilterBox.js.map +1 -1
- package/dist/components/NSPageSelectionModal.d.ts +1 -1
- package/dist/components/NSPageSelectionModal.js +0 -1
- package/dist/components/NSPageSelectionModal.js.map +1 -1
- package/dist/components/NSTable.d.ts +2 -2
- package/dist/components/NSTable.js +6 -6
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTag.d.ts +1 -2
- package/dist/components/NSTag.js +2 -3
- package/dist/components/NSTag.js.map +1 -1
- package/dist/main.d.ts +0 -2
- package/dist/main.js +0 -2
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/src/App.tsx +2 -2
- package/src/CopyToClipboard.ts +1 -1
- package/src/components/NSAssistantButton.tsx +4 -6
- package/src/components/NSBoxEmail.tsx +4 -7
- package/src/components/NSBoxSearch.tsx +2 -3
- package/src/components/NSBoxString.tsx +3 -4
- package/src/components/NSButton.tsx +1 -1
- package/src/components/NSButtonBlue.tsx +1 -2
- package/src/components/NSButtonGreen.tsx +1 -2
- package/src/components/NSButtonRed.tsx +1 -2
- package/src/components/NSElectronicCard.tsx +2 -4
- package/src/components/NSFilterBox.tsx +1 -1
- package/src/components/NSPageSelectionModal.tsx +1 -3
- package/src/components/NSTable.tsx +7 -8
- package/src/components/NSTag.tsx +60 -61
- package/src/main.ts +0 -2
- package/dist/components/NSBoxOTP.d.ts +0 -9
- package/dist/components/NSBoxOTP.js +0 -34
- package/dist/components/NSBoxOTP.js.map +0 -1
- package/dist/components/NSBoxOTP.module.css +0 -11
- package/dist/components/NSVerification.d.ts +0 -10
- package/dist/components/NSVerification.js +0 -19
- package/dist/components/NSVerification.js.map +0 -1
- package/dist/components/NSVerification.module.css +0 -23
- package/src/components/NSBoxOTP.module.css +0 -11
- package/src/components/NSBoxOTP.tsx +0 -66
- package/src/components/NSVerification.module.css +0 -23
- package/src/components/NSVerification.tsx +0 -43
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { IBaseComponentProps } from '../props/IBaseComponentProps';
|
|
3
|
-
import { IImageProps } from '../props/IImageProps';
|
|
4
|
-
import NSBoxOTP from './NSBoxOTP';
|
|
5
|
-
import Styles from './NSVerification.module.css'
|
|
6
|
-
import vector from '../assets/images/verify.png'
|
|
7
|
-
|
|
8
|
-
interface INSVerificationProps extends IBaseComponentProps {
|
|
9
|
-
verificationType : string;
|
|
10
|
-
onChanged ?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
-
image ?: IImageProps;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function NSVerification(props:INSVerificationProps) {
|
|
17
|
-
const [values, setValue] = useState<string>('')
|
|
18
|
-
|
|
19
|
-
function onChanged(event: React.ChangeEvent<HTMLInputElement>): string | undefined
|
|
20
|
-
{
|
|
21
|
-
setValue(prevValues => [...prevValues , event.target.value].join(''));
|
|
22
|
-
if (props.onChanged)
|
|
23
|
-
props.onChanged(event);
|
|
24
|
-
console.log(values);
|
|
25
|
-
return (values);
|
|
26
|
-
}
|
|
27
|
-
return (
|
|
28
|
-
<div
|
|
29
|
-
className={`${Styles.ns_verification_container} ${props.classList?.join(" ")}`}
|
|
30
|
-
style={props.style}
|
|
31
|
-
>
|
|
32
|
-
<img
|
|
33
|
-
src={props.image?.src ?? vector}
|
|
34
|
-
alt={props.image?.alt ?? 'verification vector'}
|
|
35
|
-
className={Styles.ns_verification_vector}
|
|
36
|
-
/>
|
|
37
|
-
<p>Please enter code sent to {props.verificationType}</p>
|
|
38
|
-
<NSBoxOTP onChanged={onChanged}/>
|
|
39
|
-
</div>
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export default NSVerification;
|