@parafin/react 1.0.0 → 1.0.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.
- package/index.tsx +3 -1
- package/out/index.d.ts +1 -0
- package/out/index.js +2 -1
- package/package.json +1 -1
package/index.tsx
CHANGED
|
@@ -13,6 +13,7 @@ type OptInFields = {
|
|
|
13
13
|
}[]
|
|
14
14
|
routingNumber?: string
|
|
15
15
|
accountNumberLastFour: string
|
|
16
|
+
bankAccountCurrencyCode?: string
|
|
16
17
|
email: string
|
|
17
18
|
phoneNumber: string
|
|
18
19
|
address: {
|
|
@@ -36,7 +37,7 @@ const ParafinWidget = (props: {
|
|
|
36
37
|
try {
|
|
37
38
|
const iframeRef = useRef<HTMLIFrameElement>(null)
|
|
38
39
|
const [iframeKey, setIframeKey] = useState(0)
|
|
39
|
-
const [iframeHeight, setIframeHeight] = useState('
|
|
40
|
+
const [iframeHeight, setIframeHeight] = useState('258px')
|
|
40
41
|
const [borderColor, setBorderColor] = useState('#E8E8E8')
|
|
41
42
|
const [borderRadius, setBorderRadius] = useState('16px')
|
|
42
43
|
|
|
@@ -110,6 +111,7 @@ const ParafinWidget = (props: {
|
|
|
110
111
|
backgroundColor: '#fff',
|
|
111
112
|
border: `1px solid ${borderColor}`,
|
|
112
113
|
borderRadius: borderRadius,
|
|
114
|
+
transition: 'border 0.2s, border-radius 0.2s',
|
|
113
115
|
boxSizing: 'border-box',
|
|
114
116
|
}}
|
|
115
117
|
/>
|
package/out/index.d.ts
CHANGED
package/out/index.js
CHANGED
|
@@ -5,7 +5,7 @@ const ParafinWidget = (props) => {
|
|
|
5
5
|
try {
|
|
6
6
|
const iframeRef = useRef(null);
|
|
7
7
|
const [iframeKey, setIframeKey] = useState(0);
|
|
8
|
-
const [iframeHeight, setIframeHeight] = useState('
|
|
8
|
+
const [iframeHeight, setIframeHeight] = useState('258px');
|
|
9
9
|
const [borderColor, setBorderColor] = useState('#E8E8E8');
|
|
10
10
|
const [borderRadius, setBorderRadius] = useState('16px');
|
|
11
11
|
const getBaseUrl = () => {
|
|
@@ -68,6 +68,7 @@ const ParafinWidget = (props) => {
|
|
|
68
68
|
backgroundColor: '#fff',
|
|
69
69
|
border: `1px solid ${borderColor}`,
|
|
70
70
|
borderRadius: borderRadius,
|
|
71
|
+
transition: 'border 0.2s, border-radius 0.2s',
|
|
71
72
|
boxSizing: 'border-box',
|
|
72
73
|
} }, iframeKey));
|
|
73
74
|
}
|