@npm_leadtech/legal-lib-components 7.101.0 → 7.102.1

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 (179) 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/DatePickerCustom/DatepickerPlugin.scss +20 -20
  34. package/dist/src/components/atoms/DatePickerCustom/index.js.map +4 -4
  35. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.js +15 -5
  36. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.js +40 -41
  37. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.ts +40 -41
  38. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.tsx +35 -7
  39. package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.d.ts +6 -4
  40. package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.ts +6 -5
  41. package/dist/src/components/atoms/MessageInformation/MessageInformation.js +2 -4
  42. package/dist/src/components/atoms/MessageInformation/MessageInformation.styled.js +0 -1
  43. package/dist/src/components/atoms/MessageInformation/MessageInformation.styled.ts +0 -1
  44. package/dist/src/components/atoms/MessageInformation/MessageInformation.tsx +4 -17
  45. package/dist/src/components/atoms/MessageInformation/MessageInformationProps.types.d.ts +0 -1
  46. package/dist/src/components/atoms/MessageInformation/MessageInformationProps.types.ts +0 -1
  47. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.js +2 -3
  48. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.styled.js +6 -12
  49. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.styled.ts +6 -12
  50. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.tsx +2 -4
  51. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplayProps.d.ts +0 -1
  52. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplayProps.ts +0 -1
  53. package/dist/src/components/atoms/PreFooter/PreFooter.js +3 -3
  54. package/dist/src/components/atoms/PreFooter/PreFooter.tsx +2 -2
  55. package/dist/src/components/atoms/PreFooter/PreFooterProps.d.ts +1 -1
  56. package/dist/src/components/atoms/PreFooter/PreFooterProps.ts +1 -1
  57. package/dist/src/components/atoms/TestAB/TestAB.d.ts +4 -3
  58. package/dist/src/components/atoms/Tooltip/Tooltip.js +2 -0
  59. package/dist/src/components/atoms/Tooltip/Tooltip.tsx +2 -0
  60. package/dist/src/components/atoms/Video/Video.js +2 -2
  61. package/dist/src/components/atoms/Video/Video.tsx +1 -2
  62. package/dist/src/components/molecules/AccordionItem/AccordionItem.d.ts +1 -1
  63. package/dist/src/components/molecules/AccordionItem/AccordionItem.js +3 -6
  64. package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.js +0 -4
  65. package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.ts +0 -4
  66. package/dist/src/components/molecules/AccordionItem/AccordionItem.tsx +2 -8
  67. package/dist/src/components/molecules/AccordionItem/AccordionItemProps.types.d.ts +0 -1
  68. package/dist/src/components/molecules/AccordionItem/AccordionItemProps.types.ts +0 -1
  69. package/dist/src/components/molecules/CountDownMessage/CountDownMessage.js +2 -2
  70. package/dist/src/components/molecules/CountDownMessage/CountDownMessage.tsx +2 -10
  71. package/dist/src/components/molecules/CountDownMessage/CountDownMessageProps.types.d.ts +0 -1
  72. package/dist/src/components/molecules/CountDownMessage/CountDownMessageProps.types.ts +0 -1
  73. package/dist/src/components/molecules/InfoBarFooter/InfoBarFooter.js +1 -1
  74. package/dist/src/components/molecules/InfoBarFooter/InfoBarFooter.tsx +4 -8
  75. package/dist/src/components/molecules/InfoBarFooter/InfoBarFooterProps.types.d.ts +2 -2
  76. package/dist/src/components/molecules/InfoBarFooter/InfoBarFooterProps.types.ts +2 -2
  77. package/dist/src/components/molecules/StepRatafiaCardList/StepRatafiaCardList.styled.js +2 -2
  78. package/dist/src/components/molecules/StepRatafiaCardList/StepRatafiaCardList.styled.ts +2 -2
  79. package/dist/src/components/molecules/TextInput/tests/Input.test.tsx +18 -29
  80. package/dist/src/components/molecules/TextInput/tests/TextInput.test.tsx +9 -16
  81. package/dist/src/components/molecules/TextInput/tests/TextInputMessage.test.tsx +2 -2
  82. package/dist/src/components/molecules/TextInput/tests/TextInputTooltip.test.tsx +1 -1
  83. package/dist/src/components/molecules/index.d.ts +0 -3
  84. package/dist/src/components/molecules/index.js +0 -3
  85. package/dist/src/components/molecules/index.ts +0 -3
  86. package/dist/src/components/organisms/Accordion/Accordion.js +1 -1
  87. package/dist/src/components/organisms/Accordion/Accordion.tsx +0 -1
  88. package/dist/src/components/organisms/Accordion/AccordionProps.types.d.ts +0 -1
  89. package/dist/src/components/organisms/Accordion/AccordionProps.types.ts +0 -1
  90. package/dist/src/components/organisms/DesktopMenu/DesktopMenu.js +2 -2
  91. package/dist/src/components/organisms/DesktopMenu/DesktopMenu.tsx +2 -8
  92. package/dist/src/components/organisms/DesktopMenu/DesktopMenuProps.d.ts +0 -1
  93. package/dist/src/components/organisms/DesktopMenu/DesktopMenuProps.ts +0 -1
  94. package/dist/src/components/organisms/TopFooter/TopFooter.js +1 -1
  95. package/dist/src/components/organisms/TopFooter/TopFooter.tsx +1 -3
  96. package/dist/src/components/organisms/Wizard/Wizard.js +1 -8
  97. package/dist/src/components/organisms/Wizard/Wizard.tsx +2 -9
  98. package/dist/src/components/organisms/Wizard/context/WizardContext.d.ts +0 -1
  99. package/dist/src/components/organisms/Wizard/context/WizardContext.js +1 -2
  100. package/dist/src/components/organisms/Wizard/context/WizardContext.tsx +1 -3
  101. package/dist/src/components/sections/AppHeader/AppHeader.js +2 -2
  102. package/dist/src/components/sections/AppHeader/AppHeader.tsx +1 -8
  103. package/dist/src/components/sections/AppHeader/AppHeaderProps.d.ts +0 -1
  104. package/dist/src/components/sections/AppHeader/AppHeaderProps.ts +0 -1
  105. package/dist/src/components/sections/CardBoxSection/CardBoxSection.js +1 -1
  106. package/dist/src/components/sections/CardBoxSection/CardBoxSection.tsx +1 -3
  107. package/dist/src/components/sections/FaqSection/FaqSection.js +1 -1
  108. package/dist/src/components/sections/FaqSection/FaqSection.tsx +1 -3
  109. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.js +2 -2
  110. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.js +7 -7
  111. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.ts +7 -7
  112. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.tsx +2 -3
  113. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.d.ts +0 -1
  114. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.ts +0 -1
  115. package/dist/src/globalStyles/animations.scss +5 -2
  116. package/dist/src/globalStyles/variables.scss +12 -31
  117. package/dist/src/globalStyles/variablesCss.scss +0 -10
  118. package/dist/src/hooks/useIntersectionObserver.d.ts +2 -2
  119. package/dist/src/hooks/useIntersectionObserver.js +1 -1
  120. package/dist/src/hooks/useIntersectionObserver.tsx +4 -4
  121. package/dist/tsconfig.build.tsbuildinfo +1 -1
  122. package/package.json +16 -13
  123. package/dist/images/componentsSvg/Balance.d.ts +0 -7
  124. package/dist/images/componentsSvg/Balance.js +0 -2
  125. package/dist/images/componentsSvg/Balance.tsx +0 -16
  126. package/dist/images/componentsSvg/GdprLockSvg.d.ts +0 -8
  127. package/dist/images/componentsSvg/GdprLockSvg.js +0 -2
  128. package/dist/images/componentsSvg/GdprLockSvg.tsx +0 -21
  129. package/dist/images/componentsSvg/SslShieldSvg.d.ts +0 -7
  130. package/dist/images/componentsSvg/SslShieldSvg.js +0 -2
  131. package/dist/images/componentsSvg/SslShieldSvg.tsx +0 -18
  132. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.d.ts +0 -3
  133. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.js +0 -16
  134. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.d.ts +0 -1
  135. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.js +0 -60
  136. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.ts +0 -61
  137. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.tsx +0 -28
  138. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.d.ts +0 -6
  139. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.js +0 -1
  140. package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.ts +0 -7
  141. package/dist/src/components/atoms/SignerStatusItem/index.d.ts +0 -2
  142. package/dist/src/components/atoms/SignerStatusItem/index.js +0 -1
  143. package/dist/src/components/atoms/SignerStatusItem/index.ts +0 -2
  144. package/dist/src/components/molecules/ComplianceBox/ComplianceBox.d.ts +0 -4
  145. package/dist/src/components/molecules/ComplianceBox/ComplianceBox.js +0 -8
  146. package/dist/src/components/molecules/ComplianceBox/ComplianceBox.styled.d.ts +0 -1
  147. package/dist/src/components/molecules/ComplianceBox/ComplianceBox.styled.js +0 -113
  148. package/dist/src/components/molecules/ComplianceBox/ComplianceBox.styled.ts +0 -114
  149. package/dist/src/components/molecules/ComplianceBox/ComplianceBox.tsx +0 -44
  150. package/dist/src/components/molecules/ComplianceBox/ComplianceBoxProps.types.d.ts +0 -11
  151. package/dist/src/components/molecules/ComplianceBox/ComplianceBoxProps.types.js +0 -1
  152. package/dist/src/components/molecules/ComplianceBox/ComplianceBoxProps.types.ts +0 -11
  153. package/dist/src/components/molecules/ComplianceBox/index.d.ts +0 -2
  154. package/dist/src/components/molecules/ComplianceBox/index.js +0 -1
  155. package/dist/src/components/molecules/ComplianceBox/index.ts +0 -2
  156. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.d.ts +0 -3
  157. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.js +0 -9
  158. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.d.ts +0 -1
  159. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.js +0 -22
  160. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.ts +0 -23
  161. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.tsx +0 -42
  162. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.d.ts +0 -9
  163. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.js +0 -1
  164. package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.ts +0 -10
  165. package/dist/src/components/molecules/SignersStatusTooltipContent/index.d.ts +0 -2
  166. package/dist/src/components/molecules/SignersStatusTooltipContent/index.js +0 -1
  167. package/dist/src/components/molecules/SignersStatusTooltipContent/index.ts +0 -2
  168. package/dist/src/components/molecules/TrustBanner/TrustBanner.d.ts +0 -4
  169. package/dist/src/components/molecules/TrustBanner/TrustBanner.js +0 -7
  170. package/dist/src/components/molecules/TrustBanner/TrustBanner.styled.d.ts +0 -1
  171. package/dist/src/components/molecules/TrustBanner/TrustBanner.styled.js +0 -43
  172. package/dist/src/components/molecules/TrustBanner/TrustBanner.styled.ts +0 -44
  173. package/dist/src/components/molecules/TrustBanner/TrustBanner.tsx +0 -19
  174. package/dist/src/components/molecules/TrustBanner/TrustBannerProps.types.d.ts +0 -5
  175. package/dist/src/components/molecules/TrustBanner/TrustBannerProps.types.js +0 -1
  176. package/dist/src/components/molecules/TrustBanner/TrustBannerProps.types.ts +0 -5
  177. package/dist/src/components/molecules/TrustBanner/index.d.ts +0 -2
  178. package/dist/src/components/molecules/TrustBanner/index.js +0 -1
  179. package/dist/src/components/molecules/TrustBanner/index.ts +0 -2
