@npm_leadtech/legal-lib-components 7.63.1 → 7.63.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.
- package/dist/src/components/molecules/AccordionItem/AccordionItem.d.ts +1 -1
- package/dist/src/components/molecules/AccordionItem/AccordionItem.js +2 -2
- package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.js +6 -1
- package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.ts +6 -1
- package/dist/src/components/molecules/AccordionItem/AccordionItem.tsx +3 -2
- package/dist/src/components/molecules/AccordionItem/AccordionItemProps.types.d.ts +1 -0
- package/dist/src/components/molecules/AccordionItem/AccordionItemProps.types.ts +1 -0
- package/dist/src/components/molecules/BoxForm/BoxForm.styled.js +2 -8
- package/dist/src/components/molecules/BoxForm/BoxForm.styled.ts +2 -8
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type AccordionItemProps } from './AccordionItemProps.types';
|
|
3
|
-
export declare const AccordionItem: ({ accordionRightContent, children, defaultHeightItem, index, isOpen, onClick, title }: AccordionItemProps) => React.JSX.Element;
|
|
3
|
+
export declare const AccordionItem: ({ accordionRightContent, children, defaultHeightItem, index, isOpen, onClick, title, isLegalFinityDomain }: AccordionItemProps) => React.JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useEffect, useRef } from 'react';
|
|
4
4
|
import { useDispatchDataAccordionItem, useStateDataAccordionItem } from '../../organisms/Accordion/Accordion.context';
|
|
5
5
|
import { AccordionItemStyled } from './AccordionItem.styled';
|
|
6
|
-
export const AccordionItem = ({ accordionRightContent, children, defaultHeightItem = 416, index, isOpen, onClick, title }) => {
|
|
6
|
+
export const AccordionItem = ({ accordionRightContent, children, defaultHeightItem = 416, index, isOpen, onClick, title, isLegalFinityDomain = false }) => {
|
|
7
7
|
const contenReftHeight = useRef(null);
|
|
8
8
|
const { state } = useStateDataAccordionItem(index);
|
|
9
9
|
const { dispatch } = useDispatchDataAccordionItem();
|
|
@@ -13,7 +13,7 @@ export const AccordionItem = ({ accordionRightContent, children, defaultHeightIt
|
|
|
13
13
|
dispatch({ type: 'unlocked', accordionItem: index, resetAction: 'default' });
|
|
14
14
|
}
|
|
15
15
|
}, [state.locked.actionType]);
|
|
16
|
-
return (_jsxs(AccordionItemStyled, { className:
|
|
16
|
+
return (_jsxs(AccordionItemStyled, { className: `accordion__container ${isLegalFinityDomain ? 'legalfinity' : ''}`, children: [_jsxs("button", { className: `accordion__button
|
|
17
17
|
${state.handler === 'success' ? '--success' : ''}
|
|
18
18
|
${state.locked.isLocked ? '--locked' : ''}`, onClick: () => {
|
|
19
19
|
!state.locked.isLocked && onClick();
|
|
@@ -3,6 +3,10 @@ export const AccordionItemStyled = styled.div `
|
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
border-bottom: 1px solid var(--neutral-neutral-4);
|
|
5
5
|
|
|
6
|
+
&.legalfinity {
|
|
7
|
+
color: var(--primary-main-dark-1);
|
|
8
|
+
}
|
|
9
|
+
|
|
6
10
|
&:first-child {
|
|
7
11
|
border-top: 1px solid var(--neutral-neutral-4);
|
|
8
12
|
}
|
|
@@ -33,7 +37,7 @@ export const AccordionItemStyled = styled.div `
|
|
|
33
37
|
letter-spacing: -0.3px;
|
|
34
38
|
|
|
35
39
|
&.--success {
|
|
36
|
-
background:
|
|
40
|
+
background: var(--primary-main-light-6);
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
&.--locked {
|
|
@@ -64,5 +68,6 @@ export const AccordionItemStyled = styled.div `
|
|
|
64
68
|
border-right: 1px solid var(--neutral-neutral-4);
|
|
65
69
|
border-left: 1px solid var(--neutral-neutral-4);
|
|
66
70
|
border-bottom: none;
|
|
71
|
+
color: black;
|
|
67
72
|
}
|
|
68
73
|
`;
|
|
@@ -4,6 +4,10 @@ export const AccordionItemStyled = styled.div`
|
|
|
4
4
|
overflow: hidden;
|
|
5
5
|
border-bottom: 1px solid var(--neutral-neutral-4);
|
|
6
6
|
|
|
7
|
+
&.legalfinity {
|
|
8
|
+
color: var(--primary-main-dark-1);
|
|
9
|
+
}
|
|
10
|
+
|
|
7
11
|
&:first-child {
|
|
8
12
|
border-top: 1px solid var(--neutral-neutral-4);
|
|
9
13
|
}
|
|
@@ -34,7 +38,7 @@ export const AccordionItemStyled = styled.div`
|
|
|
34
38
|
letter-spacing: -0.3px;
|
|
35
39
|
|
|
36
40
|
&.--success {
|
|
37
|
-
background:
|
|
41
|
+
background: var(--primary-main-light-6);
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
&.--locked {
|
|
@@ -65,5 +69,6 @@ export const AccordionItemStyled = styled.div`
|
|
|
65
69
|
border-right: 1px solid var(--neutral-neutral-4);
|
|
66
70
|
border-left: 1px solid var(--neutral-neutral-4);
|
|
67
71
|
border-bottom: none;
|
|
72
|
+
color: black;
|
|
68
73
|
}
|
|
69
74
|
`
|
|
@@ -12,7 +12,8 @@ export const AccordionItem = ({
|
|
|
12
12
|
index,
|
|
13
13
|
isOpen,
|
|
14
14
|
onClick,
|
|
15
|
-
title
|
|
15
|
+
title,
|
|
16
|
+
isLegalFinityDomain = false
|
|
16
17
|
}: AccordionItemProps): React.JSX.Element => {
|
|
17
18
|
const contenReftHeight = useRef<HTMLInputElement>(null)
|
|
18
19
|
const { state } = useStateDataAccordionItem(index)
|
|
@@ -26,7 +27,7 @@ export const AccordionItem = ({
|
|
|
26
27
|
}, [state.locked.actionType])
|
|
27
28
|
|
|
28
29
|
return (
|
|
29
|
-
<AccordionItemStyled className=
|
|
30
|
+
<AccordionItemStyled className={`accordion__container ${isLegalFinityDomain ? 'legalfinity' : ''}`}>
|
|
30
31
|
<button
|
|
31
32
|
className={`accordion__button
|
|
32
33
|
${state.handler === 'success' ? '--success' : ''}
|
|
@@ -78,13 +78,6 @@ export const BoxFormStyled = styled.div `
|
|
|
78
78
|
display: flex;
|
|
79
79
|
justify-content: space-between;
|
|
80
80
|
padding: 1.5rem 0 1rem 0;
|
|
81
|
-
flex-wrap: wrap;
|
|
82
|
-
gap: 1rem;
|
|
83
|
-
|
|
84
|
-
.e-button {
|
|
85
|
-
flex: 1;
|
|
86
|
-
text-wrap: nowrap;
|
|
87
|
-
}
|
|
88
81
|
|
|
89
82
|
@media ${device['portrait-tablets']} {
|
|
90
83
|
.e-button {
|
|
@@ -98,7 +91,8 @@ export const BoxFormStyled = styled.div `
|
|
|
98
91
|
}
|
|
99
92
|
|
|
100
93
|
.box--form__footer__text {
|
|
101
|
-
margin-right:
|
|
94
|
+
margin-right: 5px;
|
|
95
|
+
width: 60%;
|
|
102
96
|
|
|
103
97
|
@media ${device['portrait-tablets']} {
|
|
104
98
|
white-space: nowrap;
|
|
@@ -79,13 +79,6 @@ export const BoxFormStyled = styled.div`
|
|
|
79
79
|
display: flex;
|
|
80
80
|
justify-content: space-between;
|
|
81
81
|
padding: 1.5rem 0 1rem 0;
|
|
82
|
-
flex-wrap: wrap;
|
|
83
|
-
gap: 1rem;
|
|
84
|
-
|
|
85
|
-
.e-button {
|
|
86
|
-
flex: 1;
|
|
87
|
-
text-wrap: nowrap;
|
|
88
|
-
}
|
|
89
82
|
|
|
90
83
|
@media ${device['portrait-tablets']} {
|
|
91
84
|
.e-button {
|
|
@@ -99,7 +92,8 @@ export const BoxFormStyled = styled.div`
|
|
|
99
92
|
}
|
|
100
93
|
|
|
101
94
|
.box--form__footer__text {
|
|
102
|
-
margin-right:
|
|
95
|
+
margin-right: 5px;
|
|
96
|
+
width: 60%;
|
|
103
97
|
|
|
104
98
|
@media ${device['portrait-tablets']} {
|
|
105
99
|
white-space: nowrap;
|