namirasoft-site-react 1.3.8 → 1.3.10
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/components/NSButtonGreen.d.ts +4 -7
- package/dist/components/NSButtonGreen.js.map +1 -1
- package/dist/components/NSButtonRed.d.ts +4 -7
- package/dist/components/NSButtonRed.js.map +1 -1
- package/dist/components/NSCard.js.map +1 -1
- package/dist/components/NSCard.module.css +1 -1
- package/dist/components/NSEntityBar.js +1 -1
- package/dist/components/NSEntityBar.js.map +1 -1
- package/dist/components/NSEntityBar.module.css +29 -5
- package/dist/components/NSEntityCardBackground.d.ts +4 -5
- package/dist/components/NSEntityCardBackground.js.map +1 -1
- package/dist/components/NSFooter.d.ts +4 -5
- package/dist/components/NSFooter.js.map +1 -1
- package/dist/components/NSHeader.d.ts +4 -5
- package/dist/components/NSHeader.js.map +1 -1
- package/dist/components/NSInputDate.d.ts +4 -5
- package/dist/components/NSInputDate.js.map +1 -1
- package/dist/components/NSInputDuration.d.ts +4 -5
- package/dist/components/NSInputDuration.js.map +1 -1
- package/dist/components/NSInputEmail.d.ts +4 -5
- package/dist/components/NSInputEmail.js.map +1 -1
- package/dist/components/NSInputFloat.d.ts +4 -5
- package/dist/components/NSInputFloat.js.map +1 -1
- package/dist/components/NSInputIP.d.ts +4 -5
- package/dist/components/NSInputIP.js.map +1 -1
- package/dist/components/NSInputInteger.d.ts +4 -5
- package/dist/components/NSInputInteger.js.map +1 -1
- package/dist/components/NSInputPhone.d.ts +4 -5
- package/dist/components/NSInputPhone.js.map +1 -1
- package/dist/components/NSInputPrice.d.ts +4 -5
- package/dist/components/NSInputPrice.js.map +1 -1
- package/dist/components/NSInputSearch.d.ts +4 -5
- package/dist/components/NSInputSearch.js.map +1 -1
- package/dist/components/NSInputString.d.ts +4 -5
- package/dist/components/NSInputString.js.map +1 -1
- package/dist/components/NSInputText.d.ts +4 -5
- package/dist/components/NSInputText.js.map +1 -1
- package/dist/components/NSInputTime.d.ts +4 -5
- package/dist/components/NSInputTime.js.map +1 -1
- package/dist/components/NSLayout.d.ts +2 -3
- package/dist/components/NSLayout.js.map +1 -1
- package/dist/components/NSLayoutHeroBanner.d.ts +2 -3
- package/dist/components/NSLayoutHeroBanner.js.map +1 -1
- package/dist/components/NSLayoutTitle.d.ts +2 -3
- package/dist/components/NSLayoutTitle.js.map +1 -1
- package/dist/components/NSLinkBlue.d.ts +4 -5
- package/dist/components/NSLinkBlue.js.map +1 -1
- package/dist/components/NSLinkGreen.d.ts +4 -5
- package/dist/components/NSLinkGreen.js.map +1 -1
- package/dist/components/NSLinkRed.d.ts +4 -5
- package/dist/components/NSLinkRed.js.map +1 -1
- package/dist/components/NSPagination.d.ts +4 -5
- package/dist/components/NSPagination.js.map +1 -1
- package/dist/components/NSSection.d.ts +2 -3
- package/dist/components/NSSection.js.map +1 -1
- package/dist/components/NSSectionBars.d.ts +1 -2
- package/dist/components/NSSectionBars.js.map +1 -1
- package/dist/components/NSSectionCards.d.ts +1 -2
- package/dist/components/NSSectionCards.js.map +1 -1
- package/dist/components/NSSectionTitle.d.ts +1 -2
- package/dist/components/NSSectionTitle.js.map +1 -1
- package/dist/components/NSSelectBox.d.ts +4 -5
- package/dist/components/NSSelectBox.js.map +1 -1
- package/dist/components/NSTable.d.ts +4 -5
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTitle.d.ts +1 -2
- package/dist/components/NSTitle.js.map +1 -1
- package/dist/components/NSTitle.module.css +7 -1
- package/dist/types/Background.d.ts +1 -0
- package/package.json +5 -5
- package/src/components/NSButtonGreen.tsx +4 -6
- package/src/components/NSButtonRed.tsx +4 -6
- package/src/components/NSCard.module.css +1 -1
- package/src/components/NSCard.tsx +3 -5
- package/src/components/NSEntityBar.module.css +29 -5
- package/src/components/NSEntityBar.tsx +1 -2
- package/src/components/NSEntityCardBackground.tsx +4 -5
- package/src/components/NSFooter.tsx +4 -4
- package/src/components/NSHeader.tsx +50 -51
- package/src/components/NSInputDate.tsx +6 -6
- package/src/components/NSInputDuration.tsx +5 -7
- package/src/components/NSInputEmail.tsx +5 -7
- package/src/components/NSInputFloat.tsx +4 -4
- package/src/components/NSInputIP.tsx +5 -7
- package/src/components/NSInputInteger.tsx +4 -4
- package/src/components/NSInputPhone.tsx +5 -7
- package/src/components/NSInputPrice.tsx +6 -8
- package/src/components/NSInputSearch.tsx +5 -7
- package/src/components/NSInputString.tsx +4 -4
- package/src/components/NSInputText.tsx +5 -7
- package/src/components/NSInputTime.tsx +5 -7
- package/src/components/NSLayout.tsx +2 -2
- package/src/components/NSLayoutHeroBanner.tsx +2 -2
- package/src/components/NSLayoutTitle.tsx +3 -3
- package/src/components/NSLinkBlue.tsx +4 -4
- package/src/components/NSLinkGreen.tsx +4 -4
- package/src/components/NSLinkRed.tsx +4 -4
- package/src/components/NSPagination.tsx +6 -4
- package/src/components/NSSection.tsx +3 -2
- package/src/components/NSSectionBars.tsx +1 -3
- package/src/components/NSSectionCards.tsx +1 -2
- package/src/components/NSSectionTitle.tsx +2 -1
- package/src/components/NSSelectBox.tsx +5 -7
- package/src/components/NSTable.tsx +4 -4
- package/src/components/NSTitle.module.css +7 -1
- package/src/components/NSTitle.tsx +3 -3
- package/src/types/Background.ts +2 -1
|
@@ -2,28 +2,36 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
justify-content: flex-start;
|
|
5
|
-
align-items: flex-start;
|
|
5
|
+
/* align-items: flex-start; */
|
|
6
6
|
gap: 24px;
|
|
7
7
|
padding: 24px;
|
|
8
8
|
box-shadow: 0 2px 10px 4px #00000040;
|
|
9
9
|
width: 100%;
|
|
10
10
|
max-width: 358px;
|
|
11
|
+
border-radius: 24px;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
.ns_entity_bar_image_container {
|
|
14
15
|
width: 100%;
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
.ns_entity_bar_image {
|
|
19
|
+
border-radius: 16px;
|
|
20
|
+
object-fit: cover;
|
|
21
|
+
width: 100% !important;
|
|
22
|
+
height: 100% !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
17
25
|
.ns_entity_bar_details_container {
|
|
18
26
|
text-align: start;
|
|
19
27
|
}
|
|
20
28
|
|
|
21
29
|
.ns_entity_bar_image_title {
|
|
22
30
|
color: #001664;
|
|
23
|
-
font-size:
|
|
31
|
+
font-size: 24px;
|
|
24
32
|
font-weight: 700;
|
|
25
33
|
font-family: inherit;
|
|
26
|
-
line-height:
|
|
34
|
+
line-height: 24px;
|
|
27
35
|
margin-bottom: 16px;
|
|
28
36
|
text-align: start;
|
|
29
37
|
}
|
|
@@ -37,12 +45,12 @@
|
|
|
37
45
|
text-align: justify;
|
|
38
46
|
}
|
|
39
47
|
|
|
40
|
-
@media only screen and (min-width:
|
|
48
|
+
@media only screen and (min-width: 1024px) {
|
|
41
49
|
.ns_entity_bar_item {
|
|
42
50
|
display: flex;
|
|
43
51
|
flex-direction: row;
|
|
44
52
|
justify-content: flex-start;
|
|
45
|
-
align-items: flex-start;
|
|
53
|
+
/* align-items: flex-start; */
|
|
46
54
|
gap: 48px;
|
|
47
55
|
width: 100%;
|
|
48
56
|
max-width: 1170px;
|
|
@@ -50,5 +58,21 @@
|
|
|
50
58
|
|
|
51
59
|
.ns_entity_bar_details_container {
|
|
52
60
|
padding: 24px 0;
|
|
61
|
+
width: 68%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ns_entity_bar_image_container {
|
|
65
|
+
width: 30%;
|
|
66
|
+
max-width: 310px;
|
|
53
67
|
}
|
|
68
|
+
|
|
69
|
+
.ns_entity_bar_image_title {
|
|
70
|
+
font-size: 32px;
|
|
71
|
+
line-height: 32px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ns_entity_bar_image {
|
|
75
|
+
border-radius: 8px;
|
|
76
|
+
}
|
|
77
|
+
|
|
54
78
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
|
-
|
|
5
4
|
import Styles from './NSEntityBar.module.css'
|
|
6
5
|
|
|
7
6
|
export interface NSEntityBarProps
|
|
@@ -21,7 +20,7 @@ export class NSEntityBar extends Component<NSEntityBarProps> {
|
|
|
21
20
|
return (
|
|
22
21
|
<article className={Styles.ns_entity_bar_item}>
|
|
23
22
|
<figure className={Styles.ns_entity_bar_image_container}>
|
|
24
|
-
<img src={this.props.image.src} alt={this.props.image.alt} width={310} height={240} />
|
|
23
|
+
<img className={Styles.ns_entity_bar_image} src={this.props.image.src} alt={this.props.image.alt} width={310} height={240} />
|
|
25
24
|
</figure>
|
|
26
25
|
<div className={Styles.ns_entity_bar_details_container}>
|
|
27
26
|
<h3 className={Styles.ns_entity_bar_image_title}> {this.props.title} </h3>
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
|
-
|
|
5
4
|
import Styles from './NSEntityCardBackground.module.css'
|
|
6
5
|
import { Background } from '../types/Background';
|
|
7
6
|
|
|
8
|
-
export interface
|
|
7
|
+
export interface NSEntityCardBackgroundProps
|
|
9
8
|
{
|
|
10
9
|
id?: string | number;
|
|
11
10
|
title: string;
|
|
@@ -18,14 +17,14 @@ export interface IProps
|
|
|
18
17
|
background?: Background;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
interface
|
|
20
|
+
export interface NSEntityCardBackgroundState
|
|
22
21
|
{
|
|
23
22
|
background?: Background;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
export class NSEntityCardBackground extends Component<
|
|
25
|
+
export class NSEntityCardBackground extends Component<NSEntityCardBackgroundProps, NSEntityCardBackgroundState> {
|
|
27
26
|
|
|
28
|
-
constructor(props:
|
|
27
|
+
constructor(props: NSEntityCardBackgroundProps)
|
|
29
28
|
{
|
|
30
29
|
super(props);
|
|
31
30
|
this.state = {
|
|
@@ -4,22 +4,22 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSFooter.module.css";
|
|
5
5
|
import { NamirasoftAPILinkServer, FilterLinkRow } from 'namirasoft-api-link';
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
export interface NSFooterProps
|
|
8
8
|
{
|
|
9
9
|
scope: string;
|
|
10
10
|
name: string;
|
|
11
11
|
logo: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
interface
|
|
14
|
+
export interface NSFooterState
|
|
15
15
|
{
|
|
16
16
|
filters: FilterLinkRow[];
|
|
17
17
|
selected: FilterLinkRow | null;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export class NSFooter extends React.Component<
|
|
20
|
+
export class NSFooter extends React.Component<NSFooterProps, NSFooterState>
|
|
21
21
|
{
|
|
22
|
-
constructor(props:
|
|
22
|
+
constructor(props: NSFooterProps)
|
|
23
23
|
{
|
|
24
24
|
super(props);
|
|
25
25
|
this.state = {
|
|
@@ -2,29 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSHeader.module.css";
|
|
5
|
-
|
|
6
5
|
import NavDropdown from 'react-bootstrap/NavDropdown';
|
|
7
6
|
import { NamirasoftAPILinkServer, FilterLinkRow } from 'namirasoft-api-link';
|
|
8
7
|
import { Background } from "../types/Background";
|
|
9
8
|
|
|
10
|
-
interface
|
|
9
|
+
export interface NSHeaderProps
|
|
11
10
|
{
|
|
12
11
|
scope: string;
|
|
13
12
|
name: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
logo: string;
|
|
14
|
+
account?: boolean;
|
|
15
|
+
background?: Background;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
interface
|
|
18
|
+
export interface NSHeaderState
|
|
20
19
|
{
|
|
21
20
|
filters: FilterLinkRow[];
|
|
22
21
|
selected: FilterLinkRow | null;
|
|
23
22
|
showNavbar: boolean;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
export class NSHeader extends React.Component<
|
|
27
|
-
constructor(props:
|
|
25
|
+
export class NSHeader extends React.Component<NSHeaderProps, NSHeaderState> {
|
|
26
|
+
constructor(props: NSHeaderProps)
|
|
28
27
|
{
|
|
29
28
|
super(props);
|
|
30
29
|
this.state = {
|
|
@@ -61,49 +60,49 @@ export class NSHeader extends React.Component<IProps, IState> {
|
|
|
61
60
|
}
|
|
62
61
|
override render()
|
|
63
62
|
{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
63
|
+
return (
|
|
64
|
+
<header>
|
|
65
|
+
<nav className={Styles.ns_navbar}
|
|
66
|
+
style={{
|
|
67
|
+
backgroundColor: this.props.background?.color ? this.props.background?.color : "#0000004d"
|
|
68
|
+
}}
|
|
69
|
+
>
|
|
70
|
+
<div className={`${Styles.ns_navbar_parent_content} container`}>
|
|
71
|
+
<a href="/">
|
|
72
|
+
<img
|
|
73
|
+
src={this.props.logo}
|
|
74
|
+
alt="Logo"
|
|
75
|
+
width={48}
|
|
76
|
+
height={48}
|
|
77
|
+
/>
|
|
78
|
+
</a>
|
|
79
|
+
<div className={`${Styles.ns_navbar_content} `} >
|
|
80
|
+
<div className={`${Styles.ns_navbar_elements} ${this.state.showNavbar && Styles.ns_navbar_active}`}>
|
|
81
|
+
{this.render_menu(0, null)}
|
|
82
|
+
</div>
|
|
83
|
+
{this.props.account &&
|
|
84
|
+
<div className={`${Styles.ns_navbar_login_status}`}>
|
|
85
|
+
<span className={`${Styles.ns_navbar_usersname}`}>name</span>
|
|
86
|
+
<img src='https://static.namirasoft.com/image/logout.svg'
|
|
87
|
+
alt="Exit"
|
|
88
|
+
width={20}
|
|
89
|
+
height={20}
|
|
90
|
+
/>
|
|
91
|
+
</div>
|
|
92
|
+
}
|
|
93
|
+
<div className={Styles.ns_navbar_menu_icon} onClick={this.handleShowNavbar}>
|
|
94
|
+
<img
|
|
95
|
+
src='https://static.namirasoft.com/image/menu.svg'
|
|
96
|
+
alt="Menu"
|
|
97
|
+
width={19}
|
|
98
|
+
height={17}
|
|
99
|
+
/>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</nav>
|
|
105
|
+
</header>
|
|
107
106
|
);
|
|
108
107
|
}
|
|
109
108
|
private render_menu(level: number, parent_id: number | null)
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSInputDate.module.css";
|
|
5
5
|
|
|
6
|
-
interface
|
|
6
|
+
export interface NSInputDateProps
|
|
7
7
|
{
|
|
8
8
|
title: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
interface
|
|
11
|
+
export interface NSInputDateState
|
|
12
12
|
{
|
|
13
13
|
value: string;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export class NSInputDate extends React.Component<
|
|
17
|
-
constructor(props:
|
|
16
|
+
export class NSInputDate extends React.Component<NSInputDateProps, NSInputDateState> {
|
|
17
|
+
constructor(props: NSInputDateProps)
|
|
18
18
|
{
|
|
19
19
|
super(props);
|
|
20
20
|
this.state = {
|
|
@@ -46,8 +46,8 @@ export class NSInputDate extends React.Component<IProps, IState> {
|
|
|
46
46
|
onChange={this.setValue}
|
|
47
47
|
type="date"
|
|
48
48
|
className={Styles.ns_input}
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
placeholder="YYYY/MM/DD"
|
|
50
|
+
id="ns-input-date"
|
|
51
51
|
/>
|
|
52
52
|
</div>
|
|
53
53
|
);
|
|
@@ -4,18 +4,18 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSInputDuration.module.css";
|
|
5
5
|
import IconInputDuration from '../assets/images/icon-input-duration.svg';
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
export interface NSInputDurationProps
|
|
8
8
|
{
|
|
9
9
|
title: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
interface
|
|
12
|
+
export interface NSInputDurationState
|
|
13
13
|
{
|
|
14
14
|
value: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export class NSInputDuration extends React.Component<
|
|
18
|
-
constructor(props:
|
|
17
|
+
export class NSInputDuration extends React.Component<NSInputDurationProps, NSInputDurationState> {
|
|
18
|
+
constructor(props: NSInputDurationProps)
|
|
19
19
|
{
|
|
20
20
|
super(props);
|
|
21
21
|
this.state = {
|
|
@@ -60,6 +60,4 @@ export class NSInputDuration extends React.Component<IProps, IState> {
|
|
|
60
60
|
</div>
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
}
|
|
@@ -5,19 +5,19 @@ import Styles from "./NSInputEmail.module.css";
|
|
|
5
5
|
import IconInputEmail from '../assets/images/icon-input-email.svg';
|
|
6
6
|
import Danger from '../assets/images/danger.svg';
|
|
7
7
|
|
|
8
|
-
interface
|
|
8
|
+
export interface NSInputEmailProps
|
|
9
9
|
{
|
|
10
10
|
title: string;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
interface
|
|
13
|
+
export interface NSInputEmailState
|
|
14
14
|
{
|
|
15
15
|
value: string;
|
|
16
16
|
error: boolean;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export class NSInputEmail extends React.Component<
|
|
20
|
-
constructor(props:
|
|
19
|
+
export class NSInputEmail extends React.Component<NSInputEmailProps, NSInputEmailState> {
|
|
20
|
+
constructor(props: NSInputEmailProps)
|
|
21
21
|
{
|
|
22
22
|
super(props);
|
|
23
23
|
this.state = {
|
|
@@ -87,6 +87,4 @@ export class NSInputEmail extends React.Component<IProps, IState> {
|
|
|
87
87
|
</>
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
}
|
|
@@ -4,18 +4,18 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSInputFloat.module.css";
|
|
5
5
|
import IconInputFloat from '../assets/images/icon-input-float.svg';
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
export interface NSInputFloatProps
|
|
8
8
|
{
|
|
9
9
|
title: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
interface
|
|
12
|
+
export interface NSInputFloatState
|
|
13
13
|
{
|
|
14
14
|
value: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export class NSInputFloat extends React.Component<
|
|
18
|
-
constructor(props:
|
|
17
|
+
export class NSInputFloat extends React.Component<NSInputFloatProps, NSInputFloatState> {
|
|
18
|
+
constructor(props: NSInputFloatProps)
|
|
19
19
|
{
|
|
20
20
|
super(props);
|
|
21
21
|
this.state = {
|
|
@@ -4,18 +4,18 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSInputIP.module.css";
|
|
5
5
|
import IconInputId from '../assets/images/icon-input-id.svg';
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
export interface NSInputIPProps
|
|
8
8
|
{
|
|
9
9
|
title: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
interface
|
|
12
|
+
export interface NSInputIPState
|
|
13
13
|
{
|
|
14
14
|
value: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export class NSInputIP extends React.Component<
|
|
18
|
-
constructor(props:
|
|
17
|
+
export class NSInputIP extends React.Component<NSInputIPProps, NSInputIPState> {
|
|
18
|
+
constructor(props: NSInputIPProps)
|
|
19
19
|
{
|
|
20
20
|
super(props);
|
|
21
21
|
this.state = {
|
|
@@ -60,6 +60,4 @@ export class NSInputIP extends React.Component<IProps, IState> {
|
|
|
60
60
|
</div>
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
}
|
|
@@ -4,18 +4,18 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSInputInteger.module.css";
|
|
5
5
|
import IconInputInteger from '../assets/images/icon-input-integer.svg';
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
export interface NSInputIntegerProps
|
|
8
8
|
{
|
|
9
9
|
title: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
interface
|
|
12
|
+
export interface NSInputIntegerState
|
|
13
13
|
{
|
|
14
14
|
value: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export class NSInputInteger extends React.Component<
|
|
18
|
-
constructor(props:
|
|
17
|
+
export class NSInputInteger extends React.Component<NSInputIntegerProps, NSInputIntegerState> {
|
|
18
|
+
constructor(props: NSInputIntegerProps)
|
|
19
19
|
{
|
|
20
20
|
super(props);
|
|
21
21
|
this.state = {
|
|
@@ -6,18 +6,18 @@ import IconInputPhone from '../assets/images/icon-input-phone.svg';
|
|
|
6
6
|
import PhoneInput from 'react-phone-input-2'
|
|
7
7
|
import 'react-phone-input-2/lib/style.css'
|
|
8
8
|
|
|
9
|
-
interface
|
|
9
|
+
export interface NSInputPhoneProps
|
|
10
10
|
{
|
|
11
11
|
title: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
interface
|
|
14
|
+
export interface NSInputPhoneState
|
|
15
15
|
{
|
|
16
16
|
value: string;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export class NSInputPhone extends React.Component<
|
|
20
|
-
constructor(props:
|
|
19
|
+
export class NSInputPhone extends React.Component<NSInputPhoneProps, NSInputPhoneState> {
|
|
20
|
+
constructor(props: NSInputPhoneProps)
|
|
21
21
|
{
|
|
22
22
|
super(props);
|
|
23
23
|
this.state = {
|
|
@@ -60,6 +60,4 @@ export class NSInputPhone extends React.Component<IProps, IState> {
|
|
|
60
60
|
</div>
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
}
|
|
@@ -4,20 +4,20 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSInputPrice.module.css";
|
|
5
5
|
import IconInputPrice from '../assets/images/icon-input-price.svg';
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
export interface NSInputPriceProps
|
|
8
8
|
{
|
|
9
9
|
title: string;
|
|
10
10
|
defaultValue?: number;
|
|
11
11
|
onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
interface
|
|
14
|
+
export interface NSInputPriceState
|
|
15
15
|
{
|
|
16
16
|
value: number | undefined;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export class NSInputPrice extends React.Component<
|
|
20
|
-
constructor(props:
|
|
19
|
+
export class NSInputPrice extends React.Component<NSInputPriceProps, NSInputPriceState> {
|
|
20
|
+
constructor(props: NSInputPriceProps)
|
|
21
21
|
{
|
|
22
22
|
super(props);
|
|
23
23
|
this.state = {
|
|
@@ -45,7 +45,7 @@ export class NSInputPrice extends React.Component<IProps, IState> {
|
|
|
45
45
|
{
|
|
46
46
|
return (
|
|
47
47
|
<div className={`${Styles.ns_input_parent} p-2`}>
|
|
48
|
-
|
|
48
|
+
<img
|
|
49
49
|
className={Styles.ns_input_icon}
|
|
50
50
|
src={IconInputPrice}
|
|
51
51
|
alt="icon"
|
|
@@ -63,6 +63,4 @@ export class NSInputPrice extends React.Component<IProps, IState> {
|
|
|
63
63
|
</div>
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
}
|
|
@@ -4,18 +4,18 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSInputSearch.module.css";
|
|
5
5
|
import IconInputSearch from '../assets/images/icon-input-search.svg';
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
export interface NSInputSearchProps
|
|
8
8
|
{
|
|
9
9
|
title: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
interface
|
|
12
|
+
export interface NSInputSearchState
|
|
13
13
|
{
|
|
14
14
|
value: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export class NSInputSearch extends React.Component<
|
|
18
|
-
constructor(props:
|
|
17
|
+
export class NSInputSearch extends React.Component<NSInputSearchProps, NSInputSearchState> {
|
|
18
|
+
constructor(props: NSInputSearchProps)
|
|
19
19
|
{
|
|
20
20
|
super(props);
|
|
21
21
|
this.state = {
|
|
@@ -73,6 +73,4 @@ export class NSInputSearch extends React.Component<IProps, IState> {
|
|
|
73
73
|
</div>
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
}
|
|
@@ -4,21 +4,21 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSInputString.module.css";
|
|
5
5
|
import IconInputString from '../assets/images/icon-input-string.svg';
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
export interface NSInputStringProps
|
|
8
8
|
{
|
|
9
9
|
title: string;
|
|
10
10
|
defaultValue?: string;
|
|
11
11
|
onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
interface
|
|
14
|
+
export interface NSInputStringState
|
|
15
15
|
{
|
|
16
16
|
value: string;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export class NSInputString extends React.Component<
|
|
19
|
+
export class NSInputString extends React.Component<NSInputStringProps, NSInputStringState>
|
|
20
20
|
{
|
|
21
|
-
constructor(props:
|
|
21
|
+
constructor(props: NSInputStringProps)
|
|
22
22
|
{
|
|
23
23
|
super(props);
|
|
24
24
|
this.state = {
|
|
@@ -4,20 +4,20 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSInputText.module.css";
|
|
5
5
|
import IconInputText from '../assets/images/icon-input-text.svg';
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
export interface NSInputTextProps
|
|
8
8
|
{
|
|
9
9
|
title: string;
|
|
10
10
|
defaultValue?: string;
|
|
11
11
|
onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
interface
|
|
14
|
+
export interface NSInputTextState
|
|
15
15
|
{
|
|
16
16
|
value: string;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export class NSInputText extends React.Component<
|
|
20
|
-
constructor(props:
|
|
19
|
+
export class NSInputText extends React.Component<NSInputTextProps, NSInputTextState> {
|
|
20
|
+
constructor(props: NSInputTextProps)
|
|
21
21
|
{
|
|
22
22
|
super(props);
|
|
23
23
|
this.state = {
|
|
@@ -64,6 +64,4 @@ export class NSInputText extends React.Component<IProps, IState> {
|
|
|
64
64
|
</div>
|
|
65
65
|
);
|
|
66
66
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
}
|
|
@@ -4,18 +4,18 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSInputTime.module.css";
|
|
5
5
|
import IconInputTime from '../assets/images/icon-input-time.svg';
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
export interface NSInputTimeProps
|
|
8
8
|
{
|
|
9
9
|
title: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
interface
|
|
12
|
+
export interface NSInputTimeState
|
|
13
13
|
{
|
|
14
14
|
value: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export class NSInputTime extends React.Component<
|
|
18
|
-
constructor(props:
|
|
17
|
+
export class NSInputTime extends React.Component<NSInputTimeProps, NSInputTimeState> {
|
|
18
|
+
constructor(props: NSInputTimeProps)
|
|
19
19
|
{
|
|
20
20
|
super(props);
|
|
21
21
|
this.state = {
|
|
@@ -60,6 +60,4 @@ export class NSInputTime extends React.Component<IProps, IState> {
|
|
|
60
60
|
</div>
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
}
|
|
@@ -6,14 +6,14 @@ import { ReactNode } from 'react';
|
|
|
6
6
|
import { NSHeader } from './NSHeader';
|
|
7
7
|
import { NSFooter } from './NSFooter';
|
|
8
8
|
|
|
9
|
-
interface
|
|
9
|
+
export interface NSLayoutProps
|
|
10
10
|
{
|
|
11
11
|
scope: string;
|
|
12
12
|
logo: string;
|
|
13
13
|
children: ReactNode;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export function NSLayout(props:
|
|
16
|
+
export function NSLayout(props: NSLayoutProps)
|
|
17
17
|
{
|
|
18
18
|
return (
|
|
19
19
|
<div className={Styles.ns_container}>
|