namirasoft-site-react 1.2.33 → 1.2.35
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 +1 -1
- package/dist/App.js.map +1 -1
- package/dist/components/NSButtonGreen.d.ts +2 -0
- package/dist/components/NSButtonGreen.js +1 -0
- package/dist/components/NSButtonGreen.js.map +1 -1
- package/dist/components/NSButtonRed.js +1 -0
- package/dist/components/NSButtonRed.js.map +1 -1
- package/dist/components/NSFooter.js +4 -2
- package/dist/components/NSFooter.js.map +1 -1
- package/dist/components/NSFooter.module.css +85 -20
- package/dist/components/NSHeader.js +4 -4
- package/dist/components/NSHeader.js.map +1 -1
- package/dist/components/NSHeader.module.css +58 -3
- package/dist/components/NSInputDate.js +2 -1
- package/dist/components/NSInputDate.js.map +1 -1
- package/dist/components/NSInputDate.module.css +30 -26
- package/dist/components/NSInputDuration.js +1 -0
- package/dist/components/NSInputDuration.js.map +1 -1
- package/dist/components/NSInputEmail.js +1 -0
- package/dist/components/NSInputEmail.js.map +1 -1
- package/dist/components/NSInputFloat.js +1 -0
- package/dist/components/NSInputFloat.js.map +1 -1
- package/dist/components/NSInputIP.js +1 -0
- package/dist/components/NSInputIP.js.map +1 -1
- package/dist/components/NSInputInteger.js +1 -0
- package/dist/components/NSInputInteger.js.map +1 -1
- package/dist/components/NSInputPhone.js +1 -0
- package/dist/components/NSInputPhone.js.map +1 -1
- package/dist/components/NSInputPrice.js +1 -0
- package/dist/components/NSInputPrice.js.map +1 -1
- package/dist/components/NSInputSearch.js +1 -0
- package/dist/components/NSInputSearch.js.map +1 -1
- package/dist/components/NSInputString.js +1 -0
- package/dist/components/NSInputString.js.map +1 -1
- package/dist/components/NSInputText.js +1 -0
- package/dist/components/NSInputText.js.map +1 -1
- package/dist/components/NSInputTime.js +1 -0
- package/dist/components/NSInputTime.js.map +1 -1
- package/dist/components/NSLayout.d.ts +2 -6
- package/dist/components/NSLayout.js +2 -5
- package/dist/components/NSLayout.js.map +1 -1
- package/dist/components/NSLayout.module.css +7 -0
- package/dist/components/NSLayoutHeroBanner.d.ts +11 -0
- package/dist/components/NSLayoutHeroBanner.js +6 -0
- package/dist/components/NSLayoutHeroBanner.js.map +1 -0
- package/dist/components/NSLayoutTitle.d.ts +10 -0
- package/dist/components/NSLayoutTitle.js +6 -0
- package/dist/components/NSLayoutTitle.js.map +1 -0
- package/dist/components/NSLinkGreen.js +1 -0
- package/dist/components/NSLinkGreen.js.map +1 -1
- package/dist/components/NSLinkRed.js +1 -0
- package/dist/components/NSLinkRed.js.map +1 -1
- package/dist/components/NSPagination.js +1 -0
- package/dist/components/NSPagination.js.map +1 -1
- package/dist/components/NSSelectBox.js +1 -0
- package/dist/components/NSSelectBox.js.map +1 -1
- package/dist/components/NSTable.js +1 -0
- package/dist/components/NSTable.js.map +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.js +2 -0
- package/dist/main.js.map +1 -1
- package/dist/pages/NSLoginPage.js +1 -0
- package/dist/pages/NSLoginPage.js.map +1 -1
- package/package.json +6 -6
- package/src/App.tsx +3 -2
- package/src/components/NSButtonGreen.tsx +4 -0
- package/src/components/NSButtonRed.tsx +2 -0
- package/src/components/NSFooter.module.css +85 -20
- package/src/components/NSFooter.tsx +21 -20
- package/src/components/NSHeader.module.css +58 -3
- package/src/components/NSHeader.tsx +11 -10
- package/src/components/NSInputDate.module.css +30 -26
- package/src/components/NSInputDate.tsx +4 -1
- package/src/components/NSInputDuration.tsx +2 -0
- package/src/components/NSInputEmail.tsx +2 -0
- package/src/components/NSInputFloat.tsx +2 -0
- package/src/components/NSInputIP.tsx +2 -0
- package/src/components/NSInputInteger.tsx +2 -0
- package/src/components/NSInputPhone.tsx +2 -0
- package/src/components/NSInputPrice.tsx +2 -0
- package/src/components/NSInputSearch.tsx +2 -0
- package/src/components/NSInputString.tsx +2 -0
- package/src/components/NSInputText.tsx +2 -0
- package/src/components/NSInputTime.tsx +2 -0
- package/src/components/NSLayout.module.css +7 -0
- package/src/components/NSLayout.tsx +18 -27
- package/src/components/NSLayoutHeroBanner.tsx +24 -0
- package/src/components/NSLayoutTitle.tsx +24 -0
- package/src/components/NSLinkGreen.tsx +2 -0
- package/src/components/NSLinkRed.tsx +2 -0
- package/src/components/NSPagination.tsx +2 -0
- package/src/components/NSSelectBox.tsx +2 -0
- package/src/components/NSTable.tsx +2 -0
- package/src/main.ts +2 -0
- package/src/pages/NSLoginPage.tsx +2 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
1
3
|
import React from "react";
|
|
2
4
|
import Styles from "./NSHeader.module.css";
|
|
3
|
-
import Nav from 'react-bootstrap/Nav';
|
|
4
5
|
import Menu from '../assets/images/menu.svg';
|
|
5
6
|
import Exit from '../assets/images/exit.svg';
|
|
6
7
|
import NavDropdown from 'react-bootstrap/NavDropdown';
|
|
@@ -63,18 +64,18 @@ export class NSHeader extends React.Component<IProps, IState> {
|
|
|
63
64
|
<div className={`${Styles.ns_navbar_parent_content} container`}>
|
|
64
65
|
<img
|
|
65
66
|
src={this.props.logo}
|
|
66
|
-
alt="
|
|
67
|
+
alt="Logo"
|
|
67
68
|
width={48}
|
|
68
69
|
height={48}
|
|
69
70
|
/>
|
|
70
|
-
<div className={`${Styles.ns_navbar_content}
|
|
71
|
+
<div className={`${Styles.ns_navbar_content} `} >
|
|
71
72
|
<div className={`${Styles.ns_navbar_elements} ${this.state.showNavbar && Styles.ns_navbar_active}`}>
|
|
72
73
|
{this.render_menu(0, null)}
|
|
73
74
|
</div>
|
|
74
|
-
<div className=
|
|
75
|
-
<span className={
|
|
75
|
+
<div className={`${Styles.ns_navbar_login_status}`}>
|
|
76
|
+
<span className={`${Styles.ns_navbar_usersname}`}>name</span>
|
|
76
77
|
<img src={Exit}
|
|
77
|
-
alt="
|
|
78
|
+
alt="Exit"
|
|
78
79
|
width={20}
|
|
79
80
|
height={20}
|
|
80
81
|
/>
|
|
@@ -82,7 +83,7 @@ export class NSHeader extends React.Component<IProps, IState> {
|
|
|
82
83
|
<div className={Styles.ns_navbar_menu_icon} onClick={this.handleShowNavbar}>
|
|
83
84
|
<img
|
|
84
85
|
src={Menu}
|
|
85
|
-
alt="
|
|
86
|
+
alt="Menu"
|
|
86
87
|
width={19}
|
|
87
88
|
height={17}
|
|
88
89
|
/>
|
|
@@ -96,9 +97,9 @@ export class NSHeader extends React.Component<IProps, IState> {
|
|
|
96
97
|
{
|
|
97
98
|
let fs: FilterLinkRow[] = this.state.filters?.filter(f => f.parent_id === parent_id);
|
|
98
99
|
return (
|
|
99
|
-
<
|
|
100
|
+
<div className={`me-auto nav ${Styles.ns_navbar_items_container}`} >
|
|
100
101
|
{(fs?.map(f => this.render_menuItem(level, f)))}
|
|
101
|
-
</
|
|
102
|
+
</div>
|
|
102
103
|
);
|
|
103
104
|
}
|
|
104
105
|
private render_menuItem(level: number, filter: FilterLinkRow)
|
|
@@ -128,7 +129,7 @@ export class NSHeader extends React.Component<IProps, IState> {
|
|
|
128
129
|
} else
|
|
129
130
|
{
|
|
130
131
|
return (
|
|
131
|
-
<
|
|
132
|
+
<a className={`${Styles.ns_navbar_items_link} ${level === 0 ? Styles.ns_navbar_first_level_item : Styles.ns_navbar_second_level_item}`} href={filter.link?.url}>{filter.name}</a>
|
|
132
133
|
);
|
|
133
134
|
}
|
|
134
135
|
}
|
|
@@ -1,32 +1,36 @@
|
|
|
1
|
-
.ns_parent_input{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
.ns_parent_input {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 326px;
|
|
5
|
+
color: #fff;
|
|
6
|
+
position: relative;
|
|
7
|
+
max-width: 100%;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
|
|
10
|
+
.ns_input {
|
|
11
|
+
border-radius: 8px;
|
|
12
|
+
padding: 10px 12px;
|
|
13
|
+
font-size: 16px;
|
|
14
|
+
font-weight: 400;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
|
|
17
|
+
.ns_input_icon {
|
|
18
|
+
position: absolute;
|
|
19
|
+
right: 20px;
|
|
20
|
+
top: 51%;
|
|
19
21
|
}
|
|
22
|
+
|
|
20
23
|
.ns_input_title {
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
font-size: 16px;
|
|
25
|
+
font-weight: 400;
|
|
23
26
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
|
|
28
|
+
.ns_input::-webkit-calendar-picker-indicator {
|
|
29
|
+
display: block;
|
|
30
|
+
background: url(../assets/images/icon-input-date.svg) no-repeat;
|
|
31
|
+
width: 24px;
|
|
32
|
+
height: 24px;
|
|
33
|
+
position: relative;
|
|
34
|
+
top: 3px;
|
|
35
|
+
left: 4px;
|
|
32
36
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
1
3
|
import React from "react";
|
|
2
4
|
import Styles from "./NSInputDate.module.css";
|
|
3
5
|
|
|
@@ -44,7 +46,8 @@ export class NSInputDate extends React.Component<IProps, IState> {
|
|
|
44
46
|
onChange={this.setValue}
|
|
45
47
|
type="date"
|
|
46
48
|
className={Styles.ns_input}
|
|
47
|
-
|
|
49
|
+
placeholder="YYYY/MM/DD"
|
|
50
|
+
id="ns-input-date"
|
|
48
51
|
/>
|
|
49
52
|
</div>
|
|
50
53
|
);
|
|
@@ -1,37 +1,28 @@
|
|
|
1
1
|
import Styles from './NSLayout.module.css';
|
|
2
|
-
import {
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
import { NSHeader } from './NSHeader';
|
|
4
4
|
import { NSFooter } from './NSFooter';
|
|
5
5
|
|
|
6
6
|
interface IProps
|
|
7
7
|
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
description?: string;
|
|
12
|
-
children: ReactNode;
|
|
8
|
+
scope: string;
|
|
9
|
+
logo: string;
|
|
10
|
+
children: ReactNode;
|
|
13
11
|
}
|
|
14
12
|
|
|
15
|
-
export
|
|
13
|
+
export function NSLayout(props: IProps)
|
|
16
14
|
{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</div >
|
|
31
|
-
<div className={Styles.ns_footer}>
|
|
32
|
-
<NSFooter scope={this.props.scope} name="Footer" logo={this.props.logo} />
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
15
|
+
return (
|
|
16
|
+
<div className={Styles.ns_container}>
|
|
17
|
+
<header className={Styles.ns_header}>
|
|
18
|
+
<NSHeader scope={props.scope} name="Header" logo={props.logo} />
|
|
19
|
+
</header>
|
|
20
|
+
<main className="d-flex flex-column text-white">
|
|
21
|
+
{props.children}
|
|
22
|
+
</main>
|
|
23
|
+
<footer className={Styles.ns_footer}>
|
|
24
|
+
<NSFooter scope={props.scope} name="Footer" logo={props.logo} />
|
|
25
|
+
</footer>
|
|
26
|
+
</div >
|
|
27
|
+
);
|
|
37
28
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { NSLayout } from './NSLayout';
|
|
3
|
+
|
|
4
|
+
interface IProps
|
|
5
|
+
{
|
|
6
|
+
scope: string;
|
|
7
|
+
logo: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
banner: string;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function NSLayoutHeroBanner(props: IProps)
|
|
15
|
+
{
|
|
16
|
+
return (
|
|
17
|
+
<NSLayout scope={props.scope} logo={props.logo} >
|
|
18
|
+
<div>
|
|
19
|
+
hero banner
|
|
20
|
+
</div>
|
|
21
|
+
{props.children}
|
|
22
|
+
</NSLayout>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { NSLayout } from './NSLayout';
|
|
3
|
+
|
|
4
|
+
interface IProps
|
|
5
|
+
{
|
|
6
|
+
scope: string;
|
|
7
|
+
logo: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function NSLayoutTitle(props: IProps)
|
|
14
|
+
{
|
|
15
|
+
return (
|
|
16
|
+
<NSLayout scope={props.scope} logo={props.logo} >
|
|
17
|
+
<div>
|
|
18
|
+
<h1 className='text-black text-center'>{props.title}</h1>
|
|
19
|
+
<p className='text-black page-description'>{props.description}</p>
|
|
20
|
+
</div>
|
|
21
|
+
{props.children}
|
|
22
|
+
</NSLayout>
|
|
23
|
+
);
|
|
24
|
+
}
|
package/src/main.ts
CHANGED
|
@@ -15,6 +15,8 @@ export * from "./components/NSInputString";
|
|
|
15
15
|
export * from "./components/NSInputText";
|
|
16
16
|
export * from "./components/NSInputTime";
|
|
17
17
|
export * from "./components/NSLayout";
|
|
18
|
+
export * from "./components/NSLayoutHeroBanner";
|
|
19
|
+
export * from "./components/NSLayoutTitle";
|
|
18
20
|
export * from "./components/NSSelectBox";
|
|
19
21
|
export * from "./components/NSLinkGreen";
|
|
20
22
|
export * from "./components/NSLinkRed";
|