@adyen/kyc-components 2.63.0 → 2.64.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 +61 -134
- package/dist/style.css +236 -112
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCardSelect.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +2 -2
- package/dist/types/core/analytics.d.ts +3 -1
- package/dist/types/core/models/api/analytics.d.ts +0 -1
- package/dist/types/core/user-events.d.ts +1 -1
- package/package.json +4 -3
- package/dist/types/components/AutoResizer.d.ts +0 -56
|
@@ -6,7 +6,7 @@ export interface RadioCardSelectProps<OptionType> {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
isInvalid?: boolean;
|
|
8
8
|
options: readonly OptionType[];
|
|
9
|
-
name
|
|
9
|
+
name: string;
|
|
10
10
|
onSelect: (option: OptionType) => void;
|
|
11
11
|
selected: OptionType | undefined;
|
|
12
12
|
isOptionDisabled?: (option: OptionType) => boolean;
|
|
@@ -21,7 +21,7 @@ interface BaseSelectProps {
|
|
|
21
21
|
filterable?: boolean;
|
|
22
22
|
isInvalid?: boolean;
|
|
23
23
|
items: ReadonlyArray<SelectItem>;
|
|
24
|
-
name
|
|
24
|
+
name: string;
|
|
25
25
|
placeholder?: string;
|
|
26
26
|
readonly?: boolean;
|
|
27
27
|
selected: string | string[] | undefined;
|
|
@@ -62,7 +62,7 @@ interface MultiSelectProps extends BaseSelectProps {
|
|
|
62
62
|
}
|
|
63
63
|
export type SelectProps = SingleSelectProps | MultiSelectProps;
|
|
64
64
|
export interface SelectButtonProps {
|
|
65
|
-
name
|
|
65
|
+
name: string;
|
|
66
66
|
active: SelectItem[];
|
|
67
67
|
filterInputRef: MutableRef<HTMLInputElement>;
|
|
68
68
|
filterable: boolean;
|
|
@@ -12,5 +12,7 @@ export type AssociatedLeAnalyticsParams = {
|
|
|
12
12
|
associatedLegalEntityOrgType?: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const getAssociatedLeAnalyticsPayload: ({ associatedLegalEntity, associatedLegalEntityOrg, }: GetAssociatedLeAnalyticsParams) => AssociatedLeAnalyticsParams;
|
|
15
|
-
export declare const debouncedInputEvent: import("lodash").DebouncedFunc<(properties: SetOptional<AdditionalEventProperties, "actionLevel">
|
|
15
|
+
export declare const debouncedInputEvent: import("lodash").DebouncedFunc<(properties: SetOptional<AdditionalEventProperties, "actionLevel"> & {
|
|
16
|
+
field: string;
|
|
17
|
+
}) => void>;
|
|
16
18
|
export {};
|
|
@@ -77,7 +77,7 @@ declare class UserEvents {
|
|
|
77
77
|
* Adds an event with context specific to field-related events
|
|
78
78
|
*/
|
|
79
79
|
addFieldEvent(eventName: EventName, properties: SetOptional<AdditionalEventProperties, 'actionLevel'> & {
|
|
80
|
-
field
|
|
80
|
+
field: string;
|
|
81
81
|
}): void;
|
|
82
82
|
/**
|
|
83
83
|
* Starts a timer for an event to measure the time it takes for an event to occur. Time is ended when `addEvent` is executed with the same key
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/kyc-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.64.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"adyen",
|
|
6
6
|
"adyen-kyc",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"@adyen/openbankingsdk": "^0.1.2",
|
|
84
84
|
"@adyen/ui-assets-icons-16": "^4.3.0",
|
|
85
85
|
"classnames": "^2.3.2",
|
|
86
|
+
"container-query-polyfill": "^1.0.2",
|
|
86
87
|
"isomorphic-dompurify": "^2.17.0",
|
|
87
88
|
"lodash-es": "^4.17.21",
|
|
88
89
|
"onfido-sdk-ui": "14.38.0",
|
|
@@ -95,11 +96,11 @@
|
|
|
95
96
|
"@commitlint/prompt-cli": "^17.7.1",
|
|
96
97
|
"@playwright/test": "1.41.0",
|
|
97
98
|
"@preact/preset-vite": "^2.8.1",
|
|
98
|
-
"@storybook/addon-actions": "^8.4.0",
|
|
99
99
|
"@storybook/addon-a11y": "^8.4.0",
|
|
100
|
+
"@storybook/addon-actions": "^8.4.0",
|
|
100
101
|
"@storybook/addon-essentials": "^8.4.0",
|
|
101
|
-
"@storybook/experimental-addon-test": "^8.4.0",
|
|
102
102
|
"@storybook/core-server": "^8.4.0",
|
|
103
|
+
"@storybook/experimental-addon-test": "^8.4.0",
|
|
103
104
|
"@storybook/preact": "^8.4.0",
|
|
104
105
|
"@storybook/preact-vite": "^8.4.0",
|
|
105
106
|
"@storybook/test": "^8.4.0",
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { ComponentChildren } from 'preact';
|
|
2
|
-
/**
|
|
3
|
-
* Represents the layout breakpoints.
|
|
4
|
-
* - `xsOnly`: Extra small screens.
|
|
5
|
-
* - `md`: Medium screens.
|
|
6
|
-
* - `lg`: Large screens.
|
|
7
|
-
*/
|
|
8
|
-
export type Layout = 'xsOnly' | 'md' | 'lg';
|
|
9
|
-
/**
|
|
10
|
-
* Mapping of layout breakpoints to their corresponding CSS class names.
|
|
11
|
-
* - `xsOnly`: 'adyen-layout-xs-only'
|
|
12
|
-
* - `md`: 'adyen-layout-md'
|
|
13
|
-
* - `lg`: 'adyen-layout-lg'
|
|
14
|
-
*/
|
|
15
|
-
export declare const layoutBreakpointClassnames: Record<Layout, string>;
|
|
16
|
-
/**
|
|
17
|
-
* The minimum container widths (in pixels) required to apply each breakpoint.
|
|
18
|
-
* - `md`: 680px
|
|
19
|
-
* - `lg`: 1024px
|
|
20
|
-
*/
|
|
21
|
-
export declare const layoutBreakpointSizes: Partial<Record<Layout, number>>;
|
|
22
|
-
/**
|
|
23
|
-
* Computes the appropriate CSS class names based on the given container size.
|
|
24
|
-
*
|
|
25
|
-
* @param containerSize - The width of the container in pixels.
|
|
26
|
-
* @returns An array of CSS class names corresponding to the breakpoints that match the container size.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* getBreakpointClassNames(700);
|
|
30
|
-
* // Returns ['adyen-layout-md']
|
|
31
|
-
*/
|
|
32
|
-
export declare const getBreakpointClassNames: (containerSize: number) => string[];
|
|
33
|
-
/**
|
|
34
|
-
* Assigns layout CSS classes to a container element based on its size.
|
|
35
|
-
*
|
|
36
|
-
* @param entries - An array of `ResizeObserverEntry` objects representing observed size changes.
|
|
37
|
-
* @param container - The target HTML element whose classes will be updated.
|
|
38
|
-
*/
|
|
39
|
-
export declare const assignLayoutClasses: (entries: ResizeObserverEntry[], container: HTMLElement) => void;
|
|
40
|
-
/**
|
|
41
|
-
* Component that dynamically applies CSS classes to its container
|
|
42
|
-
* element based on its size. It observes size changes using the ResizeObserver API.
|
|
43
|
-
*
|
|
44
|
-
* @param props - The component props.
|
|
45
|
-
* @param props.children - The child elements to render within the resizable container.
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* <AutoResizer>
|
|
49
|
-
* <div>Responsive content</div>
|
|
50
|
-
* </AutoResizer>
|
|
51
|
-
*
|
|
52
|
-
* @returns A `div` element with dynamic class names applied based on container width.
|
|
53
|
-
*/
|
|
54
|
-
export declare const AutoResizer: ({ children }: {
|
|
55
|
-
children: ComponentChildren;
|
|
56
|
-
}) => import("preact").JSX.Element;
|