@npm_leadtech/legal-lib-components 7.84.2 → 7.84.3
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/src/components/atoms/MessageInformation/MessageInformation.js +4 -2
- package/dist/src/components/atoms/MessageInformation/MessageInformation.styled.js +1 -0
- package/dist/src/components/atoms/MessageInformation/MessageInformation.styled.ts +1 -0
- package/dist/src/components/atoms/MessageInformation/MessageInformation.tsx +17 -4
- package/dist/src/components/atoms/MessageInformation/MessageInformationProps.types.d.ts +1 -0
- package/dist/src/components/atoms/MessageInformation/MessageInformationProps.types.ts +1 -0
- package/dist/src/components/molecules/CountDownMessage/CountDownMessage.js +2 -2
- package/dist/src/components/molecules/CountDownMessage/CountDownMessage.tsx +10 -2
- package/dist/src/components/molecules/CountDownMessage/CountDownMessageProps.types.d.ts +1 -0
- package/dist/src/components/molecules/CountDownMessage/CountDownMessageProps.types.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { MessageInformationStyled } from './MessageInformation.styled';
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const ExclamationIcon = (_jsx("svg", { viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg', children: _jsx("path", { d: 'M20.5601 9.21496L22.4211 11.3353C22.7523 11.7127 22.7523 12.2772 22.4211 12.6546L20.5601 14.775L20.8194 17.582C20.8656 18.0816 20.5344 18.538 20.0452 18.6491L17.2901 19.275L15.8483 21.7009C15.5918 22.1324 15.0553 22.3069 14.5941 22.1088L12.0001 20.995L9.40727 22.116C8.94569 22.3155 8.40771 22.1413 8.15079 21.709L6.71008 19.285L3.95478 18.6591C3.46563 18.548 3.13448 18.0917 3.1805 17.5922L3.44008 14.775L1.57802 12.6534C1.24723 12.2765 1.24673 11.7129 1.57685 11.3355L3.44008 9.20496L3.18095 6.40025C3.1347 5.89967 3.46726 5.44257 3.95778 5.33251L6.71008 4.71496L8.15191 2.28903C8.40835 1.85756 8.94491 1.68303 9.40611 1.88108L12.0001 2.99496L14.5941 1.88108C15.0553 1.68303 15.5918 1.85756 15.8483 2.28903L17.2901 4.71496L20.0452 5.34077C20.5344 5.4519 20.8656 5.90835 20.8194 6.40793L20.5601 9.21496ZM18.7501 16.895L18.4901 14.105L20.3401 11.995L18.4901 9.88496L18.7501 7.09496L16.0101 6.47496L14.5801 4.06496L12.0001 5.17496L9.42008 4.07496L7.99008 6.48496L5.25008 7.09496L5.51008 9.87496L3.66008 11.995L5.51008 14.095L5.25008 16.895L7.99008 17.515L9.42008 19.925L12.0001 18.815L14.5801 19.925L16.0101 17.515L18.7501 16.895ZM11.0001 15.995C11.0001 15.4427 11.4478 14.995 12.0001 14.995C12.5524 14.995 13.0001 15.4427 13.0001 15.995C13.0001 16.5472 12.5524 16.995 12.0001 16.995C11.4478 16.995 11.0001 16.5472 11.0001 15.995ZM12.0001 6.99496C11.4478 6.99496 11.0001 7.44267 11.0001 7.99496V12.995C11.0001 13.5472 11.4478 13.995 12.0001 13.995C12.5524 13.995 13.0001 13.5472 13.0001 12.995V7.99496C13.0001 7.44267 12.5524 6.99496 12.0001 6.99496Z' }) }));
|
|
4
|
+
const ClockIcon = (_jsx("svg", { width: '20', height: '20', viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', children: _jsx("path", { d: 'M10.8337 10.5V7.5C10.8337 7.26389 10.7538 7.06597 10.5941 6.90625C10.4344 6.74653 10.2364 6.66667 10.0003 6.66667C9.76422 6.66667 9.5663 6.74653 9.40658 6.90625C9.24685 7.06597 9.16699 7.26389 9.16699 7.5V10.8125C9.16699 10.9236 9.18783 11.0312 9.22949 11.1354C9.27116 11.2396 9.33366 11.3333 9.41699 11.4167L11.7503 13.75C11.9031 13.9028 12.0975 13.9792 12.3337 13.9792C12.5698 13.9792 12.7642 13.9028 12.917 13.75C13.0698 13.5972 13.1462 13.4028 13.1462 13.1667C13.1462 12.9306 13.0698 12.7361 12.917 12.5833L10.8337 10.5ZM10.0003 18.3333C8.95866 18.3333 7.98296 18.1354 7.07324 17.7396C6.16352 17.3438 5.37185 16.809 4.69824 16.1354C4.02463 15.4618 3.48991 14.6701 3.09408 13.7604C2.69824 12.8507 2.50033 11.875 2.50033 10.8333C2.50033 9.79167 2.69824 8.81597 3.09408 7.90625C3.48991 6.99653 4.02463 6.20486 4.69824 5.53125C5.37185 4.85764 6.16352 4.32292 7.07324 3.92708C7.98296 3.53125 8.95866 3.33333 10.0003 3.33333C11.042 3.33333 12.0177 3.53125 12.9274 3.92708C13.8371 4.32292 14.6288 4.85764 15.3024 5.53125C15.976 6.20486 16.5107 6.99653 16.9066 7.90625C17.3024 8.81597 17.5003 9.79167 17.5003 10.8333C17.5003 11.875 17.3024 12.8507 16.9066 13.7604C16.5107 14.6701 15.976 15.4618 15.3024 16.1354C14.6288 16.809 13.8371 17.3438 12.9274 17.7396C12.0177 18.1354 11.042 18.3333 10.0003 18.3333ZM1.70866 6.08333C1.55588 5.93056 1.47949 5.73611 1.47949 5.5C1.47949 5.26389 1.55588 5.06944 1.70866 4.91667L4.08366 2.54167C4.23644 2.38889 4.43088 2.3125 4.66699 2.3125C4.9031 2.3125 5.09755 2.38889 5.25033 2.54167C5.4031 2.69444 5.47949 2.88889 5.47949 3.125C5.47949 3.36111 5.4031 3.55556 5.25033 3.70833L2.87533 6.08333C2.72255 6.23611 2.5281 6.3125 2.29199 6.3125C2.05588 6.3125 1.86144 6.23611 1.70866 6.08333ZM18.292 6.08333C18.1392 6.23611 17.9448 6.3125 17.7087 6.3125C17.4725 6.3125 17.2781 6.23611 17.1253 6.08333L14.7503 3.70833C14.5975 3.55556 14.5212 3.36111 14.5212 3.125C14.5212 2.88889 14.5975 2.69444 14.7503 2.54167C14.9031 2.38889 15.0975 2.3125 15.3337 2.3125C15.5698 2.3125 15.7642 2.38889 15.917 2.54167L18.292 4.91667C18.4448 5.06944 18.5212 5.26389 18.5212 5.5C18.5212 5.73611 18.4448 5.93056 18.292 6.08333Z', fill: '#3D4042' }) }));
|
|
5
|
+
const MessageInformation = ({ noImg, text, time, centered, iconReloj = false }) => {
|
|
6
|
+
return (_jsxs(MessageInformationStyled, { className: `message-information ${centered && 'text-center'}`, children: [_jsx("div", { className: `message-information__icon ${noImg ? 'hide' : ''}`, children: iconReloj ? ClockIcon : ExclamationIcon }), _jsxs("p", { className: `message-information__text`, children: [time != null && _jsxs("span", { className: `message-information__text__time ${noImg && 'regular'}`, children: [time, "' "] }), text] })] }));
|
|
5
7
|
};
|
|
6
8
|
export default MessageInformation;
|
|
@@ -3,13 +3,26 @@ import React, { type FC } from 'react'
|
|
|
3
3
|
import { type MessageInformationProps } from './MessageInformationProps.types'
|
|
4
4
|
import { MessageInformationStyled } from './MessageInformation.styled'
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const ExclamationIcon = (
|
|
7
|
+
<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'>
|
|
8
|
+
<path d='M20.5601 9.21496L22.4211 11.3353C22.7523 11.7127 22.7523 12.2772 22.4211 12.6546L20.5601 14.775L20.8194 17.582C20.8656 18.0816 20.5344 18.538 20.0452 18.6491L17.2901 19.275L15.8483 21.7009C15.5918 22.1324 15.0553 22.3069 14.5941 22.1088L12.0001 20.995L9.40727 22.116C8.94569 22.3155 8.40771 22.1413 8.15079 21.709L6.71008 19.285L3.95478 18.6591C3.46563 18.548 3.13448 18.0917 3.1805 17.5922L3.44008 14.775L1.57802 12.6534C1.24723 12.2765 1.24673 11.7129 1.57685 11.3355L3.44008 9.20496L3.18095 6.40025C3.1347 5.89967 3.46726 5.44257 3.95778 5.33251L6.71008 4.71496L8.15191 2.28903C8.40835 1.85756 8.94491 1.68303 9.40611 1.88108L12.0001 2.99496L14.5941 1.88108C15.0553 1.68303 15.5918 1.85756 15.8483 2.28903L17.2901 4.71496L20.0452 5.34077C20.5344 5.4519 20.8656 5.90835 20.8194 6.40793L20.5601 9.21496ZM18.7501 16.895L18.4901 14.105L20.3401 11.995L18.4901 9.88496L18.7501 7.09496L16.0101 6.47496L14.5801 4.06496L12.0001 5.17496L9.42008 4.07496L7.99008 6.48496L5.25008 7.09496L5.51008 9.87496L3.66008 11.995L5.51008 14.095L5.25008 16.895L7.99008 17.515L9.42008 19.925L12.0001 18.815L14.5801 19.925L16.0101 17.515L18.7501 16.895ZM11.0001 15.995C11.0001 15.4427 11.4478 14.995 12.0001 14.995C12.5524 14.995 13.0001 15.4427 13.0001 15.995C13.0001 16.5472 12.5524 16.995 12.0001 16.995C11.4478 16.995 11.0001 16.5472 11.0001 15.995ZM12.0001 6.99496C11.4478 6.99496 11.0001 7.44267 11.0001 7.99496V12.995C11.0001 13.5472 11.4478 13.995 12.0001 13.995C12.5524 13.995 13.0001 13.5472 13.0001 12.995V7.99496C13.0001 7.44267 12.5524 6.99496 12.0001 6.99496Z' />
|
|
9
|
+
</svg>
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
const ClockIcon = (
|
|
13
|
+
<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'>
|
|
14
|
+
<path
|
|
15
|
+
d='M10.8337 10.5V7.5C10.8337 7.26389 10.7538 7.06597 10.5941 6.90625C10.4344 6.74653 10.2364 6.66667 10.0003 6.66667C9.76422 6.66667 9.5663 6.74653 9.40658 6.90625C9.24685 7.06597 9.16699 7.26389 9.16699 7.5V10.8125C9.16699 10.9236 9.18783 11.0312 9.22949 11.1354C9.27116 11.2396 9.33366 11.3333 9.41699 11.4167L11.7503 13.75C11.9031 13.9028 12.0975 13.9792 12.3337 13.9792C12.5698 13.9792 12.7642 13.9028 12.917 13.75C13.0698 13.5972 13.1462 13.4028 13.1462 13.1667C13.1462 12.9306 13.0698 12.7361 12.917 12.5833L10.8337 10.5ZM10.0003 18.3333C8.95866 18.3333 7.98296 18.1354 7.07324 17.7396C6.16352 17.3438 5.37185 16.809 4.69824 16.1354C4.02463 15.4618 3.48991 14.6701 3.09408 13.7604C2.69824 12.8507 2.50033 11.875 2.50033 10.8333C2.50033 9.79167 2.69824 8.81597 3.09408 7.90625C3.48991 6.99653 4.02463 6.20486 4.69824 5.53125C5.37185 4.85764 6.16352 4.32292 7.07324 3.92708C7.98296 3.53125 8.95866 3.33333 10.0003 3.33333C11.042 3.33333 12.0177 3.53125 12.9274 3.92708C13.8371 4.32292 14.6288 4.85764 15.3024 5.53125C15.976 6.20486 16.5107 6.99653 16.9066 7.90625C17.3024 8.81597 17.5003 9.79167 17.5003 10.8333C17.5003 11.875 17.3024 12.8507 16.9066 13.7604C16.5107 14.6701 15.976 15.4618 15.3024 16.1354C14.6288 16.809 13.8371 17.3438 12.9274 17.7396C12.0177 18.1354 11.042 18.3333 10.0003 18.3333ZM1.70866 6.08333C1.55588 5.93056 1.47949 5.73611 1.47949 5.5C1.47949 5.26389 1.55588 5.06944 1.70866 4.91667L4.08366 2.54167C4.23644 2.38889 4.43088 2.3125 4.66699 2.3125C4.9031 2.3125 5.09755 2.38889 5.25033 2.54167C5.4031 2.69444 5.47949 2.88889 5.47949 3.125C5.47949 3.36111 5.4031 3.55556 5.25033 3.70833L2.87533 6.08333C2.72255 6.23611 2.5281 6.3125 2.29199 6.3125C2.05588 6.3125 1.86144 6.23611 1.70866 6.08333ZM18.292 6.08333C18.1392 6.23611 17.9448 6.3125 17.7087 6.3125C17.4725 6.3125 17.2781 6.23611 17.1253 6.08333L14.7503 3.70833C14.5975 3.55556 14.5212 3.36111 14.5212 3.125C14.5212 2.88889 14.5975 2.69444 14.7503 2.54167C14.9031 2.38889 15.0975 2.3125 15.3337 2.3125C15.5698 2.3125 15.7642 2.38889 15.917 2.54167L18.292 4.91667C18.4448 5.06944 18.5212 5.26389 18.5212 5.5C18.5212 5.73611 18.4448 5.93056 18.292 6.08333Z'
|
|
16
|
+
fill='#3D4042'
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
const MessageInformation: FC<MessageInformationProps> = ({ noImg, text, time, centered, iconReloj = false }) => {
|
|
7
22
|
return (
|
|
8
23
|
<MessageInformationStyled className={`message-information ${centered && 'text-center'}`}>
|
|
9
24
|
<div className={`message-information__icon ${noImg ? 'hide' : ''}`}>
|
|
10
|
-
|
|
11
|
-
<path d='M20.5601 9.21496L22.4211 11.3353C22.7523 11.7127 22.7523 12.2772 22.4211 12.6546L20.5601 14.775L20.8194 17.582C20.8656 18.0816 20.5344 18.538 20.0452 18.6491L17.2901 19.275L15.8483 21.7009C15.5918 22.1324 15.0553 22.3069 14.5941 22.1088L12.0001 20.995L9.40727 22.116C8.94569 22.3155 8.40771 22.1413 8.15079 21.709L6.71008 19.285L3.95478 18.6591C3.46563 18.548 3.13448 18.0917 3.1805 17.5922L3.44008 14.775L1.57802 12.6534C1.24723 12.2765 1.24673 11.7129 1.57685 11.3355L3.44008 9.20496L3.18095 6.40025C3.1347 5.89967 3.46726 5.44257 3.95778 5.33251L6.71008 4.71496L8.15191 2.28903C8.40835 1.85756 8.94491 1.68303 9.40611 1.88108L12.0001 2.99496L14.5941 1.88108C15.0553 1.68303 15.5918 1.85756 15.8483 2.28903L17.2901 4.71496L20.0452 5.34077C20.5344 5.4519 20.8656 5.90835 20.8194 6.40793L20.5601 9.21496ZM18.7501 16.895L18.4901 14.105L20.3401 11.995L18.4901 9.88496L18.7501 7.09496L16.0101 6.47496L14.5801 4.06496L12.0001 5.17496L9.42008 4.07496L7.99008 6.48496L5.25008 7.09496L5.51008 9.87496L3.66008 11.995L5.51008 14.095L5.25008 16.895L7.99008 17.515L9.42008 19.925L12.0001 18.815L14.5801 19.925L16.0101 17.515L18.7501 16.895ZM11.0001 15.995C11.0001 15.4427 11.4478 14.995 12.0001 14.995C12.5524 14.995 13.0001 15.4427 13.0001 15.995C13.0001 16.5472 12.5524 16.995 12.0001 16.995C11.4478 16.995 11.0001 16.5472 11.0001 15.995ZM12.0001 6.99496C11.4478 6.99496 11.0001 7.44267 11.0001 7.99496V12.995C11.0001 13.5472 11.4478 13.995 12.0001 13.995C12.5524 13.995 13.0001 13.5472 13.0001 12.995V7.99496C13.0001 7.44267 12.5524 6.99496 12.0001 6.99496Z' />
|
|
12
|
-
</svg>
|
|
25
|
+
{iconReloj ? ClockIcon : ExclamationIcon}
|
|
13
26
|
</div>
|
|
14
27
|
<p className={`message-information__text`}>
|
|
15
28
|
{time != null && <span className={`message-information__text__time ${noImg && 'regular'}`}>{time}' </span>}
|
|
@@ -5,7 +5,7 @@ import { MessageInformation } from '../../atoms';
|
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { useIsMobileOrTable } from '../../../hooks';
|
|
7
7
|
// import './CountDownMessage.scss'
|
|
8
|
-
const CountDownMessage = ({ noImg = false, text, time, centered = false }) => {
|
|
8
|
+
const CountDownMessage = ({ noImg = false, text, time, centered = false, iconReloj = false }) => {
|
|
9
9
|
const [scrollSuperateCountDown, setScrollSuperateCountDown] = useState(false);
|
|
10
10
|
const { isMobile, isTablet } = useIsMobileOrTable();
|
|
11
11
|
const countDownRef = useRef(null);
|
|
@@ -25,7 +25,7 @@ const CountDownMessage = ({ noImg = false, text, time, centered = false }) => {
|
|
|
25
25
|
window.removeEventListener('scroll', handleScroll);
|
|
26
26
|
};
|
|
27
27
|
}, [isTablet]);
|
|
28
|
-
const messageInformationHtml = _jsx(MessageInformation, { noImg: noImg, text: text, time: time, centered: centered });
|
|
28
|
+
const messageInformationHtml = (_jsx(MessageInformation, { noImg: noImg, text: text, time: time, centered: centered, iconReloj: iconReloj }));
|
|
29
29
|
const classCountDownMessageFixed = classNames({
|
|
30
30
|
'count-down-message-fixed': true,
|
|
31
31
|
'count-down-message-fixed--show': scrollSuperateCountDown || isMobile
|
|
@@ -8,7 +8,13 @@ import { useIsMobileOrTable } from '../../../hooks'
|
|
|
8
8
|
|
|
9
9
|
// import './CountDownMessage.scss'
|
|
10
10
|
|
|
11
|
-
const CountDownMessage: FC<CountDownMessageProps> = ({
|
|
11
|
+
const CountDownMessage: FC<CountDownMessageProps> = ({
|
|
12
|
+
noImg = false,
|
|
13
|
+
text,
|
|
14
|
+
time,
|
|
15
|
+
centered = false,
|
|
16
|
+
iconReloj = false
|
|
17
|
+
}) => {
|
|
12
18
|
const [scrollSuperateCountDown, setScrollSuperateCountDown] = useState<boolean>(false)
|
|
13
19
|
const { isMobile, isTablet } = useIsMobileOrTable()
|
|
14
20
|
const countDownRef = useRef<null | HTMLDivElement>(null)
|
|
@@ -33,7 +39,9 @@ const CountDownMessage: FC<CountDownMessageProps> = ({ noImg = false, text, time
|
|
|
33
39
|
}
|
|
34
40
|
}, [isTablet])
|
|
35
41
|
|
|
36
|
-
const messageInformationHtml =
|
|
42
|
+
const messageInformationHtml = (
|
|
43
|
+
<MessageInformation noImg={noImg} text={text} time={time} centered={centered} iconReloj={iconReloj} />
|
|
44
|
+
)
|
|
37
45
|
|
|
38
46
|
const classCountDownMessageFixed = classNames({
|
|
39
47
|
'count-down-message-fixed': true,
|