@adyen/kyc-components 3.31.0 → 3.32.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 (46) hide show
  1. package/dist/es/adyen-kyc-components.es.js +691 -399
  2. package/dist/es/instant-verification-method-NGPLGC6g.js +50 -0
  3. package/dist/es/tink-logo-WImtH5CL.js +8 -0
  4. package/dist/style.css +247 -191
  5. package/dist/types/components/AdditionalInformation/VerifiedBusinessCard.d.ts +1 -1
  6. package/dist/types/components/AdditionalInformation/utils.d.ts +9 -0
  7. package/dist/types/components/BusinessSelection/types.d.ts +1 -2
  8. package/dist/types/components/Company/rules.d.ts +1 -0
  9. package/dist/types/components/Dropins/PciDropin/components/PciDropinComponent.d.ts +2 -1
  10. package/dist/types/components/Dropins/PciDropin/types.d.ts +1 -0
  11. package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +1 -2
  12. package/dist/types/components/Individual/types.d.ts +1 -1
  13. package/dist/types/components/Individual/validators.d.ts +2 -1
  14. package/dist/types/components/PayoutAccount/helpers/mapPayoutAccountSchemaToApiBankAccount.d.ts +1 -1
  15. package/dist/types/components/PayoutDetails/types.d.ts +4 -1
  16. package/dist/types/components/PayoutVerificationMethod/component/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +9 -0
  17. package/dist/types/components/PayoutVerificationMethod/types.d.ts +5 -0
  18. package/dist/types/components/RegistrationAddress/types.d.ts +1 -1
  19. package/dist/types/components/internal/Address/AddressComponent.d.ts +1 -1
  20. package/dist/types/components/internal/Address/constants.d.ts +2 -1
  21. package/dist/types/components/internal/Address/types.d.ts +2 -2
  22. package/dist/types/components/internal/Address/utils.d.ts +2 -3
  23. package/dist/types/components/internal/Button/Button.d.ts +1 -1
  24. package/dist/types/components/internal/Button/types.d.ts +1 -0
  25. package/dist/types/components/internal/Card/Card.d.ts +1 -1
  26. package/dist/types/components/internal/Card/types.d.ts +3 -0
  27. package/dist/types/components/internal/Link/Link.d.ts +1 -1
  28. package/dist/types/components/internal/Link/types.d.ts +1 -0
  29. package/dist/types/components/internal/Svg/svgs.d.ts +1 -0
  30. package/dist/types/core/Context/ExperimentContext/types.d.ts +3 -2
  31. package/dist/types/core/Context/SettingsContext/types.d.ts +3 -1
  32. package/dist/types/core/hooks/useBusinessData/types.d.ts +1 -2
  33. package/dist/types/core/hooks/useForm/reducer.d.ts +2 -2
  34. package/dist/types/core/hooks/useForm/types.d.ts +2 -2
  35. package/dist/types/core/hooks/useForm/useForm.d.ts +1 -1
  36. package/dist/types/core/models/api/company-search.d.ts +0 -1
  37. package/dist/types/core/models/company.d.ts +0 -3
  38. package/dist/types/core/models/form-rules.d.ts +2 -0
  39. package/dist/types/core/process-field-configurations.d.ts +2 -1
  40. package/dist/types/utils/datasetUtil.d.ts +3 -1
  41. package/dist/types/utils/formUtils.d.ts +1 -0
  42. package/package.json +1 -1
  43. package/dist/es/tink-logo-CXMbO28D.js +0 -5
  44. package/dist/types/components/internal/Card/index.d.ts +0 -2
  45. package/dist/types/components/internal/FormFields/RadioGroupCard/index.d.ts +0 -3
  46. package/dist/types/types/index.d.ts +0 -9
