@npm_leadtech/legal-lib-components 7.89.10 → 7.90.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 (79) hide show
  1. package/dist/css/styles.css +0 -16
  2. package/dist/images/componentsSvg/ArrowRight.js +1 -1
  3. package/dist/images/componentsSvg/ArrowRight.tsx +1 -1
  4. package/dist/images/componentsSvg/CloseIcon.js +1 -1
  5. package/dist/images/componentsSvg/CloseIcon.tsx +6 -3
  6. package/dist/images/componentsSvg/Delete24p.tsx +2 -1
  7. package/dist/images/componentsSvg/Done24px.d.ts +1 -1
  8. package/dist/images/componentsSvg/Done24px.js +1 -1
  9. package/dist/images/componentsSvg/Done24px.tsx +7 -4
  10. package/dist/images/componentsSvg/Edit24p.tsx +1 -1
  11. package/dist/images/componentsSvg/EditText24px.tsx +1 -1
  12. package/dist/images/componentsSvg/Eye24pxOptimized.tsx +1 -1
  13. package/dist/images/componentsSvg/IconDuplicate24px.tsx +1 -1
  14. package/dist/images/componentsSvg/InfoError24pxOutlined.js +1 -1
  15. package/dist/images/componentsSvg/InfoError24pxOutlined.tsx +1 -1
  16. package/dist/images/componentsSvg/MenuCollapse24p.js +1 -1
  17. package/dist/images/componentsSvg/MenuCollapse24p.tsx +1 -1
  18. package/dist/images/componentsSvg/NewRelease24p.d.ts +1 -1
  19. package/dist/images/componentsSvg/NewRelease24p.js +2 -2
  20. package/dist/images/componentsSvg/NewRelease24p.tsx +19 -4
  21. package/dist/images/componentsSvg/RatafiaIcon24px.tsx +3 -3
  22. package/dist/images/componentsSvg/Sign24px.d.ts +2 -2
  23. package/dist/images/componentsSvg/Sign24px.js +1 -1
  24. package/dist/images/componentsSvg/Sign24px.tsx +6 -7
  25. package/dist/images/componentsSvg/Time24px.d.ts +1 -1
  26. package/dist/images/componentsSvg/Time24px.js +2 -2
  27. package/dist/images/componentsSvg/Time24px.tsx +26 -8
  28. package/dist/src/components/atoms/Button/Button.js +1 -1
  29. package/dist/src/components/atoms/Button/Button.scss +0 -19
  30. package/dist/src/components/atoms/Button/Button.tsx +1 -1
  31. package/dist/src/components/atoms/Button/ButtonProps.types.d.ts +1 -1
  32. package/dist/src/components/atoms/Button/ButtonProps.types.ts +0 -1
  33. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.js +15 -5
  34. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.js +40 -41
  35. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.ts +40 -41
  36. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.tsx +35 -7
  37. package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.d.ts +6 -4
  38. package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.ts +6 -5
  39. package/dist/src/components/atoms/PreFooter/PreFooter.js +3 -3
  40. package/dist/src/components/atoms/PreFooter/PreFooter.tsx +2 -2
  41. package/dist/src/components/atoms/PreFooter/PreFooterProps.d.ts +1 -1
  42. package/dist/src/components/atoms/PreFooter/PreFooterProps.ts +1 -1
  43. package/dist/src/components/atoms/Tooltip/Tooltip.js +2 -0
  44. package/dist/src/components/atoms/Tooltip/Tooltip.tsx +2 -0
  45. package/dist/src/components/molecules/TextInput/tests/Input.test.tsx +18 -29
  46. package/dist/src/components/molecules/TextInput/tests/TextInput.test.tsx +9 -16
  47. package/dist/src/components/molecules/TextInput/tests/TextInputMessage.test.tsx +2 -2
  48. package/dist/src/components/molecules/TextInput/tests/TextInputTooltip.test.tsx +1 -1
  49. package/dist/src/components/molecules/index.d.ts +0 -1
  50. package/dist/src/components/molecules/index.js +0 -1
  51. package/dist/src/components/molecules/index.ts +0 -1
  52. package/dist/src/globalStyles/variables.scss +31 -12
  53. package/dist/src/globalStyles/variablesCss.scss +10 -0
  54. package/dist/tsconfig.build.tsbuildinfo +1 -1
  55. package/package.json +1 -5
  56. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.d.ts +0 -3
  57. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.js +0 -16
  58. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.d.ts +0 -1
  59. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.js +0 -60
  60. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.ts +0 -61
  61. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.tsx +0 -28
  62. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.d.ts +0 -6
  63. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.js +0 -1
  64. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.ts +0 -7
  65. package/dist/src/components/atoms/SignerStatusItem/index.d.ts +0 -2
  66. package/dist/src/components/atoms/SignerStatusItem/index.js +0 -1
  67. package/dist/src/components/atoms/SignerStatusItem/index.ts +0 -2
  68. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.d.ts +0 -3
  69. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.js +0 -7
  70. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.d.ts +0 -1
  71. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.js +0 -22
  72. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.ts +0 -23
  73. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.tsx +0 -38
  74. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.d.ts +0 -9
  75. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.js +0 -1
  76. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.ts +0 -10
  77. package/dist/src/components/molecules/SignersStatusTooltipContent/index.d.ts +0 -2
  78. package/dist/src/components/molecules/SignersStatusTooltipContent/index.js +0 -1
  79. package/dist/src/components/molecules/SignersStatusTooltipContent/index.ts +0 -2
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CloseIcon } from '../../../../images/componentsSvg/CloseIcon';
3
- import { Done24px } from '../../../../images/componentsSvg/Done24px';
4
- import { NewRelease24p } from '../../../../images/componentsSvg/NewRelease24p';
5
- import { Time24px } from '../../../../images/componentsSvg/Time24px';
6
- import { SignerStatusItemStyled } from './SignerStatusItem.styled';
7
- const iconByStatus = {
8
- signed: _jsx(Done24px, {}),
9
- 'in-progress': _jsx(Time24px, {}),
10
- declined: _jsx(CloseIcon, {}),
11
- awaiting: _jsx(Time24px, {}),
12
- 'no-response': _jsx(NewRelease24p, {})
13
- };
14
- export const SignerStatusItem = ({ status, children, givenClass = '' }) => {
15
- return (_jsxs(SignerStatusItemStyled, { className: `signer-status-item signer-status-item--${status} ${givenClass}`, children: [_jsx("span", { className: 'signer-status-item__icon', "aria-hidden": true, children: iconByStatus[status] }), children] }));
16
- };
@@ -1 +0,0 @@
1
- export declare const SignerStatusItemStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
@@ -1,60 +0,0 @@
1
- import styled from 'styled-components';
2
- export const SignerStatusItemStyled = styled.li `
3
- display: flex;
4
- align-items: center;
5
- padding: 0.25rem 0.5rem;
6
- border-radius: 0.25rem;
7
- font-family: var(--font-sans);
8
- list-style: none;
9
- gap: 0.25rem;
10
-
11
- .signer-status-item__icon {
12
- flex-shrink: 0;
13
- width: 16px;
14
- height: 16px;
15
- display: flex;
16
- align-items: center;
17
- justify-content: center;
18
- color: currentColor;
19
- }
20
-
21
- &.signer-status-item--signed {
22
- background-color: var(--primary-main-light-4);
23
-
24
- svg > path {
25
- fill: var(--primary-main-light-1);
26
- }
27
- }
28
-
29
- &.signer-status-item--in-progress {
30
- background-color: var(--neutral-neutral-6);
31
-
32
- svg > path {
33
- fill: var(--neutral-neutral-2);
34
- }
35
- }
36
-
37
- &.signer-status-item--declined {
38
- background-color: var(--error-error-3);
39
-
40
- svg > path {
41
- fill: var(--error-main);
42
- }
43
- }
44
-
45
- &.signer-status-item--awaiting {
46
- background-color: var(--secondary-main-light-4);
47
-
48
- svg > path {
49
- fill: var(--secondary-main-dark-2);
50
- }
51
- }
52
-
53
- &.signer-status-item--no-response {
54
- background-color: var(--neutral-neutral-4);
55
-
56
- svg > path {
57
- fill: var(--neutral-neutral-1);
58
- }
59
- }
60
- `;
@@ -1,61 +0,0 @@
1
- import styled from 'styled-components'
2
-
3
- export const SignerStatusItemStyled = styled.li`
4
- display: flex;
5
- align-items: center;
6
- padding: 0.25rem 0.5rem;
7
- border-radius: 0.25rem;
8
- font-family: var(--font-sans);
9
- list-style: none;
10
- gap: 0.25rem;
11
-
12
- .signer-status-item__icon {
13
- flex-shrink: 0;
14
- width: 16px;
15
- height: 16px;
16
- display: flex;
17
- align-items: center;
18
- justify-content: center;
19
- color: currentColor;
20
- }
21
-
22
- &.signer-status-item--signed {
23
- background-color: var(--primary-main-light-4);
24
-
25
- svg > path {
26
- fill: var(--primary-main-light-1);
27
- }
28
- }
29
-
30
- &.signer-status-item--in-progress {
31
- background-color: var(--neutral-neutral-6);
32
-
33
- svg > path {
34
- fill: var(--neutral-neutral-2);
35
- }
36
- }
37
-
38
- &.signer-status-item--declined {
39
- background-color: var(--error-error-3);
40
-
41
- svg > path {
42
- fill: var(--error-main);
43
- }
44
- }
45
-
46
- &.signer-status-item--awaiting {
47
- background-color: var(--secondary-main-light-4);
48
-
49
- svg > path {
50
- fill: var(--secondary-main-dark-2);
51
- }
52
- }
53
-
54
- &.signer-status-item--no-response {
55
- background-color: var(--neutral-neutral-4);
56
-
57
- svg > path {
58
- fill: var(--neutral-neutral-1);
59
- }
60
- }
61
- `
@@ -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'