@npm_leadtech/legal-lib-components 5.16.4 → 5.16.6

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 (60) 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/DatePickerCustom/DatePickerCustom.js +22 -2
  9. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.tsx +24 -0
  10. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustomProps.types.d.ts +1 -0
  11. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustomProps.types.ts +1 -0
  12. package/dist/src/components/atoms/DatePickerCustom/index.js.map +3 -3
  13. package/dist/src/components/atoms/GoogleButton/GoogleButton.js +2 -2
  14. package/dist/src/components/atoms/GoogleButton/GoogleButton.tsx +2 -2
  15. package/dist/src/components/atoms/GoogleButton/GoogleButtonProps.types.d.ts +1 -0
  16. package/dist/src/components/atoms/GoogleButton/GoogleButtonProps.types.ts +1 -0
  17. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.js +2 -2
  18. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.tsx +2 -5
  19. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.d.ts +0 -2
  20. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.ts +0 -2
  21. package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.js +1 -1
  22. package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.tsx +1 -1
  23. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.d.ts +4 -0
  24. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.js +7 -0
  25. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.d.ts +1 -0
  26. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.js +161 -0
  27. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.ts +162 -0
  28. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.tsx +37 -0
  29. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.d.ts +10 -0
  30. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.js +1 -0
  31. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.ts +11 -0
  32. package/dist/src/components/molecules/SubtypeDocumentCard/index.d.ts +2 -0
  33. package/dist/src/components/molecules/SubtypeDocumentCard/index.js +1 -0
  34. package/dist/src/components/molecules/SubtypeDocumentCard/index.ts +2 -0
  35. package/dist/src/components/molecules/UploadRatafiaZone/UploadRatafiaZone.styled.js +1 -2
  36. package/dist/src/components/molecules/UploadRatafiaZone/UploadRatafiaZone.styled.ts +1 -2
  37. package/dist/src/components/molecules/index.d.ts +1 -0
  38. package/dist/src/components/molecules/index.js +1 -0
  39. package/dist/src/components/molecules/index.ts +1 -0
  40. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js +14 -17
  41. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.ts +14 -17
  42. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +1 -1
  43. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx +1 -3
  44. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.d.ts +0 -2
  45. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.ts +0 -2
  46. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.js +4 -3
  47. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.js +7 -0
  48. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.ts +7 -0
  49. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.tsx +8 -2
  50. package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.js +1 -1
  51. package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.ts +1 -1
  52. package/dist/src/components/sections/FaqSection/FaqSection.styled.js +1 -4
  53. package/dist/src/components/sections/FaqSection/FaqSection.styled.ts +1 -4
  54. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +1 -0
  55. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +1 -0
  56. package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.js +2 -1
  57. package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.tsx +3 -2
  58. package/dist/tsconfig.build.tsbuildinfo +1 -1
  59. package/package.json +1 -1
  60. 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,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQi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);
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
+ &.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EuOTQ3NzIgMTUuNTgzMyAxLjUgMTUuMTM1NiAxLjUgMTQuNTgzM1Y5LjA1NTU2QzEuNSA4LjY1NjY5IDEuODIzMzUgOC4zMzMzNCAyLjIyMjIyIDguMzMzMzRDMi42MjEwOSA4LjMzMzM0IDIuOTQ0NDQgOC42NTY2OSAyLjk0NDQ0IDkuMDU1NTdWMTMuOTcyMkgxMy4wNTU2VjkuMDU1NTZaIiBmaWxsPSIjM0Q0MDQyIi8+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
@@ -5,7 +5,8 @@ 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, tooltip, type, validate = false, value }) => {
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();
9
10
  const [date, setDate] = useState(() => {
10
11
  return typeof value === 'string' && value !== '' ? new Date(value) : null;
11
12
  });
@@ -57,7 +58,26 @@ const DatePickerCustom = ({ class: className, dateFormat = 'MM/dd/yyyy', isStart
57
58
  monthName
58
59
  };
59
60
  });
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: {
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: {
61
81
  margin: 10,
62
82
  display: 'flex',
63
83
  justifyContent: 'center'
@@ -18,11 +18,13 @@ const DatePickerCustom: FC<DatePickerCustomProps> = ({
18
18
  name,
19
19
  onChange,
20
20
  relatedDate,
21
+ isMobile,
21
22
  tooltip,
22
23
  type,
23
24
  validate = false,
24
25
  value
25
26
  }): React.JSX.Element => {
27
+ const [event, setEvent] = useState<React.ChangeEvent<HTMLInputElement>>()
26
28
  const [date, setDate] = useState(() => {
27
29
  return typeof value === 'string' && value !== '' ? new Date(value) : null
28
30
  })
@@ -90,10 +92,32 @@ const DatePickerCustom: FC<DatePickerCustomProps> = ({
90
92
  }
91
93
  })
92
94
 
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
+
93
116
  return (
94
117
  <DatePickerCustomStyled className={classStyle} data-qa={name}>
95
118
  {TooltipObject}
96
119
  <DatePicker
120
+ {...propsForMobileDevices}
97
121
  locale={locale}
98
122
  dateFormat={dateFormat}
99
123
  renderCustomHeader={({
@@ -13,5 +13,6 @@ export interface DatePickerCustomProps {
13
13
  relatedDate?: Date;
14
14
  type?: string;
15
15
  dateFormat?: string;
16
+ isMobile?: boolean;
16
17
  onChange?: (dateObject: any) => void;
17
18
  }
@@ -14,5 +14,6 @@ export interface DatePickerCustomProps {
14
14
  relatedDate?: Date
15
15
  type?: string
16
16
  dateFormat?: string
17
+ isMobile?: boolean
17
18
  onChange?: (dateObject: any) => void
18
19
  }