namirasoft-site-react 1.3.36 → 1.3.37

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,6 +2,7 @@ import { ReactNode } from 'react';
2
2
  export interface NSLayoutProps {
3
3
  scope: string;
4
4
  logo: string;
5
+ background?: string;
5
6
  children: ReactNode;
6
7
  }
7
8
  export declare function NSLayout(props: NSLayoutProps): import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,6 @@ import Styles from './NSLayout.module.css';
4
4
  import { NSHeader } from './NSHeader';
5
5
  import { NSFooter } from './NSFooter';
6
6
  export function NSLayout(props) {
7
- return (_jsxs("div", { className: Styles.ns_container, children: [_jsx(NSHeader, { scope: props.scope, name: "Header", logo: props.logo }), _jsx("main", { className: "d-flex flex-column text-white", children: props.children }), _jsx(NSFooter, { scope: props.scope, name: "Footer", logo: props.logo })] }));
7
+ return (_jsxs("div", { className: Styles.ns_container, children: [_jsx(NSHeader, { scope: props.scope, name: "Header", logo: props.logo }), _jsx("main", { className: "d-flex flex-column text-white", style: { background: props.background }, children: props.children }), _jsx(NSFooter, { scope: props.scope, name: "Footer", logo: props.logo })] }));
8
8
  }
9
9
  //# sourceMappingURL=NSLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSLayout.js","sourceRoot":"","sources":["../../src/components/NSLayout.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAStC,MAAM,UAAU,QAAQ,CAAC,KAAoB;IAE5C,OAAO,CACN,eAAK,SAAS,EAAE,MAAM,CAAC,YAAY,aAClC,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,IAAI,GAAI,EAChE,eAAM,SAAS,EAAC,+BAA+B,YAC7C,KAAK,CAAC,QAAQ,GACT,EACP,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,IAAI,GAAI,IAC1D,CACP,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"NSLayout.js","sourceRoot":"","sources":["../../src/components/NSLayout.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAUtC,MAAM,UAAU,QAAQ,CAAC,KAAoB;IAE5C,OAAO,CACN,eAAK,SAAS,EAAE,MAAM,CAAC,YAAY,aAClC,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,IAAI,GAAI,EAChE,eAAM,SAAS,EAAC,+BAA+B,EAAC,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,YACrF,KAAK,CAAC,QAAQ,GACT,EACP,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,IAAI,GAAI,IAC1D,CACP,CAAC;AACH,CAAC"}
@@ -3,6 +3,7 @@ import { ReactNode } from 'react';
3
3
  export interface NSLayoutTitleProps {
4
4
  scope: string;
5
5
  logo: string;
6
+ background?: string;
6
7
  title: string;
7
8
  description?: string;
8
9
  children: ReactNode;
@@ -8,7 +8,7 @@ export class NSLayoutTitle extends Component {
8
8
  render() {
9
9
  var _a;
10
10
  let lines = ((_a = this.props.description) !== null && _a !== void 0 ? _a : "").split('\n');
11
- return (_jsxs(NSLayout, { scope: this.props.scope, logo: this.props.logo, children: [_jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("div", { children: [_jsx("h1", { className: Styles.title, children: this.props.title }), this.props.description && lines &&
11
+ return (_jsxs(NSLayout, { scope: this.props.scope, logo: this.props.logo, background: this.props.background, children: [_jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("div", { children: [_jsx("h1", { className: Styles.title, children: this.props.title }), this.props.description && lines &&
12
12
  _jsx("p", { className: Styles.description, children: lines.map((line, index) => {
13
13
  return _jsxs(_Fragment, { children: [line, index != lines.length - 1 && _jsx("br", {})] });
14
14
  }) }), _jsx(NSSpace, { size: NSSpaceSizeType.NORMAL })] }), this.props.children] }));
@@ -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;AACtC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAWrD,MAAM,OAAO,aAAc,SAAQ,SAA6B;IAEtD,MAAM;;QAEd,IAAI,KAAK,GAAG,CAAC,MAAA,IAAI,CAAC,KAAK,CAAC,WAAW,mCAAI,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACvD,OAAO,CACN,MAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,aACvD,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAY,EAChD,0BACC,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAM,EAEnD,IAAI,CAAC,KAAK,CAAC,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I,KAAK;4BAC/B,YAAG,SAAS,EAAE,MAAM,CAAC,WAAW,YAC/B,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;oCAEzB,OAAO,8BACL,IAAI,EACJ,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,cAAM,IAClC,CAAC;gCACL,CAAC,CAAC,GACE,EAEN,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,MAAM,GAAY,IAC5C,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.36",
11
+ "version": "1.3.37",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -9,6 +9,7 @@ export interface NSLayoutProps
9
9
  {
10
10
  scope: string;
11
11
  logo: string;
12
+ background?: string;
12
13
  children: ReactNode;
13
14
  }
14
15
 
@@ -17,7 +18,7 @@ export function NSLayout(props: NSLayoutProps)
17
18
  return (
18
19
  <div className={Styles.ns_container}>
19
20
  <NSHeader scope={props.scope} name="Header" logo={props.logo} />
20
- <main className="d-flex flex-column text-white">
21
+ <main className="d-flex flex-column text-white" style={{ background: props.background }}>
21
22
  {props.children}
22
23
  </main>
23
24
  <NSFooter scope={props.scope} name="Footer" logo={props.logo} />
@@ -10,6 +10,7 @@ export interface NSLayoutTitleProps
10
10
  {
11
11
  scope: string;
12
12
  logo: string;
13
+ background?: string;
13
14
  title: string;
14
15
  description?: string;
15
16
  children: ReactNode;
@@ -21,7 +22,7 @@ export class NSLayoutTitle extends Component<NSLayoutTitleProps>
21
22
  {
22
23
  let lines = (this.props.description ?? "").split('\n');
23
24
  return (
24
- <NSLayout scope={this.props.scope} logo={this.props.logo} >
25
+ <NSLayout scope={this.props.scope} logo={this.props.logo} background={this.props.background}>
25
26
  <NSSpace size={NSSpaceSizeType.SMALL}></NSSpace>
26
27
  <div>
27
28
  <h1 className={Styles.title}>{this.props.title}</h1>