@npm_leadtech/legal-lib-components 5.11.12 → 5.11.14

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 (106) 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 -2
  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/CardPane/CardPane.tsx +0 -1
  9. package/dist/src/components/atoms/CardPane/CardPaneInfo.tsx +0 -2
  10. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.js +0 -4
  11. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.tsx +0 -4
  12. package/dist/src/components/atoms/DatePickerCustom/index.js.map +2 -2
  13. package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIcon.js +0 -3
  14. package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIcon.tsx +0 -4
  15. package/dist/src/components/atoms/Disclaimer/Disclaimer.js +0 -1
  16. package/dist/src/components/atoms/Disclaimer/Disclaimer.tsx +0 -1
  17. package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.js +0 -1
  18. package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.tsx +0 -1
  19. package/dist/src/components/atoms/Divider/Divider.tsx +0 -2
  20. package/dist/src/components/atoms/GoogleButton/GoogleButton.tsx +0 -1
  21. package/dist/src/components/atoms/IconImage/IconImage.tsx +0 -1
  22. package/dist/src/components/atoms/IconSvgURLWithThemeColor/IconSvgURLWithThemeColor.tsx +0 -1
  23. package/dist/src/components/atoms/IconTextInfoSection/IconTextInfoSection.js +0 -1
  24. package/dist/src/components/atoms/IconTextInfoSection/IconTextInfoSection.tsx +0 -1
  25. package/dist/src/components/atoms/InfoBox/InfoBox.tsx +0 -2
  26. package/dist/src/components/atoms/Logo/Logo.tsx +1 -2
  27. package/dist/src/components/atoms/MenuItems/MenuItemProps.types.d.ts +1 -0
  28. package/dist/src/components/atoms/MenuItems/MenuItemProps.types.ts +1 -0
  29. package/dist/src/components/atoms/MenuItems/MenuItems.js +0 -3
  30. package/dist/src/components/atoms/MenuItems/MenuItems.tsx +0 -3
  31. package/dist/src/components/atoms/MessageInformation/MessageInformation.tsx +0 -1
  32. package/dist/src/components/atoms/PaypalButton/PaypalButton.tsx +0 -1
  33. package/dist/src/components/atoms/ProgressBar/ProgressBar.tsx +0 -1
  34. package/dist/src/components/atoms/Radio/Radio.tsx +0 -3
  35. package/dist/src/components/atoms/RemoveButton/RemoveButton.tsx +0 -1
  36. package/dist/src/components/atoms/RichTextStrapi/useFormattedText.js +0 -1
  37. package/dist/src/components/atoms/RichTextStrapi/useFormattedText.tsx +0 -1
  38. package/dist/src/components/atoms/SearchSelect/SearchSelect.tsx +0 -4
  39. package/dist/src/components/atoms/SidemenuTab/SidemenuTab.tsx +0 -2
  40. package/dist/src/components/atoms/TestAB/TestAB.js +0 -3
  41. package/dist/src/components/atoms/TestAB/TestAB.tsx +0 -3
  42. package/dist/src/components/atoms/TextArea/TextArea.tsx +0 -1
  43. package/dist/src/components/molecules/AccordionItem/AccordionItem.js +0 -1
  44. package/dist/src/components/molecules/AccordionItem/AccordionItem.tsx +0 -1
  45. package/dist/src/components/molecules/BottomFixedBar/BottomFixedBar.tsx +0 -1
  46. package/dist/src/components/molecules/BottomOverlay/BottomOverlay.js +12 -0
  47. package/dist/src/components/molecules/BottomOverlay/BottomOverlay.tsx +12 -0
  48. package/dist/src/components/molecules/CountDownMessage/CountDownMessage.js +0 -1
  49. package/dist/src/components/molecules/CountDownMessage/CountDownMessage.tsx +0 -1
  50. package/dist/src/components/molecules/Feedback/Feedback.tsx +0 -1
  51. package/dist/src/components/molecules/FreeDocModalContent/FreeDocModalContent.tsx +0 -1
  52. package/dist/src/components/molecules/MenuItemsSection/MenuItemsSection.tsx +0 -1
  53. package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.js +0 -2
  54. package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.tsx +1 -2
  55. package/dist/src/components/molecules/Pagination/PageStepControl.js +0 -1
  56. package/dist/src/components/molecules/Pagination/PageStepControl.tsx +0 -1
  57. package/dist/src/components/molecules/Pagination/PageSteps.tsx +0 -1
  58. package/dist/src/components/molecules/Pagination/Pagination.js +0 -1
  59. package/dist/src/components/molecules/Pagination/Pagination.tsx +0 -1
  60. package/dist/src/components/molecules/PhoneContactBoxDesktop/PhoneContactBoxDesktop.tsx +0 -2
  61. package/dist/src/components/molecules/PhoneContactBoxMobile/PhoneContactBoxMobile.tsx +0 -1
  62. package/dist/src/components/molecules/PricingCard/PricingCard.js +0 -1
  63. package/dist/src/components/molecules/PricingCard/PricingCard.tsx +0 -1
  64. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.js +7 -0
  65. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.ts +7 -0
  66. package/dist/src/components/molecules/Snackbar/Snackbar.js +0 -1
  67. package/dist/src/components/molecules/Snackbar/Snackbar.tsx +0 -1
  68. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.d.ts +4 -0
  69. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.js +7 -0
  70. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.d.ts +1 -0
  71. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.js +161 -0
  72. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.ts +162 -0
  73. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.tsx +37 -0
  74. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.d.ts +10 -0
  75. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.js +1 -0
  76. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.ts +11 -0
  77. package/dist/src/components/molecules/SubtypeDocumentCard/index.d.ts +2 -0
  78. package/dist/src/components/molecules/SubtypeDocumentCard/index.js +1 -0
  79. package/dist/src/components/molecules/SubtypeDocumentCard/index.ts +2 -0
  80. package/dist/src/components/molecules/TextInput/Input.js +0 -1
  81. package/dist/src/components/molecules/TextInput/Input.tsx +1 -1
  82. package/dist/src/components/molecules/TextInput/TextInput.js +0 -2
  83. package/dist/src/components/molecules/TextInput/TextInput.tsx +0 -2
  84. package/dist/src/components/molecules/TextInput/TextInputMessage.tsx +0 -1
  85. package/dist/src/components/molecules/TextInput/TextInputTooltip.tsx +0 -1
  86. package/dist/src/components/molecules/TypeModulesList/TypeModulesList.tsx +0 -1
  87. package/dist/src/components/molecules/index.d.ts +1 -0
  88. package/dist/src/components/molecules/index.js +1 -0
  89. package/dist/src/components/molecules/index.ts +1 -0
  90. package/dist/src/components/organisms/Accordion/Accordion.context.js +0 -1
  91. package/dist/src/components/organisms/Accordion/Accordion.context.tsx +0 -1
  92. package/dist/src/components/organisms/Accordion/Accordion.js +0 -1
  93. package/dist/src/components/organisms/Accordion/Accordion.tsx +0 -1
  94. package/dist/src/components/organisms/ArticlesList/ArticlesList.tsx +0 -1
  95. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.tsx +0 -1
  96. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.tsx +0 -1
  97. package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +0 -1
  98. package/dist/src/components/sections/AboutUsSection/AboutUsSection.tsx +0 -1
  99. package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.tsx +1 -0
  100. package/dist/src/components/sections/BlogSection/BlogSection.tsx +0 -1
  101. package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.tsx +0 -1
  102. package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.tsx +1 -1
  103. package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.js +6 -1
  104. package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.tsx +8 -2
  105. package/dist/tsconfig.build.tsbuildinfo +1 -1
  106. package/package.json +5 -1
