@smileid/web-components 2.0.1 → 2.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.
Files changed (61) hide show
  1. package/package.json +58 -58
  2. package/src/components/README.md +14 -14
  3. package/src/components/attribution/PoweredBySmileId.js +42 -42
  4. package/src/components/camera-permission/CameraPermission.js +140 -140
  5. package/src/components/camera-permission/CameraPermission.stories.js +27 -27
  6. package/src/components/combobox/src/Combobox.js +589 -589
  7. package/src/components/combobox/src/index.js +1 -1
  8. package/src/components/document/src/DocumentCaptureScreens.js +409 -409
  9. package/src/components/document/src/DocumentCaptureScreens.stories.js +57 -57
  10. package/src/components/document/src/README.md +111 -111
  11. package/src/components/document/src/document-capture/DocumentCapture.js +760 -760
  12. package/src/components/document/src/document-capture/DocumentCapture.stories.js +78 -78
  13. package/src/components/document/src/document-capture/README.md +90 -90
  14. package/src/components/document/src/document-capture/index.js +3 -3
  15. package/src/components/document/src/document-capture-instructions/DocumentCaptureInstructions.js +499 -499
  16. package/src/components/document/src/document-capture-instructions/DocumentCaptureInstructions.stories.js +24 -24
  17. package/src/components/document/src/document-capture-instructions/README.md +56 -56
  18. package/src/components/document/src/document-capture-instructions/index.js +3 -3
  19. package/src/components/document/src/document-capture-review/DocumentCaptureReview.js +362 -362
  20. package/src/components/document/src/document-capture-review/DocumentCaptureReview.stories.js +24 -24
  21. package/src/components/document/src/document-capture-review/README.md +79 -79
  22. package/src/components/document/src/document-capture-review/index.js +3 -3
  23. package/src/components/document/src/index.js +3 -3
  24. package/src/components/end-user-consent/src/EndUserConsent.js +795 -795
  25. package/src/components/end-user-consent/src/EndUserConsent.stories.js +29 -29
  26. package/src/components/end-user-consent/src/index.js +4 -4
  27. package/src/components/navigation/src/Navigation.js +171 -171
  28. package/src/components/navigation/src/Navigation.stories.js +24 -24
  29. package/src/components/navigation/src/index.js +3 -3
  30. package/src/components/selfie/README.md +225 -225
  31. package/src/components/selfie/src/SelfieCaptureScreens.js +282 -282
  32. package/src/components/selfie/src/SelfieCaptureScreens.stories.js +29 -29
  33. package/src/components/selfie/src/index.js +5 -5
  34. package/src/components/selfie/src/selfie-capture/SelfieCapture.js +1041 -1010
  35. package/src/components/selfie/src/selfie-capture/SelfieCapture.stories.js +36 -36
  36. package/src/components/selfie/src/selfie-capture/index.js +3 -3
  37. package/src/components/selfie/src/selfie-capture-instructions/SelfieCaptureInstructions.js +657 -648
  38. package/src/components/selfie/src/selfie-capture-instructions/SelfieCaptureInstructions.stories.js +23 -23
  39. package/src/components/selfie/src/selfie-capture-instructions/index.js +3 -3
  40. package/src/components/selfie/src/selfie-capture-review/SelfieCaptureReview.js +347 -347
  41. package/src/components/selfie/src/selfie-capture-review/SelfieCaptureReview.stories.js +24 -24
  42. package/src/components/selfie/src/selfie-capture-review/index.js +3 -3
  43. package/src/components/signature-pad/package-lock.json +3009 -3009
  44. package/src/components/signature-pad/package.json +30 -30
  45. package/src/components/signature-pad/src/SignaturePad.js +484 -484
  46. package/src/components/signature-pad/src/SignaturePad.stories.js +32 -32
  47. package/src/components/signature-pad/src/index.js +3 -3
  48. package/src/components/smart-camera-web/src/README.md +207 -207
  49. package/src/components/smart-camera-web/src/SmartCameraWeb.js +299 -299
  50. package/src/components/smart-camera-web/src/SmartCameraWeb.stories.js +57 -57
  51. package/src/components/totp-consent/src/TotpConsent.js +949 -949
  52. package/src/components/totp-consent/src/index.js +4 -4
  53. package/src/domain/camera/src/README.md +38 -38
  54. package/src/domain/camera/src/SmartCamera.js +109 -109
  55. package/src/domain/constants/src/Constants.js +27 -27
  56. package/src/domain/file-upload/README.md +35 -35
  57. package/src/domain/file-upload/src/SmartFileUpload.js +65 -65
  58. package/src/index.js +5 -5
  59. package/src/styles/README.md +3 -3
  60. package/src/styles/src/styles.js +359 -359
  61. package/src/styles/src/typography.js +52 -52
