@npm_leadtech/legal-lib-components 7.53.3 → 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.
@@ -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
- return (_jsx(JumbotronStaticStyled, { className: 'jumbotron--static', children: _jsx("h1", { className: 'serif --super-hero', children: title }) }));
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
  };
@@ -4,4 +4,10 @@ export const JumbotronStaticStyled = styled.section `
4
4
  margin: 0 auto;
5
5
  background-color: var(--primary-main-light-6);
6
6
  padding: 2.5rem 1rem 4rem;
7
+
8
+ .shorter-text.serif {
9
+ &.--super-hero {
10
+ font-size: 1.75rem;
11
+ }
12
+ }
7
13
  `;
@@ -5,4 +5,10 @@ export const JumbotronStaticStyled = styled.section`
5
5
  margin: 0 auto;
6
6
  background-color: var(--primary-main-light-6);
7
7
  padding: 2.5rem 1rem 4rem;
8
+
9
+ .shorter-text.serif {
10
+ &.--super-hero {
11
+ font-size: 1.75rem;
12
+ }
13
+ }
8
14
  `
@@ -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='serif --super-hero'>{title}</h1>
11
+ <h1 className={`${shorterTitle} serif --super-hero`}>{title}</h1>
10
12
  </JumbotronStaticStyled>
11
13
  )
12
14
  }
@@ -1,3 +1,4 @@
1
1
  export interface JumbotronStaticProps {
2
2
  title: string;
3
+ locale?: string;
3
4
  }
@@ -1,3 +1,4 @@
1
1
  export interface JumbotronStaticProps {
2
2
  title: string
3
+ locale?: string
3
4
  }
@@ -18,10 +18,6 @@ const LOGOS = {
18
18
  default: lawdistrict,
19
19
  white: lawdistrictWhite
20
20
  },
21
- legalfinity: {
22
- default: lawdistrict,
23
- white: lawdistrictWhite
24
- },
25
21
  districtlaws: {
26
22
  default: districtlaws,
27
23
  white: districtlawsWhite
@@ -24,10 +24,6 @@ const LOGOS: Record<string, any> = {
24
24
  default: lawdistrict,
25
25
  white: lawdistrictWhite
26
26
  },
27
- legalfinity: {
28
- default: lawdistrict,
29
- white: lawdistrictWhite
30
- },
31
27
  districtlaws: {
32
28
  default: districtlaws,
33
29
  white: districtlawsWhite
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.53.3",
3
+ "version": "7.53.4",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",