namirasoft-site-react 1.2.39 → 1.2.40
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/.gitlab-ci.yml +14 -14
- package/config-overrides.js +65 -65
- package/dist/App.css +0 -0
- package/dist/App.js +1 -1
- package/dist/App.js.map +1 -1
- package/dist/assets/images/arrow.svg +3 -3
- package/dist/assets/images/background.svg +9 -0
- package/dist/assets/images/danger.svg +3 -3
- package/dist/assets/images/exit.svg +3 -3
- package/dist/assets/images/icon-input-date.svg +9 -9
- package/dist/assets/images/icon-input-duration.svg +9 -9
- package/dist/assets/images/icon-input-email.svg +9 -9
- package/dist/assets/images/icon-input-float.svg +9 -9
- package/dist/assets/images/icon-input-id.svg +9 -9
- package/dist/assets/images/icon-input-integer.svg +9 -9
- package/dist/assets/images/icon-input-phone.svg +9 -9
- package/dist/assets/images/icon-input-price.svg +9 -9
- package/dist/assets/images/icon-input-search.svg +4 -4
- package/dist/assets/images/icon-input-string.svg +9 -9
- package/dist/assets/images/icon-input-text.svg +9 -9
- package/dist/assets/images/icon-input-time.svg +9 -9
- package/dist/assets/images/left-vector.png +0 -0
- package/dist/assets/images/left_vector.png +0 -0
- package/dist/assets/images/logo.svg +9 -9
- package/dist/assets/images/menu.svg +3 -3
- package/dist/assets/images/namira.svg +9 -9
- package/dist/assets/images/rectangle.svg +3 -3
- package/dist/assets/images/right-vector.png +0 -0
- package/dist/assets/images/right_vector.png +0 -0
- package/dist/components/NSButtonGreen.js +1 -1
- package/dist/components/NSButtonGreen.js.map +1 -1
- package/dist/components/NSButtonRed.js +1 -1
- package/dist/components/NSButtonRed.js.map +1 -1
- package/dist/components/NSCard.js +2 -2
- package/dist/components/NSCard.js.map +1 -1
- package/dist/components/NSFooter.js +4 -4
- package/dist/components/NSFooter.js.map +1 -1
- package/dist/components/NSHeader.d.ts +1 -1
- package/dist/components/NSHeader.js +48 -43
- package/dist/components/NSHeader.js.map +1 -1
- package/dist/components/NSInputDate.js +1 -1
- package/dist/components/NSInputDate.js.map +1 -1
- package/dist/components/NSInputDuration.js +1 -1
- package/dist/components/NSInputDuration.js.map +1 -1
- package/dist/components/NSInputEmail.js +1 -1
- package/dist/components/NSInputEmail.js.map +1 -1
- package/dist/components/NSInputEmail.module.css +37 -37
- package/dist/components/NSInputFloat.js +1 -1
- package/dist/components/NSInputFloat.js.map +1 -1
- package/dist/components/NSInputFloat.module.css +25 -25
- package/dist/components/NSInputIP.js +1 -1
- package/dist/components/NSInputIP.js.map +1 -1
- package/dist/components/NSInputIP.module.css +25 -25
- package/dist/components/NSInputInteger.js +1 -1
- package/dist/components/NSInputInteger.js.map +1 -1
- package/dist/components/NSInputInteger.module.css +25 -25
- package/dist/components/NSInputPhone.js +1 -1
- package/dist/components/NSInputPhone.js.map +1 -1
- package/dist/components/NSInputPhone.module.css +32 -32
- package/dist/components/NSInputPrice.js +1 -1
- package/dist/components/NSInputPrice.js.map +1 -1
- package/dist/components/NSInputPrice.module.css +26 -26
- package/dist/components/NSInputSearch.js +1 -1
- package/dist/components/NSInputSearch.js.map +1 -1
- package/dist/components/NSInputSearch.module.css +25 -25
- package/dist/components/NSInputString.js +1 -1
- package/dist/components/NSInputString.js.map +1 -1
- package/dist/components/NSInputString.module.css +26 -26
- package/dist/components/NSInputText.js +1 -1
- package/dist/components/NSInputText.js.map +1 -1
- package/dist/components/NSInputText.module.css +27 -27
- package/dist/components/NSInputTime.js +1 -1
- package/dist/components/NSInputTime.js.map +1 -1
- package/dist/components/NSInputTime.module.css +26 -26
- package/dist/components/NSLayout.js +1 -1
- package/dist/components/NSLayout.js.map +1 -1
- package/dist/components/NSLayout.module.css +16 -16
- package/dist/components/NSLayoutHeroBanner.js +1 -1
- package/dist/components/NSLayoutHeroBanner.js.map +1 -1
- package/dist/components/NSLayoutHeroBanner.module.css +43 -43
- package/dist/components/NSLayoutTitle.js +1 -1
- package/dist/components/NSLayoutTitle.js.map +1 -1
- package/dist/components/NSLinkGreen.js +1 -1
- package/dist/components/NSLinkGreen.js.map +1 -1
- package/dist/components/NSLinkGreen.module.css +15 -15
- package/dist/components/NSLinkRed.js +1 -1
- package/dist/components/NSLinkRed.js.map +1 -1
- package/dist/components/NSLinkRed.module.css +15 -15
- package/dist/components/NSPagination.js +7 -7
- package/dist/components/NSPagination.js.map +1 -1
- package/dist/components/NSPagination.module.css +24 -24
- package/dist/components/NSParentCard.d.ts +0 -0
- package/dist/components/NSParentCard.js +2 -0
- package/dist/components/NSParentCard.js.map +1 -0
- package/dist/components/NSParentCard.module.css +34 -34
- package/dist/components/NSSelectBox.js +1 -1
- package/dist/components/NSSelectBox.js.map +1 -1
- package/dist/components/NSSelectBox.module.css +28 -28
- package/dist/components/NSTable.js +1 -1
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTable.modules.css +76 -76
- package/dist/index.css +6 -0
- package/dist/main.js.map +1 -1
- package/dist/pages/NSLoginPage.js +1 -1
- package/dist/pages/NSLoginPage.js.map +1 -1
- package/package.json +52 -52
- package/public/index.html +42 -42
- package/public/manifest.json +25 -25
- package/public/robots.txt +3 -3
- package/src/App.tsx +70 -70
- package/src/assets/images/arrow.svg +3 -3
- package/src/assets/images/danger.svg +3 -3
- package/src/assets/images/exit.svg +3 -3
- package/src/assets/images/icon-input-date.svg +9 -9
- package/src/assets/images/icon-input-duration.svg +9 -9
- package/src/assets/images/icon-input-email.svg +9 -9
- package/src/assets/images/icon-input-float.svg +9 -9
- package/src/assets/images/icon-input-id.svg +9 -9
- package/src/assets/images/icon-input-integer.svg +9 -9
- package/src/assets/images/icon-input-phone.svg +9 -9
- package/src/assets/images/icon-input-price.svg +9 -9
- package/src/assets/images/icon-input-search.svg +4 -4
- package/src/assets/images/icon-input-string.svg +9 -9
- package/src/assets/images/icon-input-text.svg +9 -9
- package/src/assets/images/icon-input-time.svg +9 -9
- package/src/assets/images/logo.svg +9 -9
- package/src/assets/images/menu.svg +3 -3
- package/src/assets/images/namira.svg +9 -9
- package/src/assets/images/rectangle.svg +3 -3
- package/src/components/NSButtonGreen.tsx +33 -33
- package/src/components/NSButtonRed.tsx +33 -33
- package/src/components/NSCard.tsx +54 -54
- package/src/components/NSFooter.tsx +123 -123
- package/src/components/NSHeader.tsx +122 -130
- package/src/components/NSInputDate.tsx +57 -57
- package/src/components/NSInputDuration.tsx +65 -65
- package/src/components/NSInputEmail.module.css +37 -37
- package/src/components/NSInputEmail.tsx +92 -92
- package/src/components/NSInputFloat.module.css +25 -25
- package/src/components/NSInputFloat.tsx +61 -61
- package/src/components/NSInputIP.module.css +25 -25
- package/src/components/NSInputIP.tsx +65 -65
- package/src/components/NSInputInteger.module.css +25 -25
- package/src/components/NSInputInteger.tsx +65 -65
- package/src/components/NSInputPhone.module.css +32 -32
- package/src/components/NSInputPhone.tsx +65 -65
- package/src/components/NSInputPrice.module.css +26 -26
- package/src/components/NSInputPrice.tsx +68 -68
- package/src/components/NSInputSearch.module.css +25 -25
- package/src/components/NSInputSearch.tsx +78 -78
- package/src/components/NSInputString.module.css +26 -26
- package/src/components/NSInputString.tsx +66 -66
- package/src/components/NSInputText.module.css +27 -27
- package/src/components/NSInputText.tsx +69 -69
- package/src/components/NSInputTime.module.css +26 -26
- package/src/components/NSInputTime.tsx +65 -65
- package/src/components/NSLayout.module.css +16 -16
- package/src/components/NSLayout.tsx +31 -29
- package/src/components/NSLayoutHeroBanner.module.css +43 -43
- package/src/components/NSLayoutHeroBanner.tsx +85 -85
- package/src/components/NSLayoutTitle.tsx +25 -25
- package/src/components/NSLinkGreen.module.css +15 -15
- package/src/components/NSLinkGreen.tsx +43 -43
- package/src/components/NSLinkRed.module.css +15 -15
- package/src/components/NSLinkRed.tsx +43 -43
- package/src/components/NSPagination.module.css +24 -24
- package/src/components/NSPagination.tsx +54 -54
- package/src/components/NSParentCard.module.css +34 -34
- package/src/components/NSParentCard.tsx.temp +58 -58
- package/src/components/NSSelectBox.module.css +28 -28
- package/src/components/NSSelectBox.tsx +62 -62
- package/src/components/NSTable.modules.css +76 -76
- package/src/components/NSTable.tsx +64 -64
- package/src/index.tsx +7 -7
- package/src/main.ts +25 -26
- package/src/pages/NSLoginPage.tsx +39 -39
- package/src/react-app-env.d.ts +1 -1
- package/tsconfig.json +37 -37
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
.ns_link_red {
|
|
2
|
-
display: flex;
|
|
3
|
-
border-radius: 8px;
|
|
4
|
-
background-color: rgb(265, 63, 63, 1);
|
|
5
|
-
color: #ffffff;
|
|
6
|
-
border: 0;
|
|
7
|
-
box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
|
|
8
|
-
font-size: 16px;
|
|
9
|
-
text-decoration: none;
|
|
10
|
-
width: 358px;
|
|
11
|
-
height: 48px;
|
|
12
|
-
text-align: center;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
font-weight: 400;
|
|
1
|
+
.ns_link_red {
|
|
2
|
+
display: flex;
|
|
3
|
+
border-radius: 8px;
|
|
4
|
+
background-color: rgb(265, 63, 63, 1);
|
|
5
|
+
color: #ffffff;
|
|
6
|
+
border: 0;
|
|
7
|
+
box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
|
|
8
|
+
font-size: 16px;
|
|
9
|
+
text-decoration: none;
|
|
10
|
+
width: 358px;
|
|
11
|
+
height: 48px;
|
|
12
|
+
text-align: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
font-weight: 400;
|
|
16
16
|
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import Style from "./NSLinkRed.module.css";
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { Link } from "react-router-dom";
|
|
6
|
-
|
|
7
|
-
interface IProps
|
|
8
|
-
{
|
|
9
|
-
title: string;
|
|
10
|
-
href: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface IState
|
|
14
|
-
{
|
|
15
|
-
title: string;
|
|
16
|
-
href: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export class NSLinkRed extends React.Component<IProps, IState>
|
|
20
|
-
{
|
|
21
|
-
constructor(props: IProps)
|
|
22
|
-
{
|
|
23
|
-
super(props);
|
|
24
|
-
this.state = { title: props.title, href: props.href };
|
|
25
|
-
}
|
|
26
|
-
setTitle(title: string)
|
|
27
|
-
{
|
|
28
|
-
this.setState({ title });
|
|
29
|
-
}
|
|
30
|
-
setHRef(href: string)
|
|
31
|
-
{
|
|
32
|
-
this.setState({ href });
|
|
33
|
-
}
|
|
34
|
-
override render()
|
|
35
|
-
{
|
|
36
|
-
return (
|
|
37
|
-
<Link className="text-white text-decoration-none" to={this.state.href}>
|
|
38
|
-
<div className={Style.ns_link_red}>
|
|
39
|
-
{this.state.title}
|
|
40
|
-
</div>
|
|
41
|
-
</Link>
|
|
42
|
-
)
|
|
43
|
-
}
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import Style from "./NSLinkRed.module.css";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Link } from "react-router-dom";
|
|
6
|
+
|
|
7
|
+
interface IProps
|
|
8
|
+
{
|
|
9
|
+
title: string;
|
|
10
|
+
href: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface IState
|
|
14
|
+
{
|
|
15
|
+
title: string;
|
|
16
|
+
href: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class NSLinkRed extends React.Component<IProps, IState>
|
|
20
|
+
{
|
|
21
|
+
constructor(props: IProps)
|
|
22
|
+
{
|
|
23
|
+
super(props);
|
|
24
|
+
this.state = { title: props.title, href: props.href };
|
|
25
|
+
}
|
|
26
|
+
setTitle(title: string)
|
|
27
|
+
{
|
|
28
|
+
this.setState({ title });
|
|
29
|
+
}
|
|
30
|
+
setHRef(href: string)
|
|
31
|
+
{
|
|
32
|
+
this.setState({ href });
|
|
33
|
+
}
|
|
34
|
+
override render()
|
|
35
|
+
{
|
|
36
|
+
return (
|
|
37
|
+
<Link className="text-white text-decoration-none" to={this.state.href}>
|
|
38
|
+
<div className={Style.ns_link_red}>
|
|
39
|
+
{this.state.title}
|
|
40
|
+
</div>
|
|
41
|
+
</Link>
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
44
|
}
|
|
@@ -1,25 +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;
|
|
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
25
|
}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import './NSPagination.module.css';
|
|
4
|
-
import { Component } from 'react';
|
|
5
|
-
|
|
6
|
-
interface IProps
|
|
7
|
-
{
|
|
8
|
-
size: number;
|
|
9
|
-
page: number;
|
|
10
|
-
}
|
|
11
|
-
interface IState
|
|
12
|
-
{
|
|
13
|
-
size: number;
|
|
14
|
-
page: number;
|
|
15
|
-
}
|
|
16
|
-
export class NSPagination extends Component<IState, IProps>
|
|
17
|
-
{
|
|
18
|
-
constructor(props: IProps)
|
|
19
|
-
{
|
|
20
|
-
super(props);
|
|
21
|
-
this.state = { size: props.size, page: props.page }
|
|
22
|
-
}
|
|
23
|
-
override render()
|
|
24
|
-
{
|
|
25
|
-
let page = this.props.page;
|
|
26
|
-
let size = this.props.size;
|
|
27
|
-
let window = 2;
|
|
28
|
-
let min = Math.max(2, page - window);
|
|
29
|
-
let max = Math.min(page + window, size - 1);
|
|
30
|
-
let arr = [];
|
|
31
|
-
let pushPage = (index: number) =>
|
|
32
|
-
{
|
|
33
|
-
if (index == page)
|
|
34
|
-
arr.push(<div className='center_number'><a href='#' className='center_number text-decoration-none text-light'>{index}</a></div>);
|
|
35
|
-
else
|
|
36
|
-
arr.push(<div><a href='#' className='text-decoration-none text-light'>{index}</a></div>);
|
|
37
|
-
};
|
|
38
|
-
arr.push(<div><a href='#'><img src='/assets/images/left-vector.png' alt='left_vector'></img></a></div>);
|
|
39
|
-
pushPage(1);
|
|
40
|
-
if (page > window * 2)
|
|
41
|
-
arr.push(<div><a href='#' className='text-decoration-none text-light'>...</a></div>);
|
|
42
|
-
for (let i = min; i <= max; i++)
|
|
43
|
-
pushPage(i);
|
|
44
|
-
if (page <= size - window * 2)
|
|
45
|
-
arr.push(<div><a href='#' className='text-decoration-none text-light'>...</a></div>);
|
|
46
|
-
pushPage(size);
|
|
47
|
-
arr.push(<div><a href='#'><img src='/assets/images/right-vector.png' alt='right_vector'></img></a></div>);
|
|
48
|
-
|
|
49
|
-
return (
|
|
50
|
-
<div className="ns_pagination_container d-flex flex-row gap-3 mt-3">
|
|
51
|
-
{arr.map(x => (x))}
|
|
52
|
-
</div>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import './NSPagination.module.css';
|
|
4
|
+
import { Component } from 'react';
|
|
5
|
+
|
|
6
|
+
interface IProps
|
|
7
|
+
{
|
|
8
|
+
size: number;
|
|
9
|
+
page: number;
|
|
10
|
+
}
|
|
11
|
+
interface IState
|
|
12
|
+
{
|
|
13
|
+
size: number;
|
|
14
|
+
page: number;
|
|
15
|
+
}
|
|
16
|
+
export class NSPagination extends Component<IState, IProps>
|
|
17
|
+
{
|
|
18
|
+
constructor(props: IProps)
|
|
19
|
+
{
|
|
20
|
+
super(props);
|
|
21
|
+
this.state = { size: props.size, page: props.page }
|
|
22
|
+
}
|
|
23
|
+
override render()
|
|
24
|
+
{
|
|
25
|
+
let page = this.props.page;
|
|
26
|
+
let size = this.props.size;
|
|
27
|
+
let window = 2;
|
|
28
|
+
let min = Math.max(2, page - window);
|
|
29
|
+
let max = Math.min(page + window, size - 1);
|
|
30
|
+
let arr = [];
|
|
31
|
+
let pushPage = (index: number) =>
|
|
32
|
+
{
|
|
33
|
+
if (index == page)
|
|
34
|
+
arr.push(<div className='center_number'><a href='#' className='center_number text-decoration-none text-light'>{index}</a></div>);
|
|
35
|
+
else
|
|
36
|
+
arr.push(<div><a href='#' className='text-decoration-none text-light'>{index}</a></div>);
|
|
37
|
+
};
|
|
38
|
+
arr.push(<div><a href='#'><img src='/assets/images/left-vector.png' alt='left_vector'></img></a></div>);
|
|
39
|
+
pushPage(1);
|
|
40
|
+
if (page > window * 2)
|
|
41
|
+
arr.push(<div><a href='#' className='text-decoration-none text-light'>...</a></div>);
|
|
42
|
+
for (let i = min; i <= max; i++)
|
|
43
|
+
pushPage(i);
|
|
44
|
+
if (page <= size - window * 2)
|
|
45
|
+
arr.push(<div><a href='#' className='text-decoration-none text-light'>...</a></div>);
|
|
46
|
+
pushPage(size);
|
|
47
|
+
arr.push(<div><a href='#'><img src='/assets/images/right-vector.png' alt='right_vector'></img></a></div>);
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<div className="ns_pagination_container d-flex flex-row gap-3 mt-3">
|
|
51
|
+
{arr.map(x => (x))}
|
|
52
|
+
</div>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
55
|
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/* .section_card_container {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
align-items: center;
|
|
6
|
-
padding: 48px 0;
|
|
7
|
-
gap: 48px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.section_card_details>h2 {
|
|
11
|
-
color: inherit;
|
|
12
|
-
font-size: 32px;
|
|
13
|
-
font-weight: 700;
|
|
14
|
-
line-height: normal;
|
|
15
|
-
font-style: normal;
|
|
16
|
-
text-align: center;
|
|
17
|
-
margin-bottom: 16px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.section_card_details>p {
|
|
21
|
-
color: inherit;
|
|
22
|
-
font-size: 16px;
|
|
23
|
-
font-weight: 400;
|
|
24
|
-
line-height: normal;
|
|
25
|
-
font-style: normal;
|
|
26
|
-
margin-bottom: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.ns_card_container {
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: row;
|
|
32
|
-
flex-wrap: wrap;
|
|
33
|
-
justify-content: space-between;
|
|
34
|
-
gap: 24px;
|
|
1
|
+
/* .section_card_container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
padding: 48px 0;
|
|
7
|
+
gap: 48px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.section_card_details>h2 {
|
|
11
|
+
color: inherit;
|
|
12
|
+
font-size: 32px;
|
|
13
|
+
font-weight: 700;
|
|
14
|
+
line-height: normal;
|
|
15
|
+
font-style: normal;
|
|
16
|
+
text-align: center;
|
|
17
|
+
margin-bottom: 16px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.section_card_details>p {
|
|
21
|
+
color: inherit;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
line-height: normal;
|
|
25
|
+
font-style: normal;
|
|
26
|
+
margin-bottom: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.ns_card_container {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
flex-wrap: wrap;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
gap: 24px;
|
|
35
35
|
} */
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
//// "use client"
|
|
2
|
-
|
|
3
|
-
// import { Component } from 'react';
|
|
4
|
-
// import Styles from './NSParentCard.module.css';
|
|
5
|
-
|
|
6
|
-
// interface IPropsCard
|
|
7
|
-
// {
|
|
8
|
-
// title: string,
|
|
9
|
-
// src: string,
|
|
10
|
-
// alt?: string | undefined,
|
|
11
|
-
// description?: string | undefined,
|
|
12
|
-
// has_link: boolean,
|
|
13
|
-
// href?: string | undefined,
|
|
14
|
-
// target?: string | undefined
|
|
15
|
-
// link_text?: string,
|
|
16
|
-
// }
|
|
17
|
-
|
|
18
|
-
// interface IProps
|
|
19
|
-
// {
|
|
20
|
-
// background?: {
|
|
21
|
-
// backgroundColor?: string,
|
|
22
|
-
// backgroundImage?: string,
|
|
23
|
-
// },
|
|
24
|
-
// section_title: string,
|
|
25
|
-
// section_description?: string | undefined,
|
|
26
|
-
// card: IPropsCard,
|
|
27
|
-
// cards: IPropsCard[]
|
|
28
|
-
// }
|
|
29
|
-
|
|
30
|
-
// interface IState
|
|
31
|
-
// { }
|
|
32
|
-
|
|
33
|
-
// export class NSParentCard extends Component<IProps, IState> {
|
|
34
|
-
// override render()
|
|
35
|
-
// {
|
|
36
|
-
// return (
|
|
37
|
-
|
|
38
|
-
// <>
|
|
39
|
-
// <section className={` ${Styles.section_card_container}`}>
|
|
40
|
-
// <div className="ns-section-whitespace">
|
|
41
|
-
// <div className="container mx-auto px-4 lg:px-12">
|
|
42
|
-
// <div className={Styles.section_card_details}>
|
|
43
|
-
// <h2> {this.props.section_title} </h2>
|
|
44
|
-
// <p> {this.props.section_description} </p>
|
|
45
|
-
// </div>
|
|
46
|
-
// </div>
|
|
47
|
-
// </div>
|
|
48
|
-
// </section>
|
|
49
|
-
|
|
50
|
-
// <section className={Styles.section_card_container} style={this.props.background} >
|
|
51
|
-
// <div className={Styles.section_card_details}>
|
|
52
|
-
// <h2> {this.props.section_title} </h2>
|
|
53
|
-
// <p> {this.props.section_description} </p>
|
|
54
|
-
// </div>
|
|
55
|
-
// </section>
|
|
56
|
-
// </>
|
|
57
|
-
// );
|
|
58
|
-
// }
|
|
1
|
+
//// "use client"
|
|
2
|
+
|
|
3
|
+
// import { Component } from 'react';
|
|
4
|
+
// import Styles from './NSParentCard.module.css';
|
|
5
|
+
|
|
6
|
+
// interface IPropsCard
|
|
7
|
+
// {
|
|
8
|
+
// title: string,
|
|
9
|
+
// src: string,
|
|
10
|
+
// alt?: string | undefined,
|
|
11
|
+
// description?: string | undefined,
|
|
12
|
+
// has_link: boolean,
|
|
13
|
+
// href?: string | undefined,
|
|
14
|
+
// target?: string | undefined
|
|
15
|
+
// link_text?: string,
|
|
16
|
+
// }
|
|
17
|
+
|
|
18
|
+
// interface IProps
|
|
19
|
+
// {
|
|
20
|
+
// background?: {
|
|
21
|
+
// backgroundColor?: string,
|
|
22
|
+
// backgroundImage?: string,
|
|
23
|
+
// },
|
|
24
|
+
// section_title: string,
|
|
25
|
+
// section_description?: string | undefined,
|
|
26
|
+
// card: IPropsCard,
|
|
27
|
+
// cards: IPropsCard[]
|
|
28
|
+
// }
|
|
29
|
+
|
|
30
|
+
// interface IState
|
|
31
|
+
// { }
|
|
32
|
+
|
|
33
|
+
// export class NSParentCard extends Component<IProps, IState> {
|
|
34
|
+
// override render()
|
|
35
|
+
// {
|
|
36
|
+
// return (
|
|
37
|
+
|
|
38
|
+
// <>
|
|
39
|
+
// <section className={` ${Styles.section_card_container}`}>
|
|
40
|
+
// <div className="ns-section-whitespace">
|
|
41
|
+
// <div className="container mx-auto px-4 lg:px-12">
|
|
42
|
+
// <div className={Styles.section_card_details}>
|
|
43
|
+
// <h2> {this.props.section_title} </h2>
|
|
44
|
+
// <p> {this.props.section_description} </p>
|
|
45
|
+
// </div>
|
|
46
|
+
// </div>
|
|
47
|
+
// </div>
|
|
48
|
+
// </section>
|
|
49
|
+
|
|
50
|
+
// <section className={Styles.section_card_container} style={this.props.background} >
|
|
51
|
+
// <div className={Styles.section_card_details}>
|
|
52
|
+
// <h2> {this.props.section_title} </h2>
|
|
53
|
+
// <p> {this.props.section_description} </p>
|
|
54
|
+
// </div>
|
|
55
|
+
// </section>
|
|
56
|
+
// </>
|
|
57
|
+
// );
|
|
58
|
+
// }
|
|
59
59
|
// };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
.ns_input_parent {
|
|
2
|
-
width: 326px;
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.ns_input_select {
|
|
7
|
-
height: 48px;
|
|
8
|
-
width: 304px !important;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.ns_input_select span span svg path {
|
|
12
|
-
height: 24px !important;
|
|
13
|
-
width: 24px !important;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.ns_input_select span span svg {
|
|
17
|
-
height: 24px !important;
|
|
18
|
-
width: 24px !important;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ns_input_select span span span svg path {
|
|
22
|
-
height: 12px !important;
|
|
23
|
-
width: 12px !important;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.ns_input_select span span span svg {
|
|
27
|
-
height: 12px !important;
|
|
28
|
-
width: 12px !important;
|
|
1
|
+
.ns_input_parent {
|
|
2
|
+
width: 326px;
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.ns_input_select {
|
|
7
|
+
height: 48px;
|
|
8
|
+
width: 304px !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ns_input_select span span svg path {
|
|
12
|
+
height: 24px !important;
|
|
13
|
+
width: 24px !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ns_input_select span span svg {
|
|
17
|
+
height: 24px !important;
|
|
18
|
+
width: 24px !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ns_input_select span span span svg path {
|
|
22
|
+
height: 12px !important;
|
|
23
|
+
width: 12px !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ns_input_select span span span svg {
|
|
27
|
+
height: 12px !important;
|
|
28
|
+
width: 12px !important;
|
|
29
29
|
}
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import React from "react";
|
|
4
|
-
import Styles from "./NSSelectBox.module.css";
|
|
5
|
-
import { Select, Space } from 'antd';
|
|
6
|
-
import type { SelectProps } from 'antd';
|
|
7
|
-
import { CaretDownOutlined } from '@ant-design/icons'
|
|
8
|
-
|
|
9
|
-
interface IProps
|
|
10
|
-
{
|
|
11
|
-
title: string;
|
|
12
|
-
options: SelectProps['options'];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface IState
|
|
16
|
-
{
|
|
17
|
-
value: string[];
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export class NSSelectBox extends React.Component<IProps, IState> {
|
|
21
|
-
constructor(props: IProps)
|
|
22
|
-
{
|
|
23
|
-
super(props);
|
|
24
|
-
this.state = {
|
|
25
|
-
value: [],
|
|
26
|
-
};
|
|
27
|
-
this.setValue = this.setValue.bind(this);
|
|
28
|
-
}
|
|
29
|
-
setValue(value: string[]): void
|
|
30
|
-
{
|
|
31
|
-
this.setState({ value });
|
|
32
|
-
}
|
|
33
|
-
getValue(): string[]
|
|
34
|
-
{
|
|
35
|
-
return this.state.value;
|
|
36
|
-
}
|
|
37
|
-
override render()
|
|
38
|
-
{
|
|
39
|
-
|
|
40
|
-
return (
|
|
41
|
-
<div className={`${Styles.ns_input_parent} p-2`}>
|
|
42
|
-
<Select
|
|
43
|
-
suffixIcon={<CaretDownOutlined />}
|
|
44
|
-
mode="multiple"
|
|
45
|
-
style={{ width: '100%' }}
|
|
46
|
-
className={Styles.ns_input_select}
|
|
47
|
-
placeholder="Combo Box"
|
|
48
|
-
onChange={this.setValue}
|
|
49
|
-
optionLabelProp="label"
|
|
50
|
-
options={this.props.options}
|
|
51
|
-
optionRender={(option) => (
|
|
52
|
-
<Space className={Styles.ns_input_select_option}>
|
|
53
|
-
{option.data.desc}
|
|
54
|
-
</Space>
|
|
55
|
-
)}
|
|
56
|
-
/>
|
|
57
|
-
</div>
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import Styles from "./NSSelectBox.module.css";
|
|
5
|
+
import { Select, Space } from 'antd';
|
|
6
|
+
import type { SelectProps } from 'antd';
|
|
7
|
+
import { CaretDownOutlined } from '@ant-design/icons'
|
|
8
|
+
|
|
9
|
+
interface IProps
|
|
10
|
+
{
|
|
11
|
+
title: string;
|
|
12
|
+
options: SelectProps['options'];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface IState
|
|
16
|
+
{
|
|
17
|
+
value: string[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class NSSelectBox extends React.Component<IProps, IState> {
|
|
21
|
+
constructor(props: IProps)
|
|
22
|
+
{
|
|
23
|
+
super(props);
|
|
24
|
+
this.state = {
|
|
25
|
+
value: [],
|
|
26
|
+
};
|
|
27
|
+
this.setValue = this.setValue.bind(this);
|
|
28
|
+
}
|
|
29
|
+
setValue(value: string[]): void
|
|
30
|
+
{
|
|
31
|
+
this.setState({ value });
|
|
32
|
+
}
|
|
33
|
+
getValue(): string[]
|
|
34
|
+
{
|
|
35
|
+
return this.state.value;
|
|
36
|
+
}
|
|
37
|
+
override render()
|
|
38
|
+
{
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<div className={`${Styles.ns_input_parent} p-2`}>
|
|
42
|
+
<Select
|
|
43
|
+
suffixIcon={<CaretDownOutlined />}
|
|
44
|
+
mode="multiple"
|
|
45
|
+
style={{ width: '100%' }}
|
|
46
|
+
className={Styles.ns_input_select}
|
|
47
|
+
placeholder="Combo Box"
|
|
48
|
+
onChange={this.setValue}
|
|
49
|
+
optionLabelProp="label"
|
|
50
|
+
options={this.props.options}
|
|
51
|
+
optionRender={(option) => (
|
|
52
|
+
<Space className={Styles.ns_input_select_option}>
|
|
53
|
+
{option.data.desc}
|
|
54
|
+
</Space>
|
|
55
|
+
)}
|
|
56
|
+
/>
|
|
57
|
+
</div>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|