@npm_leadtech/legal-lib-components 7.53.2 → 7.53.4
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/CardPane/CardPane.styled.js +8 -4
- package/dist/src/components/atoms/CardPane/CardPane.styled.ts +8 -4
- package/dist/src/components/atoms/CardPane/CardPaneInfo.js +1 -1
- package/dist/src/components/atoms/CardPane/CardPaneInfo.tsx +2 -2
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStatic.js +3 -2
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStatic.styled.js +6 -0
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStatic.styled.ts +6 -0
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStatic.tsx +4 -2
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStaticProps.types.d.ts +1 -0
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStaticProps.types.ts +1 -0
- package/package.json +1 -1
|
@@ -93,12 +93,10 @@ export const CardPaneStyled = styled.div `
|
|
|
93
93
|
|
|
94
94
|
&--active {
|
|
95
95
|
color: var(--primary-main);
|
|
96
|
-
font-weight: 700;
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
&--inactive {
|
|
100
99
|
color: var(--error-main);
|
|
101
|
-
font-weight: 700;
|
|
102
100
|
}
|
|
103
101
|
}
|
|
104
102
|
|
|
@@ -108,10 +106,16 @@ export const CardPaneStyled = styled.div `
|
|
|
108
106
|
}
|
|
109
107
|
.marker {
|
|
110
108
|
display: inline-block;
|
|
111
|
-
margin-left:
|
|
109
|
+
margin-left: -10px;
|
|
110
|
+
@-moz-document url-prefix() {
|
|
111
|
+
margin-left: 0px;
|
|
112
|
+
}
|
|
113
|
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
114
|
+
margin-left: 0px;
|
|
115
|
+
}
|
|
112
116
|
}
|
|
113
117
|
.position {
|
|
114
|
-
margin-left:
|
|
118
|
+
margin-left: 2px;
|
|
115
119
|
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
116
120
|
margin-left: 15px;
|
|
117
121
|
}
|
|
@@ -94,12 +94,10 @@ export const CardPaneStyled = styled.div`
|
|
|
94
94
|
|
|
95
95
|
&--active {
|
|
96
96
|
color: var(--primary-main);
|
|
97
|
-
font-weight: 700;
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
&--inactive {
|
|
101
100
|
color: var(--error-main);
|
|
102
|
-
font-weight: 700;
|
|
103
101
|
}
|
|
104
102
|
}
|
|
105
103
|
|
|
@@ -109,10 +107,16 @@ export const CardPaneStyled = styled.div`
|
|
|
109
107
|
}
|
|
110
108
|
.marker {
|
|
111
109
|
display: inline-block;
|
|
112
|
-
margin-left:
|
|
110
|
+
margin-left: -10px;
|
|
111
|
+
@-moz-document url-prefix() {
|
|
112
|
+
margin-left: 0px;
|
|
113
|
+
}
|
|
114
|
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
115
|
+
margin-left: 0px;
|
|
116
|
+
}
|
|
113
117
|
}
|
|
114
118
|
.position {
|
|
115
|
-
margin-left:
|
|
119
|
+
margin-left: 2px;
|
|
116
120
|
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
117
121
|
margin-left: 15px;
|
|
118
122
|
}
|
|
@@ -9,7 +9,7 @@ const CardPaneInfo = ({ dataQA, description, subdescription, id, title, handleCl
|
|
|
9
9
|
else if (description === 'Inactive') {
|
|
10
10
|
descriptionClass = 'pane--description--inactive';
|
|
11
11
|
}
|
|
12
|
-
return (_jsxs("div", { className: 'pane-wrapper', children: [paneTitle, _jsx("div", { "data-testid": 'description-div', className: descriptionClass, children: _jsx("
|
|
12
|
+
return (_jsxs("div", { className: 'pane-wrapper', children: [paneTitle, _jsx("div", { "data-testid": 'description-div', className: descriptionClass, children: _jsx("li", { className: 'position', children: _jsx("div", { className: 'marker', children: description }) }) })] }, id));
|
|
13
13
|
}
|
|
14
14
|
return (_jsxs("div", { className: 'pane-wrapper', children: [paneTitle, _jsxs("div", { className: 'pane--description', children: [description, subdescription !== undefined && _jsx("span", { className: 'pane--description--subdescription', children: subdescription })] })] }, id));
|
|
15
15
|
};
|
|
@@ -25,9 +25,9 @@ const CardPaneInfo: FC<CardPaneInfoProps> = ({ dataQA, description, subdescripti
|
|
|
25
25
|
<div key={id} className='pane-wrapper'>
|
|
26
26
|
{paneTitle}
|
|
27
27
|
<div data-testid='description-div' className={descriptionClass}>
|
|
28
|
-
<
|
|
28
|
+
<li className='position'>
|
|
29
29
|
<div className='marker'>{description}</div>
|
|
30
|
-
</
|
|
30
|
+
</li>
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { JumbotronStaticStyled } from './JumbotronStatic.styled';
|
|
3
|
-
export const JumbotronStatic = ({ title }) => {
|
|
4
|
-
|
|
3
|
+
export const JumbotronStatic = ({ title, locale }) => {
|
|
4
|
+
const shorterTitle = locale?.includes('DE') ? 'shorter-text' : '';
|
|
5
|
+
return (_jsx(JumbotronStaticStyled, { className: 'jumbotron--static', children: _jsx("h1", { className: `${shorterTitle} serif --super-hero`, children: title }) }));
|
|
5
6
|
};
|
|
@@ -3,10 +3,12 @@ import React, { type FC } from 'react'
|
|
|
3
3
|
import { type JumbotronStaticProps } from './JumbotronStaticProps.types'
|
|
4
4
|
import { JumbotronStaticStyled } from './JumbotronStatic.styled'
|
|
5
5
|
|
|
6
|
-
export const JumbotronStatic: FC<JumbotronStaticProps> = ({ title }) => {
|
|
6
|
+
export const JumbotronStatic: FC<JumbotronStaticProps> = ({ title, locale }) => {
|
|
7
|
+
const shorterTitle = locale?.includes('DE') ? 'shorter-text' : ''
|
|
8
|
+
|
|
7
9
|
return (
|
|
8
10
|
<JumbotronStaticStyled className={'jumbotron--static'}>
|
|
9
|
-
<h1 className=
|
|
11
|
+
<h1 className={`${shorterTitle} serif --super-hero`}>{title}</h1>
|
|
10
12
|
</JumbotronStaticStyled>
|
|
11
13
|
)
|
|
12
14
|
}
|