namirasoft-site-react 1.3.124 → 1.3.127

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,5 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import Exit from '../assets/images/close-vector.png';
3
2
  import Styles from "./NSNotification.module.css";
4
3
  export var NSNotificationColor;
5
4
  (function (NSNotificationColor) {
@@ -18,6 +17,21 @@ export var NotificationType;
18
17
  })(NotificationType || (NotificationType = {}));
19
18
  export function NSNotification(props) {
20
19
  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 })] }));
20
+ let type = props.type;
21
+ let src = "";
22
+ switch (type) {
23
+ case "Error":
24
+ src = "https://static.namirasoft.com/image/concept/close/error.svg";
25
+ break;
26
+ case "Success":
27
+ src = "https://static.namirasoft.com/image/concept/close/success.svg";
28
+ break;
29
+ case "Warning":
30
+ src = "https://static.namirasoft.com/image/concept/close/warning.svg";
31
+ break;
32
+ case "Information":
33
+ src = "https://static.namirasoft.com/image/concept/close/info.svg";
34
+ }
35
+ 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: src, alt: "exit", width: 32, height: 32, onClick: props.onClose })] }));
22
36
  }
23
37
  //# 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;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,KAA2B;IAEtD,IAAI,SAAS,GAAG,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;IACrE,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"}
1
+ {"version":3,"file":"NSNotification.js","sourceRoot":"","sources":["../../src/components/NSNotification.tsx"],"names":[],"mappings":";AAAA,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,KAA2B;IAEtD,IAAI,SAAS,GAAG,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;IACrE,IAAI,IAAI,GAAE,KAAK,CAAC,IAAI,CAAC;IACrB,IAAI,GAAG,GAAC,EAAE,CAAC;IACX,QAAQ,IAAI,EACZ;QACI,KAAK,OAAO;YACR,GAAG,GAAG,6DAA6D,CAAC;YACpE,MAAM;QACV,KAAK,SAAS;YACV,GAAG,GAAG,+DAA+D,CAAC;YACtE,MAAM;QACV,KAAK,SAAS;YACV,GAAG,GAAG,+DAA+D,CAAC;YACtE,MAAM;QACV,KAAK,aAAa;YACd,GAAG,GAAG,4DAA4D,CAAC;KAC1E;IACD,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,GAAG,EACR,GAAG,EAAC,MAAM,EACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,OAAO,EAAE,KAAK,CAAC,OAAO,GACxB,IACA,CACT,CAAC;AACN,CAAC"}
@@ -150,4 +150,12 @@
150
150
  width: 100%;
151
151
  padding: 16px 0;
152
152
  }
153
+ }
154
+
155
+ .ns_table th {
156
+ word-break: break-all;
157
+ }
158
+
159
+ .ns_table td {
160
+ word-break: break-all;
153
161
  }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.124",
11
+ "version": "1.3.127",
12
12
  "author": "Amir Abolhasani, Alireza Esmaeeli, Sepideh Mazloumi, Hooman Shashaeh",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -24,7 +24,7 @@
24
24
  "@types/node": "^20.12.11",
25
25
  "@types/react": "^18.3.2",
26
26
  "@types/react-dom": "^18.3.0",
27
- "antd": "^5.17.0",
27
+ "antd": "^5.17.1",
28
28
  "bootstrap": "^5.3.3",
29
29
  "copyfiles": "^2.4.1",
30
30
  "link-react": "^3.0.0",
@@ -1,4 +1,3 @@
1
- import Exit from '../assets/images/close-vector.png';
2
1
  import Styles from "./NSNotification.module.css";
3
2
  import { IBaseComponentProps } from "../props/IBaseComponentProps";
4
3
 
@@ -30,6 +29,22 @@ export enum NotificationType
30
29
  export function NSNotification(props: INSNotificationProps)
31
30
  {
32
31
  let className = Styles["ns_" + props.color.toString().toLowerCase()];
32
+ let type= props.type;
33
+ let src="";
34
+ switch (type)
35
+ {
36
+ case "Error":
37
+ src = "https://static.namirasoft.com/image/concept/close/error.svg";
38
+ break;
39
+ case "Success":
40
+ src = "https://static.namirasoft.com/image/concept/close/success.svg";
41
+ break;
42
+ case "Warning":
43
+ src = "https://static.namirasoft.com/image/concept/close/warning.svg";
44
+ break;
45
+ case "Information":
46
+ src = "https://static.namirasoft.com/image/concept/close/info.svg";
47
+ }
33
48
  return (
34
49
  <div id={props.id}
35
50
  className={`${Styles.ns_messenger} ${className}`}
@@ -38,7 +53,7 @@ export function NSNotification(props: INSNotificationProps)
38
53
  <p className={`mb-0 ns-font-16-normal`}>{props.text}</p>
39
54
  <img
40
55
  className={Styles.ns_exit_icon}
41
- src={Exit}
56
+ src={src}
42
57
  alt="exit"
43
58
  width={32}
44
59
  height={32}
@@ -150,4 +150,12 @@
150
150
  width: 100%;
151
151
  padding: 16px 0;
152
152
  }
153
+ }
154
+
155
+ .ns_table th {
156
+ word-break: break-all;
157
+ }
158
+
159
+ .ns_table td {
160
+ word-break: break-all;
153
161
  }