@muraldevkit/ui-toolkit 2.77.0 → 2.77.1-dev-kjoR.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.
- package/dist/components/notification/MrlInlineNotification/MrlInlineNotification.d.ts +37 -0
- package/dist/components/notification/MrlInlineNotification/index.d.ts +1 -0
- package/dist/components/notification/index.d.ts +1 -0
- package/dist/components/svg/config.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/MrlInlineNotification/module.scss +34 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DSIconType } from '../../svg';
|
|
3
|
+
export type InlineNotificationKind = '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: InlineNotificationKind;
|
|
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
|
+
* MrlInlineNotification 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 MrlInlineNotification: ({ customIcon, id, kind, message, ["data-qa"]: qa }: PropTypes) => React.ReactElement;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MrlInlineNotification } from './MrlInlineNotification';
|