namirasoft-site-react 1.2.15 → 1.2.17
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/NSFooter.module.css +10 -6
- package/dist/components/NSLinkGreen.js +1 -1
- package/dist/components/NSLinkGreen.js.map +1 -1
- package/dist/components/NSLinkGreen.module.css +1 -1
- package/dist/components/NSLinkRed.js +1 -1
- package/dist/components/NSLinkRed.js.map +1 -1
- package/dist/components/NSLinkRed.module.css +1 -1
- package/dist/components/NSPagination.d.ts +19 -0
- package/dist/components/NSPagination.js +22 -0
- package/dist/components/NSPagination.js.map +1 -0
- package/dist/components/NSPagination.module.css +25 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -1
- package/package.json +4 -4
- package/src/App.tsx +2 -0
- package/src/components/NSFooter.module.css +10 -6
- package/src/components/NSLinkGreen.module.css +1 -1
- package/src/components/NSLinkGreen.tsx +5 -3
- package/src/components/NSLinkRed.module.css +1 -1
- package/src/components/NSLinkRed.tsx +7 -3
- package/src/components/NSPagination.module.css +25 -0
- package/src/components/NSPagination.tsx +55 -0
- package/src/main.ts +1 -1
package/dist/App.js
CHANGED
|
@@ -20,6 +20,7 @@ import { NSButtonRed } from './components/NSButtonRed';
|
|
|
20
20
|
import { NSSelectBox } from './components/NSSelectBox';
|
|
21
21
|
import { NSLinkGreen } from './components/NSLinkGreen';
|
|
22
22
|
import { NSLinkRed } from './components/NSLinkRed';
|
|
23
|
+
import { NSPagination } from './components/NSPagination';
|
|
23
24
|
export function App() {
|
|
24
25
|
const options = [
|
|
25
26
|
{
|
|
@@ -43,6 +44,6 @@ export function App() {
|
|
|
43
44
|
desc: 'Test4',
|
|
44
45
|
},
|
|
45
46
|
];
|
|
46
|
-
return (_jsxs("div", Object.assign({ className: "App" }, { children: [_jsx(NSHeader, { scope: 'test', name: 'test', logo: '' }), _jsxs("div", Object.assign({ className: 'my-4' }, { children: [_jsx(NSInputText, { title: 'Text' }), _jsx(NSInputInteger, { title: 'Integer' }), _jsx(NSInputFloat, { title: 'Floating Point' }), _jsx(NSInputPrice, { title: 'Price' }), _jsx(NSInputDate, { title: 'Date' }), _jsx(NSInputTime, { title: 'Time' }), _jsx(NSInputDuration, { title: 'Duration' }), _jsx(NSInputString, { title: 'String' }), _jsx(NSInputIP, { title: 'IP' }), _jsx(NSInputEmail, { title: 'Email' }), _jsx(NSInputSearch, { title: 'Search' }), _jsx(NSInputPhone, { title: 'Phone' }), _jsx(NSSelectBox, { title: "t", options: options }), _jsx(NSButtonGreen, { title: 'Save', onClick: () => { } }), _jsx(NSButtonRed, { title: 'Delete', onClick: () => { } }), _jsx(NSLinkGreen, { title: "Add +", href: "/" }), _jsx(NSLinkRed, { title: "Delete", href: "/" })] })), _jsx(NSFooter, { scope: 'test', name: 'test', logo: '' })] })));
|
|
47
|
+
return (_jsxs("div", Object.assign({ className: "App" }, { children: [_jsx(NSHeader, { scope: 'test', name: 'test', logo: '' }), _jsxs("div", Object.assign({ className: 'my-4' }, { children: [_jsx(NSInputText, { title: 'Text' }), _jsx(NSInputInteger, { title: 'Integer' }), _jsx(NSInputFloat, { title: 'Floating Point' }), _jsx(NSInputPrice, { title: 'Price' }), _jsx(NSInputDate, { title: 'Date' }), _jsx(NSInputTime, { title: 'Time' }), _jsx(NSInputDuration, { title: 'Duration' }), _jsx(NSInputString, { title: 'String' }), _jsx(NSInputIP, { title: 'IP' }), _jsx(NSInputEmail, { title: 'Email' }), _jsx(NSInputSearch, { title: 'Search' }), _jsx(NSInputPhone, { title: 'Phone' }), _jsx(NSSelectBox, { title: "t", options: options }), _jsx(NSButtonGreen, { title: 'Save', onClick: () => { } }), _jsx(NSButtonRed, { title: 'Delete', onClick: () => { } }), _jsx(NSLinkGreen, { title: "Add +", href: "/" }), _jsx(NSLinkRed, { title: "Delete", href: "/" }), _jsx(NSPagination, { title: 'Pagination', pages: 10, href: '/' })] })), _jsx(NSFooter, { scope: 'test', name: 'test', logo: '' })] })));
|
|
47
48
|
}
|
|
48
49
|
//# 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,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;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AAW,IAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,GAAI,EAClD,KAAC,WAAW,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,GAAG,GAAG,EACtC,KAAC,SAAS,IAAC,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,GAAG,GAAG,EACrC,KAAC,YAAY,IAAC,KAAK,EAAC,YAAY,EAAC,KAAK,EAAE,EAAE,EAAE,IAAI,EAAC,GAAG,GAAG,KACrD,EACN,KAAC,QAAQ,IAAC,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,EAAE,GAAG,KAC3C,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ns_footer {
|
|
2
2
|
width: 100%;
|
|
3
|
-
background: rgba(
|
|
3
|
+
background: rgba(55, 255, 0, 0.3);
|
|
4
4
|
padding: 16px 0 8px 0;
|
|
5
5
|
}
|
|
6
6
|
|
|
@@ -13,20 +13,24 @@
|
|
|
13
13
|
color: #fff;
|
|
14
14
|
padding: 0;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
.ns_footer_copyright {
|
|
17
18
|
color: #fff !important;
|
|
18
19
|
text-align: center;
|
|
19
20
|
justify-content: center;
|
|
20
21
|
width: 100%;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
+
|
|
24
|
+
.ns_footer_parent_items {
|
|
23
25
|
gap: 64px;
|
|
24
26
|
}
|
|
25
|
-
|
|
27
|
+
|
|
28
|
+
.ns_footer li {
|
|
26
29
|
font-size: 12px !important;
|
|
27
30
|
font-weight: 300 !important;
|
|
28
31
|
}
|
|
29
|
-
|
|
32
|
+
|
|
33
|
+
.ns_footer h5 {
|
|
30
34
|
font-size: 16px !important;
|
|
31
35
|
font-weight: 600 !important;
|
|
32
|
-
}
|
|
36
|
+
}
|
|
@@ -14,7 +14,7 @@ export class NSLinkGreen extends React.Component {
|
|
|
14
14
|
this.setState({ href });
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (_jsx(
|
|
17
|
+
return (_jsx(Link, Object.assign({ className: "text-white text-decoration-none", to: this.state.href }, { children: _jsx("div", Object.assign({ className: Style.ns_link_green }, { children: this.state.title })) })));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=NSLinkGreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLinkGreen.js","sourceRoot":"","sources":["../../src/components/NSLinkGreen.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAcxC,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAAyB;IAE5D,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,QAAQ,CAAC,KAAa;QAElB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,IAAY;QAEhB,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,
|
|
1
|
+
{"version":3,"file":"NSLinkGreen.js","sourceRoot":"","sources":["../../src/components/NSLinkGreen.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAcxC,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAAyB;IAE5D,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,QAAQ,CAAC,KAAa;QAElB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,IAAY;QAEhB,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,KAAC,IAAI,kBAAC,SAAS,EAAC,iCAAiC,EAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,gBACjE,4BAAK,SAAS,EAAE,KAAK,CAAC,aAAa,gBAC9B,IAAI,CAAC,KAAK,CAAC,KAAK,IACf,IACH,CACV,CAAA;IACL,CAAC;CACJ"}
|
|
@@ -14,7 +14,7 @@ export class NSLinkRed extends React.Component {
|
|
|
14
14
|
this.setState({ href });
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return _jsx(
|
|
17
|
+
return (_jsx(Link, Object.assign({ className: "text-white text-decoration-none", to: this.state.href }, { children: _jsx("div", Object.assign({ className: Style.ns_link_red }, { children: this.state.title })) })));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=NSLinkRed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLinkRed.js","sourceRoot":"","sources":["../../src/components/NSLinkRed.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAcxC,MAAM,OAAO,SAAU,SAAQ,KAAK,CAAC,SAAyB;IAE1D,YAAY,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AAK,IACf,IACH,CACV,CAAA;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
title: string;
|
|
4
|
+
pages: number;
|
|
5
|
+
href: string;
|
|
6
|
+
}
|
|
7
|
+
interface IState {
|
|
8
|
+
title: string;
|
|
9
|
+
pages: number;
|
|
10
|
+
href: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class NSPagination extends Component<IProps, IState> {
|
|
13
|
+
constructor(props: IProps);
|
|
14
|
+
setTitle(title: string): void;
|
|
15
|
+
setPages(pages: number): void;
|
|
16
|
+
setHref(href: string): void;
|
|
17
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Style from './NSPagination.module.css';
|
|
3
|
+
import { Component } from 'react';
|
|
4
|
+
export class NSPagination extends Component {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super(props);
|
|
7
|
+
this.state = { title: props.title, pages: props.pages, href: props.href };
|
|
8
|
+
}
|
|
9
|
+
setTitle(title) {
|
|
10
|
+
this.setState({ title });
|
|
11
|
+
}
|
|
12
|
+
setPages(pages) {
|
|
13
|
+
this.setState({ pages });
|
|
14
|
+
}
|
|
15
|
+
setHref(href) {
|
|
16
|
+
this.setState({ href });
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return (_jsxs("div", Object.assign({ className: Style.ns_pagination_container }, { children: [_jsx("div", { children: _jsx("a", Object.assign({ href: this.props.href }, { children: _jsx("img", { src: '/assets/images/left_vector.png', alt: 'left_vector' }) })) }), _jsx("div", { children: _jsx("a", Object.assign({ href: '#', className: 'text-decoration-none text-light' }, { children: "1" })) }), _jsx("div", { children: _jsx("a", Object.assign({ href: '#', className: 'text-decoration-none text-light' }, { children: "..." })) }), _jsx("div", { children: _jsx("a", Object.assign({ href: '#', className: 'text-decoration-none text-light' }, { children: "4" })) }), _jsx("div", { children: _jsx("a", Object.assign({ href: '#', className: 'text-decoration-none text-light' }, { children: "5" })) }), _jsx("div", Object.assign({ className: 'center_number' }, { children: _jsx("a", Object.assign({ href: '#', className: 'text-decoration-none text-light' }, { children: "6" })) })), _jsx("div", { children: _jsx("a", Object.assign({ href: '#', className: 'text-decoration-none text-light' }, { children: "7" })) }), _jsx("div", { children: _jsx("a", Object.assign({ href: '#', className: 'text-decoration-none text-light' }, { children: "8" })) }), _jsx("div", { children: _jsx("a", Object.assign({ href: '#', className: 'text-decoration-none text-light' }, { children: "..." })) }), _jsx("div", { children: _jsx("a", Object.assign({ href: '#', className: 'text-decoration-none text-light' }, { children: "50" })) }), _jsx("div", { children: _jsx("a", Object.assign({ href: this.props.href }, { children: _jsx("img", { src: '/assets/images/right_vector.png', alt: 'right_vector' }) })) })] })));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=NSPagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSPagination.js","sourceRoot":"","sources":["../../src/components/NSPagination.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAelC,MAAM,OAAO,YAAa,SAAQ,SAAyB;IAEvD,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAA;IAC7E,CAAC;IACD,QAAQ,CAAC,KAAa;QAElB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,QAAQ,CAAC,KAAa;QAElB,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GAAO,IAAI,GAAM,KAC3G,CACT,CAAA;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.ns_pagination_container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
gap: 18px;
|
|
5
|
+
text-align: left;
|
|
6
|
+
padding-left: 48px;
|
|
7
|
+
font-size: 14px;
|
|
8
|
+
justify-items: center;
|
|
9
|
+
line-height: 35px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@media only screen and (max-width: 600px) {
|
|
13
|
+
.ns_paginationl_container {
|
|
14
|
+
padding-left: 36px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.center_number {
|
|
19
|
+
background-color: rgba(6, 209, 130, 1);
|
|
20
|
+
border-radius: 50px;
|
|
21
|
+
height: 32px;
|
|
22
|
+
width: 32px;
|
|
23
|
+
text-align: center;
|
|
24
|
+
align-items: center;
|
|
25
|
+
}
|
package/dist/main.d.ts
CHANGED
|
@@ -18,5 +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/NSPagination";
|
|
21
22
|
export * from "./components/NSTable";
|
|
22
23
|
export * from "./pages/NSLoginPage";
|
package/dist/main.js
CHANGED
|
@@ -18,6 +18,7 @@ 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/NSPagination";
|
|
21
22
|
export * from "./components/NSTable";
|
|
22
23
|
export * from "./pages/NSLoginPage";
|
|
23
24
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"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BAAsB,CAAC;AACrC,cAAc,qBAAqB,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.17",
|
|
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.3",
|
|
8
|
+
"@types/react": "^18.2.48",
|
|
9
9
|
"@types/react-dom": "^18.2.18",
|
|
10
|
-
"antd": "^5.13.
|
|
10
|
+
"antd": "^5.13.1",
|
|
11
11
|
"bootstrap": "^5.3.2",
|
|
12
12
|
"link-react": "^3.0.0",
|
|
13
13
|
"namirasoft-api-link": "^1.2.3",
|
package/src/App.tsx
CHANGED
|
@@ -19,6 +19,7 @@ import { NSButtonRed } from './components/NSButtonRed';
|
|
|
19
19
|
import { NSSelectBox } from './components/NSSelectBox';
|
|
20
20
|
import { NSLinkGreen } from './components/NSLinkGreen';
|
|
21
21
|
import { NSLinkRed } from './components/NSLinkRed';
|
|
22
|
+
import { NSPagination } from './components/NSPagination';
|
|
22
23
|
import type { SelectProps } from 'antd';
|
|
23
24
|
|
|
24
25
|
export function App()
|
|
@@ -67,6 +68,7 @@ export function App()
|
|
|
67
68
|
<NSButtonRed title='Delete' onClick={() => { }} />
|
|
68
69
|
<NSLinkGreen title="Add +" href="/" />
|
|
69
70
|
<NSLinkRed title="Delete" href="/" />
|
|
71
|
+
<NSPagination title='Pagination' pages={10} href='/' />
|
|
70
72
|
</div>
|
|
71
73
|
<NSFooter scope='test' name='test' logo='' />
|
|
72
74
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ns_footer {
|
|
2
2
|
width: 100%;
|
|
3
|
-
background: rgba(
|
|
3
|
+
background: rgba(55, 255, 0, 0.3);
|
|
4
4
|
padding: 16px 0 8px 0;
|
|
5
5
|
}
|
|
6
6
|
|
|
@@ -13,20 +13,24 @@
|
|
|
13
13
|
color: #fff;
|
|
14
14
|
padding: 0;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
.ns_footer_copyright {
|
|
17
18
|
color: #fff !important;
|
|
18
19
|
text-align: center;
|
|
19
20
|
justify-content: center;
|
|
20
21
|
width: 100%;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
+
|
|
24
|
+
.ns_footer_parent_items {
|
|
23
25
|
gap: 64px;
|
|
24
26
|
}
|
|
25
|
-
|
|
27
|
+
|
|
28
|
+
.ns_footer li {
|
|
26
29
|
font-size: 12px !important;
|
|
27
30
|
font-weight: 300 !important;
|
|
28
31
|
}
|
|
29
|
-
|
|
32
|
+
|
|
33
|
+
.ns_footer h5 {
|
|
30
34
|
font-size: 16px !important;
|
|
31
35
|
font-weight: 600 !important;
|
|
32
|
-
}
|
|
36
|
+
}
|
|
@@ -32,9 +32,11 @@ export class NSLinkGreen extends React.Component<IProps, IState>
|
|
|
32
32
|
override render()
|
|
33
33
|
{
|
|
34
34
|
return (
|
|
35
|
-
<
|
|
36
|
-
<
|
|
37
|
-
|
|
35
|
+
<Link className="text-white text-decoration-none" to={this.state.href}>
|
|
36
|
+
<div className={Style.ns_link_green}>
|
|
37
|
+
{this.state.title}
|
|
38
|
+
</div>
|
|
39
|
+
</Link>
|
|
38
40
|
)
|
|
39
41
|
}
|
|
40
42
|
}
|
|
@@ -31,8 +31,12 @@ export class NSLinkRed extends React.Component<IProps, IState>
|
|
|
31
31
|
}
|
|
32
32
|
override render()
|
|
33
33
|
{
|
|
34
|
-
return
|
|
35
|
-
<Link className="text-white text-decoration-none" to={this.state.href}>
|
|
36
|
-
|
|
34
|
+
return (
|
|
35
|
+
<Link className="text-white text-decoration-none" to={this.state.href}>
|
|
36
|
+
<div className={Style.ns_link_red}>
|
|
37
|
+
{this.state.title}
|
|
38
|
+
</div>
|
|
39
|
+
</Link>
|
|
40
|
+
)
|
|
37
41
|
}
|
|
38
42
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.ns_pagination_container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
gap: 18px;
|
|
5
|
+
text-align: left;
|
|
6
|
+
padding-left: 48px;
|
|
7
|
+
font-size: 14px;
|
|
8
|
+
justify-items: center;
|
|
9
|
+
line-height: 35px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@media only screen and (max-width: 600px) {
|
|
13
|
+
.ns_paginationl_container {
|
|
14
|
+
padding-left: 36px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.center_number {
|
|
19
|
+
background-color: rgba(6, 209, 130, 1);
|
|
20
|
+
border-radius: 50px;
|
|
21
|
+
height: 32px;
|
|
22
|
+
width: 32px;
|
|
23
|
+
text-align: center;
|
|
24
|
+
align-items: center;
|
|
25
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import Style from './NSPagination.module.css';
|
|
2
|
+
import { Component } from 'react';
|
|
3
|
+
|
|
4
|
+
interface IProps
|
|
5
|
+
{
|
|
6
|
+
title: string;
|
|
7
|
+
pages: number;
|
|
8
|
+
href: string;
|
|
9
|
+
}
|
|
10
|
+
interface IState
|
|
11
|
+
{
|
|
12
|
+
title: string;
|
|
13
|
+
pages: number;
|
|
14
|
+
href: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class NSPagination extends Component<IProps, IState>
|
|
18
|
+
{
|
|
19
|
+
constructor(props: IProps)
|
|
20
|
+
{
|
|
21
|
+
super(props);
|
|
22
|
+
this.state = { title: props.title, pages: props.pages, href: props.href }
|
|
23
|
+
}
|
|
24
|
+
setTitle(title: string)
|
|
25
|
+
{
|
|
26
|
+
this.setState({ title });
|
|
27
|
+
}
|
|
28
|
+
setPages(pages: number)
|
|
29
|
+
{
|
|
30
|
+
this.setState({ pages });
|
|
31
|
+
}
|
|
32
|
+
setHref(href: string)
|
|
33
|
+
{
|
|
34
|
+
this.setState({ href });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
override render()
|
|
38
|
+
{
|
|
39
|
+
return (
|
|
40
|
+
<div className={Style.ns_pagination_container}>
|
|
41
|
+
<div><a href={this.props.href}><img src='/assets/images/left_vector.png' alt='left_vector'></img></a></div>
|
|
42
|
+
<div><a href='#' className='text-decoration-none text-light'>1</a></div>
|
|
43
|
+
<div><a href='#' className='text-decoration-none text-light'>...</a></div>
|
|
44
|
+
<div><a href='#' className='text-decoration-none text-light'>4</a></div>
|
|
45
|
+
<div><a href='#' className='text-decoration-none text-light'>5</a></div>
|
|
46
|
+
<div className='center_number'><a href='#' className='text-decoration-none text-light'>6</a></div>
|
|
47
|
+
<div><a href='#' className='text-decoration-none text-light'>7</a></div>
|
|
48
|
+
<div><a href='#' className='text-decoration-none text-light'>8</a></div>
|
|
49
|
+
<div><a href='#' className='text-decoration-none text-light'>...</a></div>
|
|
50
|
+
<div><a href='#' className='text-decoration-none text-light'>50</a></div>
|
|
51
|
+
<div><a href={this.props.href}><img src='/assets/images/right_vector.png' alt='right_vector'></img></a></div>
|
|
52
|
+
</div>
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
}
|
package/src/main.ts
CHANGED
|
@@ -18,6 +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/NSPagination";
|
|
21
22
|
export * from "./components/NSTable";
|
|
22
|
-
|
|
23
23
|
export * from "./pages/NSLoginPage";
|