biometry-react-components 1.3.0 → 1.3.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/dist/index.esm.js +12 -10
- package/dist/index.js +12 -10
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -7522,7 +7522,7 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 576, onConfirmRecording, o
|
|
|
7522
7522
|
alignItems: 'center',
|
|
7523
7523
|
justifyContent: 'center',
|
|
7524
7524
|
width: rectWidth,
|
|
7525
|
-
height: rectHeight +
|
|
7525
|
+
height: rectHeight + 80,
|
|
7526
7526
|
margin: '0 auto',
|
|
7527
7527
|
...style,
|
|
7528
7528
|
};
|
|
@@ -7573,26 +7573,28 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 576, onConfirmRecording, o
|
|
|
7573
7573
|
alignSelf: 'center',
|
|
7574
7574
|
};
|
|
7575
7575
|
const numberRow = {
|
|
7576
|
+
position: 'absolute',
|
|
7577
|
+
top: 10,
|
|
7578
|
+
left: 12,
|
|
7579
|
+
right: 12,
|
|
7576
7580
|
display: 'flex',
|
|
7577
7581
|
justifyContent: 'center',
|
|
7578
|
-
gap:
|
|
7579
|
-
|
|
7580
|
-
width: '100%',
|
|
7581
|
-
maxWidth: rectWidth - 40,
|
|
7582
|
+
gap: 5,
|
|
7583
|
+
zIndex: 10,
|
|
7582
7584
|
};
|
|
7583
7585
|
const numberBox = {
|
|
7584
7586
|
minWidth: 24,
|
|
7585
7587
|
minHeight: 32,
|
|
7586
|
-
background: '
|
|
7587
|
-
border: '
|
|
7588
|
+
background: 'rgba(0, 0, 0, 0.6)',
|
|
7589
|
+
border: '1.5px solid rgba(255, 255, 255, 0.5)',
|
|
7588
7590
|
borderRadius: 4,
|
|
7589
7591
|
fontSize: 16,
|
|
7590
7592
|
fontWeight: 600,
|
|
7591
|
-
color: '#
|
|
7593
|
+
color: '#fff',
|
|
7592
7594
|
display: 'flex',
|
|
7593
7595
|
alignItems: 'center',
|
|
7594
7596
|
justifyContent: 'center',
|
|
7595
|
-
|
|
7597
|
+
backdropFilter: 'blur(4px)',
|
|
7596
7598
|
transition: 'background 0.3s',
|
|
7597
7599
|
flex: '1',
|
|
7598
7600
|
maxWidth: '28px',
|
|
@@ -7712,7 +7714,7 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 576, onConfirmRecording, o
|
|
|
7712
7714
|
background: 'rgba(0,0,0,0.4)',
|
|
7713
7715
|
zIndex: 1,
|
|
7714
7716
|
borderRadius: noShadow ? 0 : 8,
|
|
7715
|
-
} }), jsxs("div", { className: "facerecorder-oval-area", style: ovalArea, children: [jsx("span", { className: "facerecorder-guidance-text", style: guidanceText, children: "Place your face in the oval" }), jsx("div", { className: "facerecorder-oval-dashed", style: ovalDashed })] }), state === 'countdown' && (jsx("div", { style: prepTimerStyle, children: prepTimer })), state === 'recording' && (jsx("div", { style: timerStyle, children: recordTimer })), (state === 'recording' || state === 'preparation') && (jsxs("div", { style: soundwaveStyle, children: [jsx("div", { style: { ...barBase, height: `${8 + micLevel * 30}px` } }), jsx("div", { style: { ...barBase, height: `${4 + micLevel * 40}px` } }), jsx("div", { style: { ...barBase, height: `${10 + micLevel * 20}px` } })] }))
|
|
7717
|
+
} }), jsxs("div", { className: "facerecorder-oval-area", style: ovalArea, children: [jsx("span", { className: "facerecorder-guidance-text", style: guidanceText, children: "Place your face in the oval" }), jsx("div", { className: "facerecorder-oval-dashed", style: ovalDashed })] }), state === 'countdown' && (jsx("div", { style: prepTimerStyle, children: prepTimer })), state === 'recording' && (jsx("div", { style: timerStyle, children: recordTimer })), (state === 'recording' || state === 'preparation') && (jsxs("div", { style: soundwaveStyle, children: [jsx("div", { style: { ...barBase, height: `${8 + micLevel * 30}px` } }), jsx("div", { style: { ...barBase, height: `${4 + micLevel * 40}px` } }), jsx("div", { style: { ...barBase, height: `${10 + micLevel * 20}px` } })] })), jsx("div", { style: numberRow, children: (state === 'recording' ? digits : Array(DIGITS_NUMBER$1).fill('*')).map((num, i) => (jsx("div", { style: numberBox, children: num }, i))) })] }), state === 'preparation' && (jsx("button", { type: "button", style: actionButton, onClick: startRecording, children: "Start recording" })), state === 'recording' && (jsx("button", { type: "button", style: { ...actionButton, background: '#d32f2f' }, onClick: handleCancel, children: "Cancel" }))] })), state === 'processing' && (jsx(Fragment, { children: jsx("div", { className: "facerecorder-processing", style: preview, children: jsxs("div", { style: {
|
|
7716
7718
|
display: 'flex',
|
|
7717
7719
|
flexDirection: 'column',
|
|
7718
7720
|
alignItems: 'center',
|
package/dist/index.js
CHANGED
|
@@ -7522,7 +7522,7 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 576, onConfirmRecording, o
|
|
|
7522
7522
|
alignItems: 'center',
|
|
7523
7523
|
justifyContent: 'center',
|
|
7524
7524
|
width: rectWidth,
|
|
7525
|
-
height: rectHeight +
|
|
7525
|
+
height: rectHeight + 80,
|
|
7526
7526
|
margin: '0 auto',
|
|
7527
7527
|
...style,
|
|
7528
7528
|
};
|
|
@@ -7573,26 +7573,28 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 576, onConfirmRecording, o
|
|
|
7573
7573
|
alignSelf: 'center',
|
|
7574
7574
|
};
|
|
7575
7575
|
const numberRow = {
|
|
7576
|
+
position: 'absolute',
|
|
7577
|
+
top: 10,
|
|
7578
|
+
left: 12,
|
|
7579
|
+
right: 12,
|
|
7576
7580
|
display: 'flex',
|
|
7577
7581
|
justifyContent: 'center',
|
|
7578
|
-
gap:
|
|
7579
|
-
|
|
7580
|
-
width: '100%',
|
|
7581
|
-
maxWidth: rectWidth - 40,
|
|
7582
|
+
gap: 5,
|
|
7583
|
+
zIndex: 10,
|
|
7582
7584
|
};
|
|
7583
7585
|
const numberBox = {
|
|
7584
7586
|
minWidth: 24,
|
|
7585
7587
|
minHeight: 32,
|
|
7586
|
-
background: '
|
|
7587
|
-
border: '
|
|
7588
|
+
background: 'rgba(0, 0, 0, 0.6)',
|
|
7589
|
+
border: '1.5px solid rgba(255, 255, 255, 0.5)',
|
|
7588
7590
|
borderRadius: 4,
|
|
7589
7591
|
fontSize: 16,
|
|
7590
7592
|
fontWeight: 600,
|
|
7591
|
-
color: '#
|
|
7593
|
+
color: '#fff',
|
|
7592
7594
|
display: 'flex',
|
|
7593
7595
|
alignItems: 'center',
|
|
7594
7596
|
justifyContent: 'center',
|
|
7595
|
-
|
|
7597
|
+
backdropFilter: 'blur(4px)',
|
|
7596
7598
|
transition: 'background 0.3s',
|
|
7597
7599
|
flex: '1',
|
|
7598
7600
|
maxWidth: '28px',
|
|
@@ -7712,7 +7714,7 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 576, onConfirmRecording, o
|
|
|
7712
7714
|
background: 'rgba(0,0,0,0.4)',
|
|
7713
7715
|
zIndex: 1,
|
|
7714
7716
|
borderRadius: noShadow ? 0 : 8,
|
|
7715
|
-
} }), jsxRuntime.jsxs("div", { className: "facerecorder-oval-area", style: ovalArea, children: [jsxRuntime.jsx("span", { className: "facerecorder-guidance-text", style: guidanceText, children: "Place your face in the oval" }), jsxRuntime.jsx("div", { className: "facerecorder-oval-dashed", style: ovalDashed })] }), state === 'countdown' && (jsxRuntime.jsx("div", { style: prepTimerStyle, children: prepTimer })), state === 'recording' && (jsxRuntime.jsx("div", { style: timerStyle, children: recordTimer })), (state === 'recording' || state === 'preparation') && (jsxRuntime.jsxs("div", { style: soundwaveStyle, children: [jsxRuntime.jsx("div", { style: { ...barBase, height: `${8 + micLevel * 30}px` } }), jsxRuntime.jsx("div", { style: { ...barBase, height: `${4 + micLevel * 40}px` } }), jsxRuntime.jsx("div", { style: { ...barBase, height: `${10 + micLevel * 20}px` } })] }))
|
|
7717
|
+
} }), jsxRuntime.jsxs("div", { className: "facerecorder-oval-area", style: ovalArea, children: [jsxRuntime.jsx("span", { className: "facerecorder-guidance-text", style: guidanceText, children: "Place your face in the oval" }), jsxRuntime.jsx("div", { className: "facerecorder-oval-dashed", style: ovalDashed })] }), state === 'countdown' && (jsxRuntime.jsx("div", { style: prepTimerStyle, children: prepTimer })), state === 'recording' && (jsxRuntime.jsx("div", { style: timerStyle, children: recordTimer })), (state === 'recording' || state === 'preparation') && (jsxRuntime.jsxs("div", { style: soundwaveStyle, children: [jsxRuntime.jsx("div", { style: { ...barBase, height: `${8 + micLevel * 30}px` } }), jsxRuntime.jsx("div", { style: { ...barBase, height: `${4 + micLevel * 40}px` } }), jsxRuntime.jsx("div", { style: { ...barBase, height: `${10 + micLevel * 20}px` } })] })), jsxRuntime.jsx("div", { style: numberRow, children: (state === 'recording' ? digits : Array(DIGITS_NUMBER$1).fill('*')).map((num, i) => (jsxRuntime.jsx("div", { style: numberBox, children: num }, i))) })] }), state === 'preparation' && (jsxRuntime.jsx("button", { type: "button", style: actionButton, onClick: startRecording, children: "Start recording" })), state === 'recording' && (jsxRuntime.jsx("button", { type: "button", style: { ...actionButton, background: '#d32f2f' }, onClick: handleCancel, children: "Cancel" }))] })), state === 'processing' && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx("div", { className: "facerecorder-processing", style: preview, children: jsxRuntime.jsxs("div", { style: {
|
|
7716
7718
|
display: 'flex',
|
|
7717
7719
|
flexDirection: 'column',
|
|
7718
7720
|
alignItems: 'center',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "biometry-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React UI component library for capturing high-quality biometric data (voice, face, documents, video) to facilitate integration with 'Biometry' services",
|
|
6
6
|
"main": "dist/index.js",
|