@npm_leadtech/legal-lib-components 5.33.5 → 5.33.11
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/AddButton/AddButton.styled.js +1 -0
- package/dist/src/components/atoms/AddButton/AddButton.styled.ts +1 -0
- package/dist/src/components/atoms/RemoveButton/RemoveButton.styled.js +1 -0
- package/dist/src/components/atoms/RemoveButton/RemoveButton.styled.ts +1 -0
- package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.js +2 -3
- package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.ts +2 -3
- package/dist/src/components/molecules/CountDownMessage/CountDownMessage.js +4 -4
- package/dist/src/components/molecules/CountDownMessage/CountDownMessage.tsx +8 -6
- package/dist/src/components/molecules/TextInput/TextInput.js +1 -1
- package/dist/src/components/molecules/TextInput/TextInput.tsx +1 -1
- package/package.json +1 -1
|
@@ -29,7 +29,7 @@ export const AccordionItemStyled = styled.div `
|
|
|
29
29
|
font-size: 16px;
|
|
30
30
|
font-style: normal;
|
|
31
31
|
font-weight: 400;
|
|
32
|
-
line-height:
|
|
32
|
+
line-height: 20px;
|
|
33
33
|
letter-spacing: -0.3px;
|
|
34
34
|
|
|
35
35
|
&.--success {
|
|
@@ -48,10 +48,9 @@ export const AccordionItemStyled = styled.div `
|
|
|
48
48
|
.accordion__title {
|
|
49
49
|
color: var(--primary-main-dark-1);
|
|
50
50
|
font-family: Inter;
|
|
51
|
-
font-size:
|
|
51
|
+
font-size: 16px;
|
|
52
52
|
font-style: normal;
|
|
53
53
|
font-weight: 700;
|
|
54
|
-
line-height: 24px;
|
|
55
54
|
letter-spacing: -0.3px;
|
|
56
55
|
|
|
57
56
|
&.--locked {
|
|
@@ -30,7 +30,7 @@ export const AccordionItemStyled = styled.div`
|
|
|
30
30
|
font-size: 16px;
|
|
31
31
|
font-style: normal;
|
|
32
32
|
font-weight: 400;
|
|
33
|
-
line-height:
|
|
33
|
+
line-height: 20px;
|
|
34
34
|
letter-spacing: -0.3px;
|
|
35
35
|
|
|
36
36
|
&.--success {
|
|
@@ -49,10 +49,9 @@ export const AccordionItemStyled = styled.div`
|
|
|
49
49
|
.accordion__title {
|
|
50
50
|
color: var(--primary-main-dark-1);
|
|
51
51
|
font-family: Inter;
|
|
52
|
-
font-size:
|
|
52
|
+
font-size: 16px;
|
|
53
53
|
font-style: normal;
|
|
54
54
|
font-weight: 700;
|
|
55
|
-
line-height: 24px;
|
|
56
55
|
letter-spacing: -0.3px;
|
|
57
56
|
|
|
58
57
|
&.--locked {
|
|
@@ -18,18 +18,18 @@ const CountDownMessage = ({ noImg = false, text, time, centered = false }) => {
|
|
|
18
18
|
};
|
|
19
19
|
useEffect(() => {
|
|
20
20
|
window.removeEventListener('scroll', handleScroll);
|
|
21
|
-
if (
|
|
21
|
+
if (isTablet) {
|
|
22
22
|
window.addEventListener('scroll', handleScroll);
|
|
23
23
|
}
|
|
24
24
|
return () => {
|
|
25
25
|
window.removeEventListener('scroll', handleScroll);
|
|
26
26
|
};
|
|
27
|
-
}, [
|
|
27
|
+
}, [isTablet]);
|
|
28
28
|
const messageInformationHtml = _jsx(MessageInformation, { noImg: noImg, text: text, time: time, centered: centered });
|
|
29
29
|
const classCountDownMessageFixed = classNames({
|
|
30
30
|
'count-down-message-fixed': true,
|
|
31
|
-
'count-down-message-fixed--show': scrollSuperateCountDown
|
|
31
|
+
'count-down-message-fixed--show': scrollSuperateCountDown || isMobile
|
|
32
32
|
});
|
|
33
|
-
return (_jsxs(_Fragment, { children: [_jsx(CountDownMessageStyled, { className: `count-down-message ${noImg && 'extra-margin'}`, ref: countDownRef, children: messageInformationHtml }), _jsx(CountDownMessageStyled, { className: classCountDownMessageFixed, children: messageInformationHtml })] }));
|
|
33
|
+
return (_jsxs(_Fragment, { children: [!isMobile && (_jsx(CountDownMessageStyled, { className: `count-down-message ${noImg && 'extra-margin'}`, ref: countDownRef, children: messageInformationHtml })), _jsx(CountDownMessageStyled, { className: classCountDownMessageFixed, children: messageInformationHtml })] }));
|
|
34
34
|
};
|
|
35
35
|
export default CountDownMessage;
|
|
@@ -24,27 +24,29 @@ const CountDownMessage: FC<CountDownMessageProps> = ({ noImg = false, text, time
|
|
|
24
24
|
useEffect(() => {
|
|
25
25
|
window.removeEventListener('scroll', handleScroll)
|
|
26
26
|
|
|
27
|
-
if (
|
|
27
|
+
if (isTablet) {
|
|
28
28
|
window.addEventListener('scroll', handleScroll)
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
return () => {
|
|
32
32
|
window.removeEventListener('scroll', handleScroll)
|
|
33
33
|
}
|
|
34
|
-
}, [
|
|
34
|
+
}, [isTablet])
|
|
35
35
|
|
|
36
36
|
const messageInformationHtml = <MessageInformation noImg={noImg} text={text} time={time} centered={centered} />
|
|
37
37
|
|
|
38
38
|
const classCountDownMessageFixed = classNames({
|
|
39
39
|
'count-down-message-fixed': true,
|
|
40
|
-
'count-down-message-fixed--show': scrollSuperateCountDown
|
|
40
|
+
'count-down-message-fixed--show': scrollSuperateCountDown || isMobile
|
|
41
41
|
})
|
|
42
42
|
|
|
43
43
|
return (
|
|
44
44
|
<>
|
|
45
|
-
|
|
46
|
-
{
|
|
47
|
-
|
|
45
|
+
{!isMobile && (
|
|
46
|
+
<CountDownMessageStyled className={`count-down-message ${noImg && 'extra-margin'}`} ref={countDownRef}>
|
|
47
|
+
{messageInformationHtml}
|
|
48
|
+
</CountDownMessageStyled>
|
|
49
|
+
)}
|
|
48
50
|
|
|
49
51
|
<CountDownMessageStyled className={classCountDownMessageFixed}>{messageInformationHtml}</CountDownMessageStyled>
|
|
50
52
|
</>
|
|
@@ -32,7 +32,7 @@ const TextInput = React.forwardRef(({ label, value, validate = true, isValidGrou
|
|
|
32
32
|
}
|
|
33
33
|
return (_jsx(Input, { name: name ?? '', type: type, placeholder: placeholder ?? '', className: 'e-text-input', onChange: handleChange, onClick: onClick ?? (() => { }), value: value, "data-qa": name, disabled: disabled ?? false, maxLength: maxLength, onBlur: onBlur ?? (() => { }), ref: ref, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp }));
|
|
34
34
|
};
|
|
35
|
-
return (_jsxs("div", { className: classnames, children: [
|
|
35
|
+
return (_jsxs("div", { className: classnames, children: [children !== null && _jsx("div", { className: 'e-text__children', children: children }), _jsx(TextInputTooltip, { tooltip: tooltip }), _jsx(TextInputMessage, { errorMessage: errorMessage, validate: validate }), renderInput(), _jsx(TextInputLabel, { label: label, htmlFor: name, notes: notes, dialogMenuTip: dialogMenuTip })] }));
|
|
36
36
|
});
|
|
37
37
|
export default TextInput;
|
|
38
38
|
TextInput.displayName = 'TextInput';
|
|
@@ -97,7 +97,7 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
|
|
|
97
97
|
|
|
98
98
|
return (
|
|
99
99
|
<div className={classnames}>
|
|
100
|
-
{
|
|
100
|
+
{children !== null && <div className='e-text__children'>{children}</div>}
|
|
101
101
|
<TextInputTooltip tooltip={tooltip} />
|
|
102
102
|
<TextInputMessage errorMessage={errorMessage} validate={validate} />
|
|
103
103
|
{renderInput()}
|