@muraldevkit/ui-toolkit 4.52.0 → 4.52.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.
|
@@ -3,6 +3,7 @@ import { MrlButtonProps } from '../MrlButton';
|
|
|
3
3
|
import { DSIconType } from '../../svg';
|
|
4
4
|
import { DataQa } from '../../../utils/dataQa';
|
|
5
5
|
export declare const DEFAULT_RESET_TIME = 4000;
|
|
6
|
+
export declare const DEFAULT_FEEDBACK_TIME = 500;
|
|
6
7
|
export type PossibleState = 'normal' | 'processing' | 'success' | 'error';
|
|
7
8
|
export type MrlProcessingButtonConfig = {
|
|
8
9
|
normal: {
|
|
@@ -11,7 +12,12 @@ export type MrlProcessingButtonConfig = {
|
|
|
11
12
|
};
|
|
12
13
|
processing: {
|
|
13
14
|
action: () => Promise<void>;
|
|
14
|
-
|
|
15
|
+
/**
|
|
16
|
+
* The minimum time to show the processing state before executing the action.
|
|
17
|
+
* This provides visual feedback to users that their action was registered.
|
|
18
|
+
*/
|
|
19
|
+
feedbackTime?: number;
|
|
20
|
+
text?: string;
|
|
15
21
|
};
|
|
16
22
|
success?: {
|
|
17
23
|
text: string;
|
|
@@ -22,7 +28,7 @@ export type MrlProcessingButtonConfig = {
|
|
|
22
28
|
icon?: DSIconType;
|
|
23
29
|
};
|
|
24
30
|
};
|
|
25
|
-
export interface MrlProcessingButtonProps extends Omit<MrlButtonProps, 'ref'>, DataQa {
|
|
31
|
+
export interface MrlProcessingButtonProps extends Omit<MrlButtonProps, 'ref' | 'text'>, DataQa {
|
|
26
32
|
/**
|
|
27
33
|
* The configuration for the processing button.
|
|
28
34
|
*/
|