@@ -0,0 +1,50 @@
1
+ import { jsxs, jsx } from "preact/compat/jsx-runtime";
2
+ const SvgInstantVerificationMethod = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 236 128", role: "img", ...props, children: [
3
+ /* @__PURE__ */ jsxs("g", { filter: "url(#instant-verification-method_svg__a)", children: [
4
+ /* @__PURE__ */ jsx("rect", { width: 72, height: 72, x: 146, y: 28, fill: "#fff", rx: 36, shapeRendering: "crispEdges" }),
5
+ /* @__PURE__ */ jsx("path", { fill: "#00112C", d: "M178.06 47h7.88L199 56.33v5.97h-5.1v15.3h5.1V81h-34v-3.4h5.1V62.3H165v-5.97zm-4.56 30.6h3.4V62.3h-3.4zm6.8 0h3.4V62.3h-3.4zm6.8 0h3.4V62.3h-3.4zm8.5-18.7v-.83l-10.75-7.67h-5.7l-10.75 7.67v.83z" })
6
+ ] }),
7
+ /* @__PURE__ */ jsxs("g", { filter: "url(#instant-verification-method_svg__b)", children: [
8
+ /* @__PURE__ */ jsx("rect", { width: 72, height: 72, x: 18, y: 28, fill: "#fff", rx: 36, shapeRendering: "crispEdges" }),
9
+ /* @__PURE__ */ jsx("path", { fill: "#00112C", d: "m61.25 55.63 2.2 2.28-10.7 11.06-6.45-6.67 2.2-2.27 4.25 4.4z" }),
10
+ /* @__PURE__ */ jsx("path", { fill: "#00112C", fillRule: "evenodd", d: "m51.88 80.38-7.46-4.66A9.3 9.3 0 0 1 40 67.87V51.54c0-1.03.64-1.99 1.66-2.36a36 36 0 0 1 24.65 0 2.5 2.5 0 0 1 1.68 2.45v16.79a9.3 9.3 0 0 1-4.85 8.12l-7.12 3.95a4.1 4.1 0 0 1-4.14-.1M43 51.88c7-2.5 14.75-2.51 22 .02v16.52a6.3 6.3 0 0 1-3.31 5.5l-7.13 3.94a1.1 1.1 0 0 1-1.1-.03L46 73.18a6.3 6.3 0 0 1-3.01-5.31z", clipRule: "evenodd" })
11
+ ] }),
12
+ /* @__PURE__ */ jsx("path", { fill: "#00112C", d: "M156 30.5h8.12A57 57 0 0 0 118 7a57 57 0 0 0-47.26 25.12q-1.34-.7-2.74-1.3A60 60 0 0 1 118 4a60 60 0 0 1 48.5 24.67V20a1.5 1.5 0 0 1 3 0v13.5H156a1.5 1.5 0 0 1 0-3m9.26 65.38A57 57 0 0 1 118 121a57 57 0 0 1-46.12-23.5H80a1.5 1.5 0 0 0 0-3H66.5V108a1.5 1.5 0 0 0 3 0v-8.67A60 60 0 0 0 118 124a60 60 0 0 0 50-26.82q-1.4-.6-2.74-1.3m-45.93-46.55V60h10.32l-10.89 18.67h-2.1V68h-10.31l10.89-18.67z" }),
13
+ /* @__PURE__ */ jsxs("defs", { children: [
14
+ /* @__PURE__ */ jsxs("filter", { id: "instant-verification-method_svg__a", width: 108, height: 108, x: 128, y: 19, colorInterpolationFilters: "sRGB", filterUnits: "userSpaceOnUse", children: [
15
+ /* @__PURE__ */ jsx("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
16
+ /* @__PURE__ */ jsx("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }),
17
+ /* @__PURE__ */ jsx("feOffset", { dy: 3 }),
18
+ /* @__PURE__ */ jsx("feGaussianBlur", { stdDeviation: 3 }),
19
+ /* @__PURE__ */ jsx("feComposite", { in2: "hardAlpha", operator: "out" }),
20
+ /* @__PURE__ */ jsx("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0.0666667 0 0 0 0 0.172549 0 0 0 0.04 0" }),
21
+ /* @__PURE__ */ jsx("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5448_94620" }),
22
+ /* @__PURE__ */ jsx("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }),
23
+ /* @__PURE__ */ jsx("feOffset", { dy: 9 }),
24
+ /* @__PURE__ */ jsx("feGaussianBlur", { stdDeviation: 9 }),
25
+ /* @__PURE__ */ jsx("feComposite", { in2: "hardAlpha", operator: "out" }),
26
+ /* @__PURE__ */ jsx("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0.0666667 0 0 0 0 0.172549 0 0 0 0.08 0" }),
27
+ /* @__PURE__ */ jsx("feBlend", { in2: "effect1_dropShadow_5448_94620", result: "effect2_dropShadow_5448_94620" }),
28
+ /* @__PURE__ */ jsx("feBlend", { in: "SourceGraphic", in2: "effect2_dropShadow_5448_94620", result: "shape" })
29
+ ] }),
30
+ /* @__PURE__ */ jsxs("filter", { id: "instant-verification-method_svg__b", width: 108, height: 108, x: 0, y: 19, colorInterpolationFilters: "sRGB", filterUnits: "userSpaceOnUse", children: [
31
+ /* @__PURE__ */ jsx("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
32
+ /* @__PURE__ */ jsx("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }),
33
+ /* @__PURE__ */ jsx("feOffset", { dy: 3 }),
34
+ /* @__PURE__ */ jsx("feGaussianBlur", { stdDeviation: 3 }),
35
+ /* @__PURE__ */ jsx("feComposite", { in2: "hardAlpha", operator: "out" }),
36
+ /* @__PURE__ */ jsx("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0.0666667 0 0 0 0 0.172549 0 0 0 0.04 0" }),
37
+ /* @__PURE__ */ jsx("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5448_94620" }),
38
+ /* @__PURE__ */ jsx("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }),
39
+ /* @__PURE__ */ jsx("feOffset", { dy: 9 }),
40
+ /* @__PURE__ */ jsx("feGaussianBlur", { stdDeviation: 9 }),
41
+ /* @__PURE__ */ jsx("feComposite", { in2: "hardAlpha", operator: "out" }),
42
+ /* @__PURE__ */ jsx("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0.0666667 0 0 0 0 0.172549 0 0 0 0.08 0" }),
43
+ /* @__PURE__ */ jsx("feBlend", { in2: "effect1_dropShadow_5448_94620", result: "effect2_dropShadow_5448_94620" }),
44
+ /* @__PURE__ */ jsx("feBlend", { in: "SourceGraphic", in2: "effect2_dropShadow_5448_94620", result: "shape" })
45
+ ] })
46
+ ] })
47
+ ] });
48
+ export {
49
+ SvgInstantVerificationMethod as default
50
+ };
@@ -0,0 +1,8 @@
1
+ import { jsxs, jsx } from "preact/compat/jsx-runtime";
2
+ const SvgTinkLogo = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 2 43 19", role: "img", ...props, children: [
3
+ /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M4.18 14.6c0 .93.48 1.57 1.87 1.57q.68 0 1.26-.21l.08 1.95c-.35.14-.98.25-1.7.25-2.55 0-4-1.39-4-3.5v-4.15H.19V8.59h1.63V5.3h2.36v3.3h3.06v1.9H4.18zm4.67-6.01h2.5v9.47h-2.5zm6.58 1.38c.6-.88 1.64-1.48 3.16-1.48 2.24 0 3.55 1.43 3.54 3.62v5.95h-2.52v-5.4c0-1.34-.66-2.13-1.93-2.13-1.35 0-2.23.86-2.23 2.16v5.37h-2.5V8.6h2.4zm17.53-1.38L29.2 12.5l4.13 5.55H30.5l-2.9-3.88-1.43 1.49v2.39h-2.5V5.29h2.5v7.4l3.8-4.1zM8.85 5.29h2.5v2.08h-2.5zm26.49-2.58a3 3 0 0 1-1.2.23v2.35c3.11 0 5.63-2.37 5.63-5.29h-2.5a2.8 2.8 0 0 1-.91 2.08q-.45.41-1.02.63" }),
4
+ /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M41.33 5.51a3 3 0 0 1 1.2-.22V2.92c-3.11 0-5.63 2.37-5.63 5.3s2.52 5.29 5.63 5.29v-2.35c-1.72 0-3.12-1.32-3.12-2.94a2.8 2.8 0 0 1 .91-2.07q.45-.42 1.01-.64" })
5
+ ] });
6
+ export {
7
+ SvgTinkLogo as default
8
+ };
package/dist/style.css CHANGED
@@ -276,12 +276,10 @@ button[disabled]:hover {
276
276
  margin-right: var(--adyen-sdk-spacer-000, 0px);
277
277
  text-decoration: none;
278
278
  }
