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.
Files changed (70) hide show
  1. package/dist/App.js +2 -2
  2. package/dist/App.js.map +1 -1
  3. package/dist/CopyToClipboard.d.ts +1 -1
  4. package/dist/CopyToClipboard.js +1 -1
  5. package/dist/CopyToClipboard.js.map +1 -1
  6. package/dist/components/NSAssistantButton.d.ts +1 -2
  7. package/dist/components/NSAssistantButton.js +3 -4
  8. package/dist/components/NSAssistantButton.js.map +1 -1
  9. package/dist/components/NSBoxEmail.d.ts +0 -1
  10. package/dist/components/NSBoxEmail.js +3 -4
  11. package/dist/components/NSBoxEmail.js.map +1 -1
  12. package/dist/components/NSBoxSearch.js +2 -2
  13. package/dist/components/NSBoxSearch.js.map +1 -1
  14. package/dist/components/NSBoxString.js +3 -3
  15. package/dist/components/NSBoxString.js.map +1 -1
  16. package/dist/components/NSButton.d.ts +1 -1
  17. package/dist/components/NSButton.js +1 -1
  18. package/dist/components/NSButton.js.map +1 -1
  19. package/dist/components/NSButtonBlue.js +1 -1
  20. package/dist/components/NSButtonBlue.js.map +1 -1
  21. package/dist/components/NSButtonGreen.js +1 -1
  22. package/dist/components/NSButtonGreen.js.map +1 -1
  23. package/dist/components/NSButtonRed.js +1 -1
  24. package/dist/components/NSButtonRed.js.map +1 -1
  25. package/dist/components/NSElectronicCard.d.ts +1 -2
  26. package/dist/components/NSElectronicCard.js +1 -2
  27. package/dist/components/NSElectronicCard.js.map +1 -1
  28. package/dist/components/NSFilterBox.js +1 -1
  29. package/dist/components/NSFilterBox.js.map +1 -1
  30. package/dist/components/NSPageSelectionModal.d.ts +1 -1
  31. package/dist/components/NSPageSelectionModal.js +0 -1
  32. package/dist/components/NSPageSelectionModal.js.map +1 -1
  33. package/dist/components/NSTable.d.ts +2 -2
  34. package/dist/components/NSTable.js +6 -6
  35. package/dist/components/NSTable.js.map +1 -1
  36. package/dist/components/NSTag.d.ts +1 -2
  37. package/dist/components/NSTag.js +2 -3
  38. package/dist/components/NSTag.js.map +1 -1
  39. package/dist/main.d.ts +0 -2
  40. package/dist/main.js +0 -2
  41. package/dist/main.js.map +1 -1
  42. package/package.json +1 -1
  43. package/src/App.tsx +2 -2
  44. package/src/CopyToClipboard.ts +1 -1
  45. package/src/components/NSAssistantButton.tsx +4 -6
  46. package/src/components/NSBoxEmail.tsx +4 -7
  47. package/src/components/NSBoxSearch.tsx +2 -3
  48. package/src/components/NSBoxString.tsx +3 -4
  49. package/src/components/NSButton.tsx +1 -1
  50. package/src/components/NSButtonBlue.tsx +1 -2
  51. package/src/components/NSButtonGreen.tsx +1 -2
  52. package/src/components/NSButtonRed.tsx +1 -2
  53. package/src/components/NSElectronicCard.tsx +2 -4
  54. package/src/components/NSFilterBox.tsx +1 -1
  55. package/src/components/NSPageSelectionModal.tsx +1 -3
  56. package/src/components/NSTable.tsx +7 -8
  57. package/src/components/NSTag.tsx +60 -61
  58. package/src/main.ts +0 -2
  59. package/dist/components/NSBoxOTP.d.ts +0 -9
  60. package/dist/components/NSBoxOTP.js +0 -34
  61. package/dist/components/NSBoxOTP.js.map +0 -1
  62. package/dist/components/NSBoxOTP.module.css +0 -11
  63. package/dist/components/NSVerification.d.ts +0 -10
  64. package/dist/components/NSVerification.js +0 -19
  65. package/dist/components/NSVerification.js.map +0 -1
  66. package/dist/components/NSVerification.module.css +0 -23
  67. package/src/components/NSBoxOTP.module.css +0 -11
  68. package/src/components/NSBoxOTP.tsx +0 -66
  69. package/src/components/NSVerification.module.css +0 -23
  70. 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;