namirasoft-site-react 1.3.27 → 1.3.29

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/App.js CHANGED
@@ -3,6 +3,6 @@ import './App.css';
3
3
  import 'bootstrap/dist/css/bootstrap.min.css';
4
4
  import { NSLayoutTitle } from './main';
5
5
  export function App() {
6
- return (_jsx("div", { className: "App", children: _jsx(NSLayoutTitle, { scope: 'Namirasoft Account Console', logo: '', title: "Namirasoft", description: '', children: _jsx("div", {}) }) }));
6
+ return (_jsx("div", { className: "App", children: _jsx(NSLayoutTitle, { scope: 'Namirasoft Account Console', logo: '', title: "Namirasoft", children: _jsx("div", {}) }) }));
7
7
  }
8
8
  //# sourceMappingURL=App.js.map
package/dist/App.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,UAAU,GAAG;IAEf,OAAO,CACH,cAAK,SAAS,EAAC,KAAK,YAChB,KAAC,aAAa,IAAC,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,EAAC,YAAY,EAAC,WAAW,EAAC,EAAE,YACvF,eAEM,GACM,GACd,CACT,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,UAAU,GAAG;IAEf,OAAO,CACH,cAAK,SAAS,EAAC,KAAK,YAChB,KAAC,aAAa,IAAC,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,EAAC,YAAY,YACxE,eAEM,GACM,GACd,CACT,CAAC;AACN,CAAC"}
@@ -5,8 +5,8 @@ import { Component } from 'react';
5
5
  import { NSLayout } from './NSLayout';
6
6
  export class NSLayoutTitle extends Component {
7
7
  render() {
8
- var _a;
9
- return (_jsxs(NSLayout, { scope: this.props.scope, logo: this.props.logo, children: [_jsxs("div", { children: [_jsx("h1", { className: Styles.title, children: this.props.title }), _jsx("p", { className: Styles.description, style: { display: this.props.description == ((_a = this.props.description) === null || _a === void 0 ? void 0 : _a.length) ? "none" : "block" }, children: this.props.description })] }), this.props.children] }));
8
+ return (_jsxs(NSLayout, { scope: this.props.scope, logo: this.props.logo, children: [_jsxs("div", { children: [_jsx("h1", { className: Styles.title, children: this.props.title }), this.props.description &&
9
+ _jsx("p", { className: Styles.description, children: this.props.description })] }), this.props.children] }));
10
10
  }
11
11
  }
12
12
  //# sourceMappingURL=NSLayoutTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSLayoutTitle.js","sourceRoot":"","sources":["../../src/components/NSLayoutTitle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAUtC,MAAM,OAAO,aAAc,SAAQ,SAA6B;IACtD,MAAM;;QAUd,OAAO,CACN,MAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,aACvD,0BACC,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAM,EACpD,YAAG,SAAS,EAAE,MAAM,CAAC,WAAW,EAC/B,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,KAAI,MAAA,IAAI,CAAC,KAAK,CAAC,WAAW,0CAAE,MAAM,CAAA,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,YAAG,IAAI,CAAC,KAAK,CAAC,WAAW,GAAK,IACzH,EACL,IAAI,CAAC,KAAK,CAAC,QAAQ,IACV,CACX,CAAC;IACH,CAAC;CACD"}
