namirasoft-site-react 1.2.45 → 1.2.47

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,7 +3,8 @@ import './App.css';
3
3
  import 'bootstrap/dist/css/bootstrap.min.css';
4
4
  import { NSButtonRed } from './components/NSButtonRed';
5
5
  import { NSLayout, NSPagination } from './main';
6
+ import { NSBoxSection } from './components/NSBoxSection';
6
7
  export function App() {
7
- return (_jsx("div", Object.assign({ className: "App" }, { children: _jsxs(NSLayout, Object.assign({ scope: 'Namirasoft SOP console', logo: '' }, { children: [_jsxs("div", Object.assign({ className: 'my-4 container' }, { children: [_jsx(NSButtonRed, { title: 'Delete', onClick: () => { } }), _jsx(NSPagination, { page: 1, size: 25 })] })), "asdasd"] })) })));
8
+ return (_jsx("div", Object.assign({ className: "App" }, { children: _jsxs(NSLayout, Object.assign({ scope: 'Namirasoft SOP console', logo: '' }, { children: [_jsxs("div", Object.assign({ className: 'my-4 container' }, { children: [_jsx(NSBoxSection, { image: 'src/assets/images/position-down-vector.png', description: "", detail: '#' }), _jsx(NSButtonRed, { title: 'Delete', onClick: () => { } }), _jsx(NSPagination, { page: 1, size: 25 })] })), "asdasd"] })) })));
8
9
  }
9
10
  //# 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,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,UAAU,GAAG;IAyBf,OAAO,CACH,4BAAK,SAAS,EAAC,KAAK,gBAChB,MAAC,QAAQ,kBAAC,KAAK,EAAC,wBAAwB,EAAC,IAAI,EAAC,EAAE,iBAC5C,6BAAK,SAAS,EAAC,gBAAgB,iBAe3B,KAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,GAAI,EAClD,KAAC,YAAY,IAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,GAAI,KACjC,eAEC,IACT,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,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,MAAM,UAAU,GAAG;IAyBf,OAAO,CACH,4BAAK,SAAS,EAAC,KAAK,gBAChB,MAAC,QAAQ,kBAAC,KAAK,EAAC,wBAAwB,EAAC,IAAI,EAAC,EAAE,iBAC5C,6BAAK,SAAS,EAAC,gBAAgB,iBAC3B,KAAC,YAAY,IAAC,KAAK,EAAC,4CAA4C,EAAC,WAAW,EAAC,EAAE,EAAC,MAAM,EAAC,GAAG,GAAG,EAe7F,KAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,GAAI,EAClD,KAAC,YAAY,IAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,GAAI,KACjC,eAEC,IACT,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ interface IProps {
