namirasoft-site-react 1.2.46 → 1.2.48
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 +2 -1
- package/dist/App.js.map +1 -1
- package/dist/components/NSBoxSection.d.ts +18 -0
- package/dist/components/NSBoxSection.js +20 -0
- package/dist/components/NSBoxSection.js.map +1 -0
- package/dist/components/NSBoxSection.module.css +26 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -1
- package/package.json +5 -5
- package/src/App.tsx +2 -0
- package/src/components/NSBoxSection.module.css +26 -0
- package/src/components/NSBoxSection.tsx +44 -0
- package/src/main.ts +2 -1
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;
|
|
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
|
+
}
|
package/dist/main.d.ts
CHANGED
package/dist/main.js
CHANGED
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,qBAAqB,CAAC;AACpC,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,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,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,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "namirasoft-site-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.48",
|
|
4
4
|
"main": "./dist/main.js",
|
|
5
5
|
"types": "./dist/main.d.ts",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@types/node": "^20.11.
|
|
8
|
-
"@types/react": "^18.2.
|
|
7
|
+
"@types/node": "^20.11.24",
|
|
8
|
+
"@types/react": "^18.2.61",
|
|
9
9
|
"@types/react-dom": "^18.2.19",
|
|
10
|
-
"antd": "^5.
|
|
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.
|
|
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
|
+
}
|
package/src/main.ts
CHANGED
|
@@ -23,4 +23,5 @@ export * from "./components/NSLinkGreen";
|
|
|
23
23
|
export * from "./components/NSLinkRed";
|
|
24
24
|
export * from "./components/NSPagination";
|
|
25
25
|
export * from "./components/NSTable";
|
|
26
|
-
export * from "./pages/NSLoginPage";
|
|
26
|
+
export * from "./pages/NSLoginPage";
|
|
27
|
+
export * from "./components/NSBoxSection";
|