namirasoft-site-react 1.3.9 → 1.3.12
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/NSEntityBar.js.map +1 -1
- package/dist/components/NSEntityCardBackground.d.ts +4 -5
- package/dist/components/NSEntityCardBackground.js.map +1 -1
- package/dist/components/NSEntityCardBackground.module.css +1 -2
- 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/NSLinkBlue.module.css +2 -2
- 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 -6
- package/dist/components/NSPagination.js +9 -9
- package/dist/components/NSPagination.js.map +1 -1
- package/dist/components/NSPagination.module.css +7 -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/package.json +7 -7
- package/src/components/NSButtonGreen.tsx +4 -6
- package/src/components/NSButtonRed.tsx +4 -6
- package/src/components/NSCard.tsx +3 -5
- package/src/components/NSEntityBar.tsx +0 -1
- package/src/components/NSEntityCardBackground.module.css +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.module.css +2 -2
- 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.module.css +7 -1
- package/src/components/NSPagination.tsx +38 -12
- 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.tsx +3 -3
|
@@ -4,21 +4,21 @@ import Style from "./NSLinkGreen.module.css";
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { Link } from "react-router-dom";
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
export interface NSLinkGreenProps
|
|
8
8
|
{
|
|
9
9
|
title: string;
|
|
10
10
|
href: string;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
interface
|
|
13
|
+
export interface NSLinkGreenState
|
|
14
14
|
{
|
|
15
15
|
title: string;
|
|
16
16
|
href: string;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export class NSLinkGreen extends React.Component<
|
|
19
|
+
export class NSLinkGreen extends React.Component<NSLinkGreenProps, NSLinkGreenState>
|
|
20
20
|
{
|
|
21
|
-
constructor(props:
|
|
21
|
+
constructor(props: NSLinkGreenProps)
|
|
22
22
|
{
|
|
23
23
|
super(props);
|
|
24
24
|
this.state = { title: props.title, href: props.href };
|
|
@@ -4,21 +4,21 @@ import Style from "./NSLinkRed.module.css";
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { Link } from "react-router-dom";
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
export interface NSLinkRedProps
|
|
8
8
|
{
|
|
9
9
|
title: string;
|
|
10
10
|
href: string;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
interface
|
|
13
|
+
export interface NSLinkRedState
|
|
14
14
|
{
|
|
15
15
|
title: string;
|
|
16
16
|
href: string;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export class NSLinkRed extends React.Component<
|
|
19
|
+
export class NSLinkRed extends React.Component<NSLinkRedProps, NSLinkRedState>
|
|
20
20
|
{
|
|
21
|
-
constructor(props:
|
|
21
|
+
constructor(props: NSLinkRedProps)
|
|
22
22
|
{
|
|
23
23
|
super(props);
|
|
24
24
|
this.state = { title: props.title, href: props.href };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
.ns_pagination_container {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
|
-
gap:
|
|
4
|
+
gap: 16px;
|
|
5
5
|
text-align: left;
|
|
6
6
|
padding-left: 48px;
|
|
7
7
|
font-size: 14px;
|
|
8
8
|
justify-items: center;
|
|
9
9
|
line-height: 35px;
|
|
10
|
+
margin-top: 16px;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
@media only screen and (max-width: 600px) {
|
|
@@ -22,4 +23,9 @@
|
|
|
22
23
|
width: 32px;
|
|
23
24
|
text-align: center;
|
|
24
25
|
align-items: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ns_paginate_link {
|
|
29
|
+
color: #fff;
|
|
30
|
+
text-decoration: none;
|
|
25
31
|
}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import './NSPagination.module.css';
|
|
3
|
+
import Styles from './NSPagination.module.css';
|
|
4
4
|
import { Component } from 'react';
|
|
5
5
|
|
|
6
|
-
interface
|
|
6
|
+
export interface NSPaginationProps
|
|
7
7
|
{
|
|
8
8
|
size: number;
|
|
9
9
|
page: number;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
export interface NSPaginationState
|
|
12
13
|
{
|
|
13
14
|
size: number;
|
|
14
15
|
page: number;
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
+
|
|
18
|
+
export class NSPagination extends Component<NSPaginationState, NSPaginationProps>
|
|
17
19
|
{
|
|
18
|
-
constructor(props:
|
|
20
|
+
constructor(props: NSPaginationProps)
|
|
19
21
|
{
|
|
20
22
|
super(props);
|
|
21
23
|
this.state = { size: props.size, page: props.page }
|
|
@@ -31,23 +33,47 @@ export class NSPagination extends Component<IState, IProps>
|
|
|
31
33
|
let pushPage = (index: number) =>
|
|
32
34
|
{
|
|
33
35
|
if (index == page)
|
|
34
|
-
|
|
36
|
+
arr.push(
|
|
37
|
+
<div className={`${Styles.center_number}`}>
|
|
38
|
+
<a href='#' className={`${Styles.center_number} text-decoration-none text-light ${Styles.ns_paginate_link}`}>{index}</a>
|
|
39
|
+
</div>
|
|
40
|
+
);
|
|
35
41
|
else
|
|
36
|
-
|
|
42
|
+
arr.push(
|
|
43
|
+
<div>
|
|
44
|
+
<a href='#' className={`text-decoration-none text-light ${Styles.ns_paginate_link}`}>{index}</a>
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
37
47
|
};
|
|
38
|
-
|
|
48
|
+
arr.push(
|
|
49
|
+
<div>
|
|
50
|
+
<a href='#'> <img src='/assets/images/left-vector.png' alt='left_vector' /> </a>
|
|
51
|
+
</div>
|
|
52
|
+
);
|
|
39
53
|
pushPage(1);
|
|
40
54
|
if (page > window * 2)
|
|
41
|
-
|
|
55
|
+
arr.push(
|
|
56
|
+
<div>
|
|
57
|
+
<a href='#' className={`${Styles.ns_paginate_link}`}>...</a>
|
|
58
|
+
</div>
|
|
59
|
+
);
|
|
42
60
|
for (let i = min; i <= max; i++)
|
|
43
61
|
pushPage(i);
|
|
44
62
|
if (page <= size - window * 2)
|
|
45
|
-
|
|
63
|
+
arr.push(
|
|
64
|
+
<div>
|
|
65
|
+
<a href='#' className={`${Styles.ns_paginate_link}`}>...</a>
|
|
66
|
+
</div>
|
|
67
|
+
);
|
|
46
68
|
pushPage(size);
|
|
47
|
-
|
|
69
|
+
arr.push(
|
|
70
|
+
<div>
|
|
71
|
+
<a href='#'> <img src='/assets/images/right-vector.png' alt='right_vector'/> </a>
|
|
72
|
+
</div>
|
|
73
|
+
);
|
|
48
74
|
|
|
49
75
|
return (
|
|
50
|
-
<div className=
|
|
76
|
+
<div className={`${Styles.ns_pagination_container}`}>
|
|
51
77
|
{arr.map(x => (x))}
|
|
52
78
|
</div>
|
|
53
79
|
);
|
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
import { Component, ReactNode } from "react";
|
|
4
4
|
import Styles from './NSSection.module.css'
|
|
5
5
|
import { Background } from "../types/Background";
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
export interface NSSectionProps
|
|
7
8
|
{
|
|
8
9
|
children: ReactNode;
|
|
9
10
|
background?: Background;
|
|
10
11
|
padding_bottom?: string
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
interface NSSectionState
|
|
14
|
+
export interface NSSectionState
|
|
14
15
|
{
|
|
15
16
|
background?: Background;
|
|
16
17
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
|
-
|
|
5
4
|
import Styles from './NSSectionBars.module.css';
|
|
6
|
-
|
|
7
5
|
import { NSEntityBar, NSEntityBarProps } from './NSEntityBar';
|
|
8
6
|
import { NSSection } from './NSSection';
|
|
9
7
|
import { Background } from '../types/Background';
|
|
10
8
|
|
|
11
|
-
interface NSSectionBarsProps
|
|
9
|
+
export interface NSSectionBarsProps
|
|
12
10
|
{
|
|
13
11
|
background?: Background;
|
|
14
12
|
bars: NSEntityBarProps[]
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
|
-
|
|
5
4
|
import Styles from './NSSectionCards.module.css';
|
|
6
5
|
import { NSTitle } from './NSTitle';
|
|
7
6
|
import { NSCard, NSCardProps } from './NSCard';
|
|
@@ -9,7 +8,7 @@ import { NSSection } from './NSSection';
|
|
|
9
8
|
import { NSLinkBlue } from './NSLinkBlue';
|
|
10
9
|
import { Background } from '../types/Background';
|
|
11
10
|
|
|
12
|
-
interface NSSectionCardsProps
|
|
11
|
+
export interface NSSectionCardsProps
|
|
13
12
|
{
|
|
14
13
|
title?: {
|
|
15
14
|
text: string,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
|
|
2
3
|
import { Component, ReactNode } from 'react';
|
|
3
4
|
import { NSSection } from './NSSection';
|
|
4
5
|
import { NSTitle } from './NSTitle';
|
|
5
6
|
import { Background } from '../types/Background';
|
|
6
7
|
|
|
7
|
-
interface NSSectionTitleProps
|
|
8
|
+
export interface NSSectionTitleProps
|
|
8
9
|
{
|
|
9
10
|
title: {
|
|
10
11
|
text: string,
|
|
@@ -6,19 +6,19 @@ import { Select, Space } from 'antd';
|
|
|
6
6
|
import type { SelectProps } from 'antd';
|
|
7
7
|
// import { CaretDownOutlined } from '@ant-design/icons'
|
|
8
8
|
|
|
9
|
-
interface
|
|
9
|
+
export interface NSSelectBoxProps
|
|
10
10
|
{
|
|
11
11
|
title: string;
|
|
12
12
|
options: SelectProps['options'];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
interface
|
|
15
|
+
export interface NSSelectBoxState
|
|
16
16
|
{
|
|
17
17
|
value: string[];
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export class NSSelectBox extends React.Component<
|
|
21
|
-
constructor(props:
|
|
20
|
+
export class NSSelectBox extends React.Component<NSSelectBoxProps, NSSelectBoxState> {
|
|
21
|
+
constructor(props: NSSelectBoxProps)
|
|
22
22
|
{
|
|
23
23
|
super(props);
|
|
24
24
|
this.state = {
|
|
@@ -56,6 +56,4 @@ export class NSSelectBox extends React.Component<IProps, IState> {
|
|
|
56
56
|
</div>
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import "./NSTable.modules.css";
|
|
4
4
|
import { Component } from 'react';
|
|
5
5
|
|
|
6
|
-
interface
|
|
6
|
+
export interface NSTableProps<RowType>
|
|
7
7
|
{
|
|
8
8
|
columns: { [key: string]: string };
|
|
9
9
|
rows: RowType[];
|
|
@@ -12,15 +12,15 @@ interface IProps<RowType>
|
|
|
12
12
|
getCell: (row: RowType, column: string, rowIndex: number, columnIndex: number) => any;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
interface
|
|
15
|
+
export interface NSTableState<RowType>
|
|
16
16
|
{
|
|
17
17
|
columns: { [key: string]: string };
|
|
18
18
|
rows: RowType[];
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export class NSTable<RowType> extends Component<
|
|
21
|
+
export class NSTable<RowType> extends Component<NSTableProps<RowType>, NSTableState<RowType>>
|
|
22
22
|
{
|
|
23
|
-
constructor(props:
|
|
23
|
+
constructor(props: NSTableProps<RowType>)
|
|
24
24
|
{
|
|
25
25
|
super(props);
|
|
26
26
|
this.state = { columns: props.columns, rows: props.rows };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Component } from 'react';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
import { Component } from 'react';
|
|
5
4
|
import Styles from './NSTitle.module.css';
|
|
6
5
|
|
|
7
|
-
interface NSTitleProps
|
|
6
|
+
export interface NSTitleProps
|
|
8
7
|
{
|
|
9
8
|
title: string;
|
|
10
9
|
color?: string;
|
|
11
10
|
text_align?: string;
|
|
12
11
|
}
|
|
12
|
+
|
|
13
13
|
export class NSTitle extends Component<NSTitleProps> {
|
|
14
14
|
override render()
|
|
15
15
|
{
|