@npm_leadtech/legal-lib-components 7.91.1 → 7.92.0

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 (25) hide show
  1. package/dist/src/components/atoms/DatePickerCustom/DatepickerPlugin.scss +20 -20
  2. package/dist/src/components/atoms/DatePickerCustom/index.js.map +4 -4
  3. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.js +1 -1
  4. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.ts +1 -1
  5. package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.d.ts +1 -1
  6. package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.ts +1 -1
  7. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.js +1 -1
  8. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.js +1 -1
  9. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.ts +1 -1
  10. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.tsx +1 -1
  11. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.d.ts +1 -1
  12. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.ts +1 -1
  13. package/dist/src/components/atoms/TestAB/TestAB.d.ts +3 -4
  14. package/dist/src/components/organisms/TopFooter/TopFooter.js +1 -1
  15. package/dist/src/components/organisms/TopFooter/TopFooter.tsx +3 -1
  16. package/dist/src/components/sections/CardBoxSection/CardBoxSection.js +1 -1
  17. package/dist/src/components/sections/CardBoxSection/CardBoxSection.tsx +3 -1
  18. package/dist/src/components/sections/FaqSection/FaqSection.js +1 -1
  19. package/dist/src/components/sections/FaqSection/FaqSection.tsx +3 -1
  20. package/dist/src/globalStyles/animations.scss +2 -5
  21. package/dist/src/hooks/useIntersectionObserver.d.ts +2 -2
  22. package/dist/src/hooks/useIntersectionObserver.js +1 -1
  23. package/dist/src/hooks/useIntersectionObserver.tsx +4 -4
  24. package/dist/tsconfig.build.tsbuildinfo +1 -1
  25. package/package.json +52 -53
@@ -69,7 +69,7 @@ export const DocumentStatusStyled = styled.div `
69
69
  }
70
70
  }
71
71
 
72
- &.completed {
72
+ &.signed {
73
73
  background-color: var(--primary-main-light-4);
74
74
  border-color: var(--primary-main-light-2);
75
75
  color: var(--primary-main-light-1);
@@ -70,7 +70,7 @@ export const DocumentStatusStyled = styled.div`
70
70
  }
71
71
  }
72
72
 
