@adyen/kyc-components 3.17.0 → 3.18.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.
- package/dist/es/adyen-kyc-components.es.js +236 -325
- package/dist/style.css +76 -195
- package/dist/types/components/BusinessTypeSelection/utils.d.ts +2 -2
- package/dist/types/components/CompanyBasics/component/CompanyBasicsComponent.d.ts +1 -1
- package/dist/types/components/CompanyOtherDetails/component/CompanyOtherDetailsComponent.d.ts +1 -1
- package/dist/types/components/EventEmitter.d.ts +3 -3
- package/dist/types/components/internal/Accordion/Accordion.d.ts +11 -3
- package/dist/types/components/internal/ContextGuidance/ContextGuidance.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Field/Field.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Field/types.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputRadio/InputRadio.d.ts +1 -1
- package/dist/types/components/internal/FormFields/MaskedInputText/MaskedInputText.d.ts +2 -1
- package/dist/types/components/internal/IdFieldTypeSelector/countryIdNumberTypes.d.ts +1 -1
- package/dist/types/components/internal/IdFieldTypeSelector/inferCompanyRegistrationNumberType.d.ts +1 -1
- package/dist/types/core/Context/ExperimentContext/types.d.ts +3 -1
- package/dist/types/core/Context/SettingsContext/useSetting.d.ts +2 -2
- package/dist/types/core/SDKValidation/index.d.ts +2 -2
- package/dist/types/core/Services/componentApi/delete-transferInstrument.d.ts +1 -1
- package/dist/types/core/Services/session.d.ts +1 -1
- package/dist/types/core/core.d.ts +4 -4
- package/dist/types/core/hooks/useAsyncValidator.d.ts +1 -1
- package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +1 -1
- package/dist/types/core/hooks/useForm/reducer.d.ts +5 -3
- package/dist/types/core/hooks/useForm/types.d.ts +3 -0
- package/dist/types/core/hooks/useIdVerificationToken.d.ts +2 -2
- package/dist/types/core/hooks/useInterval.d.ts +0 -1
- package/dist/types/core/hooks/useLocalStorage.d.ts +1 -5
- package/dist/types/core/hooks/useStaticValidator/useStaticValidator.d.ts +2 -2
- package/dist/types/core/models/errors/validation-error.d.ts +2 -1
- package/dist/types/core/models/field-configurations.d.ts +1 -1
- package/dist/types/utils/api/documentUtils.d.ts +1 -1
- package/dist/types/utils/company-util.d.ts +1 -1
- package/dist/types/utils/entriesOf.d.ts +2 -2
- package/dist/types/utils/mapping/mapping.d.ts +2 -2
- package/dist/types/utils/omitObscuredFieldsIfUnchanged.d.ts +1 -1
- package/dist/types/utils/regex/patternValidators.d.ts +1 -1
- package/dist/types/utils/trustMembers/handlers/addOrUpdateAssociatedTrustMember.d.ts +2 -2
- package/dist/types/utils/trustMembers/handlers/addOrUpdateUndefinedBeneficiary.d.ts +1 -1
- package/dist/types/utils/trustMembers/handlers/createExemptSettlor.d.ts +2 -2
- package/dist/types/utils/trustMembers/handlers/deleteAssociatedTrustMember.d.ts +1 -1
- package/dist/types/utils/trustMembers/handlers/deleteUndefinedBeneficiary.d.ts +1 -1
- package/dist/types/utils/trustMembers/handlers/updateExemptSettlorName.d.ts +2 -2
- package/dist/types/utils/validatorUtils.d.ts +3 -3
- package/dist/types/utils/verification/verificationUtils.d.ts +1 -1
- package/package.json +2 -2
- package/dist/types/components/internal/Accordion/AccordionContext.d.ts +0 -2
- package/dist/types/components/internal/Accordion/index.d.ts +0 -1
- package/dist/types/components/internal/Accordion/types.d.ts +0 -22
- package/dist/types/components/internal/AccordionItem/AccordionItem.d.ts +0 -3
- package/dist/types/components/internal/AccordionItem/index.d.ts +0 -1
- package/dist/types/components/internal/AccordionItem/types.d.ts +0 -15
- package/dist/types/components/internal/AccordionItem/useAccordionContext.d.ts +0 -1
- package/dist/types/components/internal/CollapsibleContainer/CollapsibleContainer.d.ts +0 -3
- package/dist/types/components/internal/CollapsibleContainer/index.d.ts +0 -1
- package/dist/types/components/internal/CollapsibleContainer/types.d.ts +0 -6
|
@@ -6,9 +6,5 @@ type Options<T> = Partial<{
|
|
|
6
6
|
parser: Parser<T>;
|
|
7
7
|
syncData: boolean;
|
|
8
8
|
}>;
|
|
9
|
-
export declare const useLocalStorage: <T>(key: string, defaultValue: T, options?:
|
|
10
|
-
serializer: Serializer<T>;
|
|
11
|
-
parser: Parser<T>;
|
|
12
|
-
syncData: boolean;
|
|
13
|
-
}>) => [T, Dispatch<StateUpdater<T>>];
|
|
9
|
+
export declare const useLocalStorage: <T>(key: string, defaultValue: T, options?: Options<T>) => [T, Dispatch<StateUpdater<T>>];
|
|
14
10
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { FieldContext, FieldData,
|
|
1
|
+
import type { FieldContext, FieldData, ValidatorRules } from '../../../utils/validation/types';
|
|
2
2
|
import { ValidationResult } from '../../../utils/validation/ValidationResult';
|
|
3
3
|
export type TriggerStaticValidation<FormSchema> = (fieldData: FieldData<FormSchema>, context?: FieldContext<FormSchema>) => ValidationResult;
|
|
4
4
|
export type UseStaticValidator<FormSchema> = {
|
|
5
5
|
triggerStaticValidation: TriggerStaticValidation<FormSchema>;
|
|
6
6
|
};
|
|
7
|
-
export declare const useStaticValidator: <FormSchema>(rules?:
|
|
7
|
+
export declare const useStaticValidator: <FormSchema>(rules?: ValidatorRules<FormSchema>) => UseStaticValidator<FormSchema>;
|
|
@@ -13,7 +13,8 @@ export interface ValidationError {
|
|
|
13
13
|
errorCode: string;
|
|
14
14
|
}
|
|
15
15
|
export declare const isValidationError: (error: Error | undefined) => boolean;
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const isIdDocumentUploadError: (error: Error | undefined) => boolean;
|
|
17
|
+
export declare const isBankStatementUploadError: (error: Error | undefined) => boolean;
|
|
17
18
|
export interface ValidationResponse {
|
|
18
19
|
invalidFields?: InvalidField[];
|
|
19
20
|
errorCode?: string;
|
|
@@ -7,5 +7,5 @@ export type FieldConfigurations<FormSchema> = {
|
|
|
7
7
|
};
|
|
8
8
|
export type PerCountryFieldConfig<FormSchema, FieldName extends keyof FormSchema, Params extends object> = PerCountry<FieldMetadata<FormSchema, FieldName> | ((params: Params) => FieldMetadata<FormSchema, FieldName>)>;
|
|
9
9
|
export type NoParams = Record<string, never>;
|
|
10
|
-
export declare const resolveFieldMetadata: <FormSchema, FieldName extends keyof FormSchema, Params extends object>(countryEntry: FieldMetadata<FormSchema, FieldName> | ((params: Params) => FieldMetadata<FormSchema, FieldName>), params: Params, defaultMetadata: FieldMetadata<FormSchema, FieldName>) => FieldMetadata<FormSchema, FieldName>;
|
|
10
|
+
export declare const resolveFieldMetadata: <FormSchema, FieldName extends keyof FormSchema, Params extends object>(countryEntry: FieldMetadata<FormSchema, FieldName> | ((params: Params) => FieldMetadata<FormSchema, FieldName>) | undefined, params: Params, defaultMetadata: FieldMetadata<FormSchema, FieldName>) => FieldMetadata<FormSchema, FieldName>;
|
|
11
11
|
export {};
|
|
@@ -6,7 +6,7 @@ export type DocumentApiUtils = {
|
|
|
6
6
|
fetchDocument(documentId: string, entityId: string): Promise<Document>;
|
|
7
7
|
uploadDocuments(documents: Document[], entityId: string): Promise<Document[]>;
|
|
8
8
|
};
|
|
9
|
-
declare const documentApiUtils: (createDocumentHandler: Required<DropinAPIHandlers>[
|
|
9
|
+
declare const documentApiUtils: (createDocumentHandler: Required<DropinAPIHandlers>["handleCreateDocument"], getDocumentHandler: Required<DropinAPIHandlers>["handleGetDocument"], updateDocumentHandler: Required<DropinAPIHandlers>["handleUpdateDocument"]) => DocumentApiUtils;
|
|
10
10
|
export declare const getDocument: (entityId: string | undefined, documentType: DocumentType) => ExistingDocument | undefined;
|
|
11
11
|
export declare const getIdDocument: (entityId: string) => Document | undefined;
|
|
12
12
|
export interface CreateDocumentRequestProps {
|
|
@@ -5,7 +5,7 @@ import type { SoleProprietor } from '../core/models/api/sole-proprietor';
|
|
|
5
5
|
import type { Trust } from '../core/models/api/trust';
|
|
6
6
|
import type { CountryCode } from '../core/models/country-code';
|
|
7
7
|
export declare const countryToTaxInfoTypeMap: Record<string, TaxInformationType>;
|
|
8
|
-
export declare const updateTaxInformation: <T extends Organization |
|
|
8
|
+
export declare const updateTaxInformation: <T extends Organization | SoleProprietor | Trust>({ taxId, country, exemptedFromTax, isUen, entity, }: {
|
|
9
9
|
taxId: string;
|
|
10
10
|
country: CountryCode;
|
|
11
11
|
exemptedFromTax?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Entries } from 'type-fest';
|
|
2
2
|
export declare const entriesOf: <T extends object>(object: T) => Entries<T>;
|
|
3
|
-
export declare const valuesOf: <T extends object>(object: T) => T[keyof T]
|
|
4
|
-
export declare const keysOf: <T extends object>(object: T) =>
|
|
3
|
+
export declare const valuesOf: <T extends object>(object: T) => Array<T[keyof T]>;
|
|
4
|
+
export declare const keysOf: <T extends object>(object: T) => Array<keyof T>;
|
|
@@ -12,7 +12,7 @@ import type { Individual } from '../../core/models/api/individual';
|
|
|
12
12
|
import type { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
|
|
13
13
|
import type { ExistingTransferInstrument, TransferInstrument } from '../../core/models/api/transfer-instrument';
|
|
14
14
|
import type { FileSchema } from '../../core/models/file';
|
|
15
|
-
export declare const adjustIdentificationData: (data: PersonalDetailsSchema, apiData: Individual[
|
|
15
|
+
export declare const adjustIdentificationData: (data: PersonalDetailsSchema, apiData: Individual["identificationData"]) => Individual["identificationData"];
|
|
16
16
|
/**
|
|
17
17
|
* Easy to use function for mapping transferInstrument response to payout account details component data
|
|
18
18
|
* @param transferInstrument - a transferInstrument the same as found in API response
|
|
@@ -35,7 +35,7 @@ export declare const mapCompanyToLegalEntity: (data: CompanySchema) => LegalEnti
|
|
|
35
35
|
export declare const mapLegalEntityToTrust: (legalEntity: LegalEntity) => TrustSchema;
|
|
36
36
|
export declare const mapTrustToLegalEntity: (data: TrustSchema) => LegalEntity;
|
|
37
37
|
export declare const mapLegalEntityToSoleProp: (legalEntity: LegalEntity) => SolePropSchema;
|
|
38
|
-
export declare const mapSolePropToLegalEntity: (data: SolePropSchema) => LegalEntity;
|
|
38
|
+
export declare const mapSolePropToLegalEntity: (data: SolePropSchema, isCountryOfGoverningLawEnabled?: boolean) => LegalEntity;
|
|
39
39
|
export type IndividualDocumentFields = Pick<IndividualSchema, 'idDocument' | 'proofOfResidence' | 'proofOfNationalId'>;
|
|
40
40
|
export declare const getPage: ({ attachments }: Document, pageType?: PageType) => Attachment;
|
|
41
41
|
export declare const getPageName: (document: Document, pageType?: PageType) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RecursiveKeyOf } from './getNestedPropertyKeys';
|
|
2
|
-
export declare const omitObscuredFieldsIfUnchanged: <Schema extends object>(obscuredFields: RecursiveKeyOf<Schema
|
|
2
|
+
export declare const omitObscuredFieldsIfUnchanged: <Schema extends object>(obscuredFields: Array<RecursiveKeyOf<Schema>>, dataSubmitted: Schema | undefined, savedData: Schema | undefined) => Schema;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ValidatorRule } from '../validation/types';
|
|
2
2
|
export declare const validateNotEmptyOnBlur: ValidatorRule<string | undefined, object>;
|
|
3
|
-
export declare const validatePatternOnBlur: <ValueType extends string, FormSchema>(pattern: RegExp) => ValidatorRule<ValueType, FormSchema>;
|
|
3
|
+
export declare const validatePatternOnBlur: <ValueType extends string | undefined, FormSchema>(pattern: RegExp) => ValidatorRule<ValueType, FormSchema>;
|
|
@@ -4,10 +4,10 @@ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity'
|
|
|
4
4
|
export declare const addOrUpdateAssociatedTrustMember: ({ newOrUpdated, trust, handleUpdateLegalEntity, }: {
|
|
5
5
|
newOrUpdated: RegularTrustMember | CompanyTrustMember | ExemptSettlor;
|
|
6
6
|
trust: ExistingLegalEntity;
|
|
7
|
-
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers[
|
|
7
|
+
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
|
|
8
8
|
}) => Promise<void>;
|
|
9
9
|
export declare const updateRootTrusteeTrustMember: ({ trustMember, trust, handleUpdateLegalEntity, }: {
|
|
10
10
|
trustMember: RootTrustee;
|
|
11
11
|
trust: ExistingLegalEntity;
|
|
12
|
-
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers[
|
|
12
|
+
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
|
|
13
13
|
}) => Promise<void>;
|
|
@@ -4,5 +4,5 @@ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity'
|
|
|
4
4
|
export declare const addOrUpdateUndefinedBeneficiary: ({ newOrUpdated, trust, handleUpdateLegalEntity, }: {
|
|
5
5
|
newOrUpdated: UndefinedBeneficiary;
|
|
6
6
|
trust: ExistingLegalEntity;
|
|
7
|
-
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers[
|
|
7
|
+
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -4,9 +4,9 @@ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity'
|
|
|
4
4
|
export declare const createExemptSettlor: ({ exemptSettlor, trust, handleCreateLegalEntity, }: {
|
|
5
5
|
exemptSettlor: ExemptSettlor;
|
|
6
6
|
trust: ExistingLegalEntity;
|
|
7
|
-
handleCreateLegalEntity: NonNullable<DropinAPIHandlers[
|
|
7
|
+
handleCreateLegalEntity: NonNullable<DropinAPIHandlers["handleCreateLegalEntity"]>;
|
|
8
8
|
}) => Promise<ExistingLegalEntity>;
|
|
9
9
|
export declare const createOrganizationExemptSettlor: ({ exemptSettlor, handleCreateLegalEntity, }: {
|
|
10
10
|
exemptSettlor: ExemptSettlor;
|
|
11
|
-
handleCreateLegalEntity: NonNullable<DropinAPIHandlers[
|
|
11
|
+
handleCreateLegalEntity: NonNullable<DropinAPIHandlers["handleCreateLegalEntity"]>;
|
|
12
12
|
}) => Promise<ExistingLegalEntity>;
|
|
@@ -4,5 +4,5 @@ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity'
|
|
|
4
4
|
export declare const deleteAssociatedTrustMember: ({ associatedTrustMember, trust, handleUpdateLegalEntity, }: {
|
|
5
5
|
associatedTrustMember: RegularTrustMember | CompanyTrustMember | ExemptSettlor;
|
|
6
6
|
trust: ExistingLegalEntity;
|
|
7
|
-
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers[
|
|
7
|
+
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -8,5 +8,5 @@ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity'
|
|
|
8
8
|
export declare const deleteUndefinedBeneficiary: ({ undefinedBeneficiary, trust, handleUpdateLegalEntity, }: {
|
|
9
9
|
undefinedBeneficiary: UndefinedBeneficiary;
|
|
10
10
|
trust: ExistingLegalEntity;
|
|
11
|
-
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers[
|
|
11
|
+
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
|
|
12
12
|
}) => Promise<void>;
|
|
@@ -4,9 +4,9 @@ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity'
|
|
|
4
4
|
export declare const exemptSettlorNamesTheSame: (existingSettlor: ExemptSettlor, newSettlor: ExemptSettlor) => boolean;
|
|
5
5
|
export declare const updateExemptSettlorName: ({ exemptSettlor, handleUpdateLegalEntity, }: {
|
|
6
6
|
exemptSettlor: ExemptSettlor;
|
|
7
|
-
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers[
|
|
7
|
+
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
|
|
8
8
|
}) => Promise<ExistingLegalEntity>;
|
|
9
9
|
export declare const updateOrganizationExemptSettlorName: ({ exemptSettlor, handleUpdateLegalEntity, }: {
|
|
10
10
|
exemptSettlor: ExemptSettlor;
|
|
11
|
-
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers[
|
|
11
|
+
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
|
|
12
12
|
}) => Promise<ExistingLegalEntity>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { LocalAccountIdentification } from '../core/models/api/accountIdentification';
|
|
2
2
|
import type { CountryCode } from '../core/models/country-code';
|
|
3
3
|
import type { CountryFormatRules } from './validation/types';
|
|
4
|
-
export declare const getMaxLengthByFieldAndCountry: <FormSchema extends object>(formattingRules:
|
|
5
|
-
export declare const isUndefinedOrNull: (input: unknown) => input is null;
|
|
6
|
-
export declare const isEmpty: (input: unknown) => input is null;
|
|
4
|
+
export declare const getMaxLengthByFieldAndCountry: <FormSchema extends object>(formattingRules: CountryFormatRules<FormSchema>, field: keyof FormSchema, country: CountryCode, ignoreIfFormatterExists: boolean) => number;
|
|
5
|
+
export declare const isUndefinedOrNull: (input: unknown) => input is undefined | null;
|
|
6
|
+
export declare const isEmpty: (input: unknown) => input is null | undefined;
|
|
7
7
|
export declare const hasEmptyFields: (input: object | undefined) => boolean;
|
|
8
8
|
export declare const isAccountNumberMasked: (payload: LocalAccountIdentification) => boolean;
|
|
9
9
|
export declare const findEmptyKeys: (obj: object) => string[];
|
|
@@ -3,5 +3,5 @@ import type { CountryCode } from '../../core/models/country-code';
|
|
|
3
3
|
import type { IdVerificationStatus } from '../../core/models/id-verification-status';
|
|
4
4
|
export declare function useVerification(fieldsToVerify: any[], country: CountryCode): {
|
|
5
5
|
hasFieldsToVerify: boolean;
|
|
6
|
-
verifyFields: (formState: Pick<IdFormState,
|
|
6
|
+
verifyFields: (formState: Pick<IdFormState, "data">, savedData: PersonalDetailsSchema) => Promise<IdVerificationStatus[]>;
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/kyc-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.18.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"stylelint-config-sass-guidelines": "^10.0.0",
|
|
129
129
|
"stylelint-scss": "^4.7.0",
|
|
130
130
|
"type-fest": "^3.13.1",
|
|
131
|
-
"typescript": "5.
|
|
131
|
+
"typescript": "^5.5.2",
|
|
132
132
|
"typescript-strict-plugin": "^2.2.0",
|
|
133
133
|
"vite": "^5.2.6",
|
|
134
134
|
"vite-node": "^1.4.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Accordion';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { ComponentChildren } from 'preact';
|
|
2
|
-
export interface AccordionProps {
|
|
3
|
-
children: ComponentChildren;
|
|
4
|
-
className?: string;
|
|
5
|
-
expand?: boolean;
|
|
6
|
-
type?: string;
|
|
7
|
-
onExpandSection?: (title: string) => void;
|
|
8
|
-
}
|
|
9
|
-
export type AccordionSection = {
|
|
10
|
-
id: string;
|
|
11
|
-
isOpen: boolean;
|
|
12
|
-
};
|
|
13
|
-
export type AccordionContextType = {
|
|
14
|
-
expand: boolean;
|
|
15
|
-
items: AccordionSection[];
|
|
16
|
-
setItems: (items: AccordionSection[] | ((items: AccordionSection[]) => AccordionSection[])) => void;
|
|
17
|
-
onExpandSection?: (title: string) => void;
|
|
18
|
-
};
|
|
19
|
-
export declare enum Placement {
|
|
20
|
-
Left = 0,
|
|
21
|
-
Right = 1
|
|
22
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import './_accordion-item.component.scss';
|
|
2
|
-
import type { AccordionItemProps } from './types';
|
|
3
|
-
export default function AccordionItem({ children, className, open, title, subTitle, expandIconPlacement, iconPlacement, icon, onOpen, onClose, }: AccordionItemProps): import("preact").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './AccordionItem';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ComponentChildren } from 'preact';
|
|
2
|
-
import type { Placement } from '../Accordion/types';
|
|
3
|
-
import type { IconName } from '../Icon/Icon';
|
|
4
|
-
export interface AccordionItemProps {
|
|
5
|
-
children: ComponentChildren;
|
|
6
|
-
className?: string;
|
|
7
|
-
open?: boolean;
|
|
8
|
-
title?: ComponentChildren | string;
|
|
9
|
-
subTitle?: ComponentChildren | string;
|
|
10
|
-
expandIconPlacement?: Placement;
|
|
11
|
-
icon?: IconName;
|
|
12
|
-
iconPlacement?: Placement;
|
|
13
|
-
onOpen?: () => void;
|
|
14
|
-
onClose?: () => void;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useAccordionContext: () => import("../Accordion/types").AccordionContextType;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './CollapsibleContainer';
|