@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.
- package/package.json +58 -58
- package/src/components/README.md +14 -14
- package/src/components/attribution/PoweredBySmileId.js +42 -42
- package/src/components/camera-permission/CameraPermission.js +140 -140
- package/src/components/camera-permission/CameraPermission.stories.js +27 -27
- package/src/components/combobox/src/Combobox.js +589 -589
- package/src/components/combobox/src/index.js +1 -1
- package/src/components/document/src/DocumentCaptureScreens.js +409 -409
- package/src/components/document/src/DocumentCaptureScreens.stories.js +57 -57
- package/src/components/document/src/README.md +111 -111
- package/src/components/document/src/document-capture/DocumentCapture.js +760 -760
- package/src/components/document/src/document-capture/DocumentCapture.stories.js +78 -78
- package/src/components/document/src/document-capture/README.md +90 -90
- package/src/components/document/src/document-capture/index.js +3 -3
- package/src/components/document/src/document-capture-instructions/DocumentCaptureInstructions.js +499 -499
- package/src/components/document/src/document-capture-instructions/DocumentCaptureInstructions.stories.js +24 -24
- package/src/components/document/src/document-capture-instructions/README.md +56 -56
- package/src/components/document/src/document-capture-instructions/index.js +3 -3
- package/src/components/document/src/document-capture-review/DocumentCaptureReview.js +362 -362
- package/src/components/document/src/document-capture-review/DocumentCaptureReview.stories.js +24 -24
- package/src/components/document/src/document-capture-review/README.md +79 -79
- package/src/components/document/src/document-capture-review/index.js +3 -3
- package/src/components/document/src/index.js +3 -3
- package/src/components/end-user-consent/src/EndUserConsent.js +795 -795
- package/src/components/end-user-consent/src/EndUserConsent.stories.js +29 -29
- package/src/components/end-user-consent/src/index.js +4 -4
- package/src/components/navigation/src/Navigation.js +171 -171
- package/src/components/navigation/src/Navigation.stories.js +24 -24
- package/src/components/navigation/src/index.js +3 -3
- package/src/components/selfie/README.md +225 -225
- package/src/components/selfie/src/SelfieCaptureScreens.js +282 -282
- package/src/components/selfie/src/SelfieCaptureScreens.stories.js +29 -29
- package/src/components/selfie/src/index.js +5 -5
- package/src/components/selfie/src/selfie-capture/SelfieCapture.js +1041 -1010
- package/src/components/selfie/src/selfie-capture/SelfieCapture.stories.js +36 -36
- package/src/components/selfie/src/selfie-capture/index.js +3 -3
- package/src/components/selfie/src/selfie-capture-instructions/SelfieCaptureInstructions.js +657 -648
- package/src/components/selfie/src/selfie-capture-instructions/SelfieCaptureInstructions.stories.js +23 -23
- package/src/components/selfie/src/selfie-capture-instructions/index.js +3 -3
- package/src/components/selfie/src/selfie-capture-review/SelfieCaptureReview.js +347 -347
- package/src/components/selfie/src/selfie-capture-review/SelfieCaptureReview.stories.js +24 -24
- package/src/components/selfie/src/selfie-capture-review/index.js +3 -3
- package/src/components/signature-pad/package-lock.json +3009 -3009
- package/src/components/signature-pad/package.json +30 -30
- package/src/components/signature-pad/src/SignaturePad.js +484 -484
- package/src/components/signature-pad/src/SignaturePad.stories.js +32 -32
- package/src/components/signature-pad/src/index.js +3 -3
- package/src/components/smart-camera-web/src/README.md +207 -207
- package/src/components/smart-camera-web/src/SmartCameraWeb.js +299 -299
- package/src/components/smart-camera-web/src/SmartCameraWeb.stories.js +57 -57
- package/src/components/totp-consent/src/TotpConsent.js +949 -949
- package/src/components/totp-consent/src/index.js +4 -4
- package/src/domain/camera/src/README.md +38 -38
- package/src/domain/camera/src/SmartCamera.js +109 -109
- package/src/domain/constants/src/Constants.js +27 -27
- package/src/domain/file-upload/README.md +35 -35
- package/src/domain/file-upload/src/SmartFileUpload.js +65 -65
- package/src/index.js +5 -5
- package/src/styles/README.md +3 -3
- package/src/styles/src/styles.js +359 -359
- package/src/styles/src/typography.js +52 -52
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import './SmartCameraWeb';
|
|
2
|
-
|
|
3
|
-
const meta = {
|
|
4
|
-
args: {
|
|
5
|
-
'hide-attribution': false,
|
|
6
|
-
'theme-color': '#001096',
|
|
7
|
-
},
|
|
8
|
-
argTypes: {
|
|
9
|
-
'hide-attribution': { control: 'boolean' },
|
|
10
|
-
'theme-color': { control: 'color' },
|
|
11
|
-
},
|
|
12
|
-
component: 'smart-camera-web',
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default meta;
|
|
16
|
-
|
|
17
|
-
export const SmartCameraWeb = {
|
|
18
|
-
render: (args) => `
|
|
19
|
-
<smart-camera-web theme-color='${args['theme-color']}' capture-id show-navigation ${args['hide-attribution'] ? 'hide-attribution' : ''}>
|
|
20
|
-
</smart-camera-web>
|
|
21
|
-
`,
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export const SmartCameraWebWithOutInstructions = {
|
|
25
|
-
render: (args) => `
|
|
26
|
-
<smart-camera-web theme-color='${args['theme-color']}' capture-id hide-instructions ${args['hide-attribution'] ? 'hide-attribution' : ''}>
|
|
27
|
-
</smart-camera-web>
|
|
28
|
-
`,
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export const SmartCameraWebWithOutNavigation = {
|
|
32
|
-
render: (args) => `
|
|
33
|
-
<smart-camera-web theme-color='${args['theme-color']}' capture-id ${args['hide-attribution'] ? 'hide-attribution' : ''}>
|
|
34
|
-
</smart-camera-web>
|
|
35
|
-
`,
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export const SmartCameraWebWithOutBackToHost = {
|
|
39
|
-
render: (args) => `
|
|
40
|
-
<smart-camera-web theme-color='${args['theme-color']}' capture-id show-navigation hide-back-to-host ${args['hide-attribution'] ? 'hide-attribution' : ''}>
|
|
41
|
-
</smart-camera-web>
|
|
42
|
-
`,
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const SmartCameraWebWithOutBackId = {
|
|
46
|
-
render: (args) => `
|
|
47
|
-
<smart-camera-web theme-color='${args['theme-color']}' capture-id show-navigation hide-back-of-id ${args['hide-attribution'] ? 'hide-attribution' : ''}>
|
|
48
|
-
</smart-camera-web>
|
|
49
|
-
`,
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export const SmartCameraWebAgentMode = {
|
|
53
|
-
render: () => `
|
|
54
|
-
<smart-camera-web hide-instructions hide-back-of-id allow-agent-mode='true' show-agent-mode-for-tests>
|
|
55
|
-
</smart-camera-web>
|
|
56
|
-
`,
|
|
57
|
-
};
|
|
1
|
+
import './SmartCameraWeb';
|
|
2
|
+
|
|
3
|
+
const meta = {
|
|
4
|
+
args: {
|
|
5
|
+
'hide-attribution': false,
|
|
6
|
+
'theme-color': '#001096',
|
|
7
|
+
},
|
|
8
|
+
argTypes: {
|
|
9
|
+
'hide-attribution': { control: 'boolean' },
|
|
10
|
+
'theme-color': { control: 'color' },
|
|
11
|
+
},
|
|
12
|
+
component: 'smart-camera-web',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default meta;
|
|
16
|
+
|
|
17
|
+
export const SmartCameraWeb = {
|
|
18
|
+
render: (args) => `
|
|
19
|
+
<smart-camera-web theme-color='${args['theme-color']}' capture-id show-navigation ${args['hide-attribution'] ? 'hide-attribution' : ''}>
|
|
20
|
+
</smart-camera-web>
|
|
21
|
+
`,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const SmartCameraWebWithOutInstructions = {
|
|
25
|
+
render: (args) => `
|
|
26
|
+
<smart-camera-web theme-color='${args['theme-color']}' capture-id hide-instructions ${args['hide-attribution'] ? 'hide-attribution' : ''}>
|
|
27
|
+
</smart-camera-web>
|
|
28
|
+
`,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const SmartCameraWebWithOutNavigation = {
|
|
32
|
+
render: (args) => `
|
|
33
|
+
<smart-camera-web theme-color='${args['theme-color']}' capture-id ${args['hide-attribution'] ? 'hide-attribution' : ''}>
|
|
34
|
+
</smart-camera-web>
|
|
35
|
+
`,
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const SmartCameraWebWithOutBackToHost = {
|
|
39
|
+
render: (args) => `
|
|
40
|
+
<smart-camera-web theme-color='${args['theme-color']}' capture-id show-navigation hide-back-to-host ${args['hide-attribution'] ? 'hide-attribution' : ''}>
|
|
41
|
+
</smart-camera-web>
|
|
42
|
+
`,
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const SmartCameraWebWithOutBackId = {
|
|
46
|
+
render: (args) => `
|
|
47
|
+
<smart-camera-web theme-color='${args['theme-color']}' capture-id show-navigation hide-back-of-id ${args['hide-attribution'] ? 'hide-attribution' : ''}>
|
|
48
|
+
</smart-camera-web>
|
|
49
|
+
`,
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const SmartCameraWebAgentMode = {
|
|
53
|
+
render: () => `
|
|
54
|
+
<smart-camera-web hide-instructions hide-back-of-id allow-agent-mode='true' show-agent-mode-for-tests>
|
|
55
|
+
</smart-camera-web>
|
|
56
|
+
`,
|
|
57
|
+
};
|