namirasoft-site-react 1.2.13 → 1.2.14

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.
@@ -5,7 +5,7 @@ interface IProps {
5
5
  title: string;
6
6
  children: ReactNode;
7
7
  }
8
- export default class NSLayout extends Component<IProps> {
8
+ export declare class NSLayout extends Component<IProps> {
9
9
  render(): import("react/jsx-runtime").JSX.Element;
10
10
  }
11
11
  export {};
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Component } from 'react';
3
3
  import { NSHeader } from './NSHeader';
4
4
  import { NSFooter } from './NSFooter';
5
- export default class NSLayout extends Component {
5
+ export class NSLayout extends Component {
6
6
  render() {
7
7
  return (_jsxs("div", { 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 })] }));
8
8
  }
@@ -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,CAAC,OAAO,OAAO,QAAS,SAAQ,SAAiB;IAE1C,MAAM;QAEX,OAAO,CACH,eAAK,SAAS,EAAC,2CAA2C,aACtD,KAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,EAC1E,wBACI,uBAAK,IAAI,CAAC,KAAK,CAAC,KAAK,GAAM,GACzB,EACN,yBACK,IAAI,CAAC,KAAK,CAAC,QAAQ,GACjB,EACP,KAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,IACvE,CACV,CAAC;IACN,CAAC;CACJ"}
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,eAAK,SAAS,EAAC,2CAA2C,aACtD,KAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,EAC1E,wBACI,uBAAK,IAAI,CAAC,KAAK,CAAC,KAAK,GAAM,GACzB,EACN,yBACK,IAAI,CAAC,KAAK,CAAC,QAAQ,GACjB,EACP,KAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,IACvE,CACV,CAAC;IACN,CAAC;CACJ"}
package/dist/main.d.ts CHANGED
@@ -19,3 +19,4 @@ export * from "./components/NSSelectBox";
19
19
  export * from "./components/NSLinkGreen";
20
20
  export * from "./components/NSLinkRed";
21
21
  export * from "./components/NSTable";
22
+ export * from "./pages/NSLoginPage";
package/dist/main.js CHANGED
@@ -19,4 +19,5 @@ export * from "./components/NSSelectBox";
19
19
  export * from "./components/NSLinkGreen";
20
20
  export * from "./components/NSLinkRed";
21
21
  export * from "./components/NSTable";
22
+ export * from "./pages/NSLoginPage";
22
23
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AAErC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import "./NSLoginPage.modules.css";
2
+ import { Component } from 'react';
3
+ interface IProps {
4
+ title: string;
5
+ logo: string;
6
+ href?: string;
7
+ onClick?: () => void;
8
+ }
9
+ export declare class NSLoginPage extends Component<IProps> {
10
+ render(): import("react/jsx-runtime").JSX.Element;
11
+ }
12
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import "./NSLoginPage.modules.css";
3
+ import { Component } from 'react';
4
+ import { NSButtonGreen } from "../main";
5
+ import { NSLinkGreen } from "../main";
6
+ export class NSLoginPage extends Component {
7
+ render() {
8
+ var _a;
9
+ let button = _jsx(_Fragment, {});
10
+ if (this.props.href)
11
+ button = _jsx(NSLinkGreen, { title: "Login", href: (_a = this.props.href) !== null && _a !== void 0 ? _a : "" });
12
+ else if (this.props.onClick)
13
+ button = _jsx(NSButtonGreen, { title: "Login", onClick: this.props.onClick });
14
+ return (_jsx("div", { children: _jsxs("div", { className: "d-flex flex-column align-items-center justify-content-center", style: { marginTop: "100px" }, children: [_jsx("div", { className: "m-auto", children: _jsx("img", { width: 256, height: 256, src: this.props.logo, alt: "logo" }) }), _jsx("div", { children: _jsx("h1", { className: "text-light text-center mb-3", children: this.props.title }) }), _jsx("div", { className: "m-auto", children: button })] }) }));
15
+ }
16
+ }
17
+ //# sourceMappingURL=NSLoginPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSLoginPage.js","sourceRoot":"","sources":["../../src/pages/NSLoginPage.tsx"],"names":[],"mappings":";AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAUtC,MAAM,OAAO,WAAY,SAAQ,SAAiB;IAErC,MAAM;;QAEX,IAAI,MAAM,GAAG,mBAAK,CAAC;QACnB,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI;YACf,MAAM,GAAG,KAAC,WAAW,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,IAAI,mCAAI,EAAE,GAAI,CAAC;aACnE,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO;YACvB,MAAM,GAAG,KAAC,aAAa,IAAC,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAI,CAAC;QAC1E,OAAO,CACH,wBACI,eAAK,SAAS,EAAC,8DAA8D,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,aACvG,cAAK,SAAS,EAAC,QAAQ,YACnB,cAAK,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,EAAC,MAAM,GAAO,GACnE,EACN,wBAAK,aAAI,SAAS,EAAC,6BAA6B,YAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAM,GAAM,EAC9E,cAAK,SAAS,EAAC,QAAQ,YAClB,MAAM,GACL,IACJ,GACJ,CACT,CAAC;IACN,CAAC;CACJ"}
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "namirasoft-site-react",
3
- "version": "1.2.13",
3
+ "version": "1.2.14",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "dependencies": {
@@ -10,7 +10,7 @@ interface IProps
10
10
  children: ReactNode;
11
11
  }
12
12
 
13
- export default class NSLayout extends Component<IProps>
13
+ export class NSLayout extends Component<IProps>
14
14
  {
15
15
  override render()
16
16
  {
package/src/main.ts CHANGED
@@ -18,4 +18,6 @@ export * from "./components/NSLayout";
18
18
  export * from "./components/NSSelectBox";
19
19
  export * from "./components/NSLinkGreen";
20
20
  export * from "./components/NSLinkRed";
21
- export * from "./components/NSTable";
21
+ export * from "./components/NSTable";
22
+
23
+ export * from "./pages/NSLoginPage";
File without changes
@@ -0,0 +1,37 @@
1
+ import "./NSLoginPage.modules.css";
2
+ import { Component } from 'react';
3
+ import { NSButtonGreen } from "../main";
4
+ import { NSLinkGreen } from "../main";
5
+
6
+ interface IProps
7
+ {
8
+ title: string;
9
+ logo: string;
10
+ href?: string;
11
+ onClick?: () => void;
12
+ }
13
+
14
+ export class NSLoginPage extends Component<IProps>
15
+ {
16
+ override render()
17
+ {
18
+ let button = <></>;
19
+ if (this.props.href)
20
+ button = <NSLinkGreen title="Login" href={this.props.href ?? ""} />;
21
+ else if (this.props.onClick)
22
+ button = <NSButtonGreen title="Login" onClick={this.props.onClick} />;
23
+ return (
24
+ <div>
25
+ <div className="d-flex flex-column align-items-center justify-content-center" style={{ marginTop: "100px" }}>
26
+ <div className="m-auto">
27
+ <img width={256} height={256} src={this.props.logo} alt="logo"></img>
28
+ </div>
29
+ <div><h1 className="text-light text-center mb-3">{this.props.title}</h1></div>
30
+ <div className="m-auto">
31
+ {button}
32
+ </div>
33
+ </div>
34
+ </div>
35
+ );
36
+ }
37
+ }