namirasoft-site-react 1.2.20 → 1.2.21

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.
@@ -3,6 +3,7 @@ interface IProps {
3
3
  scope: string;
4
4
  logo: string;
5
5
  title: string;
6
+ description?: string;
6
7
  children: ReactNode;
7
8
  }
8
9
  export declare class NSLayout extends Component<IProps> {
@@ -4,7 +4,7 @@ import { NSHeader } from './NSHeader';
4
4
  import { NSFooter } from './NSFooter';
5
5
  export class NSLayout extends Component {
6
6
  render() {
7
- return (_jsxs("div", Object.assign({ className: "d-flex flex-column text-center text-white" }, { children: [_jsx(NSHeader, { scope: this.props.scope, name: "Header", logo: this.props.logo }), _jsx("div", { children: _jsx("h1", { children: this.props.title }) }), _jsx("main", { children: this.props.children }), _jsx(NSFooter, { scope: this.props.scope, name: "Footer", logo: this.props.logo })] })));
7
+ return (_jsxs("div", Object.assign({ className: "d-flex flex-column text-center text-white" }, { children: [_jsx(NSHeader, { scope: this.props.scope, name: "Header", logo: this.props.logo }), _jsxs("div", { children: [_jsx("h1", { children: this.props.title }), _jsx("h4", Object.assign({ className: "page-description" }, { children: this.props.description }))] }), _jsx("main", { children: this.props.children }), _jsx(NSFooter, { scope: this.props.scope, name: "Footer", logo: this.props.logo })] })));
8
8
  }
9
9
  }
10
10
  //# sourceMappingURL=NSLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSLayout.js","sourceRoot":"","sources":["../../src/components/NSLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAUtC,MAAM,OAAO,QAAS,SAAQ,SAAiB;IAElC,MAAM;QAEX,OAAO,CACH,6BAAK,SAAS,EAAC,2CAA2C,iBACtD,KAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "namirasoft-site-react",
3
- "version": "1.2.20",
3
+ "version": "1.2.21",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "dependencies": {
@@ -7,6 +7,7 @@ interface IProps
7
7
  scope: string;
8
8
  logo: string;
9
9
  title: string;
10
+ description?: string;
10
11
  children: ReactNode;
11
12
  }
12
13
 
@@ -19,6 +20,7 @@ export class NSLayout extends Component<IProps>
19
20
  <NSHeader scope={this.props.scope} name="Header" logo={this.props.logo} />
20
21
  <div>
21
22
  <h1>{this.props.title}</h1>
23
+ <h4 className="page-description">{this.props.description}</h4>
22
24
  </div>
23
25
  <main>
24
26
  {this.props.children}