@npm_leadtech/legal-lib-components 7.63.2 → 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.
@@ -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: 'accordion__container', children: [_jsxs("button", { className: `accordion__button
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
  }
@@ -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
  }
@@ -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='accordion__container'>
30
+ <AccordionItemStyled className={`accordion__container ${isLegalFinityDomain ? 'legalfinity' : ''}`}>
30
31
  <button
31
32
  className={`accordion__button
32
33
  ${state.handler === 'success' ? '--success' : ''}
@@ -6,4 +6,5 @@ export interface AccordionItemProps {
6
6
  isOpen?: boolean;
7
7
  onClick: () => void;
8
8
  title?: string;
9
+ isLegalFinityDomain?: boolean;
9
10
  }
@@ -6,4 +6,5 @@ export interface AccordionItemProps {
6
6
  isOpen?: boolean
7
7
  onClick: () => void
8
8
  title?: string
9
+ isLegalFinityDomain?: boolean
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.63.2",
3
+ "version": "7.63.3",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",