@npm_leadtech/legal-lib-components 7.63.3 → 7.63.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.
@@ -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, isLegalFinityDomain }: AccordionItemProps) => React.JSX.Element;
3
+ export declare const AccordionItem: ({ accordionRightContent, children, defaultHeightItem, index, isOpen, onClick, title }: 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, isLegalFinityDomain = false }) => {
6
+ export const AccordionItem = ({ accordionRightContent, children, defaultHeightItem = 416, index, isOpen, onClick, title }) => {
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 ${isLegalFinityDomain ? 'legalfinity' : ''}`, children: [_jsxs("button", { className: `accordion__button
16
+ return (_jsxs(AccordionItemStyled, { className: 'accordion__container', 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,8 +3,12 @@ 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);
6
+ html[data-theme='legalfinity'] {
7
+ .accordion__title {
8
+ &.--locked {
9
+ color: var(--primary-main-dark-1);
10
+ }
11
+ }
8
12
  }
9
13
 
10
14
  &:first-child {
@@ -4,8 +4,12 @@ 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);
7
+ html[data-theme='legalfinity'] {
8
+ .accordion__title {
9
+ &.--locked {
10
+ color: var(--primary-main-dark-1);
11
+ }
12
+ }
9
13
  }
10
14
 
11
15
  &:first-child {
@@ -12,8 +12,7 @@ export const AccordionItem = ({
12
12
  index,
13
13
  isOpen,
14
14
  onClick,
15
- title,
16
- isLegalFinityDomain = false
15
+ title
17
16
  }: AccordionItemProps): React.JSX.Element => {
18
17
  const contenReftHeight = useRef<HTMLInputElement>(null)
19
18
  const { state } = useStateDataAccordionItem(index)
@@ -27,7 +26,7 @@ export const AccordionItem = ({
27
26
  }, [state.locked.actionType])
28
27
 
29
28
  return (
30
- <AccordionItemStyled className={`accordion__container ${isLegalFinityDomain ? 'legalfinity' : ''}`}>
29
+ <AccordionItemStyled className='accordion__container'>
31
30
  <button
32
31
  className={`accordion__button
33
32
  ${state.handler === 'success' ? '--success' : ''}
@@ -6,5 +6,4 @@ export interface AccordionItemProps {
6
6
  isOpen?: boolean;
7
7
  onClick: () => void;
8
8
  title?: string;
9
- isLegalFinityDomain?: boolean;
10
9
  }
@@ -6,5 +6,4 @@ export interface AccordionItemProps {
6
6
  isOpen?: boolean
7
7
  onClick: () => void
8
8
  title?: string
9
- isLegalFinityDomain?: boolean
10
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.63.3",
3
+ "version": "7.63.5",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",