@npm_leadtech/legal-lib-components 5.12.6 → 5.12.8

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 (98) hide show
  1. package/dist/css/styles.css +12 -16
  2. package/dist/images/png/preview-doc.png +0 -0
  3. package/dist/src/components/atoms/Button/Button.js +1 -2
  4. package/dist/src/components/atoms/Button/Button.scss +15 -18
  5. package/dist/src/components/atoms/Button/Button.tsx +2 -2
  6. package/dist/src/components/atoms/Button/ButtonProps.types.d.ts +1 -1
  7. package/dist/src/components/atoms/Button/ButtonProps.types.ts +0 -1
  8. package/dist/src/components/atoms/CardPane/CardPane.tsx +1 -0
  9. package/dist/src/components/atoms/CardPane/CardPaneInfo.tsx +2 -0
  10. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.js +4 -0
  11. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.tsx +4 -0
  12. package/dist/src/components/atoms/DatePickerCustom/index.js.map +2 -2
  13. package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIcon.js +3 -0
  14. package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIcon.tsx +4 -0
  15. package/dist/src/components/atoms/Disclaimer/Disclaimer.js +1 -0
  16. package/dist/src/components/atoms/Disclaimer/Disclaimer.tsx +1 -0
  17. package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.js +1 -0
  18. package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.tsx +1 -0
  19. package/dist/src/components/atoms/Divider/Divider.tsx +2 -0
  20. package/dist/src/components/atoms/GoogleButton/GoogleButton.tsx +1 -0
  21. package/dist/src/components/atoms/IconImage/IconImage.tsx +1 -0
  22. package/dist/src/components/atoms/IconSvgURLWithThemeColor/IconSvgURLWithThemeColor.tsx +1 -0
  23. package/dist/src/components/atoms/IconTextInfoSection/IconTextInfoSection.js +1 -0
  24. package/dist/src/components/atoms/IconTextInfoSection/IconTextInfoSection.tsx +1 -0
  25. package/dist/src/components/atoms/InfoBox/InfoBox.tsx +2 -0
  26. package/dist/src/components/atoms/Logo/Logo.tsx +2 -1
  27. package/dist/src/components/atoms/MenuItems/MenuItems.js +3 -0
  28. package/dist/src/components/atoms/MenuItems/MenuItems.tsx +3 -0
  29. package/dist/src/components/atoms/MessageInformation/MessageInformation.tsx +1 -0
  30. package/dist/src/components/atoms/PaypalButton/PaypalButton.tsx +1 -0
  31. package/dist/src/components/atoms/ProgressBar/ProgressBar.tsx +1 -0
  32. package/dist/src/components/atoms/Radio/Radio.tsx +3 -0
  33. package/dist/src/components/atoms/RemoveButton/RemoveButton.tsx +1 -0
  34. package/dist/src/components/atoms/RichTextStrapi/useFormattedText.js +1 -0
  35. package/dist/src/components/atoms/RichTextStrapi/useFormattedText.tsx +1 -0
  36. package/dist/src/components/atoms/SearchSelect/SearchSelect.tsx +4 -0
  37. package/dist/src/components/atoms/SidemenuTab/SidemenuTab.tsx +2 -0
  38. package/dist/src/components/atoms/TestAB/TestAB.js +3 -0
  39. package/dist/src/components/atoms/TestAB/TestAB.tsx +3 -0
  40. package/dist/src/components/atoms/TextArea/TextArea.tsx +1 -0
  41. package/dist/src/components/molecules/AccordionItem/AccordionItem.js +1 -0
  42. package/dist/src/components/molecules/AccordionItem/AccordionItem.tsx +1 -0
  43. package/dist/src/components/molecules/BottomFixedBar/BottomFixedBar.tsx +1 -0
  44. package/dist/src/components/molecules/CountDownMessage/CountDownMessage.js +1 -0
  45. package/dist/src/components/molecules/CountDownMessage/CountDownMessage.tsx +1 -0
  46. package/dist/src/components/molecules/Feedback/Feedback.tsx +1 -0
  47. package/dist/src/components/molecules/FreeDocModalContent/FreeDocModalContent.tsx +1 -0
  48. package/dist/src/components/molecules/MenuItemsSection/MenuItemsSection.tsx +1 -0
  49. package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.js +2 -0
  50. package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.tsx +2 -1
  51. package/dist/src/components/molecules/Pagination/PageStepControl.js +1 -0
  52. package/dist/src/components/molecules/Pagination/PageStepControl.tsx +1 -0
  53. package/dist/src/components/molecules/Pagination/PageSteps.tsx +1 -0
  54. package/dist/src/components/molecules/Pagination/Pagination.js +1 -0
  55. package/dist/src/components/molecules/Pagination/Pagination.tsx +1 -0
  56. package/dist/src/components/molecules/PhoneContactBoxDesktop/PhoneContactBoxDesktop.tsx +2 -0
  57. package/dist/src/components/molecules/PhoneContactBoxMobile/PhoneContactBoxMobile.tsx +1 -0
  58. package/dist/src/components/molecules/PricingCard/PricingCard.js +1 -0
  59. package/dist/src/components/molecules/PricingCard/PricingCard.tsx +1 -0
  60. package/dist/src/components/molecules/Snackbar/Snackbar.js +1 -0
  61. package/dist/src/components/molecules/Snackbar/Snackbar.tsx +1 -0
  62. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.d.ts +4 -0
  63. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.js +7 -0
  64. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.d.ts +1 -0
  65. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.js +142 -0
  66. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.ts +143 -0
  67. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.tsx +34 -0
  68. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.d.ts +9 -0
  69. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.js +1 -0
  70. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.ts +10 -0
  71. package/dist/src/components/molecules/SubtypeDocumentCard/index.d.ts +2 -0
  72. package/dist/src/components/molecules/SubtypeDocumentCard/index.js +1 -0
  73. package/dist/src/components/molecules/SubtypeDocumentCard/index.ts +2 -0
  74. package/dist/src/components/molecules/TextInput/Input.js +1 -0
  75. package/dist/src/components/molecules/TextInput/Input.tsx +1 -1
  76. package/dist/src/components/molecules/TextInput/TextInput.js +2 -0
  77. package/dist/src/components/molecules/TextInput/TextInput.tsx +2 -0
  78. package/dist/src/components/molecules/TextInput/TextInputMessage.tsx +1 -0
  79. package/dist/src/components/molecules/TextInput/TextInputTooltip.tsx +1 -0
  80. package/dist/src/components/molecules/TypeModulesList/TypeModulesList.tsx +1 -0
  81. package/dist/src/components/molecules/index.d.ts +1 -0
  82. package/dist/src/components/molecules/index.js +1 -0
  83. package/dist/src/components/molecules/index.ts +1 -0
  84. package/dist/src/components/organisms/Accordion/Accordion.context.js +1 -0
  85. package/dist/src/components/organisms/Accordion/Accordion.context.tsx +1 -0
  86. package/dist/src/components/organisms/Accordion/Accordion.js +1 -0
  87. package/dist/src/components/organisms/Accordion/Accordion.tsx +1 -0
  88. package/dist/src/components/organisms/ArticlesList/ArticlesList.tsx +1 -0
  89. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.tsx +1 -0
  90. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.tsx +1 -0
  91. package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +1 -0
  92. package/dist/src/components/sections/AboutUsSection/AboutUsSection.tsx +1 -0
  93. package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.tsx +0 -1
  94. package/dist/src/components/sections/BlogSection/BlogSection.tsx +1 -0
  95. package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.tsx +1 -0
  96. package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.tsx +1 -1
  97. package/dist/tsconfig.build.tsbuildinfo +1 -1
  98. package/package.json +2 -4
