namirasoft-site-react 1.3.28 → 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",
|
|
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,
|
|
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
|
-
|
|
9
|
-
|
|
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;
|
|
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"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.3.
|
|
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.
|
|
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
|
@@ -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
|
-
|
|
32
|
-
|
|
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>
|