@npm_leadtech/legal-lib-components 7.102.0 → 7.102.2

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.
@@ -11,6 +11,6 @@ const iconByStatus = {
11
11
  awaiting: _jsx(Time24px, {}),
12
12
  'no-response': _jsx(NewRelease24p, {})
13
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] }));
14
+ export const SignerStatusItem = ({ status, children, dataQa, givenClass = '' }) => {
15
+ return (_jsxs(SignerStatusItemStyled, { className: `signer-status-item signer-status-item--${status} ${givenClass}`, "data-qa": dataQa, children: [_jsx("span", { className: 'signer-status-item__icon', "aria-hidden": true, children: iconByStatus[status] }), children] }));
16
16
  };
@@ -16,9 +16,12 @@ const iconByStatus: Record<SignatureStatus, React.ReactNode> = {
16
16
  'no-response': <NewRelease24p />
17
17
  }
18
18
 
19
- export const SignerStatusItem: FC<SignerStatusItemProps> = ({ status, children, givenClass = '' }) => {
19
+ export const SignerStatusItem: FC<SignerStatusItemProps> = ({ status, children, dataQa, givenClass = '' }) => {
20
20
  return (
21
- <SignerStatusItemStyled className={`signer-status-item signer-status-item--${status} ${givenClass}`}>
21
+ <SignerStatusItemStyled
22
+ className={`signer-status-item signer-status-item--${status} ${givenClass}`}
23
+ data-qa={dataQa}
24
+ >
22
25
  <span className='signer-status-item__icon' aria-hidden>
23
26
  {iconByStatus[status]}
24
27
  </span>
@@ -2,5 +2,6 @@ export type SignatureStatus = 'completed' | 'in-progress' | 'declined' | 'awaiti
2
2
  export interface SignerStatusItemProps {
3
3
  status: SignatureStatus;
4
4
  children: React.ReactNode;
5
+ dataQa?: string;
5
6
  givenClass?: string;
6
7
  }
@@ -3,5 +3,6 @@ export type SignatureStatus = 'completed' | 'in-progress' | 'declined' | 'awaiti
3
3
  export interface SignerStatusItemProps {
4
4
  status: SignatureStatus
5
5
  children: React.ReactNode
6
+ dataQa?: string
6
7
  givenClass?: string
7
8
  }
@@ -5,5 +5,5 @@ import { SignerStatusItem } from '../../atoms/SignerStatusItem';
5
5
  import { SignersStatusTooltipContentStyled } from './SignersStatusTooltipContent.styled';
6
6
  export const SignersStatusTooltipContent = ({ title = 'Signers Status', signers, linkLabel = '', linkOnClick, linkDataQa = 'manage_requests_button', givenClass = '' }) => {
7
7
  const hasLink = Boolean(linkLabel?.length && linkOnClick !== undefined);
8
- return (_jsxs(SignersStatusTooltipContentStyled, { className: classNames('signers-status-tooltip-content', givenClass), 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}`))) }), hasLink && (_jsx("div", { className: 'signers-status-tooltip-content__button', children: _jsx(Button, { noLink: true, color: 'tertiary', givenClass: 'underline-button', label: linkLabel, dataQa: linkDataQa, onClick: linkOnClick }) }))] }));
8
+ return (_jsxs(SignersStatusTooltipContentStyled, { className: classNames('signers-status-tooltip-content', givenClass), children: [_jsx("h3", { children: title }), _jsx("ul", { className: 'signers-status-tooltip-content__signers', children: signers.map((signer, index) => (_jsx(SignerStatusItem, { status: signer.status, dataQa: `tooltip_status_row_${index}`, children: signer.children }, `${signer.status}-${index}`))) }), hasLink && (_jsx("div", { className: 'signers-status-tooltip-content__button', children: _jsx(Button, { noLink: true, color: 'tertiary', givenClass: 'underline-button', label: linkLabel, dataQa: linkDataQa, onClick: linkOnClick }) }))] }));
9
9
  };
@@ -20,7 +20,11 @@ export const SignersStatusTooltipContent: FC<SignersStatusTooltipContentProps> =
20
20
  <h3>{title}</h3>
21
21
  <ul className='signers-status-tooltip-content__signers'>
22
22
  {signers.map((signer, index) => (
23
- <SignerStatusItem key={`${signer.status}-${index}`} status={signer.status}>
23
+ <SignerStatusItem
24
+ key={`${signer.status}-${index}`}
25
+ status={signer.status}
26
+ dataQa={`tooltip_status_row_${index}`}
27
+ >
24
28
  {signer.children}
25
29
  </SignerStatusItem>
26
30
  ))}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.102.0",
3
+ "version": "7.102.2",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",