@@ -0,0 +1,143 @@
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: 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
+
19
+ @media (min-width: ${size.xs}) {
20
+ width: 428px;
21
+ }
22
+
23
+ @media (min-width: ${size.md}) {
24
+ width: 543px;
25
+ height: 364px;
26
+ min-height: 380px;
27
+ align-items: flex-start;
28
+ flex-direction: row;
29
+
30
+ .image-container {
31
+ width: 35%;
32
+ }
33
+ }
34
+
35
+ @media (min-width: ${size.lg}) {
36
+ width: 715px;
37
+ height: 307px;
38
+ min-height: 335px;
39
+ }
40
+
41
+ .content {
42
+ display: flex;
43
+ flex-direction: column;
44
+ height: 100%;
45
+ justify-content: flex-start;
46
+
47
+ @media ${device['landscape-tablets']} {
48
+ margin-left: 1rem;
49
+ }
50
+
51
+ @media (min-width: ${size.md}) {
52
+ width: 65%;
53
+ }
54
+
55
+ @media (min-width: ${size.lg}) {
56
+ width: 75%;
57
+ }
58
+ }
59
+
60
+ .title {
61
+ font-family: Inter;
62
+ font-size: 18px;
63
+ font-weight: 700;
64
+ line-height: 24px;
65
+ letter-spacing: -0.3px;
66
+ text-align: left;
67
+ text-decoration-line: underline;
68
+ text-decoration-style: solid;
69
+ text-underline-position: from-font;
70
+ text-decoration-skip-ink: none;
71
+ }
72
+
73
+ .description {
74
+ margin: 1rem 0;
75
+ }
76
+
77
+ .buttons-container {
78
+ display: flex;
79
+ justify-content: space-between;
80
+ align-items: center;
81
+ flex-direction: column;
82
+
83
+ @media ${device.desktop} {
84
+ flex-direction: row;
85
+ align-self: flex-start;
86
+ gap: 1rem;
87
+ align-items: center;
88
+ }
89
+
90
+ .create-doc-button {
91
+ width: 100%;
92
+
93
+ @media ${device.laptop} {
94
+ align-self: flex-start;
95
+ width: auto;
96
+ }
97
+
98
+ @media ${device.desktop} {
99
+ width: 100%;
100
+ height: auto;
101
+ }
102
+ }
103
+
104
+ .downloadable-buttons {
105
+ display: flex;
106
+ flex-wrap: wrap;
107
+ gap: 1rem;
108
+ width: 100%;
109
+ margin-top: 0.75rem;
110
+ justify-content: space-between;
111
+
112
+ a {
113
+ min-width: 46.5%;
114
+ }
115
+
116
+ @media ${device.laptop} {
117
+ justify-content: flex-start;
118
+ width: 100%;
119
+
120
+ a {
121
+ min-width: auto;
122
+ }
123
+ }
124
+
125
+ @media ${device.desktop} {
126
+ display: flex;
127
+ gap: 1rem;
128
+ flex-wrap: nowrap;
129
+ margin-top: 0;
130
+ }
131
+ }
132
+ }
133
+
134
+ &.download-icon {
135
+ &::before {
136
+ content: '';
137
+ width: 1rem;
138
+ height: 1rem;
139
+ background-image: url('../../../assets/images/svg/icon-save-24-px.svg');
140
+ margin-right: 0.5rem;
141
+ }
142
+ }
143
+ `
@@ -0,0 +1,34 @@
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
+ description,
11
+ children,
12
+ pdfButton,
13
+ wordButton,
14
+ createDocButton
15
+ }) => {
16
+ return (
17
+ <SubtypeDocumentCardStyled>
18
+ <div className='image-container'>{children}</div>
19
+ <div className='content'>
20
+ <h1 className='title'>{title}</h1>
21
+ <p className='description'>{description}</p>
22
+ <div className='buttons-container'>
23
+ <Button {...createDocButton} />
24
+ <div className='downloadable-buttons'>
25
+ <Button {...pdfButton} />
26
+ <Button {...wordButton} />
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </SubtypeDocumentCardStyled>
31
+ )
32
+ }
33
+
34
+ export default SubtypeDocumentCard
@@ -0,0 +1,9 @@
1
+ import { ButtonProps } from 'src/components/atoms';
2
+ export interface SubtypeDocumentCardProps {
3
+ title: string;
4
+ description: string;
5
+ children: React.ReactNode;
6
+ pdfButton: ButtonProps;
7
+ wordButton: ButtonProps;
8
+ createDocButton: ButtonProps;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { ButtonProps } from 'src/components/atoms'
2
+
3
+ export interface SubtypeDocumentCardProps {
4
+ title: string
5
+ description: string
6
+ children: React.ReactNode
7
+ pdfButton: ButtonProps
8
+ wordButton: ButtonProps
9
+ createDocButton: ButtonProps
10
+ }
@@ -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,5 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /* eslint-disable @typescript-eslint/no-explicit-any */
3
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
3
4
  /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
4
5
  /* eslint-disable jsx-a11y/click-events-have-key-events */
5
6
  import React, { useState } from 'react';
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
-
2
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
3
3
  /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
4
4
  /* eslint-disable jsx-a11y/click-events-have-key-events */
5
5
  import React, { useState } from 'react'
@@ -1,4 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /* eslint-disable @typescript-eslint/no-empty-function */
3
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
2
4
  import { NumericFormat } from 'react-number-format';
3
5
  import React from 'react';
4
6
  import classNames from 'classnames';
@@ -1,3 +1,5 @@
1
+ /* eslint-disable @typescript-eslint/no-empty-function */
2
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
1
3
  import { NumericFormat } from 'react-number-format'
2
4
  import React from 'react'
3
5
  import classNames from 'classnames'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import error from '../../../../images/svg/info-error_24px_outlined.svg'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  interface TextInputTooltipProps {
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { Button, RichTextStrapi } from '../../atoms'
@@ -35,6 +35,7 @@ export * from './RatafiaSubscriptionCard';
35
35
  export * from './Snackbar';
36
36
  export * from './StepGetForm';
37
37
  export * from './StepRatafiaCardList';
38
+ export * from './SubtypeDocumentCard';
38
39
  export * from './TagsRatafiaList';
39
40
  export * from './TextInput';
40
41
  export * from './TooltipMenu';
@@ -35,6 +35,7 @@ export * from './RatafiaSubscriptionCard';
35
35
  export * from './Snackbar';
36
36
  export * from './StepGetForm';
37
37
  export * from './StepRatafiaCardList';
38
+ export * from './SubtypeDocumentCard';
38
39
  export * from './TagsRatafiaList';
39
40
  export * from './TextInput';
40
41
  export * from './TooltipMenu';
@@ -35,6 +35,7 @@ export * from './RatafiaSubscriptionCard'
35
35
  export * from './Snackbar'
36
36
  export * from './StepGetForm'
37
37
  export * from './StepRatafiaCardList'
38
+ export * from './SubtypeDocumentCard'
38
39
  export * from './TagsRatafiaList'
39
40
  export * from './TextInput'
40
41
  export * from './TooltipMenu'
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
2
3
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
3
4
  /* eslint-disable @typescript-eslint/strict-boolean-expressions */
4
5
  import React from 'react';
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
1
2
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
2
3
  /* eslint-disable @typescript-eslint/strict-boolean-expressions */
3
4
  import React from 'react'
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
2
3
  import { useState } from 'react';
3
4
  import { AccordionItem } from '../../molecules';
4
5
  import { AccordionProvider } from './Accordion.context';
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
1
2
  import React, { useState } from 'react'
2
3
  import { AccordionItem } from '../../molecules'
3
4
  import { type AccordionProps } from './AccordionProps.types'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { Article, type ArticleProps } from '../../molecules'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { RichTextInner, RichTextStrapi } from '../../atoms'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { Button, SidemenuTab } from '../../atoms'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
1
2
  import React from 'react'
2
3
 
3
4
  import {
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { AboutUsContent } from '../../organisms/AboutUsContent'
@@ -1,4 +1,3 @@
1
- /* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */
2
1
  import React from 'react'
3
2
 
4
3
  import { type AsideMenuSectionProps } from './AsideMenuSectionProps'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { Button, RichTextStrapi } from '../../atoms'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/restrict-template-expressions */
1
2
  import React from 'react'
2
3
 
3
4
  import { type HowGetYourFormsSectionProps } from './HowGetYourFormsSectionProps.types'
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/strict-boolean-expressions */
2
-
2
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
3
3
  import React, { type FC } from 'react'
4
4
 
5
5
  import { type PeopleSayAboutUsSectionProps } from './PeopleSayAboutUsSectionProps.types'