@npm_leadtech/legal-lib-components 5.14.5 → 5.14.7

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 (59) hide show
  1. package/dist/css/styles.css +25 -2
  2. package/dist/images/png/preview-doc.png +0 -0
  3. package/dist/src/components/atoms/Button/Button.js +2 -1
  4. package/dist/src/components/atoms/Button/Button.scss +31 -1
  5. package/dist/src/components/atoms/Button/Button.tsx +2 -1
  6. package/dist/src/components/atoms/Button/ButtonProps.types.d.ts +1 -1
  7. package/dist/src/components/atoms/Button/ButtonProps.types.ts +1 -0
  8. package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.styled.js +1 -0
  9. package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.styled.ts +1 -0
  10. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.js +2 -2
  11. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.tsx +2 -5
  12. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.d.ts +0 -2
  13. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.ts +0 -2
  14. package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.js +1 -1
  15. package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.tsx +1 -1
  16. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.d.ts +4 -0
  17. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.js +7 -0
  18. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.d.ts +1 -0
  19. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.js +161 -0
  20. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.ts +162 -0
  21. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.tsx +37 -0
  22. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.d.ts +10 -0
  23. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.js +1 -0
  24. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.ts +11 -0
  25. package/dist/src/components/molecules/SubtypeDocumentCard/index.d.ts +2 -0
  26. package/dist/src/components/molecules/SubtypeDocumentCard/index.js +1 -0
  27. package/dist/src/components/molecules/SubtypeDocumentCard/index.ts +2 -0
  28. package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaList.styled.js +2 -1
  29. package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaList.styled.ts +2 -1
  30. package/dist/src/components/molecules/index.d.ts +1 -0
  31. package/dist/src/components/molecules/index.js +1 -0
  32. package/dist/src/components/molecules/index.ts +1 -0
  33. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js +14 -17
  34. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.ts +14 -17
  35. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +1 -1
  36. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx +1 -3
  37. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.d.ts +0 -2
  38. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.ts +0 -2
  39. package/dist/src/components/sections/FaqSection/FaqSection.styled.js +1 -4
  40. package/dist/src/components/sections/FaqSection/FaqSection.styled.ts +1 -4
  41. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +1 -0
  42. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +1 -0
  43. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.d.ts +4 -0
  44. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.js +11 -0
  45. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.styled.d.ts +1 -0
  46. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.styled.js +71 -0
  47. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.styled.ts +72 -0
  48. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.tsx +56 -0
  49. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.d.ts +10 -0
  50. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.js +1 -0
  51. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.ts +11 -0
  52. package/dist/src/components/sections/LayoutRatafiaSection/index.d.ts +2 -0
  53. package/dist/src/components/sections/LayoutRatafiaSection/index.js +1 -0
  54. package/dist/src/components/sections/LayoutRatafiaSection/index.ts +2 -0
  55. package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.js +1 -1
  56. package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.tsx +2 -2
  57. package/dist/tsconfig.build.tsbuildinfo +1 -1
  58. package/package.json +3 -1
  59. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.scss +0 -0
@@ -946,6 +946,16 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
946
946
  .e-button--fluid {
947
947
  width: 100%;
948
948
  }
