@npm_leadtech/legal-lib-components 7.102.2 → 7.103.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.
@@ -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, 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 }) }))] }));
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_${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 }) }))] }));
9
9
  };
@@ -23,7 +23,7 @@ export const SignersStatusTooltipContent: FC<SignersStatusTooltipContentProps> =
23
23
  <SignerStatusItem
24
24
  key={`${signer.status}-${index}`}
25
25
  status={signer.status}
26
- dataQa={`tooltip_status_row_${index}`}
26
+ dataQa={`tooltip_status_${signer.status}`}
27
27
  >
28
28
  {signer.children}
29
29
  </SignerStatusItem>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.102.2",
3
+ "version": "7.103.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",