@npm_leadtech/legal-lib-components 7.89.9 → 7.89.21

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 (67) hide show
  1. package/dist/css/styles.css +0 -16
  2. package/dist/images/componentsSvg/CloseIcon.js +1 -1
  3. package/dist/images/componentsSvg/CloseIcon.tsx +6 -3
  4. package/dist/images/componentsSvg/Done24px.d.ts +1 -1
  5. package/dist/images/componentsSvg/Done24px.js +1 -1
  6. package/dist/images/componentsSvg/Done24px.tsx +7 -4
  7. package/dist/images/componentsSvg/NewRelease24p.d.ts +1 -1
  8. package/dist/images/componentsSvg/NewRelease24p.js +2 -2
  9. package/dist/images/componentsSvg/NewRelease24p.tsx +19 -4
  10. package/dist/images/componentsSvg/Sign24px.d.ts +2 -2
  11. package/dist/images/componentsSvg/Sign24px.js +1 -1
  12. package/dist/images/componentsSvg/Sign24px.tsx +6 -7
  13. package/dist/images/componentsSvg/Time24px.d.ts +1 -1
  14. package/dist/images/componentsSvg/Time24px.js +2 -2
  15. package/dist/images/componentsSvg/Time24px.tsx +26 -8
  16. package/dist/src/components/atoms/Button/Button.js +1 -1
  17. package/dist/src/components/atoms/Button/Button.scss +0 -19
  18. package/dist/src/components/atoms/Button/Button.tsx +1 -1
  19. package/dist/src/components/atoms/Button/ButtonProps.types.d.ts +1 -1
  20. package/dist/src/components/atoms/Button/ButtonProps.types.ts +0 -1
  21. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.js +15 -5
  22. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.js +40 -41
  23. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.ts +40 -41
  24. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.tsx +35 -7
  25. package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.d.ts +6 -4
  26. package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.ts +6 -5
  27. package/dist/src/components/atoms/PreFooter/PreFooter.js +3 -3
  28. package/dist/src/components/atoms/PreFooter/PreFooter.tsx +2 -2
  29. package/dist/src/components/atoms/PreFooter/PreFooterProps.d.ts +1 -1
  30. package/dist/src/components/atoms/PreFooter/PreFooterProps.ts +1 -1
  31. package/dist/src/components/atoms/Tooltip/Tooltip.js +2 -0
  32. package/dist/src/components/atoms/Tooltip/Tooltip.tsx +2 -0
  33. package/dist/src/components/molecules/TextInput/tests/Input.test.tsx +18 -29
  34. package/dist/src/components/molecules/TextInput/tests/TextInput.test.tsx +9 -16
  35. package/dist/src/components/molecules/TextInput/tests/TextInputMessage.test.tsx +2 -2
  36. package/dist/src/components/molecules/TextInput/tests/TextInputTooltip.test.tsx +1 -1
  37. package/dist/src/components/molecules/index.d.ts +0 -1
  38. package/dist/src/components/molecules/index.js +0 -1
  39. package/dist/src/components/molecules/index.ts +0 -1
  40. package/dist/src/globalStyles/variables.scss +31 -12
  41. package/dist/src/globalStyles/variablesCss.scss +10 -0
  42. package/dist/tsconfig.build.tsbuildinfo +1 -1
  43. package/package.json +1 -5
  44. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.d.ts +0 -3
  45. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.js +0 -16
  46. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.d.ts +0 -1
  47. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.js +0 -60
  48. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.ts +0 -61
  49. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.tsx +0 -28
  50. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.d.ts +0 -6
  51. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.js +0 -1
  52. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.ts +0 -7
  53. package/dist/src/components/atoms/SignerStatusItem/index.d.ts +0 -2
  54. package/dist/src/components/atoms/SignerStatusItem/index.js +0 -1
  55. package/dist/src/components/atoms/SignerStatusItem/index.ts +0 -2
  56. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.d.ts +0 -3
  57. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.js +0 -7
  58. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.d.ts +0 -1
  59. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.js +0 -22
  60. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.ts +0 -23
  61. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.tsx +0 -38
  62. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.d.ts +0 -9
  63. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.js +0 -1
  64. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.ts +0 -10
  65. package/dist/src/components/molecules/SignersStatusTooltipContent/index.d.ts +0 -2
  66. package/dist/src/components/molecules/SignersStatusTooltipContent/index.js +0 -1
  67. package/dist/src/components/molecules/SignersStatusTooltipContent/index.ts +0 -2
