@npm_leadtech/legal-lib-components 5.14.4 → 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.
- package/dist/css/styles.css +2 -25
- package/dist/src/components/atoms/Button/Button.js +1 -2
- package/dist/src/components/atoms/Button/Button.scss +1 -31
- package/dist/src/components/atoms/Button/Button.tsx +1 -2
- package/dist/src/components/atoms/Button/ButtonProps.types.d.ts +1 -1
- package/dist/src/components/atoms/Button/ButtonProps.types.ts +0 -1
- package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.js +2 -21
- package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.styled.js +0 -5
- package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.styled.ts +0 -5
- package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.tsx +0 -23
- package/dist/src/components/atoms/DatePickerCustom/DatePickerCustomProps.types.d.ts +0 -1
- package/dist/src/components/atoms/DatePickerCustom/DatePickerCustomProps.types.ts +0 -1
- package/dist/src/components/atoms/DatePickerCustom/index.js.map +3 -3
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.js +2 -2
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.tsx +5 -2
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.d.ts +2 -0
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.ts +2 -0
- package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.js +1 -1
- package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.tsx +1 -1
- package/dist/src/components/molecules/index.d.ts +0 -1
- package/dist/src/components/molecules/index.js +0 -1
- package/dist/src/components/molecules/index.ts +0 -1
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js +17 -14
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.ts +17 -14
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +1 -1
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx +3 -1
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.d.ts +2 -0
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.ts +2 -0
- package/dist/src/components/sections/FaqSection/FaqSection.styled.js +4 -1
- package/dist/src/components/sections/FaqSection/FaqSection.styled.ts +4 -1
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.scss +0 -0
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +0 -1
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +0 -1
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.js +1 -1
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.tsx +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -2
- package/dist/images/png/preview-doc.png +0 -0
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.d.ts +0 -4
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.js +0 -7
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.d.ts +0 -1
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.js +0 -161
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.ts +0 -162
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.tsx +0 -37
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.d.ts +0 -10
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.js +0 -1
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.ts +0 -11
- package/dist/src/components/molecules/SubtypeDocumentCard/index.d.ts +0 -2
- package/dist/src/components/molecules/SubtypeDocumentCard/index.js +0 -1
- package/dist/src/components/molecules/SubtypeDocumentCard/index.ts +0 -2
package/dist/css/styles.css
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0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DIuOTQ0NDQgOC42NTY2OSAyLjk0NDQ0IDkuMDU1NTdWMTMuOTcyMkgxMy4wNTU2VjkuMDU1NTZaIiBmaWxsPSIjM0Q0MDQyIi8+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
|
|
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
|
|
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' | '
|
|
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;
|
|
@@ -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,
|
|
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
|
-
|
|
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'
|
|
@@ -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={({
|