@npm_leadtech/legal-lib-components 5.9.4 → 5.9.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.
Files changed (120) hide show
  1. package/dist/css/styles.css +847 -0
  2. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.js +2 -2
  3. package/dist/src/components/organisms/AboutUsContent/{AboutUsContent.styled.ts → AboutUsContent.scss} +11 -13
  4. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.tsx +3 -3
  5. package/dist/src/components/organisms/Accordion/Accordion.js +2 -2
  6. package/dist/src/components/organisms/Accordion/Accordion.scss +4 -0
  7. package/dist/src/components/organisms/Accordion/Accordion.tsx +4 -3
  8. package/dist/src/components/organisms/ArticlesList/ArticlesList.js +2 -2
  9. package/dist/src/components/organisms/ArticlesList/ArticlesList.scss +12 -0
  10. package/dist/src/components/organisms/ArticlesList/ArticlesList.tsx +3 -3
  11. package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.js +3 -3
  12. package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.scss +22 -0
  13. package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.tsx +3 -3
  14. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.js +2 -2
  15. package/dist/src/components/organisms/CardFunctionality/{CardFunctionality.styled.ts → CardFunctionality.scss} +3 -3
  16. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.tsx +3 -3
  17. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.js +2 -2
  18. package/dist/src/components/organisms/ContactJumbotron/{ContactJumbotron.styled.ts → ContactJumbotron.scss} +7 -6
  19. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.tsx +3 -3
  20. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.js +2 -2
  21. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.scss +54 -0
  22. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.tsx +13 -11
  23. package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.js +2 -2
  24. package/dist/src/components/organisms/ErrorContentRatafia/{ErrorContentRatafia.styled.ts → ErrorContentRatafia.scss} +6 -7
  25. package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.tsx +3 -3
  26. package/dist/src/components/organisms/FaqGroup/FaqGroup.js +2 -2
  27. package/dist/src/components/organisms/FaqGroup/{FaqGroup.styled.ts → FaqGroup.scss} +3 -3
  28. package/dist/src/components/organisms/FaqGroup/FaqGroup.tsx +3 -3
  29. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.js +2 -2
  30. package/dist/src/components/organisms/FeaturesRatafiaContent/{FeaturesRatafiaContent.styled.ts → FeaturesRatafiaContent.scss} +4 -4
  31. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.tsx +3 -3
  32. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.js +3 -3
  33. package/dist/src/components/organisms/GuidelinesContent/{GuidelinesContent.styled.ts → GuidelinesContent.scss} +17 -17
  34. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.tsx +3 -3
  35. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.js +2 -2
  36. package/dist/src/components/organisms/JumbotronRatafiaContent/{JumbotronRatafiaContent.styled.ts → JumbotronRatafiaContent.scss} +7 -6
  37. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.tsx +3 -3
  38. package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.js +2 -2
  39. package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/{KeyFactsLoadingContentRatafia.styled.ts → KeyFactsLoadingContentRatafia.scss} +25 -24
  40. package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.tsx +3 -3
  41. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +2 -2
  42. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.scss +23 -0
  43. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx +3 -3
  44. package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.js +2 -2
  45. package/dist/src/components/organisms/LanguageSelectorMobile/{LanguageSelectorMobile.styled.js → LanguageSelectorMobile.scss} +6 -6
  46. package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.tsx +3 -3
  47. package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.js +2 -2
  48. package/dist/src/components/organisms/LayoutRatafia/{LayoutRatafia.styled.ts → LayoutRatafia.scss} +13 -12
  49. package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.tsx +3 -3
  50. package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.js +2 -2
  51. package/dist/src/components/organisms/ListStepsGetForm/{ListStepsGetForm.styled.ts → ListStepsGetForm.scss} +7 -7
  52. package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.tsx +3 -3
  53. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.js +2 -2
  54. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.scss +16 -0
  55. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.tsx +3 -3
  56. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.js +8 -4
  57. package/dist/src/components/organisms/MobileBottomBar/{MobileBottomBar.styled.ts → MobileBottomBar.scss} +6 -6
  58. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.tsx +10 -5
  59. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBarProps.types.d.ts +1 -0
  60. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBarProps.types.ts +1 -0
  61. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.js +2 -2
  62. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.scss +12 -0
  63. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.tsx +3 -3
  64. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +3 -3
  65. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +3 -3
  66. package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.js +6 -1
  67. package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.tsx +8 -2
  68. package/dist/src/globalStyles/styles.scss +22 -0
  69. package/dist/tsconfig.build.tsbuildinfo +1 -1
  70. package/package.json +1 -1
  71. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.d.ts +0 -1
  72. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.js +0 -59
  73. package/dist/src/components/organisms/Accordion/Accordion.styled.d.ts +0 -1
  74. package/dist/src/components/organisms/Accordion/Accordion.styled.js +0 -5
  75. package/dist/src/components/organisms/Accordion/Accordion.styled.ts +0 -6
  76. package/dist/src/components/organisms/ArticlesList/ArticlesList.styled.d.ts +0 -1
  77. package/dist/src/components/organisms/ArticlesList/ArticlesList.styled.js +0 -11
  78. package/dist/src/components/organisms/ArticlesList/ArticlesList.styled.ts +0 -12
  79. package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.styled.d.ts +0 -1
  80. package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.styled.js +0 -22
  81. package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.styled.ts +0 -23
  82. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.d.ts +0 -1
  83. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.js +0 -60
  84. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.d.ts +0 -1
  85. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.js +0 -43
  86. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.styled.d.ts +0 -1
  87. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.styled.js +0 -54
  88. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.styled.ts +0 -55
  89. package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.styled.d.ts +0 -1
  90. package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.styled.js +0 -18
  91. package/dist/src/components/organisms/FaqGroup/FaqGroup.styled.d.ts +0 -1
  92. package/dist/src/components/organisms/FaqGroup/FaqGroup.styled.js +0 -21
  93. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.d.ts +0 -1
  94. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js +0 -27
  95. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.d.ts +0 -1
  96. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.js +0 -138
  97. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.styled.d.ts +0 -1
  98. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.styled.js +0 -26
  99. package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.styled.d.ts +0 -1
  100. package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.styled.js +0 -144
  101. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.styled.d.ts +0 -1
  102. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.styled.js +0 -21
  103. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.styled.ts +0 -22
  104. package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.styled.d.ts +0 -5
  105. package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.styled.ts +0 -70
  106. package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.d.ts +0 -1
  107. package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.js +0 -91
  108. package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.styled.d.ts +0 -1
  109. package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.styled.js +0 -34
  110. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.d.ts +0 -1
  111. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.js +0 -14
  112. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.ts +0 -15
  113. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.styled.d.ts +0 -1
  114. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.styled.js +0 -45
  115. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.styled.d.ts +0 -1
  116. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.styled.js +0 -11
  117. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.styled.ts +0 -12
  118. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.d.ts +0 -1
  119. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +0 -49
  120. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +0 -50
