@npm_leadtech/legal-lib-components 7.89.0 → 7.89.4

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 (61) hide show
  1. package/dist/css/styles.css +16 -0
  2. package/dist/images/componentsSvg/CloseIcon.js +1 -1
  3. package/dist/images/componentsSvg/CloseIcon.tsx +1 -1
  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 +2 -2
  7. package/dist/images/componentsSvg/NewRelease24p.d.ts +1 -1
  8. package/dist/images/componentsSvg/NewRelease24p.js +1 -1
  9. package/dist/images/componentsSvg/NewRelease24p.tsx +2 -3
  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 +7 -6
  13. package/dist/images/componentsSvg/Time24px.d.ts +1 -1
  14. package/dist/images/componentsSvg/Time24px.js +1 -1
  15. package/dist/images/componentsSvg/Time24px.tsx +2 -3
  16. package/dist/src/components/atoms/Button/Button.js +1 -1
  17. package/dist/src/components/atoms/Button/Button.scss +19 -0
  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 +1 -0
  21. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.js +5 -15
  22. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.js +41 -40
  23. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.ts +41 -40
  24. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.tsx +7 -35
  25. package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.d.ts +4 -6
  26. package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.ts +5 -6
  27. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.d.ts +3 -0
  28. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.js +16 -0
  29. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.d.ts +1 -0
  30. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.js +60 -0
  31. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.ts +61 -0
  32. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.tsx +28 -0
  33. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.d.ts +6 -0
  34. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.js +1 -0
  35. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.ts +7 -0
  36. package/dist/src/components/atoms/SignerStatusItem/index.d.ts +2 -0
  37. package/dist/src/components/atoms/SignerStatusItem/index.js +1 -0
  38. package/dist/src/components/atoms/SignerStatusItem/index.ts +2 -0
  39. package/dist/src/components/atoms/Tooltip/Tooltip.js +0 -2
  40. package/dist/src/components/atoms/Tooltip/Tooltip.tsx +0 -2
  41. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.d.ts +3 -0
  42. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.js +7 -0
  43. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.d.ts +1 -0
  44. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.js +22 -0
  45. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.ts +23 -0
  46. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.tsx +38 -0
  47. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.d.ts +9 -0
  48. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.js +1 -0
  49. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.ts +10 -0
  50. package/dist/src/components/molecules/SignersStatusTooltipContent/index.d.ts +2 -0
  51. package/dist/src/components/molecules/SignersStatusTooltipContent/index.js +1 -0
  52. package/dist/src/components/molecules/SignersStatusTooltipContent/index.ts +2 -0
  53. package/dist/src/components/molecules/TextInput/tests/Input.test.tsx +29 -18
  54. package/dist/src/components/molecules/TextInput/tests/TextInput.test.tsx +16 -9
  55. package/dist/src/components/molecules/TextInput/tests/TextInputMessage.test.tsx +2 -2
  56. package/dist/src/components/molecules/TextInput/tests/TextInputTooltip.test.tsx +1 -1
  57. package/dist/src/components/molecules/index.d.ts +1 -0
  58. package/dist/src/components/molecules/index.js +1 -0
  59. package/dist/src/components/molecules/index.ts +1 -0
  60. package/dist/tsconfig.build.tsbuildinfo +1 -1
  61. package/package.json +5 -1
