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
|
@@ -6,7 +6,7 @@ import Styles from './NSLayoutHeroBanner.module.css'
|
|
|
6
6
|
import { Link } from 'react-router-dom';
|
|
7
7
|
// import { NSHeader } from './NSHeader';
|
|
8
8
|
|
|
9
|
-
interface
|
|
9
|
+
export interface NSLayoutHeroBannerProps
|
|
10
10
|
{
|
|
11
11
|
scope: string;
|
|
12
12
|
logo: string;
|
|
@@ -17,7 +17,7 @@ interface IProps
|
|
|
17
17
|
children: ReactNode;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export function NSLayoutHeroBanner(props:
|
|
20
|
+
export function NSLayoutHeroBanner(props: NSLayoutHeroBannerProps)
|
|
21
21
|
{
|
|
22
22
|
return (
|
|
23
23
|
<NSLayout scope={props.scope} logo={props.logo} >
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Component } from 'react';
|
|
3
2
|
|
|
3
|
+
import { Component } from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { NSLayout } from './NSLayout';
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
export interface NSLayoutTitleProps
|
|
8
8
|
{
|
|
9
9
|
scope: string;
|
|
10
10
|
logo: string;
|
|
@@ -13,7 +13,7 @@ interface IProps
|
|
|
13
13
|
children: ReactNode;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export class NSLayoutTitle extends Component<
|
|
16
|
+
export class NSLayoutTitle extends Component<NSLayoutTitleProps> {
|
|
17
17
|
override render()
|
|
18
18
|
{
|
|
19
19
|
return (
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
import Styles from "./NSLinkBlue.module.css";
|
|
4
4
|
import React from "react";
|
|
5
5
|
|
|
6
|
-
interface
|
|
6
|
+
export interface NSLinkBlueProps
|
|
7
7
|
{
|
|
8
8
|
title: string;
|
|
9
9
|
href: string;
|
|
10
10
|
style?: React.CSSProperties;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
interface
|
|
13
|
+
export interface NSLinkBlueState
|
|
14
14
|
{
|
|
15
15
|
title: string;
|
|
16
16
|
href: string;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export class NSLinkBlue extends React.Component<
|
|
19
|
+
export class NSLinkBlue extends React.Component<NSLinkBlueProps, NSLinkBlueState>
|
|
20
20
|
{
|
|
21
|
-
constructor(props:
|
|
21
|
+
constructor(props: NSLinkBlueProps)
|
|
22
22
|
{
|
|
23
23
|
super(props);
|
|
24
24
|
this.state = { title: props.title, href: props.href };
|
|
@@ -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 };
|
|
@@ -3,19 +3,21 @@
|
|
|
3
3
|
import './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 }
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
.ns_title {
|
|
2
|
-
font-size:
|
|
2
|
+
font-size: 24px;
|
|
3
3
|
font-weight: 700;
|
|
4
4
|
line-height: normal;
|
|
5
5
|
color: #001664;
|
|
@@ -7,4 +7,10 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
text-align: center;
|
|
9
9
|
font-family: inherit;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@media only screen and (min-width: 1024px) {
|
|
13
|
+
.ns_title {
|
|
14
|
+
font-size: 32px;
|
|
15
|
+
}
|
|
10
16
|
}
|
|
@@ -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
|
{
|