279
- .adyen-kyc-link--icon-right {
279
+ .adyen-kyc-link--icon-left {
280
+ display: inline-flex;
280
281
  flex-direction: row-reverse;
281
- }
282
- .adyen-kyc-link--icon-right > .adyen-kyc-link__icon {
283
- margin-left: var(--adyen-sdk-spacer-020, 4px);
284
- margin-right: var(--adyen-sdk-spacer-000, 0px);
282
+ gap: var(--adyen-sdk-spacer-020, 4px);
285
283
  }
286
284
  .adyen-kyc-link__text {
287
285
  display: inline;
@@ -300,7 +298,7 @@ button[disabled]:hover {
300
298
  margin: var(--adyen-sdk-spacer-000, 0px);
301
299
  }.adyen-kyc-icon {
302
300
  color: inherit;
303
- display: inline-block;
301
+ display: inline-flex;
304
302
  vertical-align: baseline;
305
303
  }
306
304
  .adyen-kyc-icon svg path {
@@ -1211,7 +1209,7 @@ button[disabled]:hover {
1211
1209
  /* #region Inline components */
1212
1210
  /* #endregion */
1213
1211
  .adyen-kyc-form-header {
1214
- margin-bottom: var(--adyen-sdk-spacer-090, 24px);
1212
+ margin-bottom: var(--adyen-sdk-spacer-120, 48px);
1215
1213
  }
1216
1214
  .adyen-kyc-form-header__heading {
1217
1215
  font-size: var(--adyen-sdk-text-title-l-font-size, 24px);
@@ -1550,6 +1548,54 @@ button[disabled]:hover {
1550
1548
  /* #endregion */
1551
1549
  /* #region Inline components */
1552
1550
  /* #endregion */
1551
+ .adyen-kyc-radio-group-card {
1552
+ display: flex;
1553
+ flex-direction: column;
1554
+ gap: var(--adyen-sdk-spacer-040, 8px);
1555
+ }
1556
+ .adyen-kyc-radio-group-card__label {
1557
+ font-size: var(--adyen-sdk-text-body-font-size, 14px);
1558
+ font-weight: var(--adyen-sdk-text-body-strongest-font-weight, 600);
1559
+ line-height: var(--adyen-sdk-text-body-line-height, 20px);
1560
+ padding-right: var(--adyen-sdk-spacer-070, 16px);
1561
+ margin-bottom: var(--adyen-sdk-spacer-070, 16px);
1562
+ }
1563
+ .adyen-layout-md .adyen-kyc-radio-group-card__label {
1564
+ padding-right: var(--adyen-sdk-spacer-000, 0px);
1565
+ }
1566
+ .adyen-kyc-radio-group-card__subtitle {
1567
+ color: var(--adyen-sdk-color-label-tertiary, #8d95a3);
1568
+ font-size: var(--adyen-sdk-text-caption-font-size, 12px);
1569
+ font-family: var(--adyen-sdk-text-caption-font-family, Inter, Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif);
1570
+ font-weight: var(--adyen-sdk-text-caption-font-weight, 400);
1571
+ line-height: var(--adyen-sdk-text-caption-line-height, 18px);
1572
+ margin-bottom: var(--adyen-sdk-spacer-020, 4px);
1573
+ }
1574
+ .adyen-kyc-radio-group-card input {
1575
+ display: flex;
1576
+ margin-left: auto;
1577
+ }
1578
+ .adyen-kyc-radio-group-card + .adyen-kyc-input__inline-validation {
1579
+ bottom: -30px;
1580
+ top: auto;
1581
+ }
1582
+ .adyen-kyc-radio-group-card--floating-radio {
1583
+ position: relative;
1584
+ }
1585
+ .adyen-kyc-radio-group-card--floating-radio .adyen-kyc-radio-group-card__input {
1586
+ bottom: auto;
1587
+ left: auto;
1588
+ position: absolute;
1589
+ right: var(--adyen-sdk-spacer-070, 16px);
1590
+ top: var(--adyen-sdk-spacer-070, 16px);
1591
+ }/* #region Borders */
1592
+ /* #endregion */
1593
+ /* #region Z-index */
1594
+ /* #endregion */
1595
+ /* #region Timing functions */
1596
+ /* #endregion */
1597
+ /* #region Inline components */
1598
+ /* #endregion */
1553
1599
  .adyen-kyc-radio-card {
1554
1600
  color: var(--adyen-sdk-color-label-primary, #00112c);
1555
1601
  font-family: var(--adyen-sdk-text-body-font-family, Inter, Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif);
@@ -1609,54 +1655,6 @@ button[disabled]:hover {
1609
1655
  /* #endregion */
1610
1656
  /* #region Inline components */
1611
1657
  /* #endregion */
1612
- .adyen-kyc-radio-group-card {
1613
- display: flex;
1614
- flex-direction: column;
1615
- gap: var(--adyen-sdk-spacer-040, 8px);
1616
- }
1617
- .adyen-kyc-radio-group-card__label {
1618
- font-size: var(--adyen-sdk-text-body-font-size, 14px);
1619
- font-weight: var(--adyen-sdk-text-body-strongest-font-weight, 600);
1620
- line-height: var(--adyen-sdk-text-body-line-height, 20px);
1621
- padding-right: var(--adyen-sdk-spacer-070, 16px);
1622
- margin-bottom: var(--adyen-sdk-spacer-070, 16px);
1623
- }
1624
- .adyen-layout-md .adyen-kyc-radio-group-card__label {
1625
- padding-right: var(--adyen-sdk-spacer-000, 0px);
1626
- }
1627
- .adyen-kyc-radio-group-card__subtitle {
1628
- color: var(--adyen-sdk-color-label-tertiary, #8d95a3);
1629
- font-size: var(--adyen-sdk-text-caption-font-size, 12px);
1630
- font-family: var(--adyen-sdk-text-caption-font-family, Inter, Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif);
1631
- font-weight: var(--adyen-sdk-text-caption-font-weight, 400);
1632
- line-height: var(--adyen-sdk-text-caption-line-height, 18px);
1633
- margin-bottom: var(--adyen-sdk-spacer-020, 4px);
1634
- }
1635
- .adyen-kyc-radio-group-card input {
1636
- display: flex;
1637
- margin-left: auto;
1638
- }
1639
- .adyen-kyc-radio-group-card + .adyen-kyc-input__inline-validation {
1640
- bottom: -30px;
1641
- top: auto;
1642
- }
1643
- .adyen-kyc-radio-group-card--floating-radio {
1644
- position: relative;
1645
- }
1646
- .adyen-kyc-radio-group-card--floating-radio .adyen-kyc-radio-group-card__input {
1647
- bottom: auto;
1648
- left: auto;
1649
- position: absolute;
1650
- right: var(--adyen-sdk-spacer-070, 16px);
1651
- top: var(--adyen-sdk-spacer-070, 16px);
1652
- }/* #region Borders */
1653
- /* #endregion */
1654
- /* #region Z-index */
1655
- /* #endregion */
1656
- /* #region Timing functions */
1657
- /* #endregion */
1658
- /* #region Inline components */
1659
- /* #endregion */
1660
1658
  .adyen-kyc-document-guidance {
1661
1659
  overflow: auto;
1662
1660
  container-type: inline-size;
@@ -1860,12 +1858,36 @@ button[disabled]:hover {
1860
1858
 
1861
1859
  .adyen-kyc-list--ordered {
1862
1860
  list-style-type: decimal;
1863
- }fieldset {
1861
+ }/* #region Borders */
1862
+ /* #endregion */
1863
+ /* #region Z-index */
1864
+ /* #endregion */
1865
+ /* #region Timing functions */
1866
+ /* #endregion */
1867
+ /* #region Inline components */
1868
+ /* #endregion */
1869
+ fieldset {
1864
1870
  border: none;
1865
1871
  padding: 0;
1866
1872
  margin: 0;
1867
1873
  }
1868
1874
 
1875
+ .adyen-kyc-address__condensed-fields {
1876
+ display: flex;
1877
+ flex-direction: column;
1878
+ gap: 0;
1879
+ }
1880
+ .adyen-layout-md .adyen-kyc-address__condensed-fields {
1881
+ flex-direction: row;
1882
+ gap: var(--adyen-sdk-spacer-080, 20px);
1883
+ }
1884
+ .adyen-layout-md .adyen-kyc-address__condensed-fields > *:first-child {
1885
+ flex: 0 0 50%;
1886
+ }
1887
+ .adyen-layout-md .adyen-kyc-address__condensed-fields > *:not(:first-child) {
1888
+ flex: 1;
1889
+ }
1890
+
1869
1891
  .adyen-kyc-search-address {
1870
1892
  display: flex;
1871
1893
  flex-direction: column;
@@ -2231,6 +2253,156 @@ button[disabled]:hover {
2231
2253
  .adyen-kyc-instant-verification-error .adyen-kyc-alert__icon {
2232
2254
  left: -28px;
2233
2255
  position: absolute;
2256
+ }/* #region Borders */
2257
+ /* #endregion */
2258
+ /* #region Z-index */
2259
+ /* #endregion */
2260
+ /* #region Timing functions */
2261
+ /* #endregion */
2262
+ /* #region Inline components */
2263
+ /* #endregion */
2264
+ .adyen-kyc-card {
2265
+ color: var(--adyen-sdk-color-label-primary, #00112c);
2266
+ font-family: var(--adyen-sdk-text-body-font-family, Inter, Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif);
2267
+ font-size: var(--adyen-sdk-text-body-font-size, 14px);
2268
+ font-weight: var(--adyen-sdk-text-body-font-weight, 400);
2269
+ line-height: var(--adyen-sdk-text-body-line-height, 20px);
2270
+ -webkit-font-smoothing: antialiased;
2271
+ -moz-osx-font-smoothing: grayscale;
2272
+ background-color: var(--adyen-sdk-color-background-primary, #ffffff);
2273
+ border: var(--adyen-sdk-border-width-s, 1px) solid var(--adyen-sdk-color-outline-primary, #dbdee2);
2274
+ border-radius: var(--adyen-sdk-border-radius-l, 12px);
2275
+ display: block;
2276
+ outline: none;
2277
+ }
2278
+ .adyen-kyc-card *,
2279
+ .adyen-kyc-card *::before,
2280
+ .adyen-kyc-card *::after {
2281
+ box-sizing: border-box;
2282
+ }
2283
+ .adyen-kyc-card--secondary {
2284
+ background-color: var(--adyen-sdk-color-background-secondary, #f7f7f8);
2285
+ }
2286
+
2287
+ .adyen-kyc-card.adyen-kyc-card--stateful {
2288
+ border-color: var(--adyen-sdk-color-outline-primary, #dbdee2);
2289
+ cursor: pointer;
2290
+ transition-duration: 0.2s;
2291
+ transition-property: border-color, box-shadow;
2292
+ transition-timing-function: ease;
2293
+ position: relative;
2294
+ z-index: 0;
2295
+ }
2296
+ .adyen-kyc-card.adyen-kyc-card--stateful:hover {
2297
+ border-color: var(--adyen-sdk-color-outline-primary-hover, #c9cdd3);
2298
+ z-index: 1;
2299
+ }
2300
+ .adyen-kyc-card.adyen-kyc-card--stateful:focus, .adyen-kyc-card.adyen-kyc-card--stateful:active {
2301
+ z-index: 2;
2302
+ box-shadow: var(--adyen-sdk-shadow-medium, 0px 6px 12px rgba(0, 17, 44, 0.08), 0px 2px 4px rgba(0, 17, 44, 0.04));
2303
+ }
2304
+
2305
+ .adyen-kyc-card.adyen-kyc-card--active {
2306
+ border-color: var(--adyen-sdk-color-outline-primary, #dbdee2);
2307
+ cursor: pointer;
2308
+ transition-duration: 0.2s;
2309
+ transition-property: border-color, box-shadow;
2310
+ transition-timing-function: ease;
2311
+ }
2312
+ .adyen-kyc-card.adyen-kyc-card--active, .adyen-kyc-card.adyen-kyc-card--active:active, .adyen-kyc-card.adyen-kyc-card--active:hover {
2313
+ border-color: var(--adyen-sdk-color-outline-primary-active, #00112c);
2314
+ }
2315
+ .adyen-kyc-card.adyen-kyc-card--active:focus, .adyen-kyc-card.adyen-kyc-card--active:active {
2316
+ box-shadow: var(--adyen-sdk-shadow-medium, 0px 6px 12px rgba(0, 17, 44, 0.08), 0px 2px 4px rgba(0, 17, 44, 0.04));
2317
+ }
2318
+
2319
+ .adyen-kyc-card.adyen-kyc-card--disabled {
2320
+ background-color: var(--adyen-sdk-color-background-disabled, #eeeff1);
2321
+ color: var(--adyen-sdk-color-label-disabled, #8d95a3);
2322
+ cursor: not-allowed;
2323
+ }
2324
+
2325
+ .adyen-kyc-card__header {
2326
+ padding: var(--adyen-sdk-spacer-070, 16px) var(--adyen-sdk-spacer-090, 24px);
2327
+ }
2328
+ .adyen-kyc-card__header--button {
2329
+ display: flex;
2330
+ justify-content: space-between;
2331
+ align-items: center;
2332
+ }
2333
+ .adyen-kyc-card__header .adyen-kyc-card-title {
2334
+ display: flex;
2335
+ flex-direction: column;
2336
+ }
2337
+
2338
+ .adyen-kyc-card__body {
2339
+ padding: var(--adyen-sdk-spacer-070, 16px);
2340
+ }
2341
+ .adyen-kyc-card__header + .adyen-kyc-card__body {
2342
+ padding-top: var(--adyen-sdk-spacer-000, 0px);
2343
+ }
2344
+
2345
+ .adyen-kyc-card__footer {
2346
+ padding: var(--adyen-sdk-spacer-070, 16px) var(--adyen-sdk-spacer-090, 24px);
2347
+ }
2348
+ .adyen-kyc-card__body + .adyen-kyc-card__footer {
2349
+ margin-top: calc(var(--adyen-sdk-spacer-070, 16px) * -1);
2350
+ }
2351
+
2352
+ .adyen-kyc-card__warning {
2353
+ border-radius: 0 0 var(--adyen-sdk-border-radius-s, 4px) var(--adyen-sdk-border-radius-s, 4px);
2354
+ }.adyen-kyc-skeleton {
2355
+ width: 100%;
2356
+ height: 100%;
2357
+ background-color: var(--adyen-sdk-color-outline-secondary, #c9cdd3);
2358
+ border-radius: var(--adyen-sdk-border-radius-m, 8px);
2359
+ animation: 2s ease-in-out 0.5s infinite normal none running adyen-kyc-skeleton;
2360
+ }
2361
+
2362
+ .adyen-kyc-skeleton-circle {
2363
+ border-radius: 50%;
2364
+ }
2365
+
2366
+ .adyen-kyc-skeleton-text {
2367
+ height: 1em !important;
2368
+ margin: 0.2em 0 !important;
2369
+ }
2370
+
2371
+ @keyframes adyen-kyc-skeleton {
2372
+ 0% {
2373
+ opacity: 1;
2374
+ }
2375
+ 50% {
2376
+ opacity: 0.4;
2377
+ }
2378
+ 100% {
2379
+ opacity: 1;
2380
+ }
2381
+ }.adyen-kyc-prefer-instant-verification-method {
2382
+ display: block;
2383
+ text-align: center;
2384
+ }
2385
+ .adyen-kyc-prefer-instant-verification-method-card {
2386
+ display: flex;
2387
+ flex-direction: column;
2388
+ align-items: center;
2389
+ padding: var(--adyen-sdk-spacer-070, 16px);
2390
+ }
2391
+ .adyen-kyc-prefer-instant-verification-method-image {
2392
+ width: 50%;
2393
+ margin-bottom: var(--adyen-sdk-spacer-090, 24px);
2394
+ }
2395
+ .adyen-kyc-prefer-instant-verification-method-instant-button {
2396
+ margin-top: var(--adyen-sdk-spacer-070, 16px);
2397
+ }
2398
+ .adyen-kyc-prefer-instant-verification-method-instant-button svg {
2399
+ height: 1.5rem;
2400
+ }
2401
+ .adyen-kyc-prefer-instant-verification-method-manual-button {
2402
+ margin-top: var(--adyen-sdk-spacer-030, 6px);
2403
+ }
2404
+ .adyen-kyc-prefer-instant-verification-method-manual-button-dark {
2405
+ color: var(--adyen-sdk-color-label-secondary, #5c687c);
2234
2406
  }.adyen-kyc-individual .adyen-kyc-form {
2235
2407
  margin-bottom: var(--adyen-sdk-spacer-070, 16px);
2236
2408
  }.adyen-kyc-additional-information {
@@ -2373,101 +2545,6 @@ button[disabled]:hover {
2373
2545
  /* #endregion */
2374
2546
  /* #region Inline components */
2375
2547
  /* #endregion */
2376
- .adyen-kyc-card {
2377
- color: var(--adyen-sdk-color-label-primary, #00112c);
2378
- font-family: var(--adyen-sdk-text-body-font-family, Inter, Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif);
2379
- font-size: var(--adyen-sdk-text-body-font-size, 14px);
2380
- font-weight: var(--adyen-sdk-text-body-font-weight, 400);
2381
- line-height: var(--adyen-sdk-text-body-line-height, 20px);
2382
- -webkit-font-smoothing: antialiased;
2383
- -moz-osx-font-smoothing: grayscale;
2384
- background-color: var(--adyen-sdk-color-background-primary, #ffffff);
2385
- border: var(--adyen-sdk-border-width-s, 1px) solid var(--adyen-sdk-color-outline-primary, #dbdee2);
2386
- border-radius: var(--adyen-sdk-border-radius-l, 12px);
2387
- display: block;
2388
- outline: none;
2389
- }
2390
- .adyen-kyc-card *,
2391
- .adyen-kyc-card *::before,
2392
- .adyen-kyc-card *::after {
2393
- box-sizing: border-box;
2394
- }
2395
-
2396
- .adyen-kyc-card.adyen-kyc-card--stateful {
2397
- border-color: var(--adyen-sdk-color-outline-primary, #dbdee2);
2398
- cursor: pointer;
2399
- transition-duration: 0.2s;
2400
- transition-property: border-color, box-shadow;
2401
- transition-timing-function: ease;
2402
- position: relative;
2403
- z-index: 0;
2404
- }
2405
- .adyen-kyc-card.adyen-kyc-card--stateful:hover {
2406
- border-color: var(--adyen-sdk-color-outline-primary-hover, #c9cdd3);
2407
- z-index: 1;
2408
- }
2409
- .adyen-kyc-card.adyen-kyc-card--stateful:focus, .adyen-kyc-card.adyen-kyc-card--stateful:active {
2410
- z-index: 2;
2411
- box-shadow: var(--adyen-sdk-shadow-medium, 0px 6px 12px rgba(0, 17, 44, 0.08), 0px 2px 4px rgba(0, 17, 44, 0.04));
2412
- }
2413
-
2414
- .adyen-kyc-card.adyen-kyc-card--active {
2415
- border-color: var(--adyen-sdk-color-outline-primary, #dbdee2);
2416
- cursor: pointer;
2417
- transition-duration: 0.2s;
2418
- transition-property: border-color, box-shadow;
2419
- transition-timing-function: ease;
2420
- }
2421
- .adyen-kyc-card.adyen-kyc-card--active, .adyen-kyc-card.adyen-kyc-card--active:active, .adyen-kyc-card.adyen-kyc-card--active:hover {
2422
- border-color: var(--adyen-sdk-color-outline-primary-active, #00112c);
2423
- }
2424
- .adyen-kyc-card.adyen-kyc-card--active:focus, .adyen-kyc-card.adyen-kyc-card--active:active {
2425
- box-shadow: var(--adyen-sdk-shadow-medium, 0px 6px 12px rgba(0, 17, 44, 0.08), 0px 2px 4px rgba(0, 17, 44, 0.04));
2426
- }
2427
-
2428
- .adyen-kyc-card.adyen-kyc-card--disabled {
2429
- background-color: var(--adyen-sdk-color-background-disabled, #eeeff1);
2430
- color: var(--adyen-sdk-color-label-disabled, #8d95a3);
2431
- cursor: not-allowed;
2432
- }
2433
-
2434
- .adyen-kyc-card__header {
2435
- padding: var(--adyen-sdk-spacer-070, 16px) var(--adyen-sdk-spacer-090, 24px);
2436
- }
2437
- .adyen-kyc-card__header--button {
2438
- display: flex;
2439
- justify-content: space-between;
2440
- align-items: center;
2441
- }
2442
- .adyen-kyc-card__header .adyen-kyc-card-title {
2443
- display: flex;
2444
- flex-direction: column;
2445
- }
2446
-
2447
- .adyen-kyc-card__body {
2448
- padding: var(--adyen-sdk-spacer-070, 16px);
2449
- }
2450
- .adyen-kyc-card__header + .adyen-kyc-card__body {
2451
- padding-top: var(--adyen-sdk-spacer-000, 0px);
2452
- }
2453
-
2454
- .adyen-kyc-card__footer {
2455
- padding: var(--adyen-sdk-spacer-070, 16px) var(--adyen-sdk-spacer-090, 24px);
2456
- }
2457
- .adyen-kyc-card__body + .adyen-kyc-card__footer {
2458
- margin-top: calc(var(--adyen-sdk-spacer-070, 16px) * -1);
2459
- }
2460
-
2461
- .adyen-kyc-card__warning {
2462
- border-radius: 0 0 var(--adyen-sdk-border-radius-s, 4px) var(--adyen-sdk-border-radius-s, 4px);
2463
- }/* #region Borders */
2464
- /* #endregion */
2465
- /* #region Z-index */
2466
- /* #endregion */
2467
- /* #region Timing functions */
2468
- /* #endregion */
2469
- /* #region Inline components */
2470
- /* #endregion */
2471
2548
  .adyen-kyc-card-group > .adyen-kyc-card + .adyen-kyc-card {
2472
2549
  margin-top: -1px;
2473
2550
  border-top: var(--adyen-sdk-border-width-s, 1px) solid var(--adyen-sdk-color-outline-primary, #dbdee2);
@@ -2491,9 +2568,7 @@ button[disabled]:hover {
2491
2568
  }
2492
2569
  .adyen-kyc-card-group-spaced .adyen-kyc-card {
2493
2570
  margin-top: -1px;
2494
- transition-duration: 0.3s;
2495
- transition-property: min-height;
2496
- transition-timing-function: ease;
2571
+ transition: min-height 0.3s ease !important;
2497
2572
  min-height: 80px;
2498
2573
  }
2499
2574
  .adyen-kyc-card-group-spaced .adyen-kyc-card--active {
@@ -3718,13 +3793,6 @@ button[disabled]:hover {
3718
3793
  height: 48px;
3719
3794
  margin-top: calc(var(--adyen-sdk-spacer-020, 4px) * -1);
3720
3795
  padding-top: var(--adyen-sdk-spacer-020, 4px);
3721
- }.adyen-contract-viewer .adyen-document-viewer {
3722
- --adv-text-color: var(--adyen-sdk-color-label-primary, #00112c);
3723
- --adv-accordion-header-color: var(--adyen-sdk-color-label-primary, #00112c);
3724
- --adv-text-font-family: var(--adyen-sdk-text-body-font-family, Inter, Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif);
3725
- --adv-background-color: var(--adyen-sdk-color-background-primary, #ffffff);
3726
- }.adyen-kyc-signed-alert:last-of-type {
3727
- margin-top: var(--adyen-sdk-spacer-070, 16px);
3728
3796
  }.adyen-kyc-splashscreen {
3729
3797
  height: 100%;
3730
3798
  display: flex;
@@ -3748,33 +3816,13 @@ button[disabled]:hover {
3748
3816
  color: var(--adyen-sdk-color-label-on-color, #ffffff);
3749
3817
  background-color: var(--adyen-sdk-color-background-success-strong, #07893c);
3750
3818
  outline: 0.5em solid var(--adyen-sdk-color-background-success-weak, #edfaf3);
3751
- }.adyen-kyc-skeleton {
3752
- width: 100%;
3753
- height: 100%;
3754
- background-color: var(--adyen-sdk-color-outline-secondary, #c9cdd3);
3755
- border-radius: var(--adyen-sdk-border-radius-m, 8px);
3756
- animation: 2s ease-in-out 0.5s infinite normal none running adyen-kyc-skeleton;
3757
- }
3758
-
3759
- .adyen-kyc-skeleton-circle {
3760
- border-radius: 50%;
3761
- }
3762
-
3763
- .adyen-kyc-skeleton-text {
3764
- height: 1em !important;
3765
- margin: 0.2em 0 !important;
3766
- }
3767
-
3768
- @keyframes adyen-kyc-skeleton {
3769
- 0% {
3770
- opacity: 1;
3771
- }
3772
- 50% {
3773
- opacity: 0.4;
3774
- }
3775
- 100% {
3776
- opacity: 1;
3777
- }
3819
+ }.adyen-contract-viewer .adyen-document-viewer {
3820
+ --adv-text-color: var(--adyen-sdk-color-label-primary, #00112c);
3821
+ --adv-accordion-header-color: var(--adyen-sdk-color-label-primary, #00112c);
3822
+ --adv-text-font-family: var(--adyen-sdk-text-body-font-family, Inter, Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif);
3823
+ --adv-background-color: var(--adyen-sdk-color-background-primary, #ffffff);
3824
+ }.adyen-kyc-signed-alert:last-of-type {
3825
+ margin-top: var(--adyen-sdk-spacer-070, 16px);
3778
3826
  }/* #region Borders */
3779
3827
  /* #endregion */
3780
3828
  /* #region Z-index */
@@ -3818,6 +3866,7 @@ button[disabled]:hover {
3818
3866
 
3819
3867
  .adyen-kyc-embedded-status:hover:not(.adyen-kyc-embedded-status-loading) {
3820
3868
  background-color: var(--adyen-sdk-color-background-secondary, #f7f7f8);
3869
+ transition: background-color 0.2s;
3821
3870
  }
3822
3871
 
3823
3872
  .adyen-kyc-embedded-status-avatar {
@@ -3830,9 +3879,6 @@ button[disabled]:hover {
3830
3879
  color: var(--adyen-sdk-color-label-inverse-primary, #ffffff);
3831
3880
  background-color: var(--adyen-sdk-color-background-inverse-primary, #00112c);
3832
3881
  }
3833
- .adyen-kyc-embedded-status-avatar .adyen-kyc-embedded-status-icon svg {
3834
- height: 100%;
3835
- }
3836
3882
 
3837
3883
  .adyen-kyc-embedded-status-info {
3838
3884
  display: flex;
@@ -4496,6 +4542,16 @@ button[disabled]:hover {
4496
4542
  }
4497
4543
  .adyen-layout-xs-only .adyen-kyc-ui-element-container {
4498
4544
  padding: var(--adyen-sdk-spacer-040, 8px);
4545
+ }
4546
+
4547
+ /*
4548
+ * Compatibility later to ensure components do NOT receive extra padding
4549
+ * as is the case with dropins, without breaking dropins.
4550
+ * Once the Component Layout has been done `.adyen-kyc-externalComponent`
4551
+ * can be safely removed everywere.
4552
+ */
4553
+ .adyen-kyc-ui-element-container:has(.adyen-kyc-externalComponent) {
4554
+ padding: 0;
4499
4555
  }/* #region Borders */
4500
4556
  /* #endregion */
4501
4557
  /* #region Z-index */
@@ -1,6 +1,6 @@
1
1
  import './VerifiedBusinessCard.scss';
2
2
  import type { CompanyDatasetResponse } from '../../core/models/api/company-search';
3
- import type { AddressSchema } from '../../types';
3
+ import type { AddressSchema } from '../internal/Address/types';
4
4
  interface VerifiedBusinessDataProps {
5
5
  verifiedBusiness: CompanyDatasetResponse | undefined;
6
6
  verifiedAddress: AddressSchema | undefined;
@@ -2,5 +2,14 @@ import type { CompanyDatasetResponse } from '../../core/models/api/company-searc
2
2
  import type { ValidatorMode } from '../../utils/validation/types';
3
3
  import type { AddressSchema } from '../internal/Address/types';
4
4
  import type { AdditionalInformationSchema } from './types';
5
+ /**
6
+ * Parses the nested trusted fields on a legal entity e.g. ['registrationAddress.address', 'registrationAddress.postalCode']
7
+ *
8
+ * @param field - field in formSchema
9
+ * @param data - data in useForm
10
+ * @param trustedFields - trustedFields on legal entity
11
+ * @returns An array of the nested field keys that are trusted
12
+ */
13
+ export declare const getNestedTrustedFields: <FormSchema>(field: keyof FormSchema, data: FormSchema | undefined, trustedFields: string[] | undefined) => Array<keyof FormSchema>;
5
14
  export declare const mapAddressData: (verifiedBusiness: CompanyDatasetResponse) => AddressSchema;
6
15
  export declare const applyVerifiedBusinessData: (verifiedBusiness: CompanyDatasetResponse | undefined, handleChangeFor: (key: keyof AdditionalInformationSchema, mode?: ValidatorMode) => (e: any) => void) => void;
@@ -1,7 +1,6 @@
1
1
  import type { Dispatch, StateUpdater } from 'preact/hooks';
2
2
  import type { HookStatus } from '../../core/hooks/types';
3
3
  import type { CompanyDatasetResponse, CompanySearchResult } from '../../core/models/api/company-search';
4
- import type { ProvinceCode } from '../../core/models/province-code';
5
4
  import type { StateCode } from '../../core/models/state-code';
6
5
  export interface BusinessSelectionProps {
7
6
  showCompanyStructure: boolean;
@@ -11,7 +10,7 @@ export interface BusinessSelectionProps {
11
10
  resettingTrustedData: HookStatus;
12
11
  searchResults: CompanySearchResult[] | undefined;
13
12
  invalidTin: boolean;
14
- fetchBusinessData: (company: CompanySearchResult, state?: StateCode | ProvinceCode) => Promise<CompanyDatasetResponse | undefined>;
13
+ fetchBusinessData: (company: CompanySearchResult, state?: StateCode) => Promise<CompanyDatasetResponse | undefined>;
15
14
  verifyBusinessData: (data: CompanyDatasetResponse, tin: string) => Promise<boolean | undefined>;
16
15
  resetTinVerification: () => void;
17
16
  proceedToManualDataEntry: () => Promise<void>;
@@ -6,6 +6,7 @@ import type { CompanySchema } from './types';
6
6
  export declare const COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION: CountryCode[];
7
7
  export declare const COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION: CountryCode[];
8
8
  export declare const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS: CountryCode[];
9
+ export declare const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS: CountryCode[];
9
10
  export declare const COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER: CountryCode[];
10
11
  /**
11
12
  * Also used to determine what documenttype needs to be used
@@ -1,2 +1,3 @@
1
1
  import type { PciDropinProps } from '../types';
2
- export declare function PciDropinComponent({ legalEntityResponse, pciTemplateResponse, handleHomeClick, handleSign, taskType, trackingConfig, asEmbedded, asModal, handleCloseClick, }: PciDropinProps): import("preact").JSX.Element;
2
+ export declare function PciDropinComponent({ legalEntityResponse, pciTemplateResponse, handleHomeClick, handleSign, taskType, trackingConfig, asEmbedded, asModal, needsSigning, // TODO: move up to upcoming layout
3
+ handleCloseClick, }: PciDropinProps): import("preact").JSX.Element;
@@ -13,4 +13,5 @@ export interface PciDropinProps extends DropinProps {
13
13
  handleCloseClick?(): void;
14
14
  asEmbedded?: boolean;
15
15
  asModal?: boolean;
16
+ needsSigning?: boolean;
16
17
  }
@@ -4,7 +4,6 @@ import type { TaskTypes } from '../../TaskList/types';
4
4
  interface CreateIndividualComponentPropsBase {
5
5
  taskType?: TaskTypes;
6
6
  onSubmitSuccess?(data: IndividualSchema): void;
7
- handleBackClick?(): void;
8
7
  modalView?: boolean;
9
8
  onClose?(): void;
10
9
  onUnmount?(): void;
@@ -13,5 +12,5 @@ export type CreateIndividualComponentProps = CreateIndividualComponentPropsBase
13
12
  parentLegalEntityId: string;
14
13
  legalEntityId: string;
15
14
  }, 'parentLegalEntityId' | 'legalEntityId'>;
16
- export declare function CreateIndividualComponent({ parentLegalEntityId, legalEntityId, taskType, onSubmitSuccess, handleBackClick, modalView, onClose, onUnmount, }: CreateIndividualComponentProps): import("preact").JSX.Element;
15
+ export declare function CreateIndividualComponent({ parentLegalEntityId, legalEntityId, taskType, onSubmitSuccess, modalView, onClose, onUnmount, }: CreateIndividualComponentProps): import("preact").JSX.Element;
17
16
  export {};