@npm_leadtech/legal-lib-components 7.106.3 → 7.106.5
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/images/componentsSvg/LockOutlineIcon.d.ts +7 -0
- package/dist/images/componentsSvg/LockOutlineIcon.js +2 -0
- package/dist/images/componentsSvg/LockOutlineIcon.tsx +19 -0
- package/dist/src/components/molecules/CheckoutSummary/CheckoutSummary.js +3 -3
- package/dist/src/components/molecules/CheckoutSummary/CheckoutSummary.tsx +5 -22
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export const LockOutlineIcon = ({ className = '', fill = '#6D7275' }) => (_jsx("svg", { className: className, width: '20', height: '20', viewBox: '0 0 20 20', fill: 'none', children: _jsx("path", { d: 'M5 18.25C4.54167 18.25 4.14931 18.0868 3.82292 17.7604C3.49653 17.434 3.33333 17.0417 3.33333 16.5833V8.25C3.33333 7.79167 3.49653 7.39931 3.82292 7.07292C4.14931 6.74653 4.54167 6.58333 5 6.58333H5.83333V4.91667C5.83333 3.76389 6.23958 2.78125 7.05208 1.96875C7.86458 1.15625 8.84722 0.75 10 0.75C11.1528 0.75 12.1354 1.15625 12.9479 1.96875C13.7604 2.78125 14.1667 3.76389 14.1667 4.91667V6.58333H15C15.4583 6.58333 15.8507 6.74653 16.1771 7.07292C16.5035 7.39931 16.6667 7.79167 16.6667 8.25V16.5833C16.6667 17.0417 16.5035 17.434 16.1771 17.7604C15.8507 18.0868 15.4583 18.25 15 18.25H5ZM5 16.5833H15V8.25H5V16.5833ZM11.1771 13.5938C11.5035 13.2674 11.6667 12.875 11.6667 12.4167C11.6667 11.9583 11.5035 11.566 11.1771 11.2396C10.8507 10.9132 10.4583 10.75 10 10.75C9.54167 10.75 9.1493 10.9132 8.82292 11.2396C8.49653 11.566 8.33333 11.9583 8.33333 12.4167C8.33333 12.875 8.49653 13.2674 8.82292 13.5938C9.1493 13.9201 9.54167 14.0833 10 14.0833C10.4583 14.0833 10.8507 13.9201 11.1771 13.5938ZM7.5 6.58333H12.5V4.91667C12.5 4.22222 12.2569 3.63194 11.7708 3.14583C11.2847 2.65972 10.6944 2.41667 10 2.41667C9.30555 2.41667 8.71528 2.65972 8.22917 3.14583C7.74305 3.63194 7.5 4.22222 7.5 4.91667V6.58333Z', fill: fill }) }));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React, { type FC } from 'react'
|
|
3
|
+
|
|
4
|
+
interface LockOutlineIconProps {
|
|
5
|
+
className?: string
|
|
6
|
+
fill?: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const LockOutlineIcon: FC<LockOutlineIconProps> = ({
|
|
10
|
+
className = '',
|
|
11
|
+
fill = '#6D7275'
|
|
12
|
+
}: LockOutlineIconProps) => (
|
|
13
|
+
<svg className={className} width='20' height='20' viewBox='0 0 20 20' fill='none'>
|
|
14
|
+
<path
|
|
15
|
+
d='M5 18.25C4.54167 18.25 4.14931 18.0868 3.82292 17.7604C3.49653 17.434 3.33333 17.0417 3.33333 16.5833V8.25C3.33333 7.79167 3.49653 7.39931 3.82292 7.07292C4.14931 6.74653 4.54167 6.58333 5 6.58333H5.83333V4.91667C5.83333 3.76389 6.23958 2.78125 7.05208 1.96875C7.86458 1.15625 8.84722 0.75 10 0.75C11.1528 0.75 12.1354 1.15625 12.9479 1.96875C13.7604 2.78125 14.1667 3.76389 14.1667 4.91667V6.58333H15C15.4583 6.58333 15.8507 6.74653 16.1771 7.07292C16.5035 7.39931 16.6667 7.79167 16.6667 8.25V16.5833C16.6667 17.0417 16.5035 17.434 16.1771 17.7604C15.8507 18.0868 15.4583 18.25 15 18.25H5ZM5 16.5833H15V8.25H5V16.5833ZM11.1771 13.5938C11.5035 13.2674 11.6667 12.875 11.6667 12.4167C11.6667 11.9583 11.5035 11.566 11.1771 11.2396C10.8507 10.9132 10.4583 10.75 10 10.75C9.54167 10.75 9.1493 10.9132 8.82292 11.2396C8.49653 11.566 8.33333 11.9583 8.33333 12.4167C8.33333 12.875 8.49653 13.2674 8.82292 13.5938C9.1493 13.9201 9.54167 14.0833 10 14.0833C10.4583 14.0833 10.8507 13.9201 11.1771 13.5938ZM7.5 6.58333H12.5V4.91667C12.5 4.22222 12.2569 3.63194 11.7708 3.14583C11.2847 2.65972 10.6944 2.41667 10 2.41667C9.30555 2.41667 8.71528 2.65972 8.22917 3.14583C7.74305 3.63194 7.5 4.22222 7.5 4.91667V6.58333Z'
|
|
16
|
+
fill={fill}
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
19
|
+
)
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CheckoutSummaryStyled } from './CheckoutSummary.styled';
|
|
4
|
+
import { BalanceSvg } from '../../../../images/componentsSvg/Balance';
|
|
5
|
+
import { LockOutlineIcon } from '../../../../images/componentsSvg/LockOutlineIcon';
|
|
4
6
|
import checkoutSummaryDocument from '../../../../images/CheckoutSummary/checkout-summary-document-56586a.png';
|
|
5
7
|
const hasPreviewContent = (content) => {
|
|
6
8
|
if (content == null || typeof content === 'boolean')
|
|
@@ -16,9 +18,7 @@ const hasPreviewContent = (content) => {
|
|
|
16
18
|
}
|
|
17
19
|
return false;
|
|
18
20
|
};
|
|
19
|
-
const LockIcon = () => (_jsxs("svg", { "aria-hidden": 'true', width: '20', height: '20', viewBox: '0 0 24 24', fill: 'none', children: [_jsx("rect", { x: '5', y: '10', width: '14', height: '11', rx: '2', fill: 'currentColor' }), _jsx("path", { d: 'M8 10V7a4 4 0 1 1 8 0v3', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round' }), _jsx("circle", { cx: '12', cy: '15', r: '1.25', fill: 'var(--others-white)' })] }));
|
|
20
|
-
const BalanceIcon = () => (_jsx("svg", { "aria-hidden": 'true', width: '16', height: '16', viewBox: '0 0 24 24', fill: 'none', children: _jsx("path", { d: 'M12 3v17m-5 1h10M5 7h14M5 7l-3 6h6L5 7Zm14 0-3 6h6l-3-6Z', stroke: 'currentColor', strokeWidth: '1.7', strokeLinecap: 'round', strokeLinejoin: 'round' }) }));
|
|
21
21
|
export const CheckoutSummary = ({ documentName, documentDescription, verificationLabel, totalDueLabel, totalDueAmount, previewImage, className }) => {
|
|
22
22
|
const previewContent = hasPreviewContent(previewImage) ? previewImage : _jsx("img", { src: checkoutSummaryDocument, alt: '' });
|
|
23
|
-
return (_jsxs(CheckoutSummaryStyled, { className: ['checkout-summary', className].filter(Boolean).join(' '), children: [_jsxs("div", { className: 'checkout-summary__document', children: [_jsxs("div", { className: 'checkout-summary__preview', "aria-hidden": 'true', children: [previewContent, _jsx("span", { className: 'checkout-summary__preview-lock', children: _jsx(
|
|
23
|
+
return (_jsxs(CheckoutSummaryStyled, { className: ['checkout-summary', className].filter(Boolean).join(' '), children: [_jsxs("div", { className: 'checkout-summary__document', children: [_jsxs("div", { className: 'checkout-summary__preview', "aria-hidden": 'true', children: [previewContent, _jsx("span", { className: 'checkout-summary__preview-lock', children: _jsx(LockOutlineIcon, {}) })] }), _jsxs("div", { className: 'checkout-summary__content', children: [_jsxs("span", { className: 'checkout-summary__verification', children: [_jsx(BalanceSvg, { fill: '#936C2F' }), _jsx("span", { children: verificationLabel })] }), _jsx("h2", { className: 'checkout-summary__name', children: documentName }), _jsx("p", { className: 'checkout-summary__description', children: documentDescription })] })] }), _jsx("dl", { className: 'checkout-summary__pricing', children: _jsxs("div", { className: 'checkout-summary__total', children: [_jsx("dt", { children: totalDueLabel }), _jsx("dd", { children: totalDueAmount })] }) })] }));
|
|
24
24
|
};
|
|
@@ -2,6 +2,9 @@ import React, { type FC } from 'react'
|
|
|
2
2
|
|
|
3
3
|
import { type CheckoutSummaryProps } from './CheckoutSummaryProps.types'
|
|
4
4
|
import { CheckoutSummaryStyled } from './CheckoutSummary.styled'
|
|
5
|
+
|
|
6
|
+
import { BalanceSvg } from '../../../../images/componentsSvg/Balance'
|
|
7
|
+
import { LockOutlineIcon } from '../../../../images/componentsSvg/LockOutlineIcon'
|
|
5
8
|
import checkoutSummaryDocument from '../../../../images/CheckoutSummary/checkout-summary-document-56586a.png'
|
|
6
9
|
|
|
7
10
|
const hasPreviewContent = (content: React.ReactNode): boolean => {
|
|
@@ -16,26 +19,6 @@ const hasPreviewContent = (content: React.ReactNode): boolean => {
|
|
|
16
19
|
return false
|
|
17
20
|
}
|
|
18
21
|
|
|
19
|
-
const LockIcon: FC = () => (
|
|
20
|
-
<svg aria-hidden='true' width='20' height='20' viewBox='0 0 24 24' fill='none'>
|
|
21
|
-
<rect x='5' y='10' width='14' height='11' rx='2' fill='currentColor' />
|
|
22
|
-
<path d='M8 10V7a4 4 0 1 1 8 0v3' stroke='currentColor' strokeWidth='2' strokeLinecap='round' />
|
|
23
|
-
<circle cx='12' cy='15' r='1.25' fill='var(--others-white)' />
|
|
24
|
-
</svg>
|
|
25
|
-
)
|
|
26
|
-
|
|
27
|
-
const BalanceIcon: FC = () => (
|
|
28
|
-
<svg aria-hidden='true' width='16' height='16' viewBox='0 0 24 24' fill='none'>
|
|
29
|
-
<path
|
|
30
|
-
d='M12 3v17m-5 1h10M5 7h14M5 7l-3 6h6L5 7Zm14 0-3 6h6l-3-6Z'
|
|
31
|
-
stroke='currentColor'
|
|
32
|
-
strokeWidth='1.7'
|
|
33
|
-
strokeLinecap='round'
|
|
34
|
-
strokeLinejoin='round'
|
|
35
|
-
/>
|
|
36
|
-
</svg>
|
|
37
|
-
)
|
|
38
|
-
|
|
39
22
|
export const CheckoutSummary: FC<CheckoutSummaryProps> = ({
|
|
40
23
|
documentName,
|
|
41
24
|
documentDescription,
|
|
@@ -53,12 +36,12 @@ export const CheckoutSummary: FC<CheckoutSummaryProps> = ({
|
|
|
53
36
|
<div className='checkout-summary__preview' aria-hidden='true'>
|
|
54
37
|
{previewContent}
|
|
55
38
|
<span className='checkout-summary__preview-lock'>
|
|
56
|
-
<
|
|
39
|
+
<LockOutlineIcon />
|
|
57
40
|
</span>
|
|
58
41
|
</div>
|
|
59
42
|
<div className='checkout-summary__content'>
|
|
60
43
|
<span className='checkout-summary__verification'>
|
|
61
|
-
<
|
|
44
|
+
<BalanceSvg fill={'#936C2F'} />
|
|
62
45
|
<span>{verificationLabel}</span>
|
|
63
46
|
</span>
|
|
64
47
|
<h2 className='checkout-summary__name'>{documentName}</h2>
|