@@ -1,12 +1,12 @@
1
- import { device } from '../../../globalStyles/breakpoints'
2
- import styled from 'styled-components'
1
+ @import '../../../globalStyles/variables.scss';
2
+ @import '../../../globalStyles/mediaqueries.scss';
3
3
 
4
- export const ListStepsGetFormStyled = styled.div`
4
+ .homeSteps__container {
5
5
  transform: translateY(0%);
6
- @media ${device['portrait-tablets']} {
6
+ @include portrait-tablets {
7
7
  transform: translateY(0%);
8
8
  }
9
- @media ${device['landscape-tablets']} {
9
+ @include landscape-tablets {
10
10
  transform: translateY(0%);
11
11
  }
12
12
 
@@ -26,10 +26,10 @@ export const ListStepsGetFormStyled = styled.div`
26
26
  flex-flow: row wrap;
27
27
  padding: 0 1rem;
28
28
 
29
- @media ${device.laptop} {
29
+ @include laptop {
30
30
  flex-flow: row nowrap;
31
31
  padding: 0;
32
32
  }
33
33
  }
34
34
  }
35
- `
35
+ }
@@ -1,14 +1,14 @@
1
1
  import React, { type FC } from 'react'
2
2
 
3
3
  import { type ListStepsGetFormProps } from './ListStepsGetFormProps.types'
4
- import { ListStepsGetFormStyled } from './ListStepsGetForm.styled'
5
4
  import { StepGetForm } from '../../molecules'
5
+ // import './ListStepsGetForm.scss'
6
6
 
7
7
  const ListStepsGetForm: FC<ListStepsGetFormProps> = ({ steps = [] }) => {
8
8
  if (steps.length === 0) return null
9
9
 
10
10
  return (
11
- <ListStepsGetFormStyled>
11
+ <div className='homeSteps__container'>
12
12
  <div className='homeSteps wrapper'>
13
13
  <div className='homeStepsItemsContainer'>
14
14
  {steps.map((step) => (
@@ -16,7 +16,7 @@ const ListStepsGetForm: FC<ListStepsGetFormProps> = ({ steps = [] }) => {
16
16
  ))}
17
17
  </div>
18
18
  </div>
19
- </ListStepsGetFormStyled>
19
+ </div>
20
20
  )
21
21
  }
22
22
 
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { LoginRatafiaContentStyled } from './LoginRatafiaContent.styled';
3
2
  import { TextInput } from '../../molecules';
3
+ // import './LoginRatafiaContent.scss'
4
4
  const LoginRatafiaContent = ({ title, email }) => {
5
- return (_jsxs(LoginRatafiaContentStyled, { children: [_jsx("h2", { className: 'login-ratafia-content__title', children: title }), _jsx("div", { className: 'login-ratafia-content__email', children: _jsx(TextInput, { ...email }) })] }));
5
+ return (_jsxs("div", { className: 'login-ratafia-content', children: [_jsx("h2", { className: 'login-ratafia-content__title', children: title }), _jsx("div", { className: 'login-ratafia-content__email', children: _jsx(TextInput, { ...email }) })] }));
6
6
  };
7
7
  export default LoginRatafiaContent;
@@ -0,0 +1,16 @@
1
+ @import '../../../globalStyles/variables.scss';
2
+ @import '../../../globalStyles/mediaqueries';
3
+
4
+ .login-ratafia-content {
5
+ width: 100%;
6
+ &__title {
7
+ font-size: 1rem;
8
+ color: var(--neutral-neutral-2);
9
+ padding-bottom: 1rem;
10
+ }
11
+ &__email {
12
+ .e-text {
13
+ margin-bottom: 0.5rem;
14
+ }
15
+ }
16
+ }
@@ -1,17 +1,17 @@
1
1
  import React, { type FC } from 'react'
2
2
 
3
3
  import { type LoginRatafiaContentProps } from './LoginRatafiaContentProps.types'
4
- import { LoginRatafiaContentStyled } from './LoginRatafiaContent.styled'
5
4
  import { TextInput } from '../../molecules'
5
+ // import './LoginRatafiaContent.scss'
6
6
 
7
7
  const LoginRatafiaContent: FC<LoginRatafiaContentProps> = ({ title, email }) => {
8
8
  return (
9
- <LoginRatafiaContentStyled>
9
+ <div className='login-ratafia-content'>
10
10
  <h2 className='login-ratafia-content__title'>{title}</h2>
11
11
  <div className='login-ratafia-content__email'>
12
12
  <TextInput {...email} />
13
13
  </div>
14
- </LoginRatafiaContentStyled>
14
+ </div>
15
15
  )
16
16
  }
17
17
 
@@ -1,14 +1,18 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import classNames from 'classnames';
2
3
  import { Button, SidemenuTab } from '../../atoms';
3
- import { MobileBottomBarStyled } from './MobileBottomBar.styled';
4
- const MobileBottomBar = ({ children, list }) => {
4
+ // import './MobileBottomBar.scss'
5
+ const MobileBottomBar = ({ children, list, active }) => {
5
6
  if (children === undefined && list?.length === 0)
6
7
  return null;
8
+ const classnames = classNames('mobile-bottom-bar', {
9
+ 'mobile-bottom-bar--active': active
10
+ });
7
11
  if (children !== undefined)
8
- return _jsx(MobileBottomBarStyled, { children: children });
12
+ return _jsx("div", { className: classnames, children: children });
9
13
  if (list === undefined)
10
14
  return null;
11
- return (_jsx(MobileBottomBarStyled, { children: list.map((tab, index) => {
15
+ return (_jsx("div", { className: classnames, children: list.map((tab, index) => {
12
16
  if (tab.type === 'button') {
13
17
  return (_jsx(Button, { noLink: true, color: 'primary', ...tab, children: tab.image }, index));
14
18
  }
@@ -1,7 +1,7 @@
1
- import { device } from '../../../globalStyles/breakpoints'
2
- import styled from 'styled-components'
1
+ @import '../../../globalStyles/variables.scss';
2
+ @import '../../../globalStyles/mediaqueries.scss';
3
3
 
4
- export const MobileBottomBarStyled = styled.div`
4
+ .mobile-bottom-bar {
5
5
  background: var(--others-white);
6
6
  position: fixed;
7
7
  display: flex;
@@ -13,11 +13,11 @@ export const MobileBottomBarStyled = styled.div`
13
13
  box-shadow: var(--box-shadow-container);
14
14
  z-index: 1;
15
15
 
16
- @media ${device['portrait-tablets']} {
16
+ @include portrait-tablets {
17
17
  display: none;
18
18
  }
19
19
 
20
- .mobile-bottom-bar--active {
20
+ &--active {
21
21
  display: flex;
22
22
  }
23
23
 
@@ -43,4 +43,4 @@ export const MobileBottomBarStyled = styled.div`
43
43
  margin: 0;
44
44
  }