@@ -1018,6 +1018,22 @@ html[data-theme=primarygreen] .e-button.--primary-3 {
1018
1018
  .e-button.--transparent {
1019
1019
  background-color: transparent;
1020
1020
  }
1021
+ .e-button.e-button--link {
1022
+ padding: 0;
1023
+ border: none;
1024
+ background: none;
1025
+ border-radius: 0;
1026
+ color: var(--primary-main);
1027
+ text-decoration: underline;
1028
+ font-weight: inherit;
1029
+ }
1030
+ .e-button.e-button--link:hover {
1031
+ color: var(--primary-main-dark-1);
1032
+ text-decoration: underline;
1033
+ }
1034
+ .e-button.e-button--link label {
1035
+ cursor: pointer;
1036
+ }
1021
1037
  .e-button.--disabled {
1022
1038
  background-color: var(--neutral-neutral-4);
1023
1039
  color: var(--neutral-neutral-1);
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- export const CloseIcon = ({ className }) => (_jsx("svg", { className: className, width: 20, height: 20, viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', children: _jsx("path", { d: 'M15.2462 5.92913C15.5706 5.60466 15.5706 5.07859 15.2462 4.75413C14.9217 4.42966 14.3956 4.42966 14.0712 4.75413L10.0003 8.82496L5.92949 4.75413C5.60503 4.42966 5.07896 4.42966 4.75449 4.75413C4.43002 5.07859 4.43003 5.60466 4.75449 5.92913L8.82533 9.99996L4.75449 14.0708C4.43003 14.3953 4.43002 14.9213 4.75449 15.2458C5.07896 15.5703 5.60502 15.5703 5.92949 15.2458L10.0003 11.175L14.0712 15.2458C14.3956 15.5703 14.9217 15.5703 15.2462 15.2458C15.5706 14.9213 15.5706 14.3953 15.2462 14.0708L11.1753 9.99996L15.2462 5.92913Z', fill: '#B5BABD' }) }));
2
+ export const CloseIcon = ({ className = '' }) => (_jsx("svg", { className: className, width: 20, height: 20, viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', children: _jsx("path", { d: 'M15.2462 5.92913C15.5706 5.60466 15.5706 5.07859 15.2462 4.75413C14.9217 4.42966 14.3956 4.42966 14.0712 4.75413L10.0003 8.82496L5.92949 4.75413C5.60503 4.42966 5.07896 4.42966 4.75449 4.75413C4.43002 5.07859 4.43003 5.60466 4.75449 5.92913L8.82533 9.99996L4.75449 14.0708C4.43003 14.3953 4.43002 14.9213 4.75449 15.2458C5.07896 15.5703 5.60502 15.5703 5.92949 15.2458L10.0003 11.175L14.0712 15.2458C14.3956 15.5703 14.9217 15.5703 15.2462 15.2458C15.5706 14.9213 15.5706 14.3953 15.2462 14.0708L11.1753 9.99996L15.2462 5.92913Z', fill: '#B5BABD' }) }));
@@ -4,7 +4,7 @@ interface Close24Props {
4
4
  className?: string
5
5
  }
6
6
 
7
- export const CloseIcon: FC<Close24Props> = ({ className }: Close24Props): React.ReactElement => (
7
+ export const CloseIcon: FC<Close24Props> = ({ className = '' }: Close24Props): React.ReactElement => (
8
8
  <svg className={className} width={20} height={20} viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'>
9
9
  <path
10
10
  d='M15.2462 5.92913C15.5706 5.60466 15.5706 5.07859 15.2462 4.75413C14.9217 4.42966 14.3956 4.42966 14.0712 4.75413L10.0003 8.82496L5.92949 4.75413C5.60503 4.42966 5.07896 4.42966 4.75449 4.75413C4.43002 5.07859 4.43003 5.60466 4.75449 5.92913L8.82533 9.99996L4.75449 14.0708C4.43003 14.3953 4.43002 14.9213 4.75449 15.2458C5.07896 15.5703 5.60502 15.5703 5.92949 15.2458L10.0003 11.175L14.0712 15.2458C14.3956 15.5703 14.9217 15.5703 15.2462 15.2458C15.5706 14.9213 15.5706 14.3953 15.2462 14.0708L11.1753 9.99996L15.2462 5.92913Z'
@@ -1,6 +1,6 @@
1
1
  import { type FC } from 'react';
2
2
  interface Done24pxProps {
3
- className: string;
3
+ className?: string;
4
4
  }
5
5
  export declare const Done24px: FC<Done24pxProps>;
6
6
  export {};
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- export const Done24px = ({ className }) => (_jsx("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '17', height: '16', viewBox: '0 0 17 16', fill: 'none', children: _jsx("path", { d: 'M6.36663 10.6L4.0333 8.26667C3.77557 8.00893 3.3577 8.00893 3.09997 8.26667C2.84223 8.5244 2.84223 8.94227 3.09997 9.2L6.18886 12.2889C6.28704 12.3871 6.44623 12.3871 6.54441 12.2889L13.9 4.93333C14.1577 4.6756 14.1577 4.25773 13.9 4C13.6422 3.74227 13.2244 3.74227 12.9666 4L6.36663 10.6Z', fill: '#078080' }) }));
2
+ export const Done24px = ({ className = '' }) => (_jsx("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '17', height: '16', viewBox: '0 0 17 16', fill: 'none', children: _jsx("path", { d: 'M6.36663 10.6L4.0333 8.26667C3.77557 8.00893 3.3577 8.00893 3.09997 8.26667C2.84223 8.5244 2.84223 8.94227 3.09997 9.2L6.18886 12.2889C6.28704 12.3871 6.44623 12.3871 6.54441 12.2889L13.9 4.93333C14.1577 4.6756 14.1577 4.25773 13.9 4C13.6422 3.74227 13.2244 3.74227 12.9666 4L6.36663 10.6Z', fill: '#078080' }) }));
@@ -1,9 +1,9 @@
1
1
  import React, { type FC } from 'react'
2
2
  interface Done24pxProps {
3
- className: string
3
+ className?: string
4
4
  }
5
5
 
6
- export const Done24px: FC<Done24pxProps> = ({ className }: Done24pxProps) => (
6
+ export const Done24px: FC<Done24pxProps> = ({ className = '' }: Done24pxProps) => (
7
7
  <svg xmlns='http://www.w3.org/2000/svg' width='17' height='16' viewBox='0 0 17 16' fill='none'>
8
8
  <path
9
9
  d='M6.36663 10.6L4.0333 8.26667C3.77557 8.00893 3.3577 8.00893 3.09997 8.26667C2.84223 8.5244 2.84223 8.94227 3.09997 9.2L6.18886 12.2889C6.28704 12.3871 6.44623 12.3871 6.54441 12.2889L13.9 4.93333C14.1577 4.6756 14.1577 4.25773 13.9 4C13.6422 3.74227 13.2244 3.74227 12.9666 4L6.36663 10.6Z'
@@ -1,6 +1,6 @@
1
1
  import { type FC } from 'react';
2
2
  interface NewRelease24pProps {
3
- className: string;
3
+ className?: string;
4
4
  }
5
5
  export declare const NewRelease24p: FC<NewRelease24pProps>;
6
6
  export {};
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export const NewRelease24p = ({ className }) => (_jsxs("svg", { className: className, xmlns: 'http://www.w3.org/2000/svg', width: '16', height: '16', viewBox: '0 0 16 16', children: [_jsx("defs", { children: _jsx("path", { id: 'new-release__a', d: 'M15.333 7.997l-1.626-1.854.226-2.453-2.406-.547-1.26-2.12L8 1.997l-2.267-.974-1.26 2.12-2.406.54.226 2.454-1.626 1.86L2.293 9.85l-.226 2.46 2.406.547 1.26 2.12L8 13.997l2.267.973 1.26-2.12 2.406-.547-.226-2.453 1.626-1.853zm-3.006 1.406l.173 1.86-1.827.414-.953 1.606-1.72-.74-1.72.74-.953-1.606-1.827-.414.173-1.866-1.233-1.4 1.233-1.414L3.5 4.73l1.827-.407.953-1.606L8 3.45l1.72-.74.953 1.607 1.827.413-.173 1.86 1.233 1.407-1.233 1.406zm-4.994.594h1.334v1.333H7.333V9.997zm0-5.334h1.334v4H7.333v-4z' }) }), _jsxs("g", { fill: 'none', fillRule: 'evenodd', children: [_jsx("path", { d: 'M0 0H16V16H0z' }), _jsx("mask", { id: 'new-release__b', fill: '#fff', children: _jsx("use", { xlinkHref: '#new-release__a' }) }), _jsx("g", { fill: '#FCF4E5', mask: 'url(#new-release__b)', children: _jsx("path", { d: 'M0 0H16V16H0z' }) })] })] }));
2
+ export const NewRelease24p = ({ className = '' }) => (_jsxs("svg", { className: className, xmlns: 'http://www.w3.org/2000/svg', width: '16', height: '16', viewBox: '0 0 16 16', children: [_jsx("defs", { children: _jsx("path", { id: 'new-release__a', d: 'M15.333 7.997l-1.626-1.854.226-2.453-2.406-.547-1.26-2.12L8 1.997l-2.267-.974-1.26 2.12-2.406.54.226 2.454-1.626 1.86L2.293 9.85l-.226 2.46 2.406.547 1.26 2.12L8 13.997l2.267.973 1.26-2.12 2.406-.547-.226-2.453 1.626-1.853zm-3.006 1.406l.173 1.86-1.827.414-.953 1.606-1.72-.74-1.72.74-.953-1.606-1.827-.414.173-1.866-1.233-1.4 1.233-1.414L3.5 4.73l1.827-.407.953-1.606L8 3.45l1.72-.74.953 1.607 1.827.413-.173 1.86 1.233 1.407-1.233 1.406zm-4.994.594h1.334v1.333H7.333V9.997zm0-5.334h1.334v4H7.333v-4z' }) }), _jsxs("g", { fill: 'none', fillRule: 'evenodd', children: [_jsx("path", { d: 'M0 0H16V16H0z' }), _jsx("mask", { id: 'new-release__b', fill: '#fff', children: _jsx("use", { xlinkHref: '#new-release__a' }) }), _jsx("g", { fill: '#FCF4E5', mask: 'url(#new-release__b)', children: _jsx("path", { d: 'M0 0H16V16H0z' }) })] })] }));
@@ -1,11 +1,10 @@
1
- /* eslint-disable max-len */
2
1
  import React, { type FC } from 'react'
3
2
 
4
3
  interface NewRelease24pProps {
5
- className: string
4
+ className?: string
6
5
  }
7
6
 
8
- export const NewRelease24p: FC<NewRelease24pProps> = ({ className }: NewRelease24pProps) => (
7
+ export const NewRelease24p: FC<NewRelease24pProps> = ({ className = '' }: NewRelease24pProps) => (
9
8
  <svg className={className} xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'>
10
9
  <defs>
11
10
  <path
@@ -1,6 +1,6 @@
1
- import { type FC } from 'react';
1
+ import { FC } from 'react';
2
2
  interface Sign24pxProps {
3
- className: string;
3
+ className?: string;
4
4
  }
5
5
  export declare const Sign24px: FC<Sign24pxProps>;
6
6
  export {};
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- export const Sign24px = ({ className }) => (_jsx("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '17', height: '16', viewBox: '0 0 24 24', fill: 'none', children: _jsx("path", { id: 'path', "fill-rule": 'evenodd', "clip-rule": 'evenodd', d: 'M3 11C3 12.06 3.61 12.79 4.58 13.35L6.07 11.86C5.43 11.6 5 11.31 5 11C5 10.5 6.42 9.88 7.36 9.47C9.07 8.72 11 7.87 11 6C11 4.32 9.24 3 7 3C4.76 3 3.73 4.24 3.62 4.38C3.28 4.81 3.36 5.42 3.77 5.76C4.19 6.1 4.82 6.05 5.17 5.64C5.17096 5.63904 5.17245 5.63748 5.17447 5.63536C5.23542 5.57145 5.78046 5 7 5C8.22 5 9 5.59 9 6C9 6.55067 7.63659 7.15936 6.61179 7.61687C6.59443 7.62463 6.57716 7.63234 6.56 7.64C4.89 8.37 3 9.2 3 11ZM19.9101 9.33L18.8501 10.39L14.6101 6.15L15.6701 5.09C16.4501 4.31 17.7201 4.31 18.5001 5.09L19.9101 6.5C20.6901 7.28 20.6901 8.55 19.9101 9.33ZM4.14 16.61L13.19 7.56L17.44 11.8L8.39 20.85C8.3 20.95 8.17 21 8.04 21H4.5C4.22 21 4 20.78 4 20.5V16.96C4 16.83 4.05 16.7 4.14 16.61ZM19 17.5C19 19.69 16.46 21 14 21C13.45 21 13 20.55 13 20C13 19.45 13.45 19 14 19C15.54 19 17 18.27 17 17.5C17 17.03 16.52 16.63 15.77 16.3L17.25 14.82C18.32 15.45 19 16.29 19 17.5Z', fill: '#6D7275' }) }));
2
+ export const Sign24px = ({ className = '' }) => (_jsx("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '17', height: '16', viewBox: '0 0 24 24', fill: 'none', className: className, children: _jsx("path", { id: 'path', fillRule: 'evenodd', clipRule: 'evenodd', d: 'M3 11C3 12.06 3.61 12.79 4.58 13.35L6.07 11.86C5.43 11.6 5 11.31 5 11C5 10.5 6.42 9.88 7.36 9.47C9.07 8.72 11 7.87 11 6C11 4.32 9.24 3 7 3C4.76 3 3.73 4.24 3.62 4.38C3.28 4.81 3.36 5.42 3.77 5.76C4.19 6.1 4.82 6.05 5.17 5.64C5.17096 5.63904 5.17245 5.63748 5.17447 5.63536C5.23542 5.57145 5.78046 5 7 5C8.22 5 9 5.59 9 6C9 6.55067 7.63659 7.15936 6.61179 7.61687C6.59443 7.62463 6.57716 7.63234 6.56 7.64C4.89 8.37 3 9.2 3 11ZM19.9101 9.33L18.8501 10.39L14.6101 6.15L15.6701 5.09C16.4501 4.31 17.7201 4.31 18.5001 5.09L19.9101 6.5C20.6901 7.28 20.6901 8.55 19.9101 9.33ZM4.14 16.61L13.19 7.56L17.44 11.8L8.39 20.85C8.3 20.95 8.17 21 8.04 21H4.5C4.22 21 4 20.78 4 20.5V16.96C4 16.83 4.05 16.7 4.14 16.61ZM19 17.5C19 19.69 16.46 21 14 21C13.45 21 13 20.55 13 20C13 19.45 13.45 19 14 19C15.54 19 17 18.27 17 17.5C17 17.03 16.52 16.63 15.77 16.3L17.25 14.82C18.32 15.45 19 16.29 19 17.5Z', fill: '#6D7275' }) }));
@@ -1,14 +1,15 @@
1
- import React, { type FC } from 'react'
1
+ import React, { FC } from 'react'
2
+
2
3
  interface Sign24pxProps {
3
- className: string
4
+ className?: string
4
5
  }
5
6
 
6
- export const Sign24px: FC<Sign24pxProps> = ({ className }: Sign24pxProps) => (
7
- <svg xmlns='http://www.w3.org/2000/svg' width='17' height='16' viewBox='0 0 24 24' fill='none'>
7
+ export const Sign24px: FC<Sign24pxProps> = ({ className = '' }: Sign24pxProps) => (
8
+ <svg xmlns='http://www.w3.org/2000/svg' width='17' height='16' viewBox='0 0 24 24' fill='none' className={className}>
8
9
  <path
9
10
  id='path'
10
- fill-rule='evenodd'
11
- clip-rule='evenodd'
11
+ fillRule='evenodd'
12
+ clipRule='evenodd'
12
13
  d='M3 11C3 12.06 3.61 12.79 4.58 13.35L6.07 11.86C5.43 11.6 5 11.31 5 11C5 10.5 6.42 9.88 7.36 9.47C9.07 8.72 11 7.87 11 6C11 4.32 9.24 3 7 3C4.76 3 3.73 4.24 3.62 4.38C3.28 4.81 3.36 5.42 3.77 5.76C4.19 6.1 4.82 6.05 5.17 5.64C5.17096 5.63904 5.17245 5.63748 5.17447 5.63536C5.23542 5.57145 5.78046 5 7 5C8.22 5 9 5.59 9 6C9 6.55067 7.63659 7.15936 6.61179 7.61687C6.59443 7.62463 6.57716 7.63234 6.56 7.64C4.89 8.37 3 9.2 3 11ZM19.9101 9.33L18.8501 10.39L14.6101 6.15L15.6701 5.09C16.4501 4.31 17.7201 4.31 18.5001 5.09L19.9101 6.5C20.6901 7.28 20.6901 8.55 19.9101 9.33ZM4.14 16.61L13.19 7.56L17.44 11.8L8.39 20.85C8.3 20.95 8.17 21 8.04 21H4.5C4.22 21 4 20.78 4 20.5V16.96C4 16.83 4.05 16.7 4.14 16.61ZM19 17.5C19 19.69 16.46 21 14 21C13.45 21 13 20.55 13 20C13 19.45 13.45 19 14 19C15.54 19 17 18.27 17 17.5C17 17.03 16.52 16.63 15.77 16.3L17.25 14.82C18.32 15.45 19 16.29 19 17.5Z'
13
14
  fill='#6D7275'
14
15
  />
@@ -1,6 +1,6 @@
1
1
  import { type FC } from 'react';
2
2
  interface Time24pxProps {
3
- className: string;
3
+ className?: string;
4
4
  }
5
5
  export declare const Time24px: FC<Time24pxProps>;
6
6
  export {};
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export const Time24px = ({ className }) => (_jsxs("svg", { className: className, xmlns: 'http://www.w3.org/2000/svg', xmlnsXlink: 'http://www.w3.org/1999/xlink', width: '16', height: '16', viewBox: '0 0 16 16', children: [_jsx("defs", { children: _jsx("path", { id: 'time', d: 'M7.993 1.333c-3.68 0-6.66 2.987-6.66 6.667 0 3.68 2.98 6.667 6.66 6.667 3.687 0 6.674-2.987 6.674-6.667 0-3.68-2.987-6.667-6.674-6.667zm.007 12c-2.947 0-5.333-2.386-5.333-5.333S5.053 2.667 8 2.667 13.333 5.053 13.333 8 10.947 13.333 8 13.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z' }) }), _jsxs("g", { fill: 'none', fillRule: 'evenodd', children: [_jsx("path", { d: 'M0 0H16V16H0z' }), _jsx("mask", { id: 'time2', fill: '#fff', children: _jsx("use", { xlinkHref: '#time' }) }), _jsx("g", { fill: '#936C2F', mask: 'url(#time2)', children: _jsx("path", { d: 'M0 0H16V16H0z' }) })] })] }));
2
+ export const Time24px = ({ className = '' }) => (_jsxs("svg", { className: className, xmlns: 'http://www.w3.org/2000/svg', xmlnsXlink: 'http://www.w3.org/1999/xlink', width: '16', height: '16', viewBox: '0 0 16 16', children: [_jsx("defs", { children: _jsx("path", { id: 'time', d: 'M7.993 1.333c-3.68 0-6.66 2.987-6.66 6.667 0 3.68 2.98 6.667 6.66 6.667 3.687 0 6.674-2.987 6.674-6.667 0-3.68-2.987-6.667-6.674-6.667zm.007 12c-2.947 0-5.333-2.386-5.333-5.333S5.053 2.667 8 2.667 13.333 5.053 13.333 8 10.947 13.333 8 13.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z' }) }), _jsxs("g", { fill: 'none', fillRule: 'evenodd', children: [_jsx("path", { d: 'M0 0H16V16H0z' }), _jsx("mask", { id: 'time2', fill: '#fff', children: _jsx("use", { xlinkHref: '#time' }) }), _jsx("g", { fill: '#936C2F', mask: 'url(#time2)', children: _jsx("path", { d: 'M0 0H16V16H0z' }) })] })] }));
@@ -1,11 +1,10 @@
1
- /* eslint-disable max-len */
2
1
  import React, { type FC } from 'react'
3
2
 
4
3
  interface Time24pxProps {
5
- className: string
4
+ className?: string
6
5
  }
7
6
 
8
- export const Time24px: FC<Time24pxProps> = ({ className }: Time24pxProps) => (
7
+ export const Time24px: FC<Time24pxProps> = ({ className = '' }: Time24pxProps) => (
9
8
  <svg
10
9
  className={className}
11
10
  xmlns='http://www.w3.org/2000/svg'
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import classNames from 'classnames';
3
- // import './Button.scss'
4
3
  const Button = ({ label, dataQa, labelMobile, link, LinkComponent = null, noLink = false, noLinkNoFunc = false, onClick = undefined, functionParameters, color = 'primary', error, disabled = false, fluid, givenClass, children, size = undefined, isExternal = false, centered = false, gtmTag = undefined, hasNoFollow = false, target = '_self' }) => {
5
4
  const sizes = {
6
5
  S: 'button--small',
@@ -21,6 +20,7 @@ const Button = ({ label, dataQa, labelMobile, link, LinkComponent = null, noLink
21
20
  '--secondary-icon --dark': color === 'secondaryIconDark',
22
21
  'button--tertiary-1': color === 'tertiary',
23
22
  'button--tertiary-2': color === 'tertiary2',
23
+ 'e-button--link': color === 'link',
24
24
  '--styleless': color === 'styleless',
25
25
  '--transparent': color === 'transparent',
26
26
  '--disabled': disabled,
@@ -197,6 +197,25 @@ html[data-theme='primarygreen'] {
197
197
  background-color: transparent;
198
198
  }
199
199
 
200
+ &.e-button--link {
201
+ padding: 0;
202
+ border: none;
203
+ background: none;
204
+ border-radius: 0;
205
+ color: var(--primary-main);
206
+ text-decoration: underline;
207
+ font-weight: inherit;
208
+
209
+ &:hover {
210
+ color: var(--primary-main-dark-1);
211
+ text-decoration: underline;
212
+ }
213
+
214
+ label {
215
+ cursor: pointer;
216
+ }
217
+ }
218
+
200
219
  &.--disabled {
201
220
  background-color: var(--neutral-neutral-4);
202
221
  color: var(--neutral-neutral-1);
@@ -3,7 +3,6 @@ import React, { type FC } from 'react'
3
3
  import classNames from 'classnames'
4
4
 
5
5
  import { type ButtonProps } from './ButtonProps.types'
6
- // import './Button.scss'
7
6
 
8
7
  const Button: FC<ButtonProps> = ({
9
8
  label,
@@ -49,6 +48,7 @@ const Button: FC<ButtonProps> = ({
49
48
  '--secondary-icon --dark': color === 'secondaryIconDark',
50
49
  'button--tertiary-1': color === 'tertiary',
51
50
  'button--tertiary-2': color === 'tertiary2',
51
+ 'e-button--link': color === 'link',
52
52
  '--styleless': color === 'styleless',
53
53
  '--transparent': color === 'transparent',
54
54
  '--disabled': disabled,
@@ -1,4 +1,4 @@
1
- export type Colors = 'primary' | 'primary2' | 'primary3' | 'primary4' | 'secondary' | 'secondary2' | 'secondary3' | 'secondary4' | 'secondaryIcon' | 'secondaryIconBold' | 'secondaryIconDark' | 'tertiary' | 'tertiary2' | 'styleless' | 'transparent';
1
+ export type Colors = 'primary' | 'primary2' | 'primary3' | 'primary4' | 'secondary' | 'secondary2' | 'secondary3' | 'secondary4' | 'secondaryIcon' | 'secondaryIconBold' | 'secondaryIconDark' | 'tertiary' | 'tertiary2' | 'styleless' | 'transparent' | 'link';
2
2
  export interface ButtonProps {
3
3
  label: string;
4
4
  dataQa: string;
@@ -16,6 +16,7 @@ export type Colors =
16
16
  | 'tertiary2'
17
17
  | 'styleless'
18
18
  | 'transparent'
19
+ | 'link'
19
20
  export interface ButtonProps {
20
21
  label: string
21
22
  dataQa: string
@@ -1,19 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { DocumentStatusStyled } from './DocumentStatus.styled';
3
- import { Done24px } from '../../../../images/componentsSvg/Done24px';
4
- import { NewRelease24p } from '../../../../images/componentsSvg/NewRelease24p';
5
2
  import { Sign24px } from '../../../../images/componentsSvg/Sign24px';
6
- import { Time24px } from '../../../../images/componentsSvg/Time24px';
7
- const DocumentStatus = ({ type, statusCompletedText, statusNewText, statusInProgressText, statusSignedText }) => {
8
- if (type === 'complete' || type === 'downloaded' || type === 'pdf_processing' || type === 'pdf_generated') {
9
- return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --is-completed', children: [_jsx(Done24px, { className: 'icon' }), " ", _jsx("span", { className: 'sans-serif --small', children: statusCompletedText })] }));
10
- }
11
- if (type === 'new') {
12
- return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --is-new', children: [_jsx(NewRelease24p, { className: 'icon' }), " ", _jsx("span", { className: 'sans-serif --small', children: statusNewText })] }));
13
- }
14
- if (type === 'signed') {
15
- return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --is-signed', children: [_jsx(Sign24px, { className: 'icon' }), " ", _jsx("span", { className: 'sans-serif --small', children: statusSignedText })] }));
16
- }
17
- return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --in-progress', children: [_jsx(Time24px, { className: 'icon' }), _jsx("span", { className: 'sans-serif --small', children: statusInProgressText })] }));
3
+ import { DocumentStatusStyled } from './DocumentStatus.styled';
4
+ const DocumentStatus = ({ label, type = 'default', givenClass = '' }) => {
5
+ if (!label)
6
+ return null;
7
+ return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: `document-status ${type} ${givenClass}`, children: [_jsx(Sign24px, { className: 'document-status__icon' }), _jsx("span", { className: 'sans-serif --small', children: label })] }));
18
8
  };
19
9
  export default DocumentStatus;
@@ -9,8 +9,13 @@ export const DocumentStatusStyled = styled.div `
9
9
  align-items: center;
10
10
  align-self: center;
11
11
  padding: 0.125rem 0.5rem 0.125rem 0.25rem;
12
- margin-right: 0.5rem;
13
- width: 7.36rem;
12
+ width: fit-content;
13
+ cursor: pointer;
14
+
15
+ background-color: var(--neutral-neutral-4);
16
+ border-color: var(--neutral-neutral-2);
17
+ color: var(--neutral-neutral-1);
18
+
14
19
  @include laptop {
15
20
  align-self: flex-start;
16
21
  }
@@ -20,60 +25,56 @@ export const DocumentStatusStyled = styled.div `
20
25
  }
21
26
 
22
27
  &.document-status {
28
+ & > .document-status__icon > path {
29
+ fill: var(--neutral-neutral-1);
30
+ }
31
+
23
32
  span {
24
33
  font-weight: bold;
25
34
  }
26
35
 
27
- .icon {
28
- margin-right: 0.25rem;
36
+ &.in-progress {
37
+ background-color: var(--neutral-neutral-6);
38
+ border-color: var(--neutral-neutral-4);
39
+ color: var(--neutral-neutral-2);
40
+ & > .document-status__icon > path {
41
+ fill: var(--neutral-neutral-2);
42
+ }
29
43
  }
30
44
 
31
- &.--is-completed {
32
- background-color: var(--primary-main-light-5);
33
- border-color: var(--primary-main-light-3);
34
- color: var(--primary-main);
35
-
36
- svg {
37
- path {
38
- fill: var(--primary-main);
39
- }
45
+ &.awaiting {
46
+ background-color: var(--secondary-main-light-4);
47
+ border-color: var(--secondary-main-light-3);
48
+ color: var(--secondary-main-dark-2);
49
+ & > .document-status__icon > path {
50
+ fill: var(--secondary-main-dark-2);
40
51
  }
41
52
  }
42
53
 
43
- &.--in-progress {
44
- background-color: var(--neutral-neutral-5);
45
- border-color: var(--neutral-neutral-3);
54
+ &.no-response {
55
+ background-color: var(--neutral-neutral-4);
56
+ border-color: var(--neutral-neutral-2);
46
57
  color: var(--neutral-neutral-1);
47
-
48
- svg {
49
- g > g {
50
- fill: var(--neutral-neutral-1);
51
- }
58
+ & > .document-status__icon > path {
59
+ fill: var(--neutral-neutral-1);
52
60
  }
53
61
  }
54
62
 
55
- &.--is-new {
56
- background-color: var(--primary-main-light-1);
57
- border-color: var(--primary-main);
58
- color: var(--secondary-main-light-4);
59
-
60
- .icon {
61
- margin-right: 1.4rem;
63
+ &.declined {
64
+ background-color: var(--error-error-3);
65
+ border-color: var(--error-error-2);
66
+ color: var(--error-main);
67
+ & > .document-status__icon > path {
68
+ fill: var(--error-main);
62
69
  }
63
70
  }
64
71
 
65
- &.--is-signed {
66
- width: fit-content;
67
- background-color: var(--primary-main-dark-2);
68
- border-color: var(--primary-main-dark-2);
69
- color: var(--others-white);
70
-
71
- svg {
72
- margin-right: 0.25rem;
73
-
74
- path {
75
- fill: var(--others-white);
76
- }
72
+ &.completed {
73
+ background-color: var(--primary-main-light-4);
74
+ border-color: var(--primary-main-light-2);
75
+ color: var(--primary-main-light-1);
76
+ & > .document-status__icon > path {
77
+ fill: var(--primary-main-light-1);
77
78
  }
78
79
  }
79
80
  }
@@ -10,8 +10,13 @@ export const DocumentStatusStyled = styled.div`
10
10
  align-items: center;
11
11
  align-self: center;
12
12
  padding: 0.125rem 0.5rem 0.125rem 0.25rem;
13
- margin-right: 0.5rem;
14
- width: 7.36rem;
13
+ width: fit-content;
14
+ cursor: pointer;
15
+
16
+ background-color: var(--neutral-neutral-4);
17
+ border-color: var(--neutral-neutral-2);
18
+ color: var(--neutral-neutral-1);
19
+
15
20
  @include laptop {
16
21
  align-self: flex-start;
17
22
  }
@@ -21,60 +26,56 @@ export const DocumentStatusStyled = styled.div`
21
26
  }
22
27
 
23
28
  &.document-status {
29
+ & > .document-status__icon > path {
30
+ fill: var(--neutral-neutral-1);
31
+ }
32
+
24
33
  span {
25
34
  font-weight: bold;
26
35
  }
27
36
 
28
- .icon {
29
- margin-right: 0.25rem;
37
+ &.in-progress {
38
+ background-color: var(--neutral-neutral-6);
39
+ border-color: var(--neutral-neutral-4);
40
+ color: var(--neutral-neutral-2);
41
+ & > .document-status__icon > path {
42
+ fill: var(--neutral-neutral-2);
43
+ }
30
44
  }
31
45
 
32
- &.--is-completed {
33
- background-color: var(--primary-main-light-5);
34
- border-color: var(--primary-main-light-3);
35
- color: var(--primary-main);
36
-
37
- svg {
38
- path {
39
- fill: var(--primary-main);
40
- }
46
+ &.awaiting {
47
+ background-color: var(--secondary-main-light-4);
48
+ border-color: var(--secondary-main-light-3);
49
+ color: var(--secondary-main-dark-2);
50
+ & > .document-status__icon > path {
51
+ fill: var(--secondary-main-dark-2);
41
52
  }
42
53
  }
43
54
 
44
- &.--in-progress {
45
- background-color: var(--neutral-neutral-5);
46
- border-color: var(--neutral-neutral-3);
55
+ &.no-response {
56
+ background-color: var(--neutral-neutral-4);
57
+ border-color: var(--neutral-neutral-2);
47
58
  color: var(--neutral-neutral-1);
48
-
49
- svg {
50
- g > g {
51
- fill: var(--neutral-neutral-1);
52
- }
59
+ & > .document-status__icon > path {
60
+ fill: var(--neutral-neutral-1);
53
61
  }
54
62
  }
55
63
 
56
- &.--is-new {
57
- background-color: var(--primary-main-light-1);
58
- border-color: var(--primary-main);
59
- color: var(--secondary-main-light-4);
60
-
61
- .icon {
62
- margin-right: 1.4rem;
64
+ &.declined {
65
+ background-color: var(--error-error-3);
66
+ border-color: var(--error-error-2);
67
+ color: var(--error-main);
68
+ & > .document-status__icon > path {
69
+ fill: var(--error-main);
63
70
  }
64
71
  }
65
72
 
66
- &.--is-signed {
67
- width: fit-content;
68
- background-color: var(--primary-main-dark-2);
69
- border-color: var(--primary-main-dark-2);
70
- color: var(--others-white);
71
-
72
- svg {
73
- margin-right: 0.25rem;
74
-
75
- path {
76
- fill: var(--others-white);
77
- }
73
+ &.completed {
74
+ background-color: var(--primary-main-light-4);
75
+ border-color: var(--primary-main-light-2);
76
+ color: var(--primary-main-light-1);
77
+ & > .document-status__icon > path {
78
+ fill: var(--primary-main-light-1);
78
79
  }
79
80
  }
80
81
  }
@@ -1,44 +1,16 @@
1
1
  import React, { type FC } from 'react'
2
2
 
3
3
  import { type DocumentStatusProps } from './DocumentStatusProps.types'
4
- import { DocumentStatusStyled } from './DocumentStatus.styled'
5
- import { Done24px } from '../../../../images/componentsSvg/Done24px'
6
- import { NewRelease24p } from '../../../../images/componentsSvg/NewRelease24p'
7
4
  import { Sign24px } from '../../../../images/componentsSvg/Sign24px'
8
- import { Time24px } from '../../../../images/componentsSvg/Time24px'
9
5
 
10
- const DocumentStatus: FC<DocumentStatusProps> = ({
11
- type,
12
- statusCompletedText,
13
- statusNewText,
14
- statusInProgressText,
15
- statusSignedText
16
- }) => {
17
- if (type === 'complete' || type === 'downloaded' || type === 'pdf_processing' || type === 'pdf_generated') {
18
- return (
19
- <DocumentStatusStyled data-testid='document-status' className={'document-status --is-completed'}>
20
- <Done24px className='icon' /> <span className={'sans-serif --small'}>{statusCompletedText}</span>
21
- </DocumentStatusStyled>
22
- )
23
- }
24
- if (type === 'new') {
25
- return (
26
- <DocumentStatusStyled data-testid='document-status' className={'document-status --is-new'}>
27
- <NewRelease24p className='icon' /> <span className={'sans-serif --small'}>{statusNewText}</span>
28
- </DocumentStatusStyled>
29
- )
30
- }
31
- if (type === 'signed') {
32
- return (
33
- <DocumentStatusStyled data-testid='document-status' className={'document-status --is-signed'}>
34
- <Sign24px className='icon' /> <span className={'sans-serif --small'}>{statusSignedText}</span>
35
- </DocumentStatusStyled>
36
- )
37
- }
6
+ import { DocumentStatusStyled } from './DocumentStatus.styled'
7
+
8
+ const DocumentStatus: FC<DocumentStatusProps> = ({ label, type = 'default', givenClass = '' }) => {
9
+ if (!label) return null
38
10
  return (
39
- <DocumentStatusStyled data-testid='document-status' className={'document-status --in-progress'}>
40
- <Time24px className='icon' />
41
- <span className={'sans-serif --small'}>{statusInProgressText}</span>
11
+ <DocumentStatusStyled data-testid='document-status' className={`document-status ${type} ${givenClass}`}>
12
+ <Sign24px className='document-status__icon' />
13
+ <span className={'sans-serif --small'}>{label}</span>
42
14
  </DocumentStatusStyled>
43
15
  )
44
16
  }
@@ -1,8 +1,6 @@
1
1
  export interface DocumentStatusProps {
2
- type: string;
3
- statusCompletedText: string;
4
- statusNewText: string;
5
- statusInProgressText: string;
6
- statusAIReviewedText: string;
7
- statusSignedText: string;
2
+ label: string;
3
+ type?: DocumentStatusType;
4
+ givenClass?: string;
8
5
  }
6
+ export type DocumentStatusType = 'default' | 'in_progress' | 'awaiting' | 'no_response' | 'declined' | 'completed';
@@ -1,8 +1,7 @@
1
1
  export interface DocumentStatusProps {
2
- type: string
3
- statusCompletedText: string
4
- statusNewText: string
5
- statusInProgressText: string
6
- statusAIReviewedText: string
7
- statusSignedText: string
2
+ label: string
3
+ type?: DocumentStatusType
4
+ givenClass?: string
8
5
  }
6
+
7
+ export type DocumentStatusType = 'default' | 'in_progress' | 'awaiting' | 'no_response' | 'declined' | 'completed'
@@ -0,0 +1,3 @@
1
+ import { type FC } from 'react';
2
+ import { type SignerStatusItemProps } from './SignerStatusItemProps.types';
3
+ export declare const SignerStatusItem: FC<SignerStatusItemProps>;
@@ -0,0 +1,16 @@
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
+ };
@@ -0,0 +1 @@
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;