1
+ {"version":3,"file":"NSLayoutTitle.js","sourceRoot":"","sources":["../../src/components/NSLayoutTitle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAUtC,MAAM,OAAO,aAAc,SAAQ,SAA6B;IAEtD,MAAM;QAEd,OAAO,CACN,MAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,aACvD,0BACC,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAM,EAEnD,IAAI,CAAC,KAAK,CAAC,WAAW;4BACtB,YAAG,SAAS,EAAE,MAAM,CAAC,WAAW,YAAG,IAAI,CAAC,KAAK,CAAC,WAAW,GAAK,IAE1D,EACL,IAAI,CAAC,KAAK,CAAC,QAAQ,IACV,CACX,CAAC;IACH,CAAC;CACD"}
@@ -1,5 +1,4 @@
1
1
  import { Component } from 'react';
2
- declare class NSNotFoundPage extends Component {
2
+ export declare class NSNotFoundPage extends Component {
3
3
  render(): import("react/jsx-runtime").JSX.Element;
4
4
  }
5
- export default NSNotFoundPage;
@@ -3,10 +3,9 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
3
3
  import { Component } from 'react';
4
4
  import Styles from './NSNotFoundPage.module.css';
5
5
  import { NSLinkBlue } from '../main';
6
- class NSNotFoundPage extends Component {
6
+ export class NSNotFoundPage extends Component {
7
7
  render() {
8
8
  return (_jsxs(_Fragment, { children: [_jsx("div", { className: Styles.ns_not_found_page }), _jsx(NSLinkBlue, { href: '/', target: '_self', title: 'Back To Home' }), "``"] }));
9
9
  }
10
10
  }
11
- export default NSNotFoundPage;
12
11
  //# sourceMappingURL=NSNotFoundPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSNotFoundPage.js","sourceRoot":"","sources":["../../src/pages/NSNotFoundPage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,MAAM,MAAM,6BAA6B,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,cAAe,SAAQ,SAAS;IAE5B,MAAM;QAEd,OAAO,CACN,8BACC,cAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,GAAQ,EAChD,KAAC,UAAU,IAAC,IAAI,EAAC,GAAG,EAAC,MAAM,EAAC,OAAO,EAAC,KAAK,EAAC,cAAc,GAAE,UACxD,CACH,CAAC;IACH,CAAC;CACD;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"NSNotFoundPage.js","sourceRoot":"","sources":["../../src/pages/NSNotFoundPage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,MAAM,MAAM,6BAA6B,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,OAAO,cAAe,SAAQ,SAAS;IAEnC,MAAM;QAEd,OAAO,CACN,8BACC,cAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,GAAQ,EAChD,KAAC,UAAU,IAAC,IAAI,EAAC,GAAG,EAAC,MAAM,EAAC,OAAO,EAAC,KAAK,EAAC,cAAc,GAAE,UACxD,CACH,CAAC;IACH,CAAC;CACD"}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.27",
11
+ "version": "1.3.29",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -21,7 +21,7 @@
21
21
  "copy": "copyfiles -u 1 src/**/*.html src/**/*.css src/**/*.svg src/**/*.png src/**/*.jpg dist/"
22
22
  },
23
23
  "dependencies": {
24
- "@types/node": "^20.12.6",
24
+ "@types/node": "^20.12.7",
25
25
  "@types/react": "^18.2.75",
26
26
  "@types/react-dom": "^18.2.24",
27
27
  "antd": "^5.16.1",
package/src/App.tsx CHANGED
@@ -6,7 +6,7 @@ export function App()
6
6
  {
7
7
  return (
8
8
  <div className="App">
9
- <NSLayoutTitle scope='Namirasoft Account Console' logo='' title="Namirasoft" description=''>
9
+ <NSLayoutTitle scope='Namirasoft Account Console' logo='' title="Namirasoft">
10
10
  <div>
11
11
 
12
12
  </div>
@@ -13,23 +13,18 @@ export interface NSLayoutTitleProps
13
13
  description?: string;
14
14
  children: ReactNode;
15
15
  }
16
- export class NSLayoutTitle extends Component<NSLayoutTitleProps> {
16
+ export class NSLayoutTitle extends Component<NSLayoutTitleProps>
17
+ {
17
18
  override render()
18
19
  {
19
- // var x = this.props.description
20
- // if (this.props.description == this.props.description?.length)
21
- // {
22
-
23
- // } else
24
- // {
25
-
26
- // }
27
20
  return (
28
21
  <NSLayout scope={this.props.scope} logo={this.props.logo} >
29
22
  <div>
30
23
  <h1 className={Styles.title}>{this.props.title}</h1>
31
- <p className={Styles.description}
32
- style={{ display: this.props.description == this.props.description?.length ? "none" : "block" }}>{this.props.description}</p>
24
+ {
25
+ this.props.description &&
26
+ <p className={Styles.description}>{this.props.description}</p>
27
+ }
33
28
  </div>
34
29
  {this.props.children}
35
30
  </NSLayout>
@@ -4,7 +4,7 @@ import { Component } from 'react';
4
4
  import Styles from './NSNotFoundPage.module.css'
5
5
  import { NSLinkBlue } from '../main';
6
6
 
7
- class NSNotFoundPage extends Component
7
+ export class NSNotFoundPage extends Component
8
8
  {
9
9
  override render()
10
10
  {
@@ -15,6 +15,4 @@ class NSNotFoundPage extends Component
15
15
  </>
16
16
  );
17
17
  }
18
- }
19
-
20
- export default NSNotFoundPage;
18
+ }