73
- &.completed {
73
+ &.signed {
74
74
  background-color: var(--primary-main-light-4);
75
75
  border-color: var(--primary-main-light-2);
76
76
  color: var(--primary-main-light-1);
@@ -3,4 +3,4 @@ export interface DocumentStatusProps {
3
3
  type?: DocumentStatusType;
4
4
  givenClass?: string;
5
5
  }
6
- export type DocumentStatusType = 'default' | 'in-progress' | 'awaiting' | 'no-response' | 'declined' | 'completed';
6
+ export type DocumentStatusType = 'default' | 'in-progress' | 'awaiting' | 'no-response' | 'declined' | 'signed';
@@ -4,4 +4,4 @@ export interface DocumentStatusProps {
4
4
  givenClass?: string
5
5
  }
6
6
 
7
- export type DocumentStatusType = 'default' | 'in-progress' | 'awaiting' | 'no-response' | 'declined' | 'completed'
7
+ export type DocumentStatusType = 'default' | 'in-progress' | 'awaiting' | 'no-response' | 'declined' | 'signed'
@@ -5,7 +5,7 @@ import { NewRelease24p } from '../../../../images/componentsSvg/NewRelease24p';
5
5
  import { Time24px } from '../../../../images/componentsSvg/Time24px';
6
6
  import { SignerStatusItemStyled } from './SignerStatusItem.styled';
7
7
  const iconByStatus = {
8
- completed: _jsx(Done24px, {}),
8
+ signed: _jsx(Done24px, {}),
9
9
  'in-progress': _jsx(Time24px, {}),
10
10
  declined: _jsx(CloseIcon, {}),
11
11
  awaiting: _jsx(Time24px, {}),
@@ -18,7 +18,7 @@ export const SignerStatusItemStyled = styled.li `
18
18
  color: currentColor;
19
19
  }
20
20
 
21
- &.signer-status-item--completed {
21
+ &.signer-status-item--signed {
22
22
  background-color: var(--primary-main-light-4);
23
23
 
24
24
  svg > path {
@@ -19,7 +19,7 @@ export const SignerStatusItemStyled = styled.li`
19
19
  color: currentColor;
20
20
  }
21
21
 
22
- &.signer-status-item--completed {
22
+ &.signer-status-item--signed {
23
23
  background-color: var(--primary-main-light-4);
24
24
 
25
25
  svg > path {
@@ -9,7 +9,7 @@ import { Time24px } from '../../../../images/componentsSvg/Time24px'
9
9
  import { SignerStatusItemStyled } from './SignerStatusItem.styled'
10
10
 
11
11
  const iconByStatus: Record<SignatureStatus, React.ReactNode> = {
12
- completed: <Done24px />,
12
+ signed: <Done24px />,
13
13
  'in-progress': <Time24px />,
14
14
  declined: <CloseIcon />,
15
15
  awaiting: <Time24px />,
@@ -1,4 +1,4 @@
1
- export type SignatureStatus = 'completed' | 'in-progress' | 'declined' | 'awaiting' | 'no-response';
1
+ export type SignatureStatus = 'signed' | 'in-progress' | 'declined' | 'awaiting' | 'no-response';
2
2
  export interface SignerStatusItemProps {
3
3
  status: SignatureStatus;
4
4
  children: React.ReactNode;
@@ -1,4 +1,4 @@
1
- export type SignatureStatus = 'completed' | 'in-progress' | 'declined' | 'awaiting' | 'no-response'
1
+ export type SignatureStatus = 'signed' | 'in-progress' | 'declined' | 'awaiting' | 'no-response'
2
2
 
3
3
  export interface SignerStatusItemProps {
4
4
  status: SignatureStatus
@@ -1,4 +1,3 @@
1
- import PropTypes from 'prop-types';
2
1
  /**
3
2
  * @param {string} props.id, jira task number
4
3
  * @param {function} props.getVariant, function to obtain the url
@@ -13,8 +12,8 @@ export declare const TestAB: {
13
12
  defaultValue: any;
14
13
  }): any;
15
14
  propTypes: {
16
- id: PropTypes.Requireable<string>;
17
- getVariant: PropTypes.Requireable<(...args: any[]) => any>;
18
- defaultValue: PropTypes.Requireable<string>;
15
+ id: any;
16
+ getVariant: any;
17
+ defaultValue: any;
19
18
  };
20
19
  };
@@ -3,5 +3,5 @@ import { SelectorTrustpilotWrapper, TopFooterStyled } from './TopFooter.styled';
3
3
  import { ContactInfo } from '../../molecules/ContactInfo/ContactInfo';
4
4
  import { FooterMenu } from '../../molecules/FooterMenu/FooterMenu';
5
5
  export const TopFooter = ({ menus, contactInfo, trustPilotWidget }) => {
6
- return (_jsxs(TopFooterStyled, { className: 'footer__wrapper', children: [menus?.map((menu) => _jsx(FooterMenu, { ...menu }, menu.title)), (contactInfo || Boolean(trustPilotWidget)) && (_jsxs(SelectorTrustpilotWrapper, { children: [contactInfo && _jsx(ContactInfo, { ...contactInfo }), Boolean(trustPilotWidget) && _jsx("div", { children: trustPilotWidget })] }))] }));
6
+ return (_jsxs(TopFooterStyled, { className: 'footer__wrapper', children: [menus?.map((menu) => (_jsx(FooterMenu, { ...menu }, menu.title))), (contactInfo || Boolean(trustPilotWidget)) && (_jsxs(SelectorTrustpilotWrapper, { children: [contactInfo && _jsx(ContactInfo, { ...contactInfo }), Boolean(trustPilotWidget) && _jsx("div", { children: trustPilotWidget })] }))] }));
7
7
  };
@@ -7,7 +7,9 @@ import { TopFooterProps } from './TopFooterProps.types'
7
7
  export const TopFooter: React.FC<TopFooterProps> = ({ menus, contactInfo, trustPilotWidget }) => {
8
8
  return (
9
9
  <TopFooterStyled className='footer__wrapper'>
10
- {menus?.map((menu) => <FooterMenu key={menu.title} {...menu} />)}
10
+ {menus?.map((menu) => (
11
+ <FooterMenu key={menu.title} {...menu} />
12
+ ))}
11
13
 
12
14
  {(contactInfo || Boolean(trustPilotWidget)) && (
13
15
  <SelectorTrustpilotWrapper>
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { CardBoxFeaturedSectionStyled, CardBoxMinimalSectionStyled } from './CardBoxSection.styled';
3
3
  import { CardBox } from '../../atoms';
4
4
  export const CardBoxMinimalSection = ({ cards }) => {
5
- return (_jsx(CardBoxMinimalSectionStyled, { children: cards?.map(({ text, icon, id }) => _jsx(CardBox, { text: text, icon: icon }, id)) }));
5
+ return (_jsx(CardBoxMinimalSectionStyled, { children: cards?.map(({ text, icon, id }) => (_jsx(CardBox, { text: text, icon: icon }, id))) }));
6
6
  };
7
7
  export const CardBoxFeaturedSection = ({ cards }) => {
8
8
  return (_jsx(CardBoxFeaturedSectionStyled, { children: cards?.map(({ text, icon, id }) => (_jsx(CardBox, { text: text, icon: icon, padding: '16px', gap: '0.5rem', borderRadius: '8px' }, id))) }));
@@ -7,7 +7,9 @@ import { type CardBoxSectionProps } from './CardBoxSectionProps'
7
7
  export const CardBoxMinimalSection: React.FC<CardBoxSectionProps> = ({ cards }) => {
8
8
  return (
9
9
  <CardBoxMinimalSectionStyled>
10
- {cards?.map(({ text, icon, id }) => <CardBox key={id} text={text} icon={icon} />)}
10
+ {cards?.map(({ text, icon, id }) => (
11
+ <CardBox key={id} text={text} icon={icon} />
12
+ ))}
11
13
  </CardBoxMinimalSectionStyled>
12
14
  )
13
15
  }
@@ -6,5 +6,5 @@ export const FaqSection = ({ groups, givenClass }) => {
6
6
  if (!groups?.length)
7
7
  return null;
8
8
  const classnames = classNames(`faqSection ${givenClass ?? ''}`);
9
- return (_jsx(FaqSectionStyled, { className: classnames, itemScope: true, itemType: 'https://www.schema.org/FAQPage', children: groups?.map((group) => _jsx(FaqGroup, { ...group }, group.id)) }));
9
+ return (_jsx(FaqSectionStyled, { className: classnames, itemScope: true, itemType: 'https://www.schema.org/FAQPage', children: groups?.map((group) => (_jsx(FaqGroup, { ...group }, group.id))) }));
10
10
  };
@@ -11,7 +11,9 @@ export const FaqSection: React.FC<FaqSectionProps> = ({ groups, givenClass }) =>
11
11
 
12
12
  return (
13
13
  <FaqSectionStyled className={classnames} itemScope itemType='https://www.schema.org/FAQPage'>
14
- {groups?.map((group) => <FaqGroup key={group.id} {...group} />)}
14
+ {groups?.map((group) => (
15
+ <FaqGroup key={group.id} {...group} />
16
+ ))}
15
17
  </FaqSectionStyled>
16
18
  )
17
19
  }
@@ -55,11 +55,8 @@
55
55
  }
56
56
 
57
57
  .background-ratafia-animation {
58
- background: radial-gradient(
59
- 90.31% 103.09% at 74.2% -62.04%,
60
- var(--primary-main-dark-2) 0%,
61
- var(--primary-main-dark-1) 100%
62
- ),
58
+ background:
59
+ radial-gradient(90.31% 103.09% at 74.2% -62.04%, var(--primary-main-dark-2) 0%, var(--primary-main-dark-1) 100%),
63
60
  radial-gradient(80.63% 44.37% at 73.54% 70.76%, var(--primary-main) 0%, var(--primary-main-dark-2) 100%),
64
61
  radial-gradient(92.19% 33.51% at 0% 0%, var(--primary-main) 0%, var(--primary-main-dark-1) 100%),
65
62
  var(--primary-main-dark-2);
@@ -1,7 +1,7 @@
1
- import { type RefObject } from 'react';
1
+ import { RefObject } from 'react';
2
2
  interface UseIntersectionObserverParams {
3
3
  options?: IntersectionObserverInit;
4
4
  defaultIntersecting?: boolean;
5
5
  }
6
- export declare function useIntersectionObserver<T extends HTMLElement>({ options, defaultIntersecting }?: UseIntersectionObserverParams): [RefObject<T>, boolean];
6
+ export declare function useIntersectionObserver<T extends HTMLElement>({ options, defaultIntersecting }?: UseIntersectionObserverParams): [RefObject<T | null>, boolean];
7
7
  export {};
@@ -4,7 +4,7 @@ export function useIntersectionObserver({ options = {}, defaultIntersecting = fa
4
4
  const elementRef = useRef(null);
5
5
  useEffect(() => {
6
6
  const currentElement = elementRef.current;
7
- if (currentElement == null)
7
+ if (!currentElement)
8
8
  return;
9
9
  const observer = new IntersectionObserver((entries) => {
10
10
  entries.forEach((entry) => {
@@ -1,4 +1,4 @@
1
- import { type RefObject, useEffect, useRef, useState } from 'react'
1
+ import { RefObject, useEffect, useRef, useState } from 'react'
2
2
 
3
3
  interface UseIntersectionObserverParams {
4
4
  options?: IntersectionObserverInit
@@ -8,13 +8,13 @@ interface UseIntersectionObserverParams {
8
8
  export function useIntersectionObserver<T extends HTMLElement>({
9
9
  options = {},
10
10
  defaultIntersecting = false
11
- }: UseIntersectionObserverParams = {}): [RefObject<T>, boolean] {
11
+ }: UseIntersectionObserverParams = {}): [RefObject<T | null>, boolean] {
12
12
  const [isIntersecting, setIsIntersecting] = useState(defaultIntersecting)
13
- const elementRef = useRef<T>(null) as RefObject<T>
13
+ const elementRef = useRef<T>(null)
14
14
 
15
15
  useEffect(() => {
16
16
  const currentElement = elementRef.current
17
- if (currentElement == null) return
17
+ if (!currentElement) return
18
18
 
19
19
  const observer = new IntersectionObserver((entries) => {
20
20
  entries.forEach((entry) => {