@muraldevkit/ui-toolkit 4.51.1-dev-L2i7.1 → 4.51.1-dev-gmWQ.1

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
- text: string;
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
  */
@@ -1,3 +1,4 @@
1
1
  export * from './MrlAnimatedIconButton';
2
2
  export * from './MrlButton';
3
3
  export * from './MrlIconButton';
4
+ export * from './MrlProcessingButton';
@@ -31,8 +31,6 @@ interface MrlTooltipProps {
31
31
  kind?: MrlTooltipVariant;
32
32
  /** The placement of the tooltip in relation to its trigger */
33
33
  position?: MrlTooltipPosition;
34
- /** Whether to announce the tooltip content to screen readers */
35
- srAnnouncement?: boolean;
36
34
  /** The textual label of tooltip */
37
35
  text: string;
38
36
  /** A custom class selector to be applied to the tooltip wrapper */
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * Function to recursively extract all text content from children
4
+ *
5
+ * @param children - the children of the component
6
+ * @returns the combined text content of the children
7
+ */
8
+ export declare const extractTextContent: (children: React.ReactNode) => string;