@@ -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,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wMjc1IDcuNDIyNzlMOC43MjIyMiA4Ljg3MzA3VjEuODA1NTdDOC43MjIyMiAxLjQwNjY5IDguMzk4ODcgMS4wODMzNCA4IDEuMDgzMzRDNy42MDExMyAxLjA4MzM0IDcuMjc3NzggMS40MDY2OSA3LjI3Nzc4IDEuODA1NTdWOC44NzMwN0w1Ljk3MjQ5IDcuNDIyNzlDNS42NzA1OCA3LjA4NzM1IDUuMTQ0NDIgNy4wODc4NSA0Ljg0MzE2IDcuNDIzODhDNC41ODQ2NSA3LjcxMjIxIDQuNTg0NjUgOC4xNDg5MiA0Ljg0MzE2IDguNDM3MjVMNy4yNTU0MyAxMS4xMjc5QzcuNjUyODUgMTEuNTcxMSA4LjM0NzE1IDExLjU3MTEgOC43NDQ1NyAxMS4xMjc5TDExLjE1NjggOC40MzcyNUMxMS40MTUzIDguMTQ4OTIgMTEuNDE1MyA3LjcxMjIxIDExLjE1NjggNy40MjM4OEMxMC44NTU2IDcuMDg3ODUgMTAuMzI5NCA3LjA4NzM1IDEwLjAyNzUgNy40MjI3OVpNMTMuMDU1NiA5LjA1NTU2QzEzLjA1NTYgOC42NTY2OSAxMy4zNzg5IDguMzMzMzQgMTMuNzc3OCA4LjMzMzM0QzE0LjE3NjcgOC4zMzMzNCAxNC41IDguNjU2NjkgMTQuNSA5LjA1NTU2VjE0LjU4MzNDMTQuNSAxNS4xMzU2IDE0LjA1MjMgMTUuNTgzMyAxMy41IDE1LjU4MzNIMi41QzEuOTQ3NzIgMTUuNTgzMyAxLjUgMTUuMTM1NiAxLjUgMTQuNTgzM1Y5LjA1NTU2QzEuNSA4LjY1NjY5IDEuODIzMzUgOC4zMzMzNCAyLjIyMjIyIDguMzMzMzRDMi42MjEwOSA4LjMzMzM0IDIuOTQ0NDQgOC42NTY2OSAyLjk0NDQ0IDkuMDU1NTdWMTMuOTcyMkgxMy4wNTU2VjkuMDU1NTZaIiBmaWxsPSIjM0Q0MDQyIi8+Cjwvc3ZnPgo=);
957
+ margin-right: 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
+ &::before {
221
+ content: '';
222
+ width: 1rem;
223
+ height: 1rem;
224
+ background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wMjc1IDcuNDIyNzlMOC43MjIyMiA4Ljg3MzA3VjEuODA1NTdDOC43MjIyMiAxLjQwNjY5IDguMzk4ODcgMS4wODMzNCA4IDEuMDgzMzRDNy42MDExMyAxLjA4MzM0IDcuMjc3NzggMS40MDY2OSA3LjI3Nzc4IDEuODA1NTdWOC44NzMwN0w1Ljk3MjQ5IDcuNDIyNzlDNS42NzA1OCA3LjA4NzM1IDUuMTQ0NDIgNy4wODc4NSA0Ljg0MzE2IDcuNDIzODhDNC41ODQ2NSA3LjcxMjIxIDQuNTg0NjUgOC4xNDg5MiA0Ljg0MzE2IDguNDM3MjVMNy4yNTU0MyAxMS4xMjc5QzcuNjUyODUgMTEuNTcxMSA4LjM0NzE1IDExLjU3MTEgOC43NDQ1NyAxMS4xMjc5TDExLjE1NjggOC40MzcyNUMxMS40MTUzIDguMTQ4OTIgMTEuNDE1MyA3LjcxMjIxIDExLjE1NjggNy40MjM4OEMxMC44NTU2IDcuMDg3ODUgMTAuMzI5NCA3LjA4NzM1IDEwLjAyNzUgNy40MjI3OVpNMTMuMDU1NiA5LjA1NTU2QzEzLjA1NTYgOC42NTY2OSAxMy4zNzg5IDguMzMzMzQgMTMuNzc3OCA4LjMzMzM0QzE0LjE3NjcgOC4zMzMzNCAxNC41IDguNjU2NjkgMTQuNSA5LjA1NTU2VjE0LjU4MzNDMTQuNSAxNS4xMzU2IDE0LjA1MjMgMTUuNTgzMyAxMy41IDE1LjU4MzNIMi41QzEuOTQ3NzIgMTUuNTgzMyAxLjUgMTUuMTM1NiAxLjUgMTQuNTgzM1Y5LjA1NTU2QzEuNSA4LjY1NjY5IDEuODIzMzUgOC4zMzMzNCAyLjIyMjIyIDguMzMzMzRDMi42MjEwOSA4LjMzMzM0IDIuOTQ0NDQgOC42NTY2OSAyLjk0NDQ0IDkuMDU1NTdWMTMuOTcyMkgxMy4wNTU2VjkuMDU1NTZaIiBmaWxsPSIjM0Q0MDQyIi8+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
  }
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-unnecessary-condition */
2
1
  /* eslint-disable @typescript-eslint/strict-boolean-expressions */
