@adyen/kyc-components 2.45.0 → 2.45.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7819,8 +7819,9 @@ const Accordion = ({
7819
7819
  };
7820
7820
  return jsxs("details", {
7821
7821
  onToggle: handleToggle,
7822
- className,
7822
+ className: cx(className, "adyen-kyc-accordion__details"),
7823
7823
  children: [jsxs("summary", {
7824
+ className: "adyen-kyc-accordion__summary",
7824
7825
  children: [expandOnLeft && jsx("img", {
7825
7826
  className: "adyen-kyc-accordion__arrow",
7826
7827
  src: ChevronDownIcon,
@@ -27255,6 +27256,12 @@ const useIsEligibleForSingpass = ({
27255
27256
  const {
27256
27257
  isExperimentEnabled
27257
27258
  } = useExperimentsContext();
27259
+ if (!legalEntity) {
27260
+ return false;
27261
+ }
27262
+ if (getLegalEntityCountry(legalEntity) !== CountryCodes.Singapore) {
27263
+ return false;
27264
+ }
27258
27265
  if (!isExperimentEnabled("ShowSingPassButtonForCompanies")) return false;
27259
27266
  const isSingpassEnabled = Boolean(handleOpenSingpassAuthorizationLink) && getLegalEntityCountry(legalEntity) === CountryCodes.Singapore;
27260
27267
  if (!isSingpassEnabled) return false;
@@ -35711,7 +35718,7 @@ const ConfigurationApiProvider = ({
35711
35718
  isEmbeddedDropin,
35712
35719
  loadingContext
35713
35720
  } = authContext;
35714
- const sdkVersion = "2.45.0";
35721
+ const sdkVersion = "2.45.2";
35715
35722
  useAnalytics({
35716
35723
  onUserEvent,
35717
35724
  legalEntityId: rootLegalEntityId,
package/dist/style.css CHANGED
@@ -2218,17 +2218,17 @@ a.adyen-kyc-button:disabled, a.adyen-kyc-button.adyen-kyc-button--disabled {
2218
2218
  /* #endregion */
2219
2219
  /* #region Inline components */
2220
2220
  /* #endregion */
2221
- details,
2222
- summary {
2221
+ .adyen-kyc-accordion__details,
2222
+ .adyen-kyc-accordion__summary {
2223
2223
  background-color: #f3f6f9;
2224
2224
  color: #00112c;
2225
2225
  }
2226
2226
 
2227
- details {
2227
+ .adyen-kyc-accordion__details {
2228
2228
  margin: var(--adyen-sdk-spacer-050, 10px) var(--adyen-sdk-spacer-000, 0px);
2229
2229
  }
2230
2230
 
2231
- summary {
2231
+ .adyen-kyc-accordion__summary {
2232
2232
  display: flex;
2233
2233
  align-items: center;
2234
2234
  gap: var(--adyen-sdk-spacer-050, 10px);
@@ -2236,21 +2236,21 @@ summary {
2236
2236
  font-weight: bold;
2237
2237
  }
2238
2238
 
2239
- summary > .adyen-kyc-accordion__arrow {
2239
+ .adyen-kyc-accordion__summary > .adyen-kyc-accordion__arrow {
2240
2240
  cursor: pointer;
2241
2241
  height: 1em;
2242
2242
  }
2243
2243
 
2244
- summary > .adyen-kyc-accordion__arrow--right {
2244
+ .adyen-kyc-accordion__summary > .adyen-kyc-accordion__arrow--right {
2245
2245
  margin-left: auto;
2246
2246
  margin-right: var(--adyen-sdk-spacer-050, 10px);
2247
2247
  }
2248
2248
 
2249
- details[open] .adyen-kyc-accordion__arrow {
2249
+ .adyen-kyc-accordion__details[open] .adyen-kyc-accordion__arrow {
2250
2250
  transform: rotate(-180deg);
2251
2251
  }
2252
2252
 
2253
- details summary::-webkit-details-marker {
2253
+ .adyen-kyc-accordion__details summary::-webkit-details-marker {
2254
2254
  display: none;
2255
2255
  }
2256
2256
 
@@ -2,7 +2,7 @@ import type { SingpassLinkResponse } from '../../../components/Dropins/types';
2
2
  import type { AccountHolderOption } from '../../../components/internal/AccountHolder/types';
3
3
  import type { ExistingLegalEntity } from '../../models/api/legal-entity';
4
4
  interface UseIsEligibleForSingpassProps {
5
- legalEntity: ExistingLegalEntity;
5
+ legalEntity?: ExistingLegalEntity;
6
6
  accountHolder: AccountHolderOption | null;
7
7
  handleOpenSingpassAuthorizationLink: (() => Promise<SingpassLinkResponse>) | undefined;
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.45.0",
3
+ "version": "2.45.2",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [