@wise/dynamic-flow-client 5.30.0 → 5.30.1

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.
@@ -0,0 +1,38 @@
1
+ import DynamicFlowWise from '../../../../test-utils/DynamicFlowWise';
2
+ import { renderWithStep } from '../../../utils/render-utils';
3
+ export default {
4
+ component: DynamicFlowWise,
5
+ title: 'Spec/Schemas/String/SSN Input',
6
+ parameters: {
7
+ chromatic: { disableSnapshot: false },
8
+ },
9
+ };
10
+ const step = {
11
+ id: 'ssn-input',
12
+ title: 'Verify your identity',
13
+ schemas: [
14
+ {
15
+ $id: '#identity',
16
+ type: 'object',
17
+ displayOrder: ['ssn'],
18
+ required: ['ssn'],
19
+ properties: {
20
+ ssn: {
21
+ type: 'string',
22
+ title: 'Social Security number',
23
+ description: 'Enter your 9-digit Social Security number.',
24
+ control: 'ssn-input',
25
+ displayFormat: '***-**-****',
26
+ },
27
+ },
28
+ },
29
+ ],
30
+ layout: [
31
+ { type: 'form', schemaId: '#identity' },
32
+ { type: 'button', action: { url: '/submit' }, title: 'Submit' },
33
+ ],
34
+ model: { ssn: '123456789' },
35
+ };
36
+ export const SsnInput = {
37
+ render: () => renderWithStep(step),
38
+ };