@muraldevkit/ui-toolkit 2.78.0-dev-8Tki.1 → 2.79.0-dev-IXFf.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.
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { DSIconType } from '../../svg';
3
+ export type InlineMessageKind = 'error' | 'info' | 'warning' | 'success' | 'helper';
4
+ interface PropTypes {
5
+ /**
6
+ * A custom DS icon which is only applied if the alert is not an error, info, or warning type
7
+ */
8
+ customIcon?: DSIconType;
9
+ /**
10
+ * The id of the notification.
11
+ *
12
+ * Used to link the notification to a form field using aria-describedby.
13
+ */
14
+ id: string;
15
+ /**
16
+ * Choose the kind of notification to display.
17
+ *
18
+ * Accepted values: error, info, warning, success, helper
19
+ */
20
+ kind: InlineMessageKind;
21
+ /**
22
+ * The text to be displayed in the notification.
23
+ */
24
+ message: string;
25
+ /**
26
+ * The data-qa attribute for testing purposes.
27
+ */
28
+ ['data-qa']?: string;
29
+ }
30
+ /**
31
+ * MrlInlineMessage is a notification component that can be used to display messages to the user.
32
+ *
33
+ * @param props - The properties of the component.
34
+ * @returns A React component.
35
+ */
36
+ export declare const MrlInlineMessage: ({ customIcon, id, kind, message, ["data-qa"]: qa }: PropTypes) => React.ReactElement;
37
+ export {};
@@ -0,0 +1 @@
1
+ export { MrlInlineMessage } from './MrlInlineMessage';
@@ -1,2 +1,3 @@
1
1
  export * from './MrlBlockNotification';
2
2
  export * from './MrlToast';
3
+ export * from './MrlInlineMessage';
@@ -115,7 +115,7 @@ export declare const colorPictoStoryData: {
115
115
  export declare const animateStoryData: {
116
116
  args: {
117
117
  delay: number;
118
- state: "play" | "stop";
118
+ state: "stop" | "play";
119
119
  };
120
120
  argTypes: {
121
121
  delay: {