3
+ detail: string;
4
+ image: string;
5
+ description: string;
6
+ }
7
+ interface IState {
8
+ detail: string;
9
+ image: string;
10
+ description: string;
11
+ }
12
+ export declare class NSBoxSection extends React.Component<IProps, IState> {
13
+ constructor(props: IProps);
14
+ setTitle(description: string): void;
15
+ setHRef(detail: string): void;
16
+ render(): import("react/jsx-runtime").JSX.Element;
17
+ }
18
+ export {};
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import Style from "./NSBoxSection.module.css";
4
+ import React from "react";
5
+ export class NSBoxSection extends React.Component {
6
+ constructor(props) {
7
+ super(props);
8
+ this.state = { detail: props.detail, image: props.image, description: props.description };
9
+ }
10
+ setTitle(description) {
11
+ this.setState({ description });
12
+ }
13
+ setHRef(detail) {
14
+ this.setState({ detail });
15
+ }
16
+ render() {
17
+ return (_jsxs("div", Object.assign({ className: Style.position__layout }, { children: [_jsx("img", { className: "rounded", src: this.state.image, alt: "wordpress", width: 326, height: 220 }), _jsx("h3", { children: this.state.description }), _jsxs("h4", { children: [this.state.detail, _jsx("img", { className: "mx-2", src: '/assets/images/position-down-vector.png', width: 16, height: 16 })] })] })));
18
+ }
19
+ }
20
+ //# sourceMappingURL=NSBoxSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxSection.js","sourceRoot":"","sources":["../../src/components/NSBoxSection.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,MAAM,OAAO,YAAa,SAAQ,KAAK,CAAC,SAAyB;IAE7D,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC;IAC9F,CAAC;IACD,QAAQ,CAAC,WAAmB;QAExB,IAAI,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IACnC,CAAC;IACD,OAAO,CAAC,MAAc;QAElB,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,6BAAK,SAAS,EAAE,KAAK,CAAC,gBAAgB,iBAClC,cAAK,SAAS,EAAC,SAAS,EAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,EAAC,WAAW,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,GAAQ,EAC/F,uBAAK,IAAI,CAAC,KAAK,CAAC,WAAW,GAAM,EACjC,yBAAK,IAAI,CAAC,KAAK,CAAC,MAAM,EAAC,cAAK,SAAS,EAAC,MAAM,EAAC,GAAG,EAAC,yCAAyC,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAQ,IAAK,KAC1H,CACV,CAAA;IACL,CAAC;CACJ"}
@@ -0,0 +1,26 @@
1
+ .position__layout {
2
+ display: flex;
3
+ flex-direction: column;
4
+ justify-content: center;
5
+ align-items: center;
6
+ background-color: rgba(20, 27, 92, 0.3);
7
+ width: 358px;
8
+ height: 349px;
9
+ border-radius: 8px;
10
+ text-align: center;
11
+ gap: 16px;
12
+ margin: 12px 0;
13
+ }
14
+
15
+ .position__layout h3 {
16
+ color: rgba(20, 27, 92, 1);
17
+ font-weight: 700;
18
+ font-size: 24px;
19
+ }
20
+
21
+ .position__layout h4 {
22
+ color: rgba(20, 27, 92, 1);
23
+ font-weight: 300;
24
+ font-size: 16px;
25
+ color: rgba(20, 27, 92, 1)
26
+ }
@@ -12,7 +12,7 @@ export class NSLoginPage extends Component {
12
12
  button = _jsx(NSLinkGreen, { title: "Login", href: (_a = this.props.href) !== null && _a !== void 0 ? _a : "" });
13
13
  else if (this.props.onClick)
14
14
  button = _jsx(NSButtonGreen, { title: "Login", onClick: this.props.onClick });
15
- return (_jsx("div", Object.assign({ style: { backgroundImage: this.props.background } }, { children: _jsxs("div", Object.assign({ className: "d-flex flex-column align-items-center justify-content-center", style: { marginTop: "100px" } }, { children: [_jsx("div", Object.assign({ className: "m-auto" }, { children: _jsx("img", { width: 256, height: 256, src: this.props.logo, alt: "logo" }) })), _jsx("div", { children: _jsx("h1", Object.assign({ className: "text-center mb-3" }, { children: this.props.title })) }), _jsx("div", Object.assign({ className: "m-auto" }, { children: button }))] })) })));
15
+ return (_jsx("div", Object.assign({ style: { backgroundImage: this.props.background, width: "100%", backgroundSize: "cover" } }, { children: _jsxs("div", Object.assign({ className: "d-flex flex-column align-items-center justify-content-center", style: { marginTop: "100px" } }, { children: [_jsx("div", Object.assign({ className: "m-auto" }, { children: _jsx("img", { width: 256, height: 256, src: this.props.logo, alt: "logo" }) })), _jsx("div", { children: _jsx("h1", Object.assign({ className: "text-center mb-3" }, { children: this.props.title })) }), _jsx("div", Object.assign({ className: "m-auto" }, { children: button }))] })) })));
16
16
  }
17
17
  }
18
18
  //# sourceMappingURL=NSLoginPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSLoginPage.js","sourceRoot":"","sources":["../../src/pages/NSLoginPage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,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;AAWtC,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,CA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,OAAO,CACH,4BAAK,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,gBAC1F,6BAAK,SAAS,EAAC,8DAA8D,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,iBACvG,4BAAK,SAAS,EAAC,QAAQ,gBACnB,cAAK,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,EAAC,MAAM,GAAO,IACnE,EACN,wBAAK,2BAAI,SAAS,EAAC,kBAAkB,gBAAE,IAAI,CAAC,KAAK,CAAC,KAAK,IAAM,GAAM,EACnE,4BAAK,SAAS,EAAC,QAAQ,gBAClB,MAAM,IACL,KACJ,IACJ,CACT,CAAC;IACN,CAAC;CACJ"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "namirasoft-site-react",