949
+ .e-button.create-doc-button {
950
+ border: none;
951
+ }
952
+ .e-button.download-icon::before {
953
+ content: "";
954
+ width: 1rem;
955
+ height: 1rem;
956
+ background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0x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: 0.5rem;
958
+ }
949
959
  .button--secondary-3 {
950
960
  color: var(--neutral-neutral-1);
951
961
  display: flex;
@@ -980,7 +990,7 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
980
990
  .button--secondary-4:hover {
981
991
  background-color: var(--neutral-neutral-1);
982
992
  }
983
- .button--tertiary {
993
+ .button--tertiary-1 {
984
994
  font-weight: bold;
985
995
  padding: 0.5rem 1rem;
986
996
  display: inline-block;
@@ -988,12 +998,25 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
988
998
  border: none;
989
999
  background: none;
990
1000
  }
991
- .button--tertiary:hover {
1001
+ .button--tertiary-1:hover {
992
1002
  background-color: var(--button-tertiary-hover);
993
1003
  }
994
1004
  .button--small {
995
1005
  line-height: 1;
996
1006
  }
1007
+ .button--tertiary-2 {
1008
+ background-color: transparent;
1009
+ border: 1px solid var(--neutral-neutral-3);
1010
+ color: var(--button-secondary);
1011
+ font-weight: bold;
1012
+ padding: 0.3rem 0.5rem;
1013
+ }
1014
+ .button--tertiary-2:hover {
1015
+ background-color: var(--button-secondary-hover);
1016
+ }
1017
+ .button--small {
1018
+ line-height: 1;
1019
+ }
997
1020
  .button--medium {
998
1021
  line-height: 1.5;
999
1022
  }
Binary file
@@ -19,7 +19,8 @@ const Button = ({ label, dataQa, labelMobile, link, LinkComponent = null, noLink
19
19
  '--secondary-icon': color === 'secondaryIcon',
20
20
  '--secondary-icon --bold': color === 'secondaryIconBold',
21
21
  '--secondary-icon --dark': color === 'secondaryIconDark',
22
- 'button--tertiary': color === 'tertiary',
22
+ 'button--tertiary-1': color === 'tertiary',
23
+ 'button--tertiary-2': color === 'tertiary2',
23
24
  '--styleless': color === 'styleless',
24
25
  '--transparent': color === 'transparent',
25
26
  '--disabled': disabled,
@@ -211,6 +211,20 @@ html[data-theme='lawdistrict'] {
211
211
  &--fluid {
212
212
  width: 100%;
213
213
  }
214
+
215
+ &.create-doc-button {
216
+ border: none;
217
+ }
218
+
219
+ &.download-icon {
220
+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gMTUuNTgzMyAxLjUgMTUuMTM1NiAxLjUgMTQuNTgzM1Y5LjA1NTU2QzEuNSA4LjY1NjY5IDEuODIzMzUgOC4zMzMzNCAyLjIyMjIyIDguMzMzMzRDMi42MjEwOSA4LjMzMzM0IDIuOTQ0NDQgOC42NTY2OSAyLjk0NDQ0IDkuMDU1NTdWMTMuOTcyMkgxMy4wNTU2VjkuMDU1NTZaIiBmaWxsPSIjM0Q0MDQyIi8+Cjwvc3ZnPgo=');
225
+ margin-right: 0.5rem;
226
+ }
227
+ }
214
228
  }
215
229
 
216
230
  .button--secondary-3 {
@@ -255,7 +269,7 @@ html[data-theme='lawdistrict'] {
255
269
  }
256
270
  }
257
271
 
258
- .button--tertiary {
272
+ .button--tertiary-1 {
259
273
  font-weight: bold;
260
274
  padding: 0.5rem 1rem;
261
275
  display: inline-block;
@@ -272,6 +286,22 @@ html[data-theme='lawdistrict'] {
272
286
  line-height: 1;
273
287
  }
274
288
 
289
+ .button--tertiary-2 {
290
+ background-color: transparent;
291
+ border: 1px solid get-color(neutral, neutral-3);
292
+ color: var(--button-secondary);
293
+ font-weight: bold;
294
+ padding: 0.3rem 0.5rem;
295
+
296
+ &:hover {
297
+ background-color: var(--button-secondary-hover);
298
+ }
299
+ }
300
+
301
+ .button--small {
302
+ line-height: 1;
303
+ }
304
+
275
305
  .button--medium {
276
306
  line-height: 1.5;
277
307
  }
@@ -47,7 +47,8 @@ const Button: FC<ButtonProps> = ({
47
47
  '--secondary-icon': color === 'secondaryIcon',
48
48
  '--secondary-icon --bold': color === 'secondaryIconBold',
49
49
  '--secondary-icon --dark': color === 'secondaryIconDark',
50
- 'button--tertiary': color === 'tertiary',
50
+ 'button--tertiary-1': color === 'tertiary',
51
+ 'button--tertiary-2': color === 'tertiary2',
51
52
  '--styleless': color === 'styleless',
52
53
  '--transparent': color === 'transparent',
53
54
  '--disabled': disabled,
@@ -8,7 +8,7 @@ export interface ButtonProps {
8
8
  noLinkNoFunc?: boolean;
9
9
  onClick?: (functionParameters?: any) => void;
10
10
  functionParameters?: any;
11
- color?: 'primary' | 'primary2' | 'primary3' | 'primary4' | 'secondary' | 'secondary2' | 'secondary3' | 'secondary4' | 'secondaryIcon' | 'secondaryIconBold' | 'secondaryIconDark' | 'tertiary' | 'styleless' | 'transparent';
11
+ color?: 'primary' | 'primary2' | 'primary3' | 'primary4' | 'secondary' | 'secondary2' | 'secondary3' | 'secondary4' | 'secondaryIcon' | 'secondaryIconBold' | 'secondaryIconDark' | 'tertiary' | 'tertiary2' | 'styleless' | 'transparent';
12
12
  error?: boolean;
13
13
  disabled?: boolean;
14
14
  fluid?: boolean;
@@ -22,6 +22,7 @@ export interface ButtonProps {
22
22
  | 'secondaryIconBold'
23
23
  | 'secondaryIconDark'
24
24
  | 'tertiary'
25
+ | 'tertiary2'
25
26
  | 'styleless'
26
27
  | 'transparent'
27
28
  error?: boolean
@@ -3,6 +3,7 @@ export const TagRatafiaItemStyled = styled.div `
3
3
  background: var(--primary-main-light-6);
4
4
  border-radius: 4px;
5
5
  display: flex;
6
+ width: max-content;
6
7
  justify-content: center;
7
8
  align-items: center;
8
9
  gap: 0.25rem;
@@ -4,6 +4,7 @@ export const TagRatafiaItemStyled = styled.div`
4
4
  background: var(--primary-main-light-6);
5
5
  border-radius: 4px;
6
6
  display: flex;
7
+ width: max-content;
7
8
  justify-content: center;
8
9
  align-items: center;
9
10
  gap: 0.25rem;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ActionButtonHeaderRatafiaCardList } from '../ActionButtonHeaderRatafiaCardList';
3
3
  import { HeaderRatafiaStyled } from './HeaderRatafia.styled';
4
- export const HeaderRatafia = ({ icon, title, actionButtons, isHiddenActionButtons = false, headerTitleRef }) => {
5
- return (_jsxs(HeaderRatafiaStyled, { className: 'header-ratafia', children: [_jsxs("div", { className: 'header-ratafia__title', children: [_jsx("div", { className: 'header-ratafia__title__icon', children: icon }), _jsx("h1", { ref: headerTitleRef, className: 'sans-serif --bold-weight header-ratafia__title__text', children: title })] }), actionButtons !== undefined && !isHiddenActionButtons && (_jsx(ActionButtonHeaderRatafiaCardList, { actionButtons: actionButtons }))] }));
4
+ export const HeaderRatafia = ({ icon, title, actionButtons, isHiddenActionButtons = false }) => {
5
+ return (_jsxs(HeaderRatafiaStyled, { className: 'header-ratafia', children: [_jsxs("div", { className: 'header-ratafia__title', children: [_jsx("div", { className: 'header-ratafia__title__icon', children: icon }), _jsx("h1", { className: 'sans-serif --bold-weight header-ratafia__title__text', children: title })] }), actionButtons !== undefined && !isHiddenActionButtons && (_jsx(ActionButtonHeaderRatafiaCardList, { actionButtons: actionButtons }))] }));
6
6
  };
7
7
  export default HeaderRatafia;
@@ -8,16 +8,13 @@ export const HeaderRatafia: React.FC<HeaderRatafiaProps> = ({
8
8
  icon,
9
9
  title,
10
10
  actionButtons,
11
- isHiddenActionButtons = false,
12
- headerTitleRef
11
+ isHiddenActionButtons = false
13
12
  }) => {
14
13
  return (
15
14
  <HeaderRatafiaStyled className='header-ratafia'>
16
15
  <div className='header-ratafia__title'>
17
16
  <div className='header-ratafia__title__icon'>{icon}</div>
18
- <h1 ref={headerTitleRef} className='sans-serif --bold-weight header-ratafia__title__text'>
19
- {title}
20
- </h1>
17
+ <h1 className='sans-serif --bold-weight header-ratafia__title__text'>{title}</h1>
21
18
  </div>
22
19
  {actionButtons !== undefined && !isHiddenActionButtons && (
23
20
  <ActionButtonHeaderRatafiaCardList actionButtons={actionButtons} />
@@ -1,9 +1,7 @@
1
1
  import type { ActionButtonHeaderRatafiaCardProps } from '../../atoms';
2
- import React from 'react';
3
2
  export interface HeaderRatafiaProps {
4
3
  icon?: React.ReactNode;
5
4
  title: string;
6
5
  actionButtons?: ActionButtonHeaderRatafiaCardProps[];
7
- headerTitleRef?: React.RefObject<HTMLHeadingElement>;
8
6
  isHiddenActionButtons: boolean;
9
7
  }
@@ -1,10 +1,8 @@
1
1
  import type { ActionButtonHeaderRatafiaCardProps } from '../../atoms'
2
- import React from 'react'
3
2
 
4
3
  export interface HeaderRatafiaProps {
5
4
  icon?: React.ReactNode
6
5
  title: string
7
6
  actionButtons?: ActionButtonHeaderRatafiaCardProps[]
8
- headerTitleRef?: React.RefObject<HTMLHeadingElement>
9
7
  isHiddenActionButtons: boolean
10
8
  }
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Button } from '../../atoms';
3
3
  import { MidBannerRatafiaContentStyled } from './MidBannerRatafiaContent.styled';
4
4
  const MidBannerRatafiaContent = ({ title, paragraph, ctaLabel, ctaLink, ctaDataQa }) => {
5
- return (_jsxs(MidBannerRatafiaContentStyled, { className: 'mid-banner-ratafia-content', children: [_jsxs("div", { className: 'mid-banner-ratafia-content__header', children: [_jsx("h3", { className: 'sans-serif --super-large --bold-weight mid-banner-ratafia-content__header__title', children: title }), _jsx("div", { className: 'sans-serif --super-medium mid-banner-ratafia-content__header__description', children: paragraph })] }), _jsx(Button, { givenClass: 'mid-banner-ratafia-content__cta', dataQa: ctaDataQa, link: ctaLink, color: 'primary', label: ctaLabel })] }));
5
+ return (_jsxs(MidBannerRatafiaContentStyled, { className: 'mid-banner-ratafia-content', children: [_jsxs("div", { className: 'mid-banner-ratafia-content__header', children: [_jsx("h2", { className: 'sans-serif --super-large --bold-weight mid-banner-ratafia-content__header__title', children: title }), _jsx("div", { className: 'sans-serif --super-medium mid-banner-ratafia-content__header__description', children: paragraph })] }), _jsx(Button, { givenClass: 'mid-banner-ratafia-content__cta', dataQa: ctaDataQa, link: ctaLink, color: 'primary', label: ctaLabel })] }));
6
6
  };
7
7
  export default MidBannerRatafiaContent;
@@ -14,7 +14,7 @@ const MidBannerRatafiaContent: FC<MidBannerRatafiaContentProps> = ({
14
14
  return (
15
15
  <MidBannerRatafiaContentStyled className='mid-banner-ratafia-content'>
16
16
  <div className='mid-banner-ratafia-content__header'>
17
- <h3 className='sans-serif --super-large --bold-weight mid-banner-ratafia-content__header__title'>{title}</h3>
17
+ <h2 className='sans-serif --super-large --bold-weight mid-banner-ratafia-content__header__title'>{title}</h2>
18
18
  <div className='sans-serif --super-medium mid-banner-ratafia-content__header__description'>{paragraph}</div>
19
19
  </div>
20
20
  <Button
@@ -0,0 +1,4 @@
1
+ import { type FC } from 'react';
2
+ import { type SubtypeDocumentCardProps } from './SubtypeDocumentCardProps.types';
3
+ declare const SubtypeDocumentCard: FC<SubtypeDocumentCardProps>;
4
+ export default SubtypeDocumentCard;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Button } from '../../atoms';
3
+ import { SubtypeDocumentCardStyled } from './SubtypeDocumentCard.styled';
4
+ const SubtypeDocumentCard = ({ title, productUrl, description, children, pdfButton, wordButton, createDocButton }) => {
5
+ return (_jsxs(SubtypeDocumentCardStyled, { className: 'subtype-document-card', children: [_jsx("div", { className: 'image-container', children: children }), _jsxs("div", { className: 'content', children: [_jsx("a", { href: productUrl, children: _jsx("h1", { className: 'title', children: title }) }), _jsx("p", { className: 'description', children: description }), _jsxs("div", { className: 'buttons-container', children: [_jsx(Button, { ...createDocButton }), _jsxs("div", { className: 'downloadable-buttons', children: [_jsx(Button, { ...pdfButton }), _jsx(Button, { ...wordButton })] })] })] })] }));
6
+ };
7
+ export default SubtypeDocumentCard;
@@ -0,0 +1 @@
1
+ export declare const SubtypeDocumentCardStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,161 @@
1
+ import { device, size } from '../../../globalStyles/breakpoints';
2
+ import styled from 'styled-components';
3
+ export const SubtypeDocumentCardStyled = styled.div `
4
+ display: flex;
5
+ flex-direction: column;
6
+ width: 100%;
7
+ align-items: center;
8
+ justify-content: center;
9
+ width: 100%;
10
+ max-width: 376px;
11
+ min-height: 600px;
12
+ padding: 32px 24px 32px 24px;
13
+ gap: 24px;
14
+ border-radius: 4px 0px 0px 0px;
15
+ opacity: 0px;
16
+ box-shadow: 0px 2px 6px 0px var(--neutral-neutral-3);
17
+ background-color: var(--secondary-main-light-5);
18
+ margin-bottom: 1.5rem;
19
+
20
+ .image-container {
21
+ width: 70%;
22
+ }
23
+
24
+ @media (min-width: ${size.xs}) {
25
+ width: 400px;
26
+ max-width: inherit;
27
+ }
28
+
29
+ @media (min-width: ${size.md}) {
30
+ width: 543px;
31
+ height: 364px;
32
+ min-height: 380px;
33
+ align-items: flex-start;
34
+ flex-direction: row;
35
+
36
+ .image-container {
37
+ width: 40%;
38
+
39
+ @media (min-width: ${size.lg}) {
40
+ width: 30%;
41
+ }
42
+ }
43
+ }
44
+
45
+ @media (min-width: ${size.lg}) {
46
+ width: 715px;
47
+ height: 307px;
48
+ min-height: 335px;
49
+ }
50
+
51
+ .content {
52
+ display: flex;
53
+ flex-direction: column;
54
+ height: 100%;
55
+ width: 100%;
56
+ justify-content: flex-start;
57
+
58
+ @media ${device['landscape-tablets']} {
59
+ margin-left: 1rem;
60
+ }
61
+
62
+ @media (min-width: ${size.md}) {
63
+ width: 65%;
64
+ }
65
+ }
66
+
67
+ .title {
68
+ font-family: Inter;
69
+ font-size: 18px;
70
+ font-weight: 700;
71
+ line-height: 24px;
72
+ letter-spacing: -0.3px;
73
+ text-align: left;
74
+ text-decoration-line: underline;
75
+ text-decoration-style: solid;
76
+ text-underline-position: from-font;
77
+ text-decoration-skip-ink: none;
78
+ }
79
+
80
+ .description {
81
+ margin: 1rem 0;
82
+ }
83
+
84
+ .buttons-container {
85
+ display: flex;
86
+ justify-content: space-between;
87
+ align-items: center;
88
+ flex-direction: column;
89
+
90
+ @media ${device.desktop} {
91
+ flex-direction: row;
92
+ align-self: flex-start;
93
+ gap: 1rem;
94
+ align-items: center;
95
+ }
96
+
97
+ .create-doc-button {
98
+ width: 100%;
99
+
100
+ @media ${device.laptop} {
101
+ align-self: flex-start;
102
+ width: auto;
103
+ margin-top: 0.5rem;
104
+ }
105
+
106
+ @media ${device.desktop} {
107
+ width: 100%;
108
+ height: auto;
109
+ }
110
+ }
111
+
112
+ .downloadable-buttons {
113
+ display: flex;
114
+ flex-wrap: wrap;
115
+ gap: 1rem;
116
+ width: 100%;
117
+ justify-content: space-between;
118
+
119
+ a {
120
+ min-width: 46.5%;
121
+ max-width: 46.5%;
122
+ margin-top: 0.75rem;
123
+ }
124
+
125
+ @media ${device.laptop} {
126
+ justify-content: flex-start;
127
+ width: 100%;
128
+
129
+ a {
130
+ min-width: 46.5%;
131
+ max-width: fit-content;
132
+ margin-top: 0.5rem;
133
+ }
134
+ }
135
+
136
+ @media (min-width: ${size.lg}) {
137
+ a {
138
+ min-width: auto;
139
+ max-width: fit-content;
140
+ }
141
+ }
142
+
143
+ @media ${device.desktop} {
144
+ display: flex;
145
+ gap: 1rem;
146
+ flex-wrap: nowrap;
147
+ margin-top: 0;
148
+ }
149
+ }
150
+ }
151
+
152
+ &.download-icon {
153
+ &::before {
154
+ content: '';
155
+ width: 1rem;
156
+ height: 1rem;
157
+ background-image: url('../../../assets/images/svg/icon-save-24-px.svg');
158
+ margin-right: 0.5rem;
159
+ }
160
+ }
161
+ `;
@@ -0,0 +1,162 @@
1
+ import { device, size } from '../../../globalStyles/breakpoints'
2
+ import styled from 'styled-components'
3
+
4
+ export const SubtypeDocumentCardStyled = styled.div`
5
+ display: flex;
6
+ flex-direction: column;
7
+ width: 100%;
8
+ align-items: center;
9
+ justify-content: center;
10
+ width: 100%;
11
+ max-width: 376px;
12
+ min-height: 600px;
13
+ padding: 32px 24px 32px 24px;
14
+ gap: 24px;
15
+ border-radius: 4px 0px 0px 0px;
16
+ opacity: 0px;
17
+ box-shadow: 0px 2px 6px 0px var(--neutral-neutral-3);
18
+ background-color: var(--secondary-main-light-5);
19
+ margin-bottom: 1.5rem;
20
+
21
+ .image-container {
22
+ width: 70%;
23
+ }
24
+
25
+ @media (min-width: ${size.xs}) {
26
+ width: 400px;
27
+ max-width: inherit;
28
+ }
29
+
30
+ @media (min-width: ${size.md}) {
31
+ width: 543px;
32
+ height: 364px;
33
+ min-height: 380px;
34
+ align-items: flex-start;
35
+ flex-direction: row;
36
+
37
+ .image-container {
38
+ width: 40%;
39
+
40
+ @media (min-width: ${size.lg}) {
41
+ width: 30%;
42
+ }
43
+ }
44
+ }
45
+
46
+ @media (min-width: ${size.lg}) {
47
+ width: 715px;
48
+ height: 307px;
49
+ min-height: 335px;
50
+ }
51
+
52
+ .content {
53
+ display: flex;
54
+ flex-direction: column;
55
+ height: 100%;
56
+ width: 100%;
57
+ justify-content: flex-start;
58
+
59
+ @media ${device['landscape-tablets']} {
60
+ margin-left: 1rem;
61
+ }
62
+
63
+ @media (min-width: ${size.md}) {
64
+ width: 65%;
65
+ }
66
+ }
67
+
68
+ .title {
69
+ font-family: Inter;
70
+ font-size: 18px;
71
+ font-weight: 700;
72
+ line-height: 24px;
73
+ letter-spacing: -0.3px;
74
+ text-align: left;
75
+ text-decoration-line: underline;
76
+ text-decoration-style: solid;
77
+ text-underline-position: from-font;
78
+ text-decoration-skip-ink: none;
79
+ }
80
+
81
+ .description {
82
+ margin: 1rem 0;
83
+ }
84
+
85
+ .buttons-container {
86
+ display: flex;
87
+ justify-content: space-between;
88
+ align-items: center;
89
+ flex-direction: column;
90
+
91
+ @media ${device.desktop} {
92
+ flex-direction: row;
93
+ align-self: flex-start;
94
+ gap: 1rem;
95
+ align-items: center;
96
+ }
97
+
98
+ .create-doc-button {
99
+ width: 100%;
100
+
101
+ @media ${device.laptop} {
102
+ align-self: flex-start;
103
+ width: auto;
104
+ margin-top: 0.5rem;
105
+ }
106
+
107
+ @media ${device.desktop} {
108
+ width: 100%;
109
+ height: auto;
110
+ }
111
+ }
112
+
113
+ .downloadable-buttons {
114
+ display: flex;
115
+ flex-wrap: wrap;
116
+ gap: 1rem;
117
+ width: 100%;
118
+ justify-content: space-between;
119
+
120
+ a {
121
+ min-width: 46.5%;
122
+ max-width: 46.5%;
123
+ margin-top: 0.75rem;
124
+ }
125
+
126
+ @media ${device.laptop} {
127
+ justify-content: flex-start;
128
+ width: 100%;
129
+
130
+ a {
131
+ min-width: 46.5%;
132
+ max-width: fit-content;
133
+ margin-top: 0.5rem;
134
+ }
135
+ }
136
+
137
+ @media (min-width: ${size.lg}) {
138
+ a {
139
+ min-width: auto;
140
+ max-width: fit-content;
141
+ }
142
+ }
143
+
144
+ @media ${device.desktop} {
145
+ display: flex;
146
+ gap: 1rem;
147
+ flex-wrap: nowrap;
148
+ margin-top: 0;
149
+ }
150
+ }
151
+ }
152
+
153
+ &.download-icon {
154
+ &::before {
155
+ content: '';
156
+ width: 1rem;
157
+ height: 1rem;
158
+ background-image: url('../../../assets/images/svg/icon-save-24-px.svg');
159
+ margin-right: 0.5rem;
160
+ }
161
+ }
162
+ `
@@ -0,0 +1,37 @@
1
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
2
+ import React, { type FC } from 'react'
3
+
4
+ import { Button } from '../../atoms'
5
+ import { type SubtypeDocumentCardProps } from './SubtypeDocumentCardProps.types'
6
+ import { SubtypeDocumentCardStyled } from './SubtypeDocumentCard.styled'
7
+
8
+ const SubtypeDocumentCard: FC<SubtypeDocumentCardProps> = ({
9
+ title,
10
+ productUrl,
11
+ description,
12
+ children,
13
+ pdfButton,
14
+ wordButton,
15
+ createDocButton
16
+ }) => {
17
+ return (
18
+ <SubtypeDocumentCardStyled className='subtype-document-card'>
19
+ <div className='image-container'>{children}</div>
20
+ <div className='content'>
21
+ <a href={productUrl}>
22
+ <h1 className='title'>{title}</h1>
23
+ </a>
24
+ <p className='description'>{description}</p>
25
+ <div className='buttons-container'>
26
+ <Button {...createDocButton} />
27
+ <div className='downloadable-buttons'>
28
+ <Button {...pdfButton} />
29
+ <Button {...wordButton} />
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </SubtypeDocumentCardStyled>
34
+ )
35
+ }
36
+
37
+ export default SubtypeDocumentCard
@@ -0,0 +1,10 @@
1
+ import { ButtonProps } from 'src/components/atoms';
2
+ export interface SubtypeDocumentCardProps {
3
+ title: string;
4
+ productUrl: string;
5
+ description: string;
6
+ children: React.ReactNode;
7
+ pdfButton: ButtonProps;
8
+ wordButton: ButtonProps;
9
+ createDocButton: ButtonProps;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { ButtonProps } from 'src/components/atoms'
2
+
3
+ export interface SubtypeDocumentCardProps {
4
+ title: string
5
+ productUrl: string
6
+ description: string
7
+ children: React.ReactNode
8
+ pdfButton: ButtonProps
9
+ wordButton: ButtonProps
10
+ createDocButton: ButtonProps
11
+ }
@@ -0,0 +1,2 @@
1
+ export { default as SubtypeDocumentCard } from './SubtypeDocumentCard';
2
+ export { type SubtypeDocumentCardProps } from './SubtypeDocumentCardProps.types';
@@ -0,0 +1 @@
1
+ export { default as SubtypeDocumentCard } from './SubtypeDocumentCard';
@@ -0,0 +1,2 @@
1
+ export { default as SubtypeDocumentCard } from './SubtypeDocumentCard'
2
+ export { type SubtypeDocumentCardProps } from './SubtypeDocumentCardProps.types'
@@ -1,6 +1,7 @@
1
1
  import styled from 'styled-components';
2
2
  export const TagsRatafiaListStyled = styled.div `
3
3
  display: flex;
4
+ flex-wrap: wrap;
4
5
  align-items: flex-start;
5
- gap: 1rem;
6
+ gap: 0.5rem 1rem;
6
7
  `;