namirasoft-site-react 1.3.63 → 1.3.64
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.
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { BaseComponentProps } from "../props/BaseComponentProps";
|
|
2
2
|
export interface NSNotificationProps extends BaseComponentProps {
|
|
3
|
-
|
|
4
|
-
type:
|
|
3
|
+
text: string;
|
|
4
|
+
type: NotificationType;
|
|
5
|
+
color: NSNotificationColor;
|
|
5
6
|
onClose: () => void;
|
|
6
7
|
}
|
|
7
|
-
export declare enum
|
|
8
|
+
export declare enum NSNotificationColor {
|
|
8
9
|
GRAY = "GRAY",
|
|
9
10
|
BLUE = "BLUE",
|
|
10
11
|
GREEN = "GREEN",
|
|
11
12
|
YELLOW = "YELLOW",
|
|
12
13
|
RED = "RED"
|
|
13
14
|
}
|
|
15
|
+
export declare enum NotificationType {
|
|
16
|
+
Information = "Information",
|
|
17
|
+
Warning = "Warning",
|
|
18
|
+
Success = "Success",
|
|
19
|
+
Error = "Error"
|
|
20
|
+
}
|
|
14
21
|
export declare function NSNotification(props: NSNotificationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Exit from '../assets/images/close-vector.png';
|
|
3
3
|
import Styles from "./NSNotification.module.css";
|
|
4
|
-
export var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})(
|
|
4
|
+
export var NSNotificationColor;
|
|
5
|
+
(function (NSNotificationColor) {
|
|
6
|
+
NSNotificationColor["GRAY"] = "GRAY";
|
|
7
|
+
NSNotificationColor["BLUE"] = "BLUE";
|
|
8
|
+
NSNotificationColor["GREEN"] = "GREEN";
|
|
9
|
+
NSNotificationColor["YELLOW"] = "YELLOW";
|
|
10
|
+
NSNotificationColor["RED"] = "RED";
|
|
11
|
+
})(NSNotificationColor || (NSNotificationColor = {}));
|
|
12
|
+
export var NotificationType;
|
|
13
|
+
(function (NotificationType) {
|
|
14
|
+
NotificationType["Information"] = "Information";
|
|
15
|
+
NotificationType["Warning"] = "Warning";
|
|
16
|
+
NotificationType["Success"] = "Success";
|
|
17
|
+
NotificationType["Error"] = "Error";
|
|
18
|
+
})(NotificationType || (NotificationType = {}));
|
|
12
19
|
export function NSNotification(props) {
|
|
13
|
-
let className = Styles["ns_" + props.
|
|
14
|
-
return (_jsxs("div", { id: props.id, className: `${Styles.ns_messenger} ${className}`, style: props.style, children: [_jsx("p", { className: `mb-0 ns-font-16-normal`, children: props.
|
|
20
|
+
let className = Styles["ns_" + props.color.toString().toLowerCase];
|
|
21
|
+
return (_jsxs("div", { id: props.id, className: `${Styles.ns_messenger} ${className}`, style: props.style, children: [_jsx("p", { className: `mb-0 ns-font-16-normal`, children: props.text }), _jsx("img", { className: Styles.ns_exit_icon, src: Exit, alt: "exit", width: 32, height: 32, onClick: props.onClose })] }));
|
|
15
22
|
}
|
|
16
23
|
//# sourceMappingURL=NSNotification.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSNotification.js","sourceRoot":"","sources":["../../src/components/NSNotification.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,mCAAmC,CAAC;AACrD,OAAO,MAAM,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"NSNotification.js","sourceRoot":"","sources":["../../src/components/NSNotification.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,mCAAmC,CAAC;AACrD,OAAO,MAAM,MAAM,6BAA6B,CAAC;AAWjD,MAAM,CAAN,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAE3B,oCAAa,CAAA;IACb,oCAAa,CAAA;IACb,sCAAe,CAAA;IACf,wCAAiB,CAAA;IACjB,kCAAW,CAAA;AACf,CAAC,EAPW,mBAAmB,KAAnB,mBAAmB,QAO9B;AAED,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAExB,+CAA2B,CAAA;IAC3B,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,mCAAe,CAAA;AACnB,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B;AAED,MAAM,UAAU,cAAc,CAAC,KAA0B;IAErD,IAAI,SAAS,GAAG,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,CAAC;IACnE,OAAO,CACH,eAAK,EAAE,EAAE,KAAK,CAAC,EAAE,EACb,SAAS,EAAE,GAAG,MAAM,CAAC,YAAY,IAAI,SAAS,EAAE,EAChD,KAAK,EAAE,KAAK,CAAC,KAAK,aAElB,YAAG,SAAS,EAAE,wBAAwB,YAAG,KAAK,CAAC,IAAI,GAAK,EACxD,cACI,SAAS,EAAE,MAAM,CAAC,YAAY,EAC9B,GAAG,EAAE,IAAI,EACT,GAAG,EAAC,MAAM,EACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,OAAO,EAAE,KAAK,CAAC,OAAO,GACxB,IACA,CACT,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -4,12 +4,13 @@ import { BaseComponentProps } from "../props/BaseComponentProps";
|
|
|
4
4
|
|
|
5
5
|
export interface NSNotificationProps extends BaseComponentProps
|
|
6
6
|
{
|
|
7
|
-
|
|
8
|
-
type:
|
|
7
|
+
text: string;
|
|
8
|
+
type: NotificationType;
|
|
9
|
+
color: NSNotificationColor;
|
|
9
10
|
onClose: () => void;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
export enum
|
|
13
|
+
export enum NSNotificationColor
|
|
13
14
|
{
|
|
14
15
|
GRAY = "GRAY",
|
|
15
16
|
BLUE = "BLUE",
|
|
@@ -18,15 +19,23 @@ export enum NSNotificationType
|
|
|
18
19
|
RED = "RED",
|
|
19
20
|
}
|
|
20
21
|
|
|
22
|
+
export enum NotificationType
|
|
23
|
+
{
|
|
24
|
+
Information = "Information",
|
|
25
|
+
Warning = "Warning",
|
|
26
|
+
Success = "Success",
|
|
27
|
+
Error = "Error",
|
|
28
|
+
}
|
|
29
|
+
|
|
21
30
|
export function NSNotification(props: NSNotificationProps)
|
|
22
31
|
{
|
|
23
|
-
let className = Styles["ns_" + props.
|
|
32
|
+
let className = Styles["ns_" + props.color.toString().toLowerCase];
|
|
24
33
|
return (
|
|
25
34
|
<div id={props.id}
|
|
26
35
|
className={`${Styles.ns_messenger} ${className}`}
|
|
27
36
|
style={props.style}
|
|
28
37
|
>
|
|
29
|
-
<p className={`mb-0 ns-font-16-normal`}>{props.
|
|
38
|
+
<p className={`mb-0 ns-font-16-normal`}>{props.text}</p>
|
|
30
39
|
<img
|
|
31
40
|
className={Styles.ns_exit_icon}
|
|
32
41
|
src={Exit}
|