namirasoft-site-react 1.3.22 → 1.3.24
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 -2
- package/dist/App.js.map +1 -1
- package/dist/assets/images/icon-select-box.svg +3 -0
- package/dist/components/NSInputSearch.module.css +1 -1
- package/dist/components/NSLayout.module.css +0 -1
- package/dist/components/NSLayoutTitle.js +2 -1
- package/dist/components/NSLayoutTitle.js.map +1 -1
- package/dist/components/NSSelectBox.js +3 -2
- package/dist/components/NSSelectBox.js.map +1 -1
- package/dist/components/NSSelectBox.module.css +1 -1
- package/dist/components/NSTable.d.ts +0 -1
- package/dist/components/NSTable.js +2 -2
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/{NSTable.modules.css → NSTable.module.css} +49 -13
- package/package.json +1 -1
- package/public/assets/images/export-vector.png +0 -0
- package/public/assets/images/refresh-vector.png +0 -0
- package/src/App.tsx +2 -4
- package/src/assets/images/icon-select-box.svg +3 -0
- package/src/components/NSInputSearch.module.css +1 -1
- package/src/components/NSLayout.module.css +0 -1
- package/src/components/NSLayoutTitle.tsx +11 -3
- package/src/components/NSSelectBox.module.css +1 -1
- package/src/components/NSSelectBox.tsx +3 -2
- package/src/components/{NSTable.modules.css → NSTable.module.css} +49 -13
- package/src/components/NSTable.tsx +9 -5
package/dist/App.js
CHANGED
|
@@ -1,8 +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 { NSButtonBlue, NSButtonBlueVector, NSLayoutTitle, NSPagination
|
|
4
|
+
import { NSButtonBlue, NSButtonBlueVector, NSInputCopy, NSLayoutTitle, NSPagination } from './main';
|
|
5
5
|
export function App() {
|
|
6
|
-
return (_jsx("div", { className: "App", children: _jsxs(NSLayoutTitle, { scope: 'Namirasoft Account Console', logo: '', title: "Namirasoft", description: '
|
|
6
|
+
return (_jsx("div", { className: "App", children: _jsxs(NSLayoutTitle, { scope: 'Namirasoft Account Console', logo: '', title: "Namirasoft", description: '', children: [_jsx(NSPagination, { page: 1, size: 25 }), _jsx(NSButtonBlue, { title: 'Apply', onClick: () => "" }), _jsx(NSButtonBlueVector, { title: 'New', onClick: () => "", vector: '/assets/images/add-vector.png' }), _jsx(NSInputCopy, { title: "Your Token" })] }) }));
|
|
7
7
|
}
|
|
8
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;AAC9C,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,
|
|
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,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEpG,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,EAAE,aACvF,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,EAC5F,KAAC,WAAW,IAAC,KAAK,EAAC,YAAY,GAAG,IACtB,GACd,CACT,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M9.70912 12.1877C8.93017 13.4695 7.06983 13.4695 6.29088 12.1877L1.18647 3.7887C0.37647 2.45587 1.33594 0.749999 2.8956 0.749999L13.1044 0.75C14.6641 0.75 15.6235 2.45587 14.8135 3.7887L9.70912 12.1877Z" fill="#141B5C"/>
|
|
3
|
+
</svg>
|
|
@@ -5,7 +5,8 @@ import { Component } from 'react';
|
|
|
5
5
|
import { NSLayout } from './NSLayout';
|
|
6
6
|
export class NSLayoutTitle extends Component {
|
|
7
7
|
render() {
|
|
8
|
-
|
|
8
|
+
var _a;
|
|
9
|
+
return (_jsxs(NSLayout, { scope: this.props.scope, logo: this.props.logo, children: [_jsxs("div", { children: [_jsx("h1", { className: Styles.title, children: this.props.title }), _jsx("p", { className: Styles.description, style: { display: this.props.description == ((_a = this.props.description) === null || _a === void 0 ? void 0 : _a.length) ? "none" : "block" }, children: this.props.description })] }), this.props.children] }));
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
//# 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,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
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;AAUtC,MAAM,OAAO,aAAc,SAAQ,SAA6B;IACtD,MAAM;;QAUd,OAAO,CACN,MAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,aACvD,0BACC,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAM,EACpD,YAAG,SAAS,EAAE,MAAM,CAAC,WAAW,EAC/B,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,KAAI,MAAA,IAAI,CAAC,KAAK,CAAC,WAAW,0CAAE,MAAM,CAAA,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,YAAG,IAAI,CAAC,KAAK,CAAC,WAAW,GAAK,IACzH,EACL,IAAI,CAAC,KAAK,CAAC,QAAQ,IACV,CACX,CAAC;IACH,CAAC;CACD"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSSelectBox.module.css";
|
|
5
5
|
import { Select, Space } from 'antd';
|
|
6
|
+
import IconSelectBox from '../assets/images/icon-select-box.svg';
|
|
6
7
|
export class NSSelectBox extends React.Component {
|
|
7
8
|
constructor(props) {
|
|
8
9
|
super(props);
|
|
@@ -18,7 +19,7 @@ export class NSSelectBox extends React.Component {
|
|
|
18
19
|
return this.state.value;
|
|
19
20
|
}
|
|
20
21
|
render() {
|
|
21
|
-
return (
|
|
22
|
+
return (_jsxs("div", { className: `${Styles.ns_input_parent} p-2`, children: [_jsx("span", { className: Styles.ns_input_title, children: this.props.title }), _jsx(Select, { mode: "multiple", style: { width: '100%' }, className: Styles.ns_input_select, placeholder: "Combo Box", onChange: this.setValue, optionLabelProp: "label", options: this.props.options, optionRender: (option) => (_jsx(Space, { className: Styles.ns_input_select_option, children: option.data.desc })), suffixIcon: _jsx("img", { src: IconSelectBox, alt: "SelectBox Icon" }) })] }));
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
//# sourceMappingURL=NSSelectBox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSSelectBox.js","sourceRoot":"","sources":["../../src/components/NSSelectBox.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"NSSelectBox.js","sourceRoot":"","sources":["../../src/components/NSSelectBox.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,aAAa,MAAM,sCAAsC,CAAC;AAajE,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAA6C;IAChF,YAAY,KAAuB;QAE/B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,KAAK,EAAE,EAAE;SACZ,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IACD,QAAQ,CAAC,KAAe;QAEpB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,QAAQ;QAEJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,MAAM,aAC3C,eAAM,SAAS,EAAE,MAAM,CAAC,cAAc,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAQ,EACjE,KAAC,MAAM,IACH,IAAI,EAAC,UAAU,EACf,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EACxB,SAAS,EAAE,MAAM,CAAC,eAAe,EACjC,WAAW,EAAC,WAAW,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,eAAe,EAAC,OAAO,EACvB,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,EAC3B,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CACtB,KAAC,KAAK,IAAC,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC1C,MAAM,CAAC,IAAI,CAAC,IAAI,GACb,CACX,EACD,UAAU,EAAE,cAAK,GAAG,EAAE,aAAa,EAAE,GAAG,EAAC,gBAAgB,GAAG,GAC9D,IACA,CACT,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import Styles from './NSTable.module.css';
|
|
4
4
|
import { Component } from 'react';
|
|
5
5
|
export class NSTable extends Component {
|
|
6
6
|
constructor(props) {
|
|
@@ -15,7 +15,7 @@ export class NSTable extends Component {
|
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
17
|
let column_keys = Object.keys(this.state.columns);
|
|
18
|
-
return (
|
|
18
|
+
return (_jsxs("div", { className: Styles.project_list_container, children: [_jsxs("table", { className: Styles.table, children: [_jsx("thead", { className: Styles.thead, children: _jsx("tr", { children: column_keys.map(column_key => _jsx("th", { scope: "col", children: this.state.columns[column_key] }, column_key)) }) }), _jsx("tbody", { className: Styles.tbody, children: this.state.rows.map((row, rowIndex) => _jsx("tr", { children: column_keys.map((column, columnIndex) => (_jsx("td", Object.assign({}, this.props.getColumnAttributes(column, columnIndex), { children: this.props.getCell(row, column, rowIndex, columnIndex) })))) }, this.props.getRowKey(row, rowIndex))) })] }), _jsxs("div", { className: Styles.button_group_desktop, children: [_jsxs("button", { onClick: () => window.print(), className: Styles.export_button, children: [_jsx("img", { src: "/assets/images/export-vector.png", alt: "Export Table Data", width: 13, height: 16 }), "Export"] }), _jsxs("button", { onClick: () => window.location.reload(), className: Styles.refresh_button, children: [_jsx("img", { src: "/assets/images/refresh-vector.png", alt: "Refresh Table Contnet", width: 15, height: 16 }), "Refresh"] })] })] }));
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=NSTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSTable.js","sourceRoot":"","sources":["../../src/components/NSTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,
|
|
1
|
+
{"version":3,"file":"NSTable.js","sourceRoot":"","sources":["../../src/components/NSTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBlC,MAAM,OAAO,OAAiB,SAAQ,SAAuD;IAEzF,YAAY,KAA4B;QAEpC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAC9D,CAAC;IACD,UAAU,CAAC,OAAkC;QAEzC,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO,CAAC,IAAe;QAEnB,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,IAAI,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAClD,OAAO,CACH,eAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,aACzC,iBAAO,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,gBAAO,SAAS,EAAE,MAAM,CAAC,KAAK,YAC1B,uBACK,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,aAAqB,KAAK,EAAC,KAAK,YAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAvD,UAAU,CAAmD,CAAC,GACrG,GACD,EACR,gBAAO,SAAS,EAAE,MAAM,CAAC,KAAK,YAEtB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,CAClC,uBAEQ,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,CAAC,CACrC,6BAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,MAAM,EAAE,WAAW,CAAC,cACtD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,CAAC,IACtD,CACR,CAAC,IAND,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,QAAQ,CAAC,CAQvC,CAAC,GAET,IACL,EACR,eAAK,SAAS,EAAE,MAAM,CAAC,oBAAoB,aACvC,kBAAQ,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,aAAa,aAAE,cAAK,GAAG,EAAC,kCAAkC,EAAC,GAAG,EAAC,mBAAmB,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,cAAe,EACpL,kBAAQ,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,cAAc,aAAE,cAAK,GAAG,EAAC,mCAAmC,EAAC,GAAG,EAAC,uBAAuB,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,eAAgB,IACnM,IACH,CACV,CAAA;IACL,CAAC;CACJ"}
|
|
@@ -1,29 +1,65 @@
|
|
|
1
1
|
.thead th {
|
|
2
|
-
background-color:
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
background-color: rgba(20, 27, 92, 1);
|
|
3
|
+
font-size: 16px;
|
|
4
|
+
font-weight: 300;
|
|
5
|
+
padding: 16px;
|
|
6
|
+
color: white;
|
|
7
|
+
font-size: 16px;
|
|
5
8
|
}
|
|
6
9
|
|
|
7
|
-
.tbody
|
|
8
|
-
background-color: rgb(
|
|
9
|
-
color: rgba(
|
|
10
|
-
|
|
10
|
+
.tbody td {
|
|
11
|
+
background-color: rgb(173, 178, 206);
|
|
12
|
+
color: rgba(20, 27, 92, 1);
|
|
13
|
+
padding: 8px 16px;
|
|
14
|
+
font-size: 10px;
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.4);
|
|
17
|
+
|
|
11
18
|
}
|
|
12
19
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
color: rgba(255, 255, 255, 1);
|
|
16
|
-
border: none;
|
|
20
|
+
table {
|
|
21
|
+
width: 100%;
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
.project_list_container {
|
|
20
|
-
border: none;
|
|
21
25
|
text-align: left;
|
|
26
|
+
border-top-left-radius: 8px;
|
|
27
|
+
border-top-right-radius: 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.button_group_desktop {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
justify-content: end;
|
|
34
|
+
gap: 48px;
|
|
35
|
+
padding: 24px 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.button_group_desktop button {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
font-size: 16px;
|
|
43
|
+
border-radius: 8px;
|
|
44
|
+
width: 128px;
|
|
45
|
+
height: 48px;
|
|
46
|
+
gap: 10px;
|
|
47
|
+
text-decoration: none;
|
|
48
|
+
color: black;
|
|
49
|
+
background-color: transparent;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.export_button {
|
|
53
|
+
border: 1px solid rgba(255, 148, 50, 1);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.refresh_button {
|
|
57
|
+
border: 1px solid rgba(3, 119, 255, 1);
|
|
22
58
|
}
|
|
23
59
|
|
|
24
60
|
@media only screen and (max-width:600px) {
|
|
25
61
|
.project_list_container {
|
|
26
|
-
overflow:
|
|
62
|
+
overflow: auto;
|
|
27
63
|
}
|
|
28
64
|
}
|
|
29
65
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/App.tsx
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import './App.css';
|
|
2
2
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
3
|
-
import { NSButtonBlue, NSButtonBlueVector, NSLayoutTitle, NSPagination
|
|
3
|
+
import { NSButtonBlue, NSButtonBlueVector, NSInputCopy, NSLayoutTitle, NSPagination } from './main';
|
|
4
4
|
|
|
5
5
|
export function App()
|
|
6
6
|
{
|
|
7
7
|
return (
|
|
8
8
|
<div className="App">
|
|
9
|
-
<NSLayoutTitle scope='Namirasoft Account Console' logo='' title="Namirasoft" description='
|
|
9
|
+
<NSLayoutTitle scope='Namirasoft Account Console' logo='' title="Namirasoft" description=''>
|
|
10
10
|
<NSPagination page={1} size={25} />
|
|
11
11
|
<NSButtonBlue title='Apply' onClick={() => ""} />
|
|
12
12
|
<NSButtonBlueVector title='New' onClick={() => ""} vector='/assets/images/add-vector.png' />
|
|
13
13
|
<NSInputCopy title="Your Token" />
|
|
14
|
-
<NSInputSearch />
|
|
15
|
-
|
|
16
14
|
</NSLayoutTitle>
|
|
17
15
|
</div>
|
|
18
16
|
);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M9.70912 12.1877C8.93017 13.4695 7.06983 13.4695 6.29088 12.1877L1.18647 3.7887C0.37647 2.45587 1.33594 0.749999 2.8956 0.749999L13.1044 0.75C14.6641 0.75 15.6235 2.45587 14.8135 3.7887L9.70912 12.1877Z" fill="#141B5C"/>
|
|
3
|
+
</svg>
|
|
@@ -13,15 +13,23 @@ export interface NSLayoutTitleProps
|
|
|
13
13
|
description?: string;
|
|
14
14
|
children: ReactNode;
|
|
15
15
|
}
|
|
16
|
-
|
|
17
16
|
export class NSLayoutTitle extends Component<NSLayoutTitleProps> {
|
|
18
17
|
override render()
|
|
19
18
|
{
|
|
19
|
+
// var x = this.props.description
|
|
20
|
+
// if (this.props.description == this.props.description?.length)
|
|
21
|
+
// {
|
|
22
|
+
|
|
23
|
+
// } else
|
|
24
|
+
// {
|
|
25
|
+
|
|
26
|
+
// }
|
|
20
27
|
return (
|
|
21
28
|
<NSLayout scope={this.props.scope} logo={this.props.logo} >
|
|
22
|
-
<div
|
|
29
|
+
<div>
|
|
23
30
|
<h1 className={Styles.title}>{this.props.title}</h1>
|
|
24
|
-
<p className={Styles.description}
|
|
31
|
+
<p className={Styles.description}
|
|
32
|
+
style={{ display: this.props.description == this.props.description?.length ? "none" : "block" }}>{this.props.description}</p>
|
|
25
33
|
</div>
|
|
26
34
|
{this.props.children}
|
|
27
35
|
</NSLayout>
|
|
@@ -4,7 +4,7 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSSelectBox.module.css";
|
|
5
5
|
import { Select, Space } from 'antd';
|
|
6
6
|
import type { SelectProps } from 'antd';
|
|
7
|
-
|
|
7
|
+
import IconSelectBox from '../assets/images/icon-select-box.svg';
|
|
8
8
|
|
|
9
9
|
export interface NSSelectBoxProps
|
|
10
10
|
{
|
|
@@ -38,8 +38,8 @@ export class NSSelectBox extends React.Component<NSSelectBoxProps, NSSelectBoxSt
|
|
|
38
38
|
{
|
|
39
39
|
return (
|
|
40
40
|
<div className={`${Styles.ns_input_parent} p-2`}>
|
|
41
|
+
<span className={Styles.ns_input_title}>{this.props.title}</span>
|
|
41
42
|
<Select
|
|
42
|
-
// suffixIcon={<CaretDownOutlined />}
|
|
43
43
|
mode="multiple"
|
|
44
44
|
style={{ width: '100%' }}
|
|
45
45
|
className={Styles.ns_input_select}
|
|
@@ -52,6 +52,7 @@ export class NSSelectBox extends React.Component<NSSelectBoxProps, NSSelectBoxSt
|
|
|
52
52
|
{option.data.desc}
|
|
53
53
|
</Space>
|
|
54
54
|
)}
|
|
55
|
+
suffixIcon={<img src={IconSelectBox} alt="SelectBox Icon" />}
|
|
55
56
|
/>
|
|
56
57
|
</div>
|
|
57
58
|
);
|
|
@@ -1,29 +1,65 @@
|
|
|
1
1
|
.thead th {
|
|
2
|
-
background-color:
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
background-color: rgba(20, 27, 92, 1);
|
|
3
|
+
font-size: 16px;
|
|
4
|
+
font-weight: 300;
|
|
5
|
+
padding: 16px;
|
|
6
|
+
color: white;
|
|
7
|
+
font-size: 16px;
|
|
5
8
|
}
|
|
6
9
|
|
|
7
|
-
.tbody
|
|
8
|
-
background-color: rgb(
|
|
9
|
-
color: rgba(
|
|
10
|
-
|
|
10
|
+
.tbody td {
|
|
11
|
+
background-color: rgb(173, 178, 206);
|
|
12
|
+
color: rgba(20, 27, 92, 1);
|
|
13
|
+
padding: 8px 16px;
|
|
14
|
+
font-size: 10px;
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.4);
|
|
17
|
+
|
|
11
18
|
}
|
|
12
19
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
color: rgba(255, 255, 255, 1);
|
|
16
|
-
border: none;
|
|
20
|
+
table {
|
|
21
|
+
width: 100%;
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
.project_list_container {
|
|
20
|
-
border: none;
|
|
21
25
|
text-align: left;
|
|
26
|
+
border-top-left-radius: 8px;
|
|
27
|
+
border-top-right-radius: 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.button_group_desktop {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
justify-content: end;
|
|
34
|
+
gap: 48px;
|
|
35
|
+
padding: 24px 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.button_group_desktop button {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
font-size: 16px;
|
|
43
|
+
border-radius: 8px;
|
|
44
|
+
width: 128px;
|
|
45
|
+
height: 48px;
|
|
46
|
+
gap: 10px;
|
|
47
|
+
text-decoration: none;
|
|
48
|
+
color: black;
|
|
49
|
+
background-color: transparent;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.export_button {
|
|
53
|
+
border: 1px solid rgba(255, 148, 50, 1);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.refresh_button {
|
|
57
|
+
border: 1px solid rgba(3, 119, 255, 1);
|
|
22
58
|
}
|
|
23
59
|
|
|
24
60
|
@media only screen and (max-width:600px) {
|
|
25
61
|
.project_list_container {
|
|
26
|
-
overflow:
|
|
62
|
+
overflow: auto;
|
|
27
63
|
}
|
|
28
64
|
}
|
|
29
65
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import Styles from './NSTable.module.css';
|
|
4
4
|
import { Component } from 'react';
|
|
5
5
|
|
|
6
6
|
export interface NSTableProps<RowType>
|
|
@@ -37,14 +37,14 @@ export class NSTable<RowType> extends Component<NSTableProps<RowType>, NSTableSt
|
|
|
37
37
|
{
|
|
38
38
|
let column_keys = Object.keys(this.state.columns);
|
|
39
39
|
return (
|
|
40
|
-
<div className=
|
|
41
|
-
<table className=
|
|
42
|
-
<thead className=
|
|
40
|
+
<div className={Styles.project_list_container}>
|
|
41
|
+
<table className={Styles.table}>
|
|
42
|
+
<thead className={Styles.thead}>
|
|
43
43
|
<tr>
|
|
44
44
|
{column_keys.map(column_key => <th key={column_key} scope="col">{this.state.columns[column_key]}</th>)}
|
|
45
45
|
</tr>
|
|
46
46
|
</thead>
|
|
47
|
-
<tbody className=
|
|
47
|
+
<tbody className={Styles.tbody}>
|
|
48
48
|
{
|
|
49
49
|
this.state.rows.map((row, rowIndex) =>
|
|
50
50
|
<tr key={this.props.getRowKey(row, rowIndex)}>
|
|
@@ -59,6 +59,10 @@ export class NSTable<RowType> extends Component<NSTableProps<RowType>, NSTableSt
|
|
|
59
59
|
}
|
|
60
60
|
</tbody >
|
|
61
61
|
</table>
|
|
62
|
+
<div className={Styles.button_group_desktop}>
|
|
63
|
+
<button onClick={() => window.print()} className={Styles.export_button}><img src="/assets/images/export-vector.png" alt="Export Table Data" width={13} height={16} />Export</button>
|
|
64
|
+
<button onClick={() => window.location.reload()} className={Styles.refresh_button}><img src="/assets/images/refresh-vector.png" alt="Refresh Table Contnet" width={15} height={16} />Refresh</button>
|
|
65
|
+
</div>
|
|
62
66
|
</div >
|
|
63
67
|
)
|
|
64
68
|
}
|