@@ -1,24 +1,24 @@
1
- import './index';
2
-
3
- const meta = {
4
- argTypes: {
5
- 'theme-color': { control: 'color' },
6
- },
7
- component: 'document-capture-instructions',
8
- };
9
-
10
- export default meta;
11
-
12
- export const DocumentInstruction = {
13
- args: {
14
- 'theme-color': '#001096',
15
- },
16
- render: (args) => `
17
- <document-capture-instructions
18
- show-navigation
19
- document-capture-modes="camera,upload"
20
- theme-color='${args['theme-color']}'
21
- >
22
- </document-capture-instructions>
23
- `,
24
- };
1
+ import './index';
2
+
3
+ const meta = {
4
+ argTypes: {
5
+ 'theme-color': { control: 'color' },
6
+ },
7
+ component: 'document-capture-instructions',
8
+ };
9
+
10
+ export default meta;
11
+
12
+ export const DocumentInstruction = {
13
+ args: {
14
+ 'theme-color': '#001096',
15
+ },
16
+ render: (args) => `
17
+ <document-capture-instructions
18
+ show-navigation
19
+ document-capture-modes="camera,upload"
20
+ theme-color='${args['theme-color']}'
21
+ >
22
+ </document-capture-instructions>
23
+ `,
24
+ };
@@ -1,56 +1,56 @@
1
- # Document Instruction Web Component Guide
2
-
3
- ## Importing the Component
4
-
5
- To incorporate the DocumentInstruction component into your project, import it into your JavaScript file as follows:
6
-
7
- ```js
8
- import '@smileid/document-capture/document-capture-instructions';
9
- ```
10
-
11
- ## Using the Component
12
-
13
- The `DocumentInstruction` component is designed to provide users with guidance for capturing document images. It can be integrated into your web page as a custom HTML element:
14
-
15
- ```html
16
- <document-capture-instructions></document-capture-instructions>
17
- ```
18
-
19
- ### Customizing the Component
20
-
21
- Adjust the component's behavior and appearance using the following attributes:
22
-
23
- #### `show-navigation`
24
-
25
- Displays navigation controls, facilitating user interaction during the document capture process. This attribute is boolean and does not require a value.
26
-
27
- ```html
28
- <document-capture-instructions show-navigation></document-capture-instructions>
29
- ```
30
-
31
- #### `document-capture-modes`
32
-
33
- Determines the available modes for document capture. This attribute accepts a comma-separated string specifying the modes:
34
-
35
- - `camera`: Enables capturing document images using the camera.
36
- - `upload`: Allows uploading document images from the device.
37
- - `camera,upload`: Offers users a choice between capturing images using the camera or uploading from the device.
38
-
39
- ```html
40
- <document-capture-instructions
41
- document-capture-modes="camera,upload"
42
- ></document-capture-instructions>
43
- ```
44
-
45
- ## Example
46
-
47
- Here is a complete example demonstrating how to embed the `DocumentInstruction` component with navigation controls and both capture modes enabled:
48
-
49
- ```html
50
- <document-capture-instructions
51
- show-navigation
52
- document-capture-modes="camera,upload"
53
- ></document-capture-instructions>
54
- ```
55
-
56
- This setup provides an intuitive interface for users, enabling them to receive instructions, navigate through the capture process, and choose their preferred method of document image submission.
1
+ # Document Instruction Web Component Guide
2
+
3
+ ## Importing the Component
4
+
5
+ To incorporate the DocumentInstruction component into your project, import it into your JavaScript file as follows:
6
+
7
+ ```js
8
+ import '@smileid/document-capture/document-capture-instructions';
9
+ ```
10
+
11
+ ## Using the Component
12
+
13
+ The `DocumentInstruction` component is designed to provide users with guidance for capturing document images. It can be integrated into your web page as a custom HTML element:
14
+
15
+ ```html
16
+ <document-capture-instructions></document-capture-instructions>
17
+ ```
18
+
19
+ ### Customizing the Component
20
+
21
+ Adjust the component's behavior and appearance using the following attributes:
22
+
23
+ #### `show-navigation`
24
+
25
+ Displays navigation controls, facilitating user interaction during the document capture process. This attribute is boolean and does not require a value.
26
+
27
+ ```html
28
+ <document-capture-instructions show-navigation></document-capture-instructions>
29
+ ```
30
+
31
+ #### `document-capture-modes`
32
+
33
+ Determines the available modes for document capture. This attribute accepts a comma-separated string specifying the modes:
34
+
35
+ - `camera`: Enables capturing document images using the camera.
36
+ - `upload`: Allows uploading document images from the device.
37
+ - `camera,upload`: Offers users a choice between capturing images using the camera or uploading from the device.
38
+
39
+ ```html
40
+ <document-capture-instructions
41
+ document-capture-modes="camera,upload"
42
+ ></document-capture-instructions>
43
+ ```
44
+
45
+ ## Example
46
+
47
+ Here is a complete example demonstrating how to embed the `DocumentInstruction` component with navigation controls and both capture modes enabled:
48
+
49
+ ```html
50
+ <document-capture-instructions
51
+ show-navigation
52
+ document-capture-modes="camera,upload"
53
+ ></document-capture-instructions>
54
+ ```
55
+
56
+ This setup provides an intuitive interface for users, enabling them to receive instructions, navigate through the capture process, and choose their preferred method of document image submission.
@@ -1,3 +1,3 @@
1
- import DocumentInstruction from './DocumentCaptureInstructions';
2
-
3
- export default DocumentInstruction;
1
+ import DocumentInstruction from './DocumentCaptureInstructions';
2
+
3
+ export default DocumentInstruction;