@muraldevkit/ui-toolkit 4.51.1-dev-gmWQ.1 → 4.51.2-dev-OGUS.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,7 +3,6 @@ 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;
7
6
  export type PossibleState = 'normal' | 'processing' | 'success' | 'error';
8
7
  export type MrlProcessingButtonConfig = {
9
8
  normal: {
@@ -12,12 +11,7 @@ export type MrlProcessingButtonConfig = {
12
11
  };
13
12
  processing: {
14
13
  action: () => Promise<void>;
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;
14
+ text: string;
21
15
  };
22
16
  success?: {
23
17
  text: string;
@@ -28,7 +22,7 @@ export type MrlProcessingButtonConfig = {
28
22
  icon?: DSIconType;
29
23
  };
30
24
  };
31
- export interface MrlProcessingButtonProps extends Omit<MrlButtonProps, 'ref' | 'text'>, DataQa {
25
+ export interface MrlProcessingButtonProps extends Omit<MrlButtonProps, 'ref'>, DataQa {
32
26
  /**
33
27
  * The configuration for the processing button.
34
28
  */
@@ -1,4 +1,3 @@
1
1
  export * from './MrlAnimatedIconButton';
2
2
  export * from './MrlButton';
3
3
  export * from './MrlIconButton';
4
- export * from './MrlProcessingButton';
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { DSIconType } from '../../../';
3
- import { AttrsObject } from '../../../../utils';
3
+ import { AttrsObject, MrlComponentProps } from '../../../../utils';
4
4
  import { RightActionConfig, InputStates } from '../../constants';
5
5
  /**
6
6
  * @todo - we need to add static icon support for right
7
7
  */
8
- interface MrlTextInputProps {
8
+ interface MrlTextInputProps extends Omit<MrlComponentProps, 'style'>, React.ComponentProps<'input'> {
9
9
  /** Applies additional HTML attributes to the text input element */
10
10
  attrs?: AttrsObject;
11
11
  /** Additional function to be run when the input's value is cleared */
@@ -39,5 +39,5 @@ interface MrlTextInputProps {
39
39
  * @param {HTMLInputElement} ref - a ref to the input element in the DOM
40
40
  * @returns a text input element
41
41
  */
42
- export declare const MrlTextInput: React.ForwardRefExoticComponent<MrlTextInputProps & React.RefAttributes<HTMLInputElement>>;
42
+ export declare const MrlTextInput: React.ForwardRefExoticComponent<Omit<MrlTextInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
43
43
  export {};
@@ -31,6 +31,8 @@ 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;
34
36
  /** The textual label of tooltip */
35
37
  text: string;
36
38
  /** A custom class selector to be applied to the tooltip wrapper */