@@ -1,18 +0,0 @@
1
- /* eslint-disable max-len */
2
- import React, { type FC } from 'react'
3
-
4
- interface SslShieldSvgProps {
5
- className?: string
6
- fill?: string
7
- }
8
-
9
- export const SslShieldSvg: FC<SslShieldSvgProps> = ({ className = '', fill = 'white' }) => (
10
- <svg className={className} width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'>
11
- <path
12
- fill={fill}
13
- fillRule='evenodd'
14
- clipRule='evenodd'
15
- d='M9.59386 1.01392C9.85243 0.899005 10.1476 0.899005 10.4061 1.01392L16.9061 3.90281C17.2673 4.06331 17.5 4.42143 17.5 4.81662V9.16675C17.5 13.7065 14.4168 17.9573 10.2366 19.1054C10.0818 19.1479 9.91815 19.1479 9.76345 19.1054C5.58317 17.9573 2.5 13.7065 2.5 9.16675V4.81662C2.5 4.42143 2.73273 4.06331 3.09386 3.90281L9.59386 1.01392ZM15.8333 9.99175H10V2.65842L4.16667 5.25008V10.0001H10V17.4417C13.1 16.4834 15.3917 13.4251 15.8333 9.99175Z'
16
- />
17
- </svg>
18
- )
@@ -1,3 +0,0 @@
1
- import { type FC } from 'react';
2
- import { type SignerStatusItemProps } from './SignerStatusItemProps.types';
3
- export declare const SignerStatusItem: FC<SignerStatusItemProps>;
@@ -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
- completed: _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--completed {
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--completed {
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
- completed: <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 = 'completed' | '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 = 'completed' | '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,4 +0,0 @@
1
- import { type FC } from 'react';
2
- import { type ComplianceBoxProps } from './ComplianceBoxProps.types';
3
- declare const ComplianceBox: FC<ComplianceBoxProps>;
4
- export default ComplianceBox;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ComplianceBoxStyled } from './ComplianceBox.styled';
3
- import { GdprLockSvg } from '../../../../images/componentsSvg/GdprLockSvg';
4
- import { SslShieldSvg } from '../../../../images/componentsSvg/SslShieldSvg';
5
- const ComplianceBox = ({ title, description, sslBadgeLabel, gdprBadgeLabel, features, legalText, sslIcon, gdprIcon, className = '' }) => {
6
- return (_jsxs(ComplianceBoxStyled, { className: `compliance-box ${className}`.trim(), "aria-labelledby": 'compliance-box-title', children: [_jsx("h2", { id: 'compliance-box-title', className: 'compliance-box__title', children: title }), _jsx("p", { className: 'compliance-box__description', children: description }), _jsxs("div", { className: 'compliance-box__badges', children: [_jsxs("div", { className: 'compliance-box__badge', children: [_jsx("span", { className: 'compliance-box__badge-icon', children: sslIcon ?? _jsx(SslShieldSvg, {}) }), _jsx("span", { className: 'compliance-box__badge-label', children: sslBadgeLabel })] }), _jsxs("div", { className: 'compliance-box__badge', children: [_jsx("span", { className: 'compliance-box__badge-icon', children: gdprIcon ?? _jsx(GdprLockSvg, {}) }), _jsx("span", { className: 'compliance-box__badge-label', children: gdprBadgeLabel })] })] }), _jsx("p", { className: 'compliance-box__features', children: features }), _jsx("hr", { className: 'compliance-box__divider' }), _jsx("div", { className: 'compliance-box__legal', children: legalText })] }));
7
- };
8
- export default ComplianceBox;
@@ -1 +0,0 @@
1
- export declare const ComplianceBoxStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
@@ -1,113 +0,0 @@
1
- import { device } from '../../../globalStyles/breakpoints';
2
- import styled from 'styled-components';
3
- export const ComplianceBoxStyled = styled.section `
4
- width: 100%;
5
- padding: 1rem;
6
- border-radius: 0.5rem;
7
- background-color: var(--neutral-neutral-6);
8
- font-family: var(--font-sans);
9
- color: var(--neutral-neutral-1);
10
-
11
- .compliance-box {
12
- &__title {
13
- margin: 0 0 0.5rem;
14
- font-size: 1rem;
15
- font-weight: 700;
16
- line-height: 1.375rem;
17
- letter-spacing: -0.3px;
18
- color: var(--neutral-neutral-1);
19
- }
20
-
21
- &__description {
22
- margin: 0 0 1rem;
23
- font-size: 0.875rem;
24
- font-weight: 400;
25
- line-height: 1.125rem;
26
- color: var(--neutral-neutral-1);
27
- }
28
-
29
- &__badges {
30
- display: flex;
31
- flex-wrap: wrap;
32
- gap: 0.5rem;
33
- margin-bottom: 1rem;
34
- flex-direction: column;
35
-
36
- @media ${device['landscape-tablets']} {
37
- flex-direction: row;
38
- }
39
- }
40
-
41
- &__badge {
42
- display: inline-flex;
43
- align-items: stretch;
44
- overflow: hidden;
45
- border-radius: 0.25rem;
46
- }
47
-
48
- &__badge-icon {
49
- display: flex;
50
- flex-shrink: 0;
51
- align-items: center;
52
- justify-content: center;
53
- background-color: #024da1;
54
- color: var(--primary-main-dark-1);
55
- border-radius: 8px 0px 0px 8px;
56
- padding: 4px;
57
-
58
- svg {
59
- display: block;
60
- width: 1.25rem;
61
- height: 1.25rem;
62
- }
63
- }
64
-
65
- &__badge-label {
66
- display: flex;
67
- align-items: center;
68
- background-color: #17264d;
69
- font-size: 0.875rem;
70
- font-weight: 600;
71
- line-height: 1rem;
72
- letter-spacing: -0.2px;
73
- color: var(--others-white);
74
- white-space: nowrap;
75
- border-radius: 0px 8px 8px 0px;
76
- padding: 6px 8px;
77
- }
78
-
79
- &__features {
80
- margin: 0 0 1rem;
81
- font-size: 0.875rem;
82
- font-weight: 400;
83
- line-height: 1rem;
84
- color: var(--neutral-neutral-2);
85
- }
86
-
87
- &__divider {
88
- margin: 0 0 1rem;
89
- border: 0;
90
- border-top: 1px solid var(--neutral-neutral-4);
91
- }
92
-
93
- &__legal {
94
- margin: 0;
95
- font-size: 0.875rem;
96
- font-weight: 400;
97
- line-height: 1rem;
98
- color: var(--neutral-neutral-2);
99
-
100
- a {
101
- color: inherit;
102
- text-decoration: underline;
103
- }
104
-
105
- img {
106
- display: inline-block;
107
- vertical-align: middle;
108
- max-height: 1rem;
109
- margin: 0 0.125rem;
110
- }
111
- }
112
- }
113
- `;
@@ -1,114 +0,0 @@
1
- import { device } from '../../../globalStyles/breakpoints'
2
- import styled from 'styled-components'
3
-
4
- export const ComplianceBoxStyled = styled.section`
5
- width: 100%;
6
- padding: 1rem;
7
- border-radius: 0.5rem;
8
- background-color: var(--neutral-neutral-6);
9
- font-family: var(--font-sans);
10
- color: var(--neutral-neutral-1);
11
-
12
- .compliance-box {
13
- &__title {
14
- margin: 0 0 0.5rem;
15
- font-size: 1rem;
16
- font-weight: 700;
17
- line-height: 1.375rem;
18
- letter-spacing: -0.3px;
19
- color: var(--neutral-neutral-1);
20
- }
21
-
22
- &__description {
23
- margin: 0 0 1rem;
24
- font-size: 0.875rem;
25
- font-weight: 400;
26
- line-height: 1.125rem;
27
- color: var(--neutral-neutral-1);
28
- }
29
-
30
- &__badges {
31
- display: flex;
32
- flex-wrap: wrap;
33
- gap: 0.5rem;
34
- margin-bottom: 1rem;
35
- flex-direction: column;
36
-
37
- @media ${device['landscape-tablets']} {
38
- flex-direction: row;
39
- }
40
- }
41
-
42
- &__badge {
43
- display: inline-flex;
44
- align-items: stretch;
45
- overflow: hidden;
46
- border-radius: 0.25rem;
47
- }
48
-
49
- &__badge-icon {
50
- display: flex;
51
- flex-shrink: 0;
52
- align-items: center;
53
- justify-content: center;
54
- background-color: #024da1;
55
- color: var(--primary-main-dark-1);
56
- border-radius: 8px 0px 0px 8px;
57
- padding: 4px;
58
-
59
- svg {
60
- display: block;
61
- width: 1.25rem;
62
- height: 1.25rem;
63
- }
64
- }
65
-
66
- &__badge-label {
67
- display: flex;
68
- align-items: center;
69
- background-color: #17264d;
70
- font-size: 0.875rem;
71
- font-weight: 600;
72
- line-height: 1rem;
73
- letter-spacing: -0.2px;
74
- color: var(--others-white);
75
- white-space: nowrap;
76
- border-radius: 0px 8px 8px 0px;
77
- padding: 6px 8px;
78
- }
79
-
80
- &__features {
81
- margin: 0 0 1rem;
82
- font-size: 0.875rem;
83
- font-weight: 400;
84
- line-height: 1rem;
85
- color: var(--neutral-neutral-2);
86
- }
87
-
88
- &__divider {
89
- margin: 0 0 1rem;
90
- border: 0;
91
- border-top: 1px solid var(--neutral-neutral-4);
92
- }
93
-
94
- &__legal {
95
- margin: 0;
96
- font-size: 0.875rem;
97
- font-weight: 400;
98
- line-height: 1rem;
99
- color: var(--neutral-neutral-2);
100
-
101
- a {
102
- color: inherit;
103
- text-decoration: underline;
104
- }
105
-
106
- img {
107
- display: inline-block;
108
- vertical-align: middle;
109
- max-height: 1rem;
110
- margin: 0 0.125rem;
111
- }
112
- }
113
- }
114
- `
@@ -1,44 +0,0 @@
1
- import React, { type FC } from 'react'
2
-
3
- import { type ComplianceBoxProps } from './ComplianceBoxProps.types'
4
- import { ComplianceBoxStyled } from './ComplianceBox.styled'
5
- import { GdprLockSvg } from '../../../../images/componentsSvg/GdprLockSvg'
6
- import { SslShieldSvg } from '../../../../images/componentsSvg/SslShieldSvg'
7
-
8
- const ComplianceBox: FC<ComplianceBoxProps> = ({
9
- title,
10
- description,
11
- sslBadgeLabel,
12
- gdprBadgeLabel,
13
- features,
14
- legalText,
15
- sslIcon,
16
- gdprIcon,
17
- className = ''
18
- }) => {
19
- return (
20
- <ComplianceBoxStyled className={`compliance-box ${className}`.trim()} aria-labelledby='compliance-box-title'>
21
- <h2 id='compliance-box-title' className='compliance-box__title'>
22
- {title}
23
- </h2>
24
- <p className='compliance-box__description'>{description}</p>
25
-
26
- <div className='compliance-box__badges'>
27
- <div className='compliance-box__badge'>
28
- <span className='compliance-box__badge-icon'>{sslIcon ?? <SslShieldSvg />}</span>
29
- <span className='compliance-box__badge-label'>{sslBadgeLabel}</span>
30
- </div>
31
- <div className='compliance-box__badge'>
32
- <span className='compliance-box__badge-icon'>{gdprIcon ?? <GdprLockSvg />}</span>
33
- <span className='compliance-box__badge-label'>{gdprBadgeLabel}</span>
34
- </div>
35
- </div>
36
-
37
- <p className='compliance-box__features'>{features}</p>
38
- <hr className='compliance-box__divider' />
39
- <div className='compliance-box__legal'>{legalText}</div>
40
- </ComplianceBoxStyled>
41
- )
42
- }
43
-
44
- export default ComplianceBox
@@ -1,11 +0,0 @@
1
- export interface ComplianceBoxProps {
2
- title: string;
3
- description: string;
4
- sslBadgeLabel: string;
5
- gdprBadgeLabel: string;
6
- features: string;
7
- legalText: React.ReactNode;
8
- sslIcon?: React.ReactNode;
9
- gdprIcon?: React.ReactNode;
10
- className?: string;
11
- }
@@ -1,11 +0,0 @@
1
- export interface ComplianceBoxProps {
2
- title: string
3
- description: string
4
- sslBadgeLabel: string
5
- gdprBadgeLabel: string
6
- features: string
7
- legalText: React.ReactNode
8
- sslIcon?: React.ReactNode
9
- gdprIcon?: React.ReactNode
10
- className?: string
11
- }
@@ -1,2 +0,0 @@
1
- export { default as ComplianceBox } from './ComplianceBox';
2
- export { type ComplianceBoxProps } from './ComplianceBoxProps.types';
@@ -1 +0,0 @@
1
- export { default as ComplianceBox } from './ComplianceBox';
@@ -1,2 +0,0 @@
1
- export { default as ComplianceBox } from './ComplianceBox'
2
- export { type ComplianceBoxProps } from './ComplianceBoxProps.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,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import classNames from 'classnames';
3
- import { Button } from '../../atoms/Button';
4
- import { SignerStatusItem } from '../../atoms/SignerStatusItem';
5
- import { SignersStatusTooltipContentStyled } from './SignersStatusTooltipContent.styled';
6
- export const SignersStatusTooltipContent = ({ title = 'Signers Status', signers, linkLabel = '', linkOnClick, linkDataQa = 'manage_requests_button', givenClass = '' }) => {
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 }) }))] }));
9
- };
@@ -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
- padding: 0.5rem;
4
- display: flex;
5
- flex-direction: column;
6
- gap: 0.5rem;
7
- width: max-content;
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
- padding: 0.5rem;
5
- display: flex;
6
- flex-direction: column;
7
- gap: 0.5rem;
8
- width: max-content;
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,42 +0,0 @@
1
- import React, { type FC } from 'react'
2
- import classNames from 'classnames'
3
-
4
- import { Button } from '../../atoms/Button'
5
- import { SignerStatusItem } from '../../atoms/SignerStatusItem'
6
- import type { SignersStatusTooltipContentProps } from './SignersStatusTooltipContentProps.types'
7
- import { SignersStatusTooltipContentStyled } from './SignersStatusTooltipContent.styled'
8
-
9
- export const SignersStatusTooltipContent: FC<SignersStatusTooltipContentProps> = ({
10
- title = 'Signers Status',
11
- signers,
12
- linkLabel = '',
13
- linkOnClick,
14
- linkDataQa = 'manage_requests_button',
15
- givenClass = ''
16
- }) => {
17
- const hasLink = Boolean(linkLabel?.length && linkOnClick !== undefined)
18
- return (
19
- <SignersStatusTooltipContentStyled className={classNames('signers-status-tooltip-content', givenClass)}>
20
- <h3>{title}</h3>
21
- <ul className='signers-status-tooltip-content__signers'>
22
- {signers.map((signer, index) => (
23
- <SignerStatusItem key={`${signer.status}-${index}`} status={signer.status}>
24
- {signer.children}
25
- </SignerStatusItem>
26
- ))}
27
- </ul>
28
- {hasLink && (
29
- <div className='signers-status-tooltip-content__button'>
30
- <Button
31
- noLink
32
- color='tertiary'
33
- givenClass='underline-button'
34
- label={linkLabel}
35
- dataQa={linkDataQa}
36
- onClick={linkOnClick}
37
- />
38
- </div>
39
- )}
40
- </SignersStatusTooltipContentStyled>
41
- )
42
- }