namirasoft-site-react 1.3.254 → 1.3.255

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,5 @@ export interface INSLoginPageProps {
2
2
  title: string;
3
3
  logo: string;
4
4
  background: string;
5
- href?: string;
6
- onClick?: () => void;
7
5
  }
8
6
  export declare function NSLoginPage(props: INSLoginPageProps): import("react/jsx-runtime").JSX.Element;
@@ -1,22 +1,8 @@
1
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Styles from './NSLoginPage.module.css';
3
3
  import { NSLinkBlue } from '../components/NSLinkBlue';
4
4
  import { NSSpace, NSSpaceSizeType } from '../components/NSSpace';
5
- import NSButton from '../components/NSButton';
6
5
  export function NSLoginPage(props) {
7
- var _a;
8
- let button = _jsx(_Fragment, {});
9
- if (props.href)
10
- button = _jsx(NSLinkBlue, { title: "Login", href: (_a = props.href) !== null && _a !== void 0 ? _a : "" });
11
- else if (props.onClick)
12
- button = _jsx(NSButton, { title: "Login", onClick: props.onClick, style: {
13
- color: "#fff",
14
- border: "none",
15
- backgroundColor: "rgba(3, 119, 255, 1)",
16
- width: "358px",
17
- height: "48px",
18
- boxShadow: "inset 0 - 4px 4px 0px rgb(0 0 0 / 25 %)"
19
- } });
20
- return (_jsx("div", { style: { backgroundImage: props.background, width: "100%", backgroundSize: "cover", backgroundAttachment: "fixed" }, children: _jsxs("div", { className: `${Styles.ns_login_container}`, style: { minHeight: "100vh" }, children: [_jsx("div", { className: `${Styles.ns_logo}`, children: _jsx("img", { width: 256, height: 256, src: props.logo, alt: `${props.title} Logo` }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx("div", { children: _jsx("h1", { className: `${Styles.ns_title}`, children: props.title }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx("div", { className: `${Styles.ns_button}`, children: button })] }) }));
6
+ return (_jsx("div", { style: { backgroundImage: props.background, width: "100%", backgroundSize: "cover", backgroundAttachment: "fixed" }, children: _jsxs("div", { className: `${Styles.ns_login_container}`, style: { minHeight: "100vh" }, children: [_jsx("div", { className: `${Styles.ns_logo}`, children: _jsx("img", { width: 256, height: 256, src: props.logo, alt: `${props.title} Logo` }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx("div", { children: _jsx("h1", { className: `${Styles.ns_title}`, children: props.title }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx("div", { className: `${Styles.ns_button}`, children: _jsx(NSLinkBlue, { title: "Login", href: "https://account.namirasoft.com", target: '_blank' }) })] }) }));
21
7
  }
22
8
  //# sourceMappingURL=NSLoginPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSLoginPage.js","sourceRoot":"","sources":["../../src/pages/NSLoginPage.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAW9C,MAAM,UAAU,WAAW,CAAC,KAAwB;;IAEhD,IAAI,MAAM,GAAG,mBAAK,CAAC;IACnB,IAAI,KAAK,CAAC,IAAI;QACV,MAAM,GAAG,KAAC,UAAU,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,MAAA,KAAK,CAAC,IAAI,mCAAI,EAAE,GAAI,CAAC;SAC7D,IAAI,KAAK,CAAC,OAAO;QAClB,MAAM,GAAG,KAAC,QAAQ,IAAC,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EACnD,KAAK,EACJ;gBACG,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,eAAe,EAAE,sBAAsB;gBACvC,KAAK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AAM,EAAE,cAAc,EAAE,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,YACpH,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,aACzE,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE,YAC/B,cAAK,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC,KAAK,OAAO,GAAQ,GAC/E,EACN,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EACxC,wBACI,aAAI,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,EAAE,YAAG,KAAK,CAAC,KAAK,GAAM,GACrD,EACN,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EACxC,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,SAAS,EAAE,YACjC,KAAC,UAAU,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,gCAAgC,EAAC,MAAM,EAAC,QAAQ,GAAG,GAChF,IACJ,GACH,CACV,CAAC;AACN,CAAC"}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.254",
11
+ "version": "1.3.255",
12
12
  "author": "Amir Abolhasani, Alireza Esmaeeli, Sepideh Mazloumi, Hooman Shashaeh",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -1,33 +1,16 @@
1
1
  import Styles from './NSLoginPage.module.css'
2
2
  import { NSLinkBlue } from '../components/NSLinkBlue';
3
3
  import { NSSpace, NSSpaceSizeType } from '../components/NSSpace';
4
- import NSButton from '../components/NSButton';
5
4
 
6
5
  export interface INSLoginPageProps
7
6
  {
8
7
  title: string;
9
8
  logo: string;
10
9
  background: string;
11
- href?: string;
12
- onClick?: () => void;
13
10
  }
14
11
 
15
12
  export function NSLoginPage(props: INSLoginPageProps)
16
13
  {
17
- let button = <></>;
18
- if (props.href)
19
- button = <NSLinkBlue title="Login" href={props.href ?? ""} />;
20
- else if (props.onClick)
21
- button = <NSButton title="Login" onClick={props.onClick}
22
- style=
23
- {{
24
- color: "#fff",
25
- border: "none",
26
- backgroundColor: "rgba(3, 119, 255, 1)",
27
- width: "358px",
28
- height: "48px",
29
- boxShadow: "inset 0 - 4px 4px 0px rgb(0 0 0 / 25 %)"
30
- }} />;
31
14
  return (
32
15
  <div style={{ backgroundImage: props.background, width: "100%", backgroundSize: "cover", backgroundAttachment: "fixed" }}>
33
16
  <div className={`${Styles.ns_login_container}`} style={{ minHeight: "100vh" }}>
@@ -35,10 +18,12 @@ export function NSLoginPage(props: INSLoginPageProps)
35
18
  <img width={256} height={256} src={props.logo} alt={`${props.title} Logo`}></img>
36
19
  </div>
37
20
  <NSSpace size={NSSpaceSizeType.SMALL} />
38
- <div><h1 className={`${Styles.ns_title}`}>{props.title}</h1></div>
21
+ <div>
22
+ <h1 className={`${Styles.ns_title}`}>{props.title}</h1>
23
+ </div>
39
24
  <NSSpace size={NSSpaceSizeType.SMALL} />
40
25
  <div className={`${Styles.ns_button}`}>
41
- {button}
26
+ <NSLinkBlue title="Login" href="https://account.namirasoft.com" target='_blank' />
42
27
  </div>
43
28
  </div>
44
29
  </div >