namirasoft-site-react 1.3.364 → 1.3.365

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.
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Styles from './NSDialog.module.css';
3
3
  function NSDialog(props) {
4
4
  var _a;
5
- return (_jsx("section", { id: props.id, className: `${Styles.ns_dialog_container} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, children: _jsxs("div", { className: Styles.ns_dialog_content, children: [_jsx("img", { src: 'https://static.namirasoft.com/image/concept/close/blue.svg', alt: '', width: 24, height: 24, onClick: () => props.onClose() }), _jsx("div", { className: Styles.ns_dialog_children, children: props.children })] }) }));
5
+ return (_jsxs("section", { id: props.id, className: `${Styles.ns_dialog_container} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, children: [_jsx("div", { className: Styles.ns_dialog_background, onClick: () => props.onClose() }), _jsxs("div", { className: Styles.ns_dialog_content, children: [_jsx("img", { src: 'https://static.namirasoft.com/image/concept/close/blue.svg', alt: '', width: 24, height: 24, onClick: () => props.onClose() }), _jsx("div", { className: Styles.ns_dialog_children, children: props.children })] })] }));
6
6
  }
7
7
  export default NSDialog;
8
8
  //# sourceMappingURL=NSDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSDialog.js","sourceRoot":"","sources":["../../src/components/NSDialog.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAS3C,SAAS,QAAQ,CAAC,KAAqB;;IAEnC,OAAO,CACH,kBACI,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,SAAS,EAAE,GAAG,MAAM,CAAC,mBAAmB,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EACxE,KAAK,EAAE,KAAK,CAAC,KAAK,YAElB,eAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,aACpC,cACI,GAAG,EAAC,4DAA4D,EAChE,GAAG,EAAC,EAAE,EACN,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,GAAI,EACtC,cAAK,SAAS,EAAE,MAAM,CAAC,kBAAkB,YACpC,KAAK,CAAC,QAAQ,GACb,IACJ,GACA,CACb,CAAC;AACN,CAAC;AAED,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"NSDialog.js","sourceRoot":"","sources":["../../src/components/NSDialog.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAS3C,SAAS,QAAQ,CAAC,KAAqB;;IAEnC,OAAO,CACH,mBACI,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,SAAS,EAAE,GAAG,MAAM,CAAC,mBAAmB,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EACxE,KAAK,EAAE,KAAK,CAAC,KAAK,aAElB,cAAK,SAAS,EAAE,MAAM,CAAC,oBAAoB,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,GACrE,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,aACpC,cACI,GAAG,EAAC,4DAA4D,EAChE,GAAG,EAAC,EAAE,EACN,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,GAAI,EACtC,cAAK,SAAS,EAAE,MAAM,CAAC,kBAAkB,YACpC,KAAK,CAAC,QAAQ,GACb,IACJ,IACA,CACb,CAAC;AACN,CAAC;AAED,eAAe,QAAQ,CAAC"}
@@ -37,4 +37,10 @@
37
37
  flex-direction: column;
38
38
  justify-content: center;
39
39
  align-items: center;
40
+ }
41
+
42
+ .ns_dialog_background {
43
+ width: 100%;
44
+ height: 100%;
45
+ position: absolute;
40
46
  }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.364",
11
+ "version": "1.3.365",
12
12
  "author": "Amir Abolhasani, Alireza Esmaeeli, Sepideh Mazloumi, Hooman Shashaeh",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -37,4 +37,10 @@
37
37
  flex-direction: column;
38
38
  justify-content: center;
39
39
  align-items: center;
40
+ }
41
+
42
+ .ns_dialog_background {
43
+ width: 100%;
44
+ height: 100%;
45
+ position: absolute;
40
46
  }
@@ -16,6 +16,8 @@ function NSDialog(props: INSDialogProps)
16
16
  className={`${Styles.ns_dialog_container} ${props.classList?.join(" ")}`}
17
17
  style={props.style}
18
18
  >
19
+ <div className={Styles.ns_dialog_background} onClick={() => props.onClose()}>
20
+ </div>
19
21
  <div className={Styles.ns_dialog_content}>
20
22
  <img
21
23
  src='https://static.namirasoft.com/image/concept/close/blue.svg'