3
- "version": "1.2.45",
3
+ "version": "1.2.47",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "dependencies": {
7
- "@types/node": "^20.11.20",
8
- "@types/react": "^18.2.59",
7
+ "@types/node": "^20.11.24",
8
+ "@types/react": "^18.2.61",
9
9
  "@types/react-dom": "^18.2.19",
10
- "antd": "^5.14.2",
10
+ "antd": "^5.15.0",
11
11
  "bootstrap": "^5.3.3",
12
12
  "link-react": "^3.0.0",
13
13
  "namirasoft-api-link": "^1.2.3",
@@ -19,7 +19,7 @@
19
19
  "react-dom": "^18.2.0",
20
20
  "react-phone-input-2": "^2.15.1",
21
21
  "react-phone-number-input": "^3.3.9",
22
- "react-router-dom": "^6.22.1",
22
+ "react-router-dom": "^6.22.2",
23
23
  "react-scripts": "5.0.1"
24
24
  },
25
25
  "scripts": {
package/src/App.tsx CHANGED
@@ -17,6 +17,7 @@ import { NSButtonRed } from './components/NSButtonRed';
17
17
  // import { NSSelectBox } from './components/NSSelectBox';
18
18
  // import { type SelectProps } from 'antd';
19
19
  import { NSLayout, NSPagination } from './main';
20
+ import { NSBoxSection } from './components/NSBoxSection';
20
21
 
21
22
  export function App()
22
23
  {
@@ -47,6 +48,7 @@ export function App()
47
48
  <div className="App">
48
49
  <NSLayout scope='Namirasoft SOP console' logo=''>
49
50
  <div className='my-4 container'>
51
+ <NSBoxSection image='src/assets/images/position-down-vector.png' description="" detail='#' />
50
52
  {/* <NSInputText title='Text' />
51
53
  <NSInputInteger title='Integer' />
52
54
  <NSInputFloat title='Floating Point' />
@@ -0,0 +1,26 @@
1
+ .position__layout {
2
+ display: flex;
3
+ flex-direction: column;
4
+ justify-content: center;
5
+ align-items: center;
6
+ background-color: rgba(20, 27, 92, 0.3);
7
+ width: 358px;
8
+ height: 349px;
9
+ border-radius: 8px;
10
+ text-align: center;
11
+ gap: 16px;
12
+ margin: 12px 0;
13
+ }
14
+
15
+ .position__layout h3 {
16
+ color: rgba(20, 27, 92, 1);
17
+ font-weight: 700;
18
+ font-size: 24px;
19
+ }
20
+
21
+ .position__layout h4 {
22
+ color: rgba(20, 27, 92, 1);
23
+ font-weight: 300;
24
+ font-size: 16px;
25
+ color: rgba(20, 27, 92, 1)
26
+ }
@@ -0,0 +1,44 @@
1
+ "use client";
2
+ import Style from "./NSBoxSection.module.css";
3
+ import React from "react";
4
+
5
+ interface IProps
6
+ {
7
+ detail: string;
8
+ image: string;
9
+ description: string;
10
+ }
11
+
12
+ interface IState
13
+ {
14
+ detail: string;
15
+ image: string;
16
+ description: string;
17
+ }
18
+
19
+ export class NSBoxSection extends React.Component<IProps, IState>
20
+ {
21
+ constructor(props: IProps)
22
+ {
23
+ super(props);
24
+ this.state = { detail: props.detail, image: props.image, description: props.description };
25
+ }
26
+ setTitle(description: string)
27
+ {
28
+ this.setState({ description });
29
+ }
30
+ setHRef(detail: string)
31
+ {
32
+ this.setState({ detail });
33
+ }
34
+ override render()
35
+ {
36
+ return (
37
+ <div className={Style.position__layout}>
38
+ <img className="rounded" src={this.state.image} alt="wordpress" width={326} height={220}></img>
39
+ <h3>{this.state.description}</h3>
40
+ <h4>{this.state.detail}<img className="mx-2" src='/assets/images/position-down-vector.png' width={16} height={16}></img></h4>
41
+ </div >
42
+ )
43
+ }
44
+ }
@@ -24,7 +24,7 @@ export class NSLoginPage extends Component<IProps>
24
24
  else if (this.props.onClick)
25
25
  button = <NSButtonGreen title="Login" onClick={this.props.onClick} />;
26
26
  return (
27
- <div style={{ backgroundImage: this.props.background }}>
27
+ <div style={{ backgroundImage: this.props.background, width: "100%", backgroundSize: "cover" }}>
28
28
  <div className="d-flex flex-column align-items-center justify-content-center" style={{ marginTop: "100px" }}>
29
29
  <div className="m-auto">
30
30
  <img width={256} height={256} src={this.props.logo} alt="logo"></img>