namirasoft-site-react 1.3.18 → 1.3.19
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 -3
- package/dist/App.js.map +1 -1
- package/dist/components/NSButtonBlueVector.d.ts +15 -0
- package/dist/components/NSButtonBlueVector.js +17 -0
- package/dist/components/NSButtonBlueVector.js.map +1 -0
- package/dist/components/NSButtonBlueVector.module.css +17 -0
- package/dist/components/NSHeader.js +4 -1
- package/dist/components/NSHeader.js.map +1 -1
- package/dist/components/NSHeader.module.css +1 -2
- package/dist/components/NSLayout.module.css +5 -2
- package/dist/components/NSLayoutTitle.js +2 -1
- package/dist/components/NSLayoutTitle.js.map +1 -1
- package/dist/components/NSLayoutTitle.module.css +10 -0
- package/dist/components/NSPagination.js +3 -3
- package/dist/components/NSPagination.js.map +1 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.js +2 -1
- package/dist/main.js.map +1 -1
- package/package.json +3 -3
- package/public/assets/images/add-vector.png +0 -0
- package/src/App.tsx +5 -64
- package/src/components/NSButtonBlueVector.module.css +17 -0
- package/src/components/NSButtonBlueVector.tsx +41 -0
- package/src/components/NSHeader.module.css +1 -2
- package/src/components/NSHeader.tsx +3 -0
- package/src/components/NSLayout.module.css +5 -2
- package/src/components/NSLayoutTitle.module.css +10 -0
- package/src/components/NSLayoutTitle.tsx +4 -3
- package/src/components/NSPagination.tsx +34 -30
- package/src/main.ts +4 -1
package/dist/App.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import './App.css';
|
|
3
3
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
4
|
-
import {
|
|
5
|
-
import { NSButtonBlue, NSLayoutTitle, NSPagination } from './main';
|
|
4
|
+
import { NSButtonBlue, NSButtonBlueVector, NSLayoutTitle, NSPagination } from './main';
|
|
6
5
|
export function App() {
|
|
7
|
-
return (_jsx("div", { className: "App", children:
|
|
6
|
+
return (_jsx("div", { className: "App", children: _jsxs(NSLayoutTitle, { scope: 'Namirasoft Account Console', logo: '', title: "Namirasoft", description: 'paragraph', children: [_jsx(NSPagination, { page: 1, size: 25 }), _jsx(NSButtonBlue, { title: 'Apply', onClick: () => "" }), _jsx(NSButtonBlueVector, { title: 'New', onClick: () => "", vector: '/assets/images/add-vector.png' })] }) }));
|
|
8
7
|
}
|
|
9
8
|
//# 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;
|
|
1
|
+
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEvF,MAAM,UAAU,GAAG;IAEf,OAAO,CACH,cAAK,SAAS,EAAC,KAAK,YAChB,MAAC,aAAa,IAAC,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,EAAC,YAAY,EAAC,WAAW,EAAC,WAAW,aAChG,KAAC,YAAY,IAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,GAAI,EACnC,KAAC,YAAY,IAAC,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,GAAI,EACjD,KAAC,kBAAkB,IAAC,KAAK,EAAC,KAAK,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,EAAC,+BAA+B,GAAG,IAChF,GACd,CACT,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface NSButtonBlueVectorProps {
|
|
3
|
+
title: string;
|
|
4
|
+
vector: string;
|
|
5
|
+
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface NSButtonBlueVectorState {
|
|
8
|
+
title: string;
|
|
9
|
+
vector: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class NSButtonBlueVector extends React.Component<NSButtonBlueVectorProps, NSButtonBlueVectorState> {
|
|
12
|
+
constructor(props: NSButtonBlueVectorProps);
|
|
13
|
+
setTitle(title: string, vector: string): void;
|
|
14
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import Style from "./NSButtonBlueVector.module.css";
|
|
5
|
+
export class NSButtonBlueVector extends React.Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.state = { title: props.title, vector: props.vector };
|
|
9
|
+
}
|
|
10
|
+
setTitle(title, vector) {
|
|
11
|
+
this.setState({ title, vector });
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (_jsxs("button", { onClick: e => this.props.onClick(e), className: Style.ns_button_blue_vector, children: [_jsx("img", { src: this.state.vector, width: 16, height: 16 }), this.state.title] }));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=NSButtonBlueVector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSButtonBlueVector.js","sourceRoot":"","sources":["../../src/components/NSButtonBlueVector.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,iCAAiC,CAAC;AAepD,MAAM,OAAO,kBAAmB,SAAQ,KAAK,CAAC,SAA2D;IAErG,YAAY,KAA8B;QAEtC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;IAC9D,CAAC;IACD,QAAQ,CAAC,KAAa,EAAE,MAAc;QAElC,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACrC,CAAC;IACQ,MAAM;QAEX,OAAO,CAEH,kBAAQ,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,qBAAqB,aAC/E,cAAK,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,EACrD,IAAI,CAAC,KAAK,CAAC,KAAK,IACZ,CAEZ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.ns_button_blue_vector {
|
|
2
|
+
background-color: rgba(3, 119, 255, 1);
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
border: 0;
|
|
5
|
+
box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
width: 128px;
|
|
8
|
+
height: 48px;
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
color: white;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 8px;
|
|
17
|
+
}
|
|
@@ -35,7 +35,10 @@ export class NSHeader extends React.Component {
|
|
|
35
35
|
this.setState({ showNavbar: !this.state.showNavbar });
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
|
|
38
|
+
var _a, _b;
|
|
39
|
+
return (_jsx("header", { children: _jsx("nav", { className: Styles.ns_navbar, style: {
|
|
40
|
+
backgroundColor: ((_a = this.props.background) === null || _a === void 0 ? void 0 : _a.color) ? (_b = this.props.background) === null || _b === void 0 ? void 0 : _b.color : "rgba(20, 27, 92, 1)"
|
|
41
|
+
}, children: _jsxs("div", { className: `${Styles.ns_navbar_parent_content} container`, children: [_jsx("a", { href: "/", children: _jsx("img", { src: this.props.logo, alt: "Logo", width: 48, height: 48 }) }), _jsxs("div", { className: `${Styles.ns_navbar_content} `, children: [_jsx("div", { className: `${Styles.ns_navbar_elements} ${this.state.showNavbar && Styles.ns_navbar_active}`, children: this.render_menu(0, null) }), this.props.account &&
|
|
39
42
|
_jsxs("div", { className: `${Styles.ns_navbar_login_status}`, children: [_jsx("span", { className: `${Styles.ns_navbar_usersname}`, children: "name" }), _jsx("img", { src: 'https://static.namirasoft.com/image/logout.svg', alt: "Exit", width: 20, height: 20 })] }), _jsx("div", { className: Styles.ns_navbar_menu_icon, onClick: this.handleShowNavbar, children: _jsx("img", { src: 'https://static.namirasoft.com/image/menu.svg', alt: "Menu", width: 19, height: 17 }) })] })] }) }) }));
|
|
40
43
|
}
|
|
41
44
|
render_menu(level, parent_id) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSHeader.js","sourceRoot":"","sources":["../../src/components/NSHeader.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,WAAW,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAiB,MAAM,qBAAqB,CAAC;AAmB7E,MAAM,OAAO,QAAS,SAAQ,KAAK,CAAC,SAAuC;IACvE,YAAY,KAAoB;QAE5B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,OAAO,EAAE,EAAE;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B,CAAC;oBACG,SAAS;wBACL,cACI,EAAE,EAAE,iBAAiB,MAAM,CAAC,EAAE,EAAE,YAC/B,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,GACzC,CAAA;gBACf,CAAC;YACL,OAAO,CAAC,4BACJ,KAAC,WAAW,IACR,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC,EAC9D,SAAS,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,CAAC,MAAM,CAAC,2BAA2B,EAC/F,KAAK,EAAE,MAAM,CAAC,IAAI,EAClB,EAAE,EAAE,kBAAkB,MAAM,CAAC,EAAE,EAAE,YAChC,SAAS,GACC,GAChB,CACF,CAAC;QACN,CAAC;aACD,CAAC;YACG,OAAO,CACH,YAAG,SAAS,EAAE,GAAG,MAAM,CAAC,oBAAoB,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,CAAC,MAAM,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,MAAA,MAAM,CAAC,IAAI,0CAAE,GAAG,YAAG,MAAM,CAAC,IAAI,GAAK,CACpL,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -18,14 +18,13 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.ns_navbar {
|
|
21
|
-
background-color: #001664;
|
|
22
21
|
min-height: 96px;
|
|
22
|
+
/* background-color: #0000004d !important; */
|
|
23
23
|
position: relative;
|
|
24
24
|
z-index: 10;
|
|
25
25
|
display: flex;
|
|
26
26
|
align-items: center;
|
|
27
27
|
justify-content: center;
|
|
28
|
-
color: white;
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
.ns_navbar_menu_icon {
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
.ns_container {
|
|
2
|
+
min-height: 100vh;
|
|
2
3
|
width: 100%;
|
|
3
4
|
display: flex;
|
|
4
5
|
flex-direction: column;
|
|
5
|
-
justify-content:
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
.ns_header {
|
|
9
|
-
margin-bottom:
|
|
11
|
+
margin-bottom: 48px;
|
|
10
12
|
width: 100%;
|
|
13
|
+
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
.ns_footer {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Styles from './NSLayoutTitle.module.css';
|
|
3
4
|
import { Component } from 'react';
|
|
4
5
|
import { NSLayout } from './NSLayout';
|
|
5
6
|
export class NSLayoutTitle extends Component {
|
|
6
7
|
render() {
|
|
7
|
-
return (_jsxs(NSLayout, { scope: this.props.scope, logo: this.props.logo, children: [_jsxs("div", { children: [_jsx("h1", { className:
|
|
8
|
+
return (_jsxs(NSLayout, { scope: this.props.scope, logo: this.props.logo, children: [_jsxs("div", { className: '', children: [_jsx("h1", { className: Styles.title, children: this.props.title }), _jsx("p", { className: Styles.description, children: this.props.description })] }), this.props.children] }));
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=NSLayoutTitle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLayoutTitle.js","sourceRoot":"","sources":["../../src/components/NSLayoutTitle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAWtC,MAAM,OAAO,aAAc,SAAQ,SAA6B;IACtD,MAAM;QAEd,OAAO,CACN,MAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,aACvD,
|
|
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;AAWtC,MAAM,OAAO,aAAc,SAAQ,SAA6B;IACtD,MAAM;QAEd,OAAO,CACN,MAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,aACvD,eAAK,SAAS,EAAC,EAAE,aAChB,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAM,EACpD,YAAG,SAAS,EAAE,MAAM,CAAC,WAAW,YAAG,IAAI,CAAC,KAAK,CAAC,WAAW,GAAK,IACzD,EACL,IAAI,CAAC,KAAK,CAAC,QAAQ,IACV,CACX,CAAC;IACH,CAAC;CACD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import Styles from './NSPagination.module.css';
|
|
4
4
|
import { Component } from 'react';
|
|
5
5
|
export class NSPagination extends Component {
|
|
@@ -20,7 +20,7 @@ export class NSPagination extends Component {
|
|
|
20
20
|
else
|
|
21
21
|
arr.push(_jsx("div", { children: _jsx("a", { href: '#', className: `${Styles.ns_paginate_link}`, children: index }) }));
|
|
22
22
|
};
|
|
23
|
-
arr.push(_jsx("div", { children:
|
|
23
|
+
arr.push(_jsx("div", { children: _jsx("a", { href: '#', children: _jsx("img", { src: 'https://static.namirasoft.com/image/circle-chevron-left.png', alt: 'left_vector', width: 32, height: 32 }) }) }));
|
|
24
24
|
pushPage(1);
|
|
25
25
|
if (page > window * 2)
|
|
26
26
|
arr.push(_jsx("div", { children: _jsx("a", { href: '#', className: `${Styles.ns_paginate_link}`, children: "..." }) }));
|
|
@@ -29,7 +29,7 @@ export class NSPagination extends Component {
|
|
|
29
29
|
if (page <= size - window * 2)
|
|
30
30
|
arr.push(_jsx("div", { children: _jsx("a", { href: '#', className: `${Styles.ns_paginate_link}`, children: "..." }) }));
|
|
31
31
|
pushPage(size);
|
|
32
|
-
arr.push(_jsx("div", { children:
|
|
32
|
+
arr.push(_jsx("div", { children: _jsx("a", { href: '#', children: _jsx("img", { src: 'https://static.namirasoft.com/image/circle-chevron-right.png', width: 32, height: 32, alt: 'right_vector' }) }) }));
|
|
33
33
|
return (_jsx("div", { className: `${Styles.ns_pagination_container}`, children: arr.map(x => (x)) }));
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSPagination.js","sourceRoot":"","sources":["../../src/components/NSPagination.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAclC,MAAM,OAAO,YAAa,SAAQ,SAA+C;IAE7E,YAAY,KAAwB;QAEhC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAA;IACvD,CAAC;IACQ,MAAM;QAEX,IAAI,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QAC3B,IAAI,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QAC3B,IAAI,MAAM,GAAG,CAAC,CAAC;QACf,IAAI,GAAG,GAAG,I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AC,cAAc,GAAG,GACpH,GACF,CACT,CAAC;QAEF,OAAO,CACH,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,uBAAuB,EAAE,YAC9C,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAChB,CACT,CAAC;IACN,CAAC;CACJ"}
|
package/dist/main.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from "./components/NSButtonBlue";
|
|
2
|
+
export * from "./components/NSButtonBlueVector";
|
|
1
3
|
export * from "./components/NSButtonGreen";
|
|
2
4
|
export * from "./components/NSButtonRed";
|
|
3
5
|
export * from "./components/NSCard";
|
|
@@ -32,4 +34,3 @@ export * from "./components/NSPagination";
|
|
|
32
34
|
export * from "./components/NSTable";
|
|
33
35
|
export * from "./components/NSTitle";
|
|
34
36
|
export * from "./pages/NSLoginPage";
|
|
35
|
-
export * from "./components/NSButtonBlue";
|
package/dist/main.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from "./components/NSButtonBlue";
|
|
2
|
+
export * from "./components/NSButtonBlueVector";
|
|
1
3
|
export * from "./components/NSButtonGreen";
|
|
2
4
|
export * from "./components/NSButtonRed";
|
|
3
5
|
export * from "./components/NSCard";
|
|
@@ -32,5 +34,4 @@ export * from "./components/NSPagination";
|
|
|
32
34
|
export * from "./components/NSTable";
|
|
33
35
|
export * from "./components/NSTitle";
|
|
34
36
|
export * from "./pages/NSLoginPage";
|
|
35
|
-
export * from "./components/NSButtonBlue";
|
|
36
37
|
//# 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,qBAAqB,CAAC;AACpC,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,C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;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,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.3.
|
|
11
|
+
"version": "1.3.19",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"copy": "copyfiles -u 1 src/**/*.html src/**/*.css src/**/*.svg src/**/*.png src/**/*.jpg dist/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@types/node": "^20.12.
|
|
25
|
-
"@types/react": "^18.2.
|
|
24
|
+
"@types/node": "^20.12.6",
|
|
25
|
+
"@types/react": "^18.2.75",
|
|
26
26
|
"@types/react-dom": "^18.2.24",
|
|
27
27
|
"antd": "^5.16.1",
|
|
28
28
|
"bootstrap": "^5.3.3",
|
|
Binary file
|
package/src/App.tsx
CHANGED
|
@@ -1,74 +1,15 @@
|
|
|
1
1
|
import './App.css';
|
|
2
2
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
3
|
-
|
|
4
|
-
// import { NSInputInteger } from './components/NSInputInteger';
|
|
5
|
-
// import { NSInputFloat } from './components/NSInputFloat';
|
|
6
|
-
// import { NSInputPrice } from './components/NSInputPrice';
|
|
7
|
-
// import { NSInputDate } from './components/NSInputDate';
|
|
8
|
-
// import { NSInputTime } from './components/NSInputTime';
|
|
9
|
-
// import { NSInputDuration } from './components/NSInputDuration';
|
|
10
|
-
// import { NSInputString } from './components/NSInputString';
|
|
11
|
-
// import { NSInputIP } from './components/NSInputIP';
|
|
12
|
-
// import { NSInputEmail } from './components/NSInputEmail';
|
|
13
|
-
// import { NSInputSearch } from './components/NSInputSearch';
|
|
14
|
-
// import { NSInputPhone } from './components/NSInputPhone';
|
|
15
|
-
// import { NSButtonGreen } from './components/NSButtonGreen';
|
|
16
|
-
import { NSButtonRed } from './components/NSButtonRed';
|
|
17
|
-
// import { NSSelectBox } from './components/NSSelectBox';
|
|
18
|
-
// import { type SelectProps } from 'antd';
|
|
19
|
-
import { NSButtonBlue, NSLayoutTitle, NSPagination } from './main';
|
|
20
|
-
// import { NSBoxPosition } from './components/NSBoxPosition';
|
|
21
|
-
// import { NSBoxSection } from './components/NSBoxSection';
|
|
3
|
+
import { NSButtonBlue, NSButtonBlueVector, NSLayoutTitle, NSPagination } from './main';
|
|
22
4
|
|
|
23
5
|
export function App()
|
|
24
6
|
{
|
|
25
|
-
// const options: SelectProps['options'] = [
|
|
26
|
-
// {
|
|
27
|
-
// label: 'Test1',
|
|
28
|
-
// value: 'test1',
|
|
29
|
-
// desc: 'Test1',
|
|
30
|
-
// },
|
|
31
|
-
// {
|
|
32
|
-
// label: 'Test2',
|
|
33
|
-
// value: 'test2',
|
|
34
|
-
// desc: 'Test2',
|
|
35
|
-
// },
|
|
36
|
-
// {
|
|
37
|
-
// label: 'Test3',
|
|
38
|
-
// value: 'test3',
|
|
39
|
-
// desc: 'Test3',
|
|
40
|
-
// },
|
|
41
|
-
// {
|
|
42
|
-
// label: 'Test4',
|
|
43
|
-
// value: 'test4',
|
|
44
|
-
// desc: 'Test4',
|
|
45
|
-
// },
|
|
46
|
-
// ];
|
|
47
|
-
|
|
48
7
|
return (
|
|
49
8
|
<div className="App">
|
|
50
|
-
<NSLayoutTitle scope='Namirasoft
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
<NSInputInteger title='Integer' />
|
|
55
|
-
<NSInputFloat title='Floating Point' />
|
|
56
|
-
<NSInputPrice title='Price' />
|
|
57
|
-
<NSInputDate title='Date' />
|
|
58
|
-
<NSInputTime title='Time' />
|
|
59
|
-
<NSInputDuration title='Duration' />
|
|
60
|
-
<NSInputString title='String' />
|
|
61
|
-
<NSInputIP title='IP' />
|
|
62
|
-
<NSInputEmail title='Email' />
|
|
63
|
-
<NSInputSearch title='Search' />
|
|
64
|
-
<NSInputPhone title='Phone' />
|
|
65
|
-
<NSSelectBox title="t" options={options} />
|
|
66
|
-
<NSButtonGreen title='Save' onClick={() => { }} /> */}
|
|
67
|
-
<NSButtonRed title='Delete' onClick={() => { }} />
|
|
68
|
-
<NSPagination page={1} size={25} />
|
|
69
|
-
<NSButtonBlue title='Apply' onClick={() => ""} />
|
|
70
|
-
</div>
|
|
71
|
-
{/* <NSBoxPosition image='' title='' list='' percent='' information='' /> */}
|
|
9
|
+
<NSLayoutTitle scope='Namirasoft Account Console' logo='' title="Namirasoft" description='paragraph'>
|
|
10
|
+
<NSPagination page={1} size={25} />
|
|
11
|
+
<NSButtonBlue title='Apply' onClick={() => ""} />
|
|
12
|
+
<NSButtonBlueVector title='New' onClick={() => ""} vector='/assets/images/add-vector.png' />
|
|
72
13
|
</NSLayoutTitle>
|
|
73
14
|
</div>
|
|
74
15
|
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.ns_button_blue_vector {
|
|
2
|
+
background-color: rgba(3, 119, 255, 1);
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
border: 0;
|
|
5
|
+
box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
width: 128px;
|
|
8
|
+
height: 48px;
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
color: white;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 8px;
|
|
17
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import Style from "./NSButtonBlueVector.module.css";
|
|
5
|
+
|
|
6
|
+
export interface NSButtonBlueVectorProps
|
|
7
|
+
{
|
|
8
|
+
title: string;
|
|
9
|
+
vector: string;
|
|
10
|
+
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface NSButtonBlueVectorState
|
|
14
|
+
{
|
|
15
|
+
title: string;
|
|
16
|
+
vector: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class NSButtonBlueVector extends React.Component<NSButtonBlueVectorProps, NSButtonBlueVectorState>
|
|
20
|
+
{
|
|
21
|
+
constructor(props: NSButtonBlueVectorProps)
|
|
22
|
+
{
|
|
23
|
+
super(props);
|
|
24
|
+
this.state = { title: props.title, vector: props.vector };
|
|
25
|
+
}
|
|
26
|
+
setTitle(title: string, vector: string)
|
|
27
|
+
{
|
|
28
|
+
this.setState({ title, vector });
|
|
29
|
+
}
|
|
30
|
+
override render()
|
|
31
|
+
{
|
|
32
|
+
return (
|
|
33
|
+
|
|
34
|
+
<button onClick={e => this.props.onClick(e)} className={Style.ns_button_blue_vector}>
|
|
35
|
+
<img src={this.state.vector} width={16} height={16} />
|
|
36
|
+
{this.state.title}
|
|
37
|
+
</button>
|
|
38
|
+
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -18,14 +18,13 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.ns_navbar {
|
|
21
|
-
background-color: #001664;
|
|
22
21
|
min-height: 96px;
|
|
22
|
+
/* background-color: #0000004d !important; */
|
|
23
23
|
position: relative;
|
|
24
24
|
z-index: 10;
|
|
25
25
|
display: flex;
|
|
26
26
|
align-items: center;
|
|
27
27
|
justify-content: center;
|
|
28
|
-
color: white;
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
.ns_navbar_menu_icon {
|
|
@@ -63,6 +63,9 @@ export class NSHeader extends React.Component<NSHeaderProps, NSHeaderState> {
|
|
|
63
63
|
return (
|
|
64
64
|
<header>
|
|
65
65
|
<nav className={Styles.ns_navbar}
|
|
66
|
+
style={{
|
|
67
|
+
backgroundColor: this.props.background?.color ? this.props.background?.color : "rgba(20, 27, 92, 1)"
|
|
68
|
+
}}
|
|
66
69
|
>
|
|
67
70
|
<div className={`${Styles.ns_navbar_parent_content} container`}>
|
|
68
71
|
<a href="/">
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
.ns_container {
|
|
2
|
+
min-height: 100vh;
|
|
2
3
|
width: 100%;
|
|
3
4
|
display: flex;
|
|
4
5
|
flex-direction: column;
|
|
5
|
-
justify-content:
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
.ns_header {
|
|
9
|
-
margin-bottom:
|
|
11
|
+
margin-bottom: 48px;
|
|
10
12
|
width: 100%;
|
|
13
|
+
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
.ns_footer {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import Styles from './NSLayoutTitle.module.css';
|
|
3
4
|
import { Component } from 'react';
|
|
4
5
|
import { ReactNode } from 'react';
|
|
5
6
|
import { NSLayout } from './NSLayout';
|
|
@@ -18,9 +19,9 @@ export class NSLayoutTitle extends Component<NSLayoutTitleProps> {
|
|
|
18
19
|
{
|
|
19
20
|
return (
|
|
20
21
|
<NSLayout scope={this.props.scope} logo={this.props.logo} >
|
|
21
|
-
<div>
|
|
22
|
-
<h1 className=
|
|
23
|
-
<p className=
|
|
22
|
+
<div className=''>
|
|
23
|
+
<h1 className={Styles.title}>{this.props.title}</h1>
|
|
24
|
+
<p className={Styles.description}>{this.props.description}</p>
|
|
24
25
|
</div>
|
|
25
26
|
{this.props.children}
|
|
26
27
|
</NSLayout>
|
|
@@ -33,44 +33,48 @@ export class NSPagination extends Component<NSPaginationState, NSPaginationProps
|
|
|
33
33
|
let pushPage = (index: number) =>
|
|
34
34
|
{
|
|
35
35
|
if (index == page)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
arr.push(
|
|
37
|
+
<div className={`${Styles.ns_select_number_parent}`}>
|
|
38
|
+
<a href='#' className={`${Styles.ns_paginate_link} ${Styles.ns_select_number}`}>{index}</a>
|
|
39
|
+
</div>
|
|
40
|
+
);
|
|
41
41
|
else
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
arr.push(
|
|
43
|
+
<div>
|
|
44
|
+
<a href='#' className={`${Styles.ns_paginate_link}`}>{index}</a>
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
47
47
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
arr.push(
|
|
49
|
+
<div>
|
|
50
|
+
<a href='#'>
|
|
51
|
+
<img src='https://static.namirasoft.com/image/circle-chevron-left.png' alt='left_vector' width={32} height={32} />
|
|
52
|
+
</a>
|
|
53
|
+
</div>
|
|
54
|
+
);
|
|
53
55
|
pushPage(1);
|
|
54
56
|
if (page > window * 2)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
arr.push(
|
|
58
|
+
<div>
|
|
59
|
+
<a href='#' className={`${Styles.ns_paginate_link}`}>...</a>
|
|
60
|
+
</div>
|
|
61
|
+
);
|
|
60
62
|
for (let i = min; i <= max; i++)
|
|
61
63
|
pushPage(i);
|
|
62
64
|
if (page <= size - window * 2)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
arr.push(
|
|
66
|
+
<div>
|
|
67
|
+
<a href='#' className={`${Styles.ns_paginate_link}`}>...</a>
|
|
68
|
+
</div>
|
|
69
|
+
);
|
|
68
70
|
pushPage(size);
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
arr.push(
|
|
72
|
+
<div>
|
|
73
|
+
<a href='#'>
|
|
74
|
+
<img src='https://static.namirasoft.com/image/circle-chevron-right.png' width={32} height={32} alt='right_vector' />
|
|
75
|
+
</a>
|
|
76
|
+
</div>
|
|
77
|
+
);
|
|
74
78
|
|
|
75
79
|
return (
|
|
76
80
|
<div className={`${Styles.ns_pagination_container}`}>
|
package/src/main.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from "./components/NSButtonBlue";
|
|
2
|
+
export * from "./components/NSButtonBlueVector";
|
|
1
3
|
export * from "./components/NSButtonGreen";
|
|
2
4
|
export * from "./components/NSButtonRed";
|
|
3
5
|
export * from "./components/NSCard";
|
|
@@ -32,4 +34,5 @@ export * from "./components/NSPagination";
|
|
|
32
34
|
export * from "./components/NSTable";
|
|
33
35
|
export * from "./components/NSTitle";
|
|
34
36
|
export * from "./pages/NSLoginPage";
|
|
35
|
-
|
|
37
|
+
|
|
38
|
+
|