@npm_leadtech/legal-lib-components 5.14.3 → 5.14.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 (50) hide show
  1. package/dist/css/styles.css +2 -25
  2. package/dist/src/components/atoms/Button/Button.js +1 -2
  3. package/dist/src/components/atoms/Button/Button.scss +1 -31
  4. package/dist/src/components/atoms/Button/Button.tsx +1 -2
  5. package/dist/src/components/atoms/Button/ButtonProps.types.d.ts +1 -1
  6. package/dist/src/components/atoms/Button/ButtonProps.types.ts +0 -1
  7. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.js +2 -21
  8. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.styled.js +0 -4
  9. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.styled.ts +0 -4
  10. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.tsx +0 -23
  11. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustomProps.types.d.ts +0 -1
  12. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustomProps.types.ts +0 -1
  13. package/dist/src/components/atoms/DatePickerCustom/index.js.map +3 -3
  14. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.js +2 -2
  15. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.tsx +5 -2
  16. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.d.ts +2 -0
  17. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.ts +2 -0
  18. package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.js +1 -1
  19. package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.tsx +1 -1
  20. package/dist/src/components/molecules/index.d.ts +0 -1
  21. package/dist/src/components/molecules/index.js +0 -1
  22. package/dist/src/components/molecules/index.ts +0 -1
  23. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js +17 -14
  24. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.ts +17 -14
  25. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +1 -1
  26. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx +3 -1
  27. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.d.ts +2 -0
  28. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.ts +2 -0
  29. package/dist/src/components/sections/FaqSection/FaqSection.styled.js +4 -1
  30. package/dist/src/components/sections/FaqSection/FaqSection.styled.ts +4 -1
  31. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.scss +0 -0
  32. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +0 -1
  33. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +0 -1
  34. package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.js +1 -1
  35. package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.tsx +2 -2
  36. package/dist/tsconfig.build.tsbuildinfo +1 -1
  37. package/package.json +1 -2
  38. package/dist/images/png/preview-doc.png +0 -0
  39. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.d.ts +0 -4
  40. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.js +0 -7
  41. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.d.ts +0 -1
  42. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.js +0 -161
  43. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.ts +0 -162
  44. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.tsx +0 -37
  45. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.d.ts +0 -10
  46. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.js +0 -1
  47. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.ts +0 -11
  48. package/dist/src/components/molecules/SubtypeDocumentCard/index.d.ts +0 -2
  49. package/dist/src/components/molecules/SubtypeDocumentCard/index.js +0 -1
  50. package/dist/src/components/molecules/SubtypeDocumentCard/index.ts +0 -2
@@ -946,16 +946,6 @@ 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
- }
959
949
  .button--secondary-3 {
960
950
  color: var(--neutral-neutral-1);
961
951
  display: flex;
@@ -990,7 +980,7 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
990
980
  .button--secondary-4:hover {
991
981
  background-color: var(--neutral-neutral-1);
992
982
  }
993
- .button--tertiary-1 {
983
+ .button--tertiary {
994
984
  font-weight: bold;
995
985
  padding: 0.5rem 1rem;
996
986
  display: inline-block;
@@ -998,25 +988,12 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
998
988
  border: none;
999
989
  background: none;
1000
990
  }
1001
- .button--tertiary-1:hover {
991
+ .button--tertiary:hover {
1002
992
  background-color: var(--button-tertiary-hover);
1003
993
  }
1004
994
  .button--small {
1005
995
  line-height: 1;
1006
996
  }
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
- }
1020
997
  .button--medium {
1021
998
  line-height: 1.5;
1022
999
  }
@@ -19,8 +19,7 @@ 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-1': color === 'tertiary',
23
- 'button--tertiary-2': color === 'tertiary2',
22
+ 'button--tertiary': color === 'tertiary',
24
23
  '--styleless': color === 'styleless',
25
24
  '--transparent': color === 'transparent',
26
25
  '--disabled': disabled,
@@ -211,20 +211,6 @@ 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
- }
228
214
  }
229
215
 
230
216
  .button--secondary-3 {
@@ -269,7 +255,7 @@ html[data-theme='lawdistrict'] {
269
255
  }
270
256
  }
271
257
 
