@npm_leadtech/legal-lib-components 5.16.1 → 5.16.3

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 (56) 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 -22
  8. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.tsx +0 -24
  9. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustomProps.types.d.ts +0 -1
  10. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustomProps.types.ts +0 -1
  11. package/dist/src/components/atoms/DatePickerCustom/index.js.map +3 -3
  12. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.js +2 -2
  13. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.tsx +5 -2
  14. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.d.ts +2 -0
  15. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.ts +2 -0
  16. package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.js +1 -1
  17. package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.tsx +1 -1
  18. package/dist/src/components/molecules/UploadRatafiaZone/UploadRatafiaZone.styled.js +2 -1
  19. package/dist/src/components/molecules/UploadRatafiaZone/UploadRatafiaZone.styled.ts +2 -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/organisms/LoginRatafiaContent/LoginRatafiaContent.js +2 -3
  30. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.js +0 -7
  31. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.ts +0 -7
  32. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.tsx +1 -5
  33. package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.js +1 -1
  34. package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.ts +1 -1
  35. package/dist/src/components/sections/FaqSection/FaqSection.styled.js +4 -1
  36. package/dist/src/components/sections/FaqSection/FaqSection.styled.ts +4 -1
  37. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.scss +0 -0
  38. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +0 -1
  39. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +0 -1
  40. package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.js +1 -2
  41. package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.tsx +2 -3
  42. package/dist/tsconfig.build.tsbuildinfo +1 -1
  43. package/package.json +1 -1
  44. package/dist/images/png/preview-doc.png +0 -0
  45. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.d.ts +0 -4
  46. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.js +0 -7
  47. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.d.ts +0 -1
  48. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.js +0 -161
  49. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.ts +0 -162
  50. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.tsx +0 -37
  51. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.d.ts +0 -10
  52. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.js +0 -1
  53. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.ts +0 -11
  54. package/dist/src/components/molecules/SubtypeDocumentCard/index.d.ts +0 -2
  55. package/dist/src/components/molecules/SubtypeDocumentCard/index.js +0 -1
  56. 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,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBh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NTU2VjkuMDU1NTZaIiBmaWxsPSIjM0Q0MDQyIi8+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,26 +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
- portalId: 'root-portal',
65
- withPortal: true,
66
- onFocus: (event) => {
67
- setEvent(event);
68
- event.target.blur();
69
- },
70
- onCalendarClose: () => {
71
- if (event) {
72
- const timmerID = setTimeout(() => {
73
- event.target.blur();
74
- clearTimeout(timmerID);
75
- }, 1);
76
- }
77
- }
78
- };
79
- }
80
- 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: {
81
61
  margin: 10,
82
62
  display: 'flex',
83
63
  justifyContent: 'center'
@@ -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,32 +90,10 @@ const DatePickerCustom: FC<DatePickerCustomProps> = ({
92
90
  }
93
91
  })
94
92
 
95
- let propsForMobileDevices = {}
96
-
97
- if (isMobile) {
98
- propsForMobileDevices = {
99
- portalId: 'root-portal',
100
- withPortal: true,
101
- onFocus: (event) => {
102
- setEvent(event)
103
- event.target.blur()
104
- },
105
- onCalendarClose: () => {
106
- if (event) {
107
- const timmerID = setTimeout(() => {
108
- event.target.blur()
109
- clearTimeout(timmerID)
110
- }, 1)
111
- }
112
- }
113
- }
114
- }
115
-
116
93
  return (
117
94
  <DatePickerCustomStyled className={classStyle} data-qa={name}>
118
95
  {TooltipObject}
119
96
  <DatePicker
120
- {...propsForMobileDevices}
121
97
  locale={locale}
122
98
  dateFormat={dateFormat}
123
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
  }