3
2
  import React, { type FC } from 'react'
4
3
  import classNames from 'classnames'
@@ -48,7 +47,8 @@ const Button: FC<ButtonProps> = ({
48
47
  '--secondary-icon': color === 'secondaryIcon',
49
48
  '--secondary-icon --bold': color === 'secondaryIconBold',
50
49
  '--secondary-icon --dark': color === 'secondaryIconDark',
51
- 'button--tertiary': color === 'tertiary',
50
+ 'button--tertiary-1': color === 'tertiary',
51
+ 'button--tertiary-2': color === 'tertiary2',
52
52
  '--styleless': color === 'styleless',
53
53
  '--transparent': color === 'transparent',
54
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
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-unnecessary-condition */
2
1
  import React, { type FC } from 'react'
3
2
 
4
3
  import CardPaneInfo from './CardPaneInfo'
@@ -1,5 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-unnecessary-condition */
2
- /* eslint-disable @typescript-eslint/no-unsafe-assignment */
3
1
  import React, { type FC } from 'react'
4
2
 
5
3
  import { type CardPaneInfoProps } from './CardPaneProps.types'
@@ -1,8 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /* eslint-disable @typescript-eslint/restrict-template-expressions */
3
- /* eslint-disable @typescript-eslint/restrict-plus-operands */
4
- /* eslint-disable @typescript-eslint/no-unsafe-argument */
5
- /* eslint-disable @typescript-eslint/no-unsafe-assignment */
6
2
  import DatePicker, { registerLocale } from 'react-datepicker';
7
3
  import { useState } from 'react';
8
4
  import { de } from 'date-fns/locale';
@@ -1,7 +1,3 @@
1
- /* eslint-disable @typescript-eslint/restrict-template-expressions */
2
- /* eslint-disable @typescript-eslint/restrict-plus-operands */
3
- /* eslint-disable @typescript-eslint/no-unsafe-argument */
4
- /* eslint-disable @typescript-eslint/no-unsafe-assignment */
5
1
  import DatePicker, { registerLocale } from 'react-datepicker'
6
2
  import React, { type FC, useState } from 'react'
7
3
  import { de } from 'date-fns/locale'