272
- .button--tertiary-1 {
258
+ .button--tertiary {
273
259
  font-weight: bold;
274
260
  padding: 0.5rem 1rem;
275
261
  display: inline-block;
@@ -286,22 +272,6 @@ html[data-theme='lawdistrict'] {
286
272
  line-height: 1;
287
273
  }
288
274
 
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
-
305
275
  .button--medium {
306
276
  line-height: 1.5;
307
277
  }
@@ -47,8 +47,7 @@ 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-1': color === 'tertiary',
51
- 'button--tertiary-2': color === 'tertiary2',
50
+ 'button--tertiary': color === 'tertiary',
52
51
  '--styleless': color === 'styleless',
53
52
  '--transparent': color === 'transparent',
54
53
  '--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' | 'tertiary2' | 'styleless' | 'transparent';
11
+ color?: 'primary' | 'primary2' | 'primary3' | 'primary4' | 'secondary' | 'secondary2' | 'secondary3' | 'secondary4' | 'secondaryIcon' | 'secondaryIconBold' | 'secondaryIconDark' | 'tertiary' | 'styleless' | 'transparent';
12
12
  error?: boolean;
13
13
  disabled?: boolean;
14
14
  fluid?: boolean;
@@ -22,7 +22,6 @@ export interface ButtonProps {
22
22
  | 'secondaryIconBold'
23
23
  | 'secondaryIconDark'
24
24
  | 'tertiary'
25
- | 'tertiary2'
26
25
  | 'styleless'
27
26
  | 'transparent'
28
27
  error?: boolean
@@ -5,8 +5,7 @@ import { de } from 'date-fns/locale';
5
5
  import { DatePickerCustomStyled } from './DatePickerCustom.styled';
6
6
  // import './DatepickerPlugin.scss'
7
7
  registerLocale('de', de);
8
- const DatePickerCustom = ({ class: className, dateFormat = 'MM/dd/yyyy', isStartDate = false, isValidGroup = false, label, locale = 'en', name, onChange, relatedDate, isMobile, tooltip, type, validate = false, value }) => {
9
- const [event, setEvent] = useState();
8
+ const DatePickerCustom = ({ class: className, dateFormat = 'MM/dd/yyyy', isStartDate = false, isValidGroup = false, label, locale = 'en', name, onChange, relatedDate, tooltip, type, validate = false, value }) => {
10
9
  const [date, setDate] = useState(() => {
11
10
  return typeof value === 'string' && value !== '' ? new Date(value) : null;
12
11
  });
@@ -58,25 +57,7 @@ const DatePickerCustom = ({ class: className, dateFormat = 'MM/dd/yyyy', isStart
58
57
  monthName
59
58
  };
60
59
  });
61
- let propsForMobileDevices = {};
62
- if (isMobile) {
63
- propsForMobileDevices = {
64
- withPortal: true,
65
- onFocus: (event) => {
66
- setEvent(event);
67
- event.target.blur();
68
- },
69
- onCalendarClose: () => {
70
- if (event) {
71
- const timmerID = setTimeout(() => {
72
- event.target.blur();
73
- clearTimeout(timmerID);
74
- }, 1);
75
- }
76
- }
77
- };
78
- }
79
- return (_jsxs(DatePickerCustomStyled, { className: classStyle, "data-qa": name, children: [TooltipObject, _jsx(DatePicker, { ...propsForMobileDevices, locale: locale, dateFormat: dateFormat, renderCustomHeader: ({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled }) => (_jsxs("div", { style: {
60
+ return (_jsxs(DatePickerCustomStyled, { className: classStyle, "data-qa": name, children: [TooltipObject, _jsx(DatePicker, { locale: locale, dateFormat: dateFormat, renderCustomHeader: ({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled }) => (_jsxs("div", { style: {
80
61
  margin: 10,
81
62
  display: 'flex',
82
63
  justifyContent: 'center'
@@ -7,10 +7,6 @@ export const DatePickerCustomStyled = styled.div `
7
7
  flex-flow: column-reverse;
8
8
  margin-bottom: 2rem;
9
9
 
10
- .react-datepicker__portal {
11
- top: -200px;
12
- }
13
-
14
10
  .e-datepicker {
15
11
  &__inner {
16
12
  margin-bottom: 0.5rem;
@@ -8,10 +8,6 @@ export const DatePickerCustomStyled = styled.div`
8
8
  flex-flow: column-reverse;
9
9
  margin-bottom: 2rem;
10
10
 
11
- .react-datepicker__portal {
12
- top: -200px;
13
- }
14
-
15
11
  .e-datepicker {
16
12
  &__inner {
17
13
  margin-bottom: 0.5rem;
@@ -18,13 +18,11 @@ const DatePickerCustom: FC<DatePickerCustomProps> = ({
18
18
  name,
19
19
  onChange,
20
20
  relatedDate,
21
- isMobile,
22
21
  tooltip,
23
22
  type,
24
23
  validate = false,
25
24
  value
26
25
  }): React.JSX.Element => {
27
- const [event, setEvent] = useState<React.ChangeEvent<HTMLInputElement>>()
28
26
  const [date, setDate] = useState(() => {
29
27
  return typeof value === 'string' && value !== '' ? new Date(value) : null
30
28
  })
@@ -92,31 +90,10 @@ const DatePickerCustom: FC<DatePickerCustomProps> = ({
92
90
  }
93
91
  })
94
92
 
95
- let propsForMobileDevices = {}
96
-
97
- if (isMobile) {
98
- propsForMobileDevices = {
99
- withPortal: true,
100
- onFocus: (event) => {
101
- setEvent(event)
102
- event.target.blur()
103
- },
104
- onCalendarClose: () => {
105
- if (event) {
106
- const timmerID = setTimeout(() => {
107
- event.target.blur()
108
- clearTimeout(timmerID)
109
- }, 1)
110
- }
111
- }
112
- }
113
- }
114
-
115
93
  return (
116
94
  <DatePickerCustomStyled className={classStyle} data-qa={name}>
117
95
  {TooltipObject}
118
96
  <DatePicker
119
- {...propsForMobileDevices}
120
97
  locale={locale}
121
98
  dateFormat={dateFormat}
122
99
  renderCustomHeader={({
@@ -13,6 +13,5 @@ export interface DatePickerCustomProps {
13
13
  relatedDate?: Date;
14
14
  type?: string;
15
15
  dateFormat?: string;
16
- isMobile?: boolean;
17
16
  onChange?: (dateObject: any) => void;
18
17
  }
@@ -14,6 +14,5 @@ export interface DatePickerCustomProps {
14
14
  relatedDate?: Date
15
15
  type?: string
16
16
  dateFormat?: string
17
- isMobile?: boolean
18
17
  onChange?: (dateObject: any) => void
19
18
  }