45
45
  }
46
- `
46
+ }
@@ -1,18 +1,23 @@
1
1
  /* eslint-disable @typescript-eslint/no-unsafe-member-access */
2
2
  import React, { type FC } from 'react'
3
+ import classNames from 'classnames'
3
4
 
4
5
  import { Button, SidemenuTab } from '../../atoms'
5
6
  import { type MobileBottomBarProps } from './MobileBottomBarProps.types'
6
- import { MobileBottomBarStyled } from './MobileBottomBar.styled'
7
+ // import './MobileBottomBar.scss'
7
8
 
8
- const MobileBottomBar: FC<MobileBottomBarProps> = ({ children, list }) => {
9
+ const MobileBottomBar: FC<MobileBottomBarProps> = ({ children, list, active }) => {
9
10
  if (children === undefined && list?.length === 0) return null
10
11
 
11
- if (children !== undefined) return <MobileBottomBarStyled>{children}</MobileBottomBarStyled>
12
+ const classnames = classNames('mobile-bottom-bar', {
13
+ 'mobile-bottom-bar--active': active
14
+ })
15
+
16
+ if (children !== undefined) return <div className={classnames}>{children}</div>
12
17
  if (list === undefined) return null
13
18
 
14
19
  return (
15
- <MobileBottomBarStyled>
20
+ <div className={classnames}>
16
21
  {list.map((tab, index) => {
17
22
  if (tab.type === 'button') {
18
23
  return (
@@ -23,7 +28,7 @@ const MobileBottomBar: FC<MobileBottomBarProps> = ({ children, list }) => {
23
28
  }
24
29
  return <SidemenuTab key={index} mobile={true} {...tab} />
25
30
  })}
26
- </MobileBottomBarStyled>
31
+ </div>
27
32
  )
28
33
  }
29
34
 
@@ -1,4 +1,5 @@
1
1
  export interface MobileBottomBarProps {
2
+ active?: boolean;
2
3
  list?: any[];
3
4
  children?: React.ReactNode;
4
5
  }
@@ -1,5 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  export interface MobileBottomBarProps {
3
+ active?: boolean
3
4
  list?: any[]
4
5
  children?: React.ReactNode
5
6
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { StepRatafiaCardList } from '../../molecules';
3
- import { StepsRatafiaContentStyled } from './StepsRatafiaContent.styled';
3
+ // import './StepsRatafiaContent.scss'
4
4
  const StepsRatafiaContent = ({ title, steps }) => {
5
- return (_jsxs(StepsRatafiaContentStyled, { children: [_jsx("h2", { className: 'sans-serif --super-large --bold-weight steps-ratafia-content__title', children: title }), _jsx(StepRatafiaCardList, { steps: steps })] }));
5
+ return (_jsxs("div", { className: 'steps-ratafia-content', children: [_jsx("h2", { className: 'sans-serif --super-large --bold-weight steps-ratafia-content__title', children: title }), _jsx(StepRatafiaCardList, { steps: steps })] }));
6
6
  };
7
7
  export default StepsRatafiaContent;
@@ -0,0 +1,12 @@
1
+ @import '../../../globalStyles/variables.scss';
2
+
3
+ .steps-ratafia-content {
4
+ width: 100%;
5
+ display: flex;
6
+ flex-direction: column;
7
+ gap: 1.5rem;
8
+
9
+ &__title {
10
+ color: var(--neutral-neutral-1);
11
+ }
12
+ }
@@ -2,14 +2,14 @@ import React, { type FC } from 'react'
2
2
 
3
3
  import { StepRatafiaCardList } from '../../molecules'
4
4
  import { type StepsRatafiaContentProps } from './StepsRatafiaContentProps.types'
5
- import { StepsRatafiaContentStyled } from './StepsRatafiaContent.styled'
5
+ // import './StepsRatafiaContent.scss'
6
6
 
7
7
  const StepsRatafiaContent: FC<StepsRatafiaContentProps> = ({ title, steps }) => {
8
8
  return (
9
- <StepsRatafiaContentStyled>
9
+ <div className='steps-ratafia-content'>
10
10
  <h2 className='sans-serif --super-large --bold-weight steps-ratafia-content__title'>{title}</h2>
11
11
  <StepRatafiaCardList steps={steps} />
12
- </StepsRatafiaContentStyled>
12
+ </div>
13
13
  )
14
14
  }
15
15
 
@@ -1,7 +1,7 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { RichTextInner } from '../../atoms';
3
- import { TryOurFreeLegalBlogsContentStyled } from './TryOurFreeLegalBlogsContent.styled';
3
+ // import './TryOurFreeLegalBlogsContent.scss'
4
4
  const TryOurFreeLegalBlogsContent = ({ title, image, children }) => {
5
- return (_jsxs(TryOurFreeLegalBlogsContentStyled, { children: [_jsxs("div", { className: 'try-our-free-legal-blogs-section__texts', children: [_jsx("h2", { className: 'try-our-free-legal-blogs-section__texts__title', children: title }), _jsx(RichTextInner, { customClass: 'try-our-free-legal-blogs-section__texts__body', children: children })] }), _jsx("div", { className: 'try-our-free-legal-blogs-section__image', children: image })] }));
5
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: 'try-our-free-legal-blogs-section__texts', children: [_jsx("h2", { className: 'try-our-free-legal-blogs-section__texts__title', children: title }), _jsx(RichTextInner, { customClass: 'try-our-free-legal-blogs-section__texts__body', children: children })] }), _jsx("div", { className: 'try-our-free-legal-blogs-section__image', children: image })] }));
6
6
  };
7
7
  export default TryOurFreeLegalBlogsContent;
@@ -2,17 +2,17 @@ import React, { type FC } from 'react'
2
2
 
3
3
  import { RichTextInner } from '../../atoms'
4
4
  import { type TryOurFreeLegalBlogsContentProps } from './TryOurFreeLegalBlogsContentProps.types'
5
- import { TryOurFreeLegalBlogsContentStyled } from './TryOurFreeLegalBlogsContent.styled'
5
+ // import './TryOurFreeLegalBlogsContent.scss'
6
6
 
7
7
  const TryOurFreeLegalBlogsContent: FC<TryOurFreeLegalBlogsContentProps> = ({ title, image, children }) => {
8
8
  return (
9
- <TryOurFreeLegalBlogsContentStyled>
9
+ <>
10
10
  <div className='try-our-free-legal-blogs-section__texts'>
11
11
  <h2 className='try-our-free-legal-blogs-section__texts__title'>{title}</h2>
12
12
  <RichTextInner customClass='try-our-free-legal-blogs-section__texts__body'>{children}</RichTextInner>
13
13
  </div>
14
14
  <div className='try-our-free-legal-blogs-section__image'>{image}</div>
15
- </TryOurFreeLegalBlogsContentStyled>
15
+ </>
16
16
  )
17
17
  }
18
18
 
@@ -1,10 +1,15 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
2
3
  import { Button } from '../../atoms/Button';
3
4
  import { WhyLawDistrictItems } from '../../atoms/WhyLawDistrictItems';
4
5
  import { WhyLawDistrictSectionStyled } from './WhyLawDistrictSection.styled';
5
6
  export const WhyLawDistrictSection = ({ title, items, userActive, link }) => {
6
7
  if (items.length === 0)
7
8
  return null;
8
- return (_jsxs(WhyLawDistrictSectionStyled, { className: 'whyLawDistrictSection', children: [_jsx("h2", { className: 'why-lawDistrict__title serif --hero', children: title }), _jsx(WhyLawDistrictItems, { items: items }), !userActive && (_jsx(Button, { givenClass: 'whyLawDistrictSection__button', label: link.cta, link: link.url, onClick: link.onClick, dataQa: link.dataQa, isExternal: true, hasNoFollow: true }))] }));
9
+ const [isUserActive, setIsUserActive] = useState(false);
10
+ useEffect(() => {
11
+ setIsUserActive(userActive);
12
+ }, [userActive]);
13
+ return (_jsxs(WhyLawDistrictSectionStyled, { className: 'whyLawDistrictSection', children: [_jsx("h2", { className: 'why-lawDistrict__title serif --hero', children: title }), _jsx(WhyLawDistrictItems, { items: items }), !isUserActive && (_jsx(Button, { givenClass: 'whyLawDistrictSection__button', label: link.cta, link: link.url, onClick: link.onClick, dataQa: link.dataQa, isExternal: true, hasNoFollow: true }))] }));
9
14
  };
10
15
  export default WhyLawDistrictSection;
@@ -1,4 +1,4 @@
1
- import React from 'react'
1
+ import React, { useEffect, useState } from 'react'
2
2
 
3
3
  import { Button } from '../../atoms/Button'
4
4
  import { WhyLawDistrictItems } from '../../atoms/WhyLawDistrictItems'
@@ -8,12 +8,18 @@ import { WhyLawDistrictSectionStyled } from './WhyLawDistrictSection.styled'
8
8
  export const WhyLawDistrictSection: React.FC<WhyLawDistrictSectionProps> = ({ title, items, userActive, link }) => {
9
9
  if (items.length === 0) return null
10
10
 
11
+ const [isUserActive, setIsUserActive] = useState(false)
12
+
13
+ useEffect(() => {
14
+ setIsUserActive(userActive)
15
+ }, [userActive])
16
+
11
17
  return (
12
18
  <WhyLawDistrictSectionStyled className={'whyLawDistrictSection'}>
13
19
  <h2 className={'why-lawDistrict__title serif --hero'}>{title}</h2>
14
20
  <WhyLawDistrictItems items={items} />
15
21
 
16
- {!userActive && (
22
+ {!isUserActive && (
17
23
  <Button
18
24
  givenClass='whyLawDistrictSection__button'
19
25
  label={link.cta}
@@ -18,5 +18,27 @@
18
18
  @import 'tippy.js/dist/tippy.css';
19
19
  @import '../components/atoms/Tooltip/Tooltip.scss';
20
20
 
21
+ @import '../components/organisms/AboutUsContent/AboutUsContent.scss';
22
+ @import '../components/organisms/Accordion/Accordion.scss';
23
+ @import '../components/organisms/ArticlesList/ArticlesList.scss';
24
+ @import '../components/organisms/AsSeeInContent/AsSeeInContent.scss';
25
+ @import '../components/organisms/CardFunctionality/CardFunctionality.scss';
26
+ @import '../components/organisms/ContactJumbotron/ContactJumbotron.scss';
27
+ @import '../components/organisms/CookiePolicyBar/CookiePolicyBar.scss';
28
+ @import '../components/organisms/ErrorContentRatafia/ErrorContentRatafia.scss';
29
+ @import '../components/organisms/FaqGroup/FaqGroup.scss';
30
+ @import '../components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.scss';
31
+ @import '../components/organisms/GuidelinesContent/GuidelinesContent.scss';
32
+ @import '../components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.scss';
33
+ @import '../components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.scss';
34
+ @import '../components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.scss';
35
+ @import '../components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.scss';
36
+ @import '../components/organisms/LayoutRatafia/LayoutRatafia.scss';
37
+ @import '../components/organisms/ListStepsGetForm/ListStepsGetForm.scss';
38
+ @import '../components/organisms/LoginRatafiaContent/LoginRatafiaContent.scss';
39
+ @import '../components/organisms/MobileBottomBar/MobileBottomBar.scss';
40
+ @import '../components/organisms/StepsRatafiaContent/StepsRatafiaContent.scss';
41
+ @import '../components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.scss';
42
+
21
43
  @import '../components/molecules/TextInput/TextInput.scss';
22
44
  @import '../components/molecules/TooltipMenu/TooltipMenu.scss';