@@ -1,28 +0,0 @@
1
- import React, { type FC } from 'react'
2
-
3
- import { type SignatureStatus, type SignerStatusItemProps } from './SignerStatusItemProps.types'
4
- import { CloseIcon } from '../../../../images/componentsSvg/CloseIcon'
5
- import { Done24px } from '../../../../images/componentsSvg/Done24px'
6
- import { NewRelease24p } from '../../../../images/componentsSvg/NewRelease24p'
7
- import { Time24px } from '../../../../images/componentsSvg/Time24px'
8
-
9
- import { SignerStatusItemStyled } from './SignerStatusItem.styled'
10
-
11
- const iconByStatus: Record<SignatureStatus, React.ReactNode> = {
12
- signed: <Done24px />,
13
- 'in-progress': <Time24px />,
14
- declined: <CloseIcon />,
15
- awaiting: <Time24px />,
16
- 'no-response': <NewRelease24p />
17
- }
18
-
19
- export const SignerStatusItem: FC<SignerStatusItemProps> = ({ status, children, givenClass = '' }) => {
20
- return (
21
- <SignerStatusItemStyled className={`signer-status-item signer-status-item--${status} ${givenClass}`}>
22
- <span className='signer-status-item__icon' aria-hidden>
23
- {iconByStatus[status]}
24
- </span>
25
- {children}
26
- </SignerStatusItemStyled>
27
- )
28
- }
@@ -1,6 +0,0 @@
1
- export type SignatureStatus = 'signed' | 'in-progress' | 'declined' | 'awaiting' | 'no-response';
2
- export interface SignerStatusItemProps {
3
- status: SignatureStatus;
4
- children: React.ReactNode;
5
- givenClass?: string;
6
- }
@@ -1,7 +0,0 @@
1
- export type SignatureStatus = 'signed' | 'in-progress' | 'declined' | 'awaiting' | 'no-response'
2
-
3
- export interface SignerStatusItemProps {
4
- status: SignatureStatus
5
- children: React.ReactNode
6
- givenClass?: string
7
- }
@@ -1,2 +0,0 @@
1
- export { SignerStatusItem } from './SignerStatusItem';
2
- export type { SignerStatusItemProps, SignatureStatus } from './SignerStatusItemProps.types';
@@ -1 +0,0 @@
1
- export { SignerStatusItem } from './SignerStatusItem';
@@ -1,2 +0,0 @@
1
- export { SignerStatusItem } from './SignerStatusItem'
2
- export type { SignerStatusItemProps, SignatureStatus } from './SignerStatusItemProps.types'
@@ -1,3 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { SignersStatusTooltipContentProps } from './SignersStatusTooltipContentProps.types';
3
- export declare const SignersStatusTooltipContent: FC<SignersStatusTooltipContentProps>;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Button } from '../../atoms/Button';
3
- import { SignerStatusItem } from '../../atoms/SignerStatusItem';
4
- import { SignersStatusTooltipContentStyled } from './SignersStatusTooltipContent.styled';
5
- export const SignersStatusTooltipContent = ({ title = 'Signers Status', signers, manageRequestsLabel, onManageRequestsClick, manageRequestsDataQa = 'manage_requests_button', givenClass = '' }) => {
6
- return (_jsxs(SignersStatusTooltipContentStyled, { className: `signers-status-tooltip-content ${givenClass}`.trim(), children: [_jsx("h3", { children: title }), _jsx("ul", { className: 'signers-status-tooltip-content__signers', children: signers.map((signer, index) => (_jsx(SignerStatusItem, { status: signer.status, children: signer.children }, `${signer.status}-${index}`))) }), _jsx("div", { className: 'signers-status-tooltip-content__button', children: _jsx(Button, { noLink: true, color: 'tertiary', givenClass: 'underline-button', label: manageRequestsLabel, dataQa: manageRequestsDataQa, onClick: onManageRequestsClick }) })] }));
7
- };
@@ -1 +0,0 @@
1
- export declare const SignersStatusTooltipContentStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,22 +0,0 @@
1
- import styled from 'styled-components';
2
- export const SignersStatusTooltipContentStyled = styled.div `
3
- width: max-content;
4
- padding: 0.5rem;
5
- display: flex;
6
- flex-direction: column;
7
- gap: 0.5rem;
8
- font-family: var(--font-sans);
9
-
10
- .signers-status-tooltip-content__signers {
11
- display: flex;
12
- flex-direction: column;
13
- gap: 0.5rem;
14
- padding-bottom: 0.5rem;
15
- margin: 0;
16
- list-style: none;
17
- }
18
-
19
- .signers-status-tooltip-content__button {
20
- margin-top: 0;
21
- }
22
- `;
@@ -1,23 +0,0 @@
1
- import styled from 'styled-components'
2
-
3
- export const SignersStatusTooltipContentStyled = styled.div`
4
- width: max-content;
5
- padding: 0.5rem;
6
- display: flex;
7
- flex-direction: column;
8
- gap: 0.5rem;
9
- font-family: var(--font-sans);
10
-
11
- .signers-status-tooltip-content__signers {
12
- display: flex;
13
- flex-direction: column;
14
- gap: 0.5rem;
15
- padding-bottom: 0.5rem;
16
- margin: 0;
17
- list-style: none;
18
- }
19
-
20
- .signers-status-tooltip-content__button {
21
- margin-top: 0;
22
- }
23
- `
@@ -1,38 +0,0 @@
1
- import React, { type FC } from 'react'
2
-
3
- import { Button } from '../../atoms/Button'
4
- import { SignerStatusItem } from '../../atoms/SignerStatusItem'
5
- import type { SignersStatusTooltipContentProps } from './SignersStatusTooltipContentProps.types'
6
- import { SignersStatusTooltipContentStyled } from './SignersStatusTooltipContent.styled'
7
-
8
- export const SignersStatusTooltipContent: FC<SignersStatusTooltipContentProps> = ({
9
- title = 'Signers Status',
10
- signers,
11
- manageRequestsLabel,
12
- onManageRequestsClick,
13
- manageRequestsDataQa = 'manage_requests_button',
14
- givenClass = ''
15
- }) => {
16
- return (
17
- <SignersStatusTooltipContentStyled className={`signers-status-tooltip-content ${givenClass}`.trim()}>
18
- <h3>{title}</h3>
19
- <ul className='signers-status-tooltip-content__signers'>
20
- {signers.map((signer, index) => (
21
- <SignerStatusItem key={`${signer.status}-${index}`} status={signer.status}>
22
- {signer.children}
23
- </SignerStatusItem>
24
- ))}
25
- </ul>
26
- <div className='signers-status-tooltip-content__button'>
27
- <Button
28
- noLink
29
- color='tertiary'
30
- givenClass='underline-button'
31
- label={manageRequestsLabel}
32
- dataQa={manageRequestsDataQa}
33
- onClick={onManageRequestsClick}
34
- />
35
- </div>
36
- </SignersStatusTooltipContentStyled>
37
- )
38
- }
@@ -1,9 +0,0 @@
1
- import type { SignerStatusItemProps } from '../../atoms/SignerStatusItem/SignerStatusItemProps.types';
2
- export interface SignersStatusTooltipContentProps {
3
- title?: string;
4
- signers: SignerStatusItemProps[];
5
- manageRequestsLabel: string;
6
- onManageRequestsClick: () => void;
7
- manageRequestsDataQa?: string;
8
- givenClass?: string;
9
- }
@@ -1,10 +0,0 @@
1
- import type { SignerStatusItemProps } from '../../atoms/SignerStatusItem/SignerStatusItemProps.types'
2
-
3
- export interface SignersStatusTooltipContentProps {
4
- title?: string
5
- signers: SignerStatusItemProps[]
6
- manageRequestsLabel: string
7
- onManageRequestsClick: () => void
8
- manageRequestsDataQa?: string
9
- givenClass?: string
10
- }
@@ -1,2 +0,0 @@
1
- export { SignersStatusTooltipContent } from './SignersStatusTooltipContent';
2
- export type { SignersStatusTooltipContentProps } from './SignersStatusTooltipContentProps.types';
@@ -1 +0,0 @@
1
- export { SignersStatusTooltipContent } from './SignersStatusTooltipContent';
@@ -1,2 +0,0 @@
1
- export { SignersStatusTooltipContent } from './SignersStatusTooltipContent'
2
- export type { SignersStatusTooltipContentProps } from './SignersStatusTooltipContentProps.types'