namirasoft-site-react 1.3.60 → 1.3.61
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/NSButton.d.ts +0 -9
- package/dist/components/NSButton.js +2 -9
- package/dist/components/NSButton.js.map +1 -1
- package/dist/components/NSButton.module.css +8 -7
- package/dist/components/NSButtonBlue.d.ts +2 -14
- package/dist/components/NSButtonBlue.js +6 -13
- package/dist/components/NSButtonBlue.js.map +1 -1
- package/dist/components/NSButtonBlue.module.css +0 -8
- package/dist/components/NSButtonGreen.d.ts +2 -14
- package/dist/components/NSButtonGreen.js +6 -13
- package/dist/components/NSButtonGreen.js.map +1 -1
- package/dist/components/NSButtonGreen.module.css +0 -8
- package/dist/components/NSButtonRed.d.ts +2 -14
- package/dist/components/NSButtonRed.js +7 -14
- package/dist/components/NSButtonRed.js.map +1 -1
- package/dist/components/NSButtonRed.module.css +0 -8
- package/dist/components/NSCard.d.ts +3 -9
- package/dist/components/NSCard.js +12 -16
- package/dist/components/NSCard.js.map +1 -1
- package/dist/components/NSCopyToClipboard.d.ts +1 -8
- package/dist/components/NSCopyToClipboard.js +6 -14
- package/dist/components/NSCopyToClipboard.js.map +1 -1
- package/dist/components/NSCopyToClipboard.module.css +1 -1
- package/dist/components/NSEntityBar.d.ts +3 -9
- package/dist/components/NSEntityBar.js +3 -6
- package/dist/components/NSEntityBar.js.map +1 -1
- package/dist/components/NSEntityBar.module.css +1 -1
- package/dist/components/NSEntityCardBackground.d.ts +1 -11
- package/dist/components/NSEntityCardBackground.js +4 -23
- package/dist/components/NSEntityCardBackground.js.map +1 -1
- package/dist/components/NSFooter.js +2 -1
- package/dist/components/NSFooter.js.map +1 -1
- package/dist/components/NSHeader.d.ts +1 -2
- package/dist/components/NSHeader.js +9 -4
- 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/NSLayout.js +2 -2
- package/dist/components/NSLayout.js.map +1 -1
- package/dist/components/NSLayoutHeroBanner.js.map +1 -1
- package/dist/components/NSLinkBlue.d.ts +1 -9
- package/dist/components/NSLinkBlue.js +3 -17
- package/dist/components/NSLinkBlue.js.map +1 -1
- package/dist/components/NSLoading.d.ts +1 -6
- package/dist/components/NSLoading.js +2 -6
- package/dist/components/NSLoading.js.map +1 -1
- package/dist/components/NSNotification.js +2 -2
- package/dist/components/NSNotification.js.map +1 -1
- package/dist/components/NSPagination.d.ts +1 -1
- package/dist/components/NSPagination.js +2 -1
- package/dist/components/NSPagination.js.map +1 -1
- package/dist/components/NSPanel.d.ts +2 -7
- package/dist/components/NSPanel.js +3 -9
- package/dist/components/NSPanel.js.map +1 -1
- package/dist/components/NSSection.d.ts +2 -10
- package/dist/components/NSSection.js +6 -25
- package/dist/components/NSSection.js.map +1 -1
- package/dist/components/NSSectionBars.d.ts +1 -6
- package/dist/components/NSSectionBars.js +4 -8
- package/dist/components/NSSectionBars.js.map +1 -1
- package/dist/components/NSSectionCards.d.ts +5 -14
- package/dist/components/NSSectionCards.js +7 -11
- package/dist/components/NSSectionCards.js.map +1 -1
- package/dist/components/NSSectionTitle.d.ts +4 -10
- package/dist/components/NSSectionTitle.js +2 -6
- package/dist/components/NSSectionTitle.js.map +1 -1
- package/dist/components/NSSpace.js +2 -1
- package/dist/components/NSSpace.js.map +1 -1
- package/dist/components/NSTable.js +2 -1
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTitle.d.ts +1 -6
- package/dist/components/NSTitle.js +3 -6
- package/dist/components/NSTitle.js.map +1 -1
- package/dist/main.d.ts +0 -1
- package/dist/main.js +0 -1
- package/dist/main.js.map +1 -1
- package/dist/pages/NSLoginPage.d.ts +2 -3
- package/dist/pages/NSLoginPage.js +4 -3
- package/dist/pages/NSLoginPage.js.map +1 -1
- package/dist/props/BaseComponentProps.d.ts +1 -0
- package/package.json +1 -2
- package/src/App.tsx +1 -1
- package/src/components/NSButton.module.css +8 -7
- package/src/components/NSButton.tsx +6 -24
- package/src/components/NSButtonBlue.module.css +0 -8
- package/src/components/NSButtonBlue.tsx +7 -29
- package/src/components/NSButtonGreen.module.css +0 -8
- package/src/components/NSButtonGreen.tsx +7 -29
- package/src/components/NSButtonRed.module.css +0 -8
- package/src/components/NSButtonRed.tsx +8 -30
- package/src/components/NSCard.tsx +49 -56
- package/src/components/NSCopyToClipboard.module.css +1 -1
- package/src/components/NSCopyToClipboard.tsx +21 -35
- package/src/components/NSEntityBar.module.css +1 -1
- package/src/components/NSEntityBar.tsx +17 -23
- package/src/components/NSEntityCardBackground.tsx +22 -56
- package/src/components/NSFooter.tsx +4 -1
- package/src/components/NSHeader.tsx +16 -7
- package/src/components/NSInputDate.tsx +4 -2
- package/src/components/NSLayout.tsx +3 -3
- package/src/components/NSLayoutHeroBanner.tsx +0 -1
- package/src/components/NSLinkBlue.tsx +12 -32
- package/src/components/NSLoading.tsx +8 -17
- package/src/components/NSNotification.tsx +19 -14
- package/src/components/NSPagination.tsx +4 -3
- package/src/components/NSPanel.tsx +10 -21
- package/src/components/NSSection.tsx +13 -39
- package/src/components/NSSectionBars.tsx +12 -22
- package/src/components/NSSectionCards.tsx +31 -46
- package/src/components/NSSectionTitle.tsx +11 -21
- package/src/components/NSSpace.tsx +3 -1
- package/src/components/NSTable.tsx +5 -3
- package/src/components/NSTitle.tsx +10 -15
- package/src/main.ts +0 -1
- package/src/pages/NSLoginPage.tsx +8 -6
- package/src/props/BaseComponentProps.ts +1 -0
- package/dist/components/NSButtonBlueVector.d.ts +0 -16
- package/dist/components/NSButtonBlueVector.js +0 -17
- package/dist/components/NSButtonBlueVector.js.map +0 -1
- package/dist/components/NSButtonBlueVector.module.css +0 -17
- package/dist/props/BackgroundProps.d.ts +0 -6
- package/dist/props/BackgroundProps.js +0 -2
- package/dist/props/BackgroundProps.js.map +0 -1
- package/dist/props/NSButtonProps.d.ts +0 -11
- package/dist/props/NSButtonProps.js +0 -2
- package/dist/props/NSButtonProps.js.map +0 -1
- package/src/components/NSButtonBlueVector.module.css +0 -17
- package/src/components/NSButtonBlueVector.tsx +0 -42
- package/src/props/BackgroundProps.ts +0 -7
- package/src/props/NSButtonProps.ts +0 -12
|
@@ -55,7 +55,9 @@ export class NSTable<RowType> extends Component<NSTableProps<RowType>, NSTableSt
|
|
|
55
55
|
return (row as any)[column];
|
|
56
56
|
}
|
|
57
57
|
return (
|
|
58
|
-
<div
|
|
58
|
+
<div id={this.props.id}
|
|
59
|
+
className={`container ${Styles.ns_project_list_container} ${this.props.classList?.join(" ")}`}
|
|
60
|
+
style={this.props.style}>
|
|
59
61
|
<section className={Styles.ns_search_input}>
|
|
60
62
|
<NSInputSearch />
|
|
61
63
|
</section>
|
|
@@ -86,8 +88,8 @@ export class NSTable<RowType> extends Component<NSTableProps<RowType>, NSTableSt
|
|
|
86
88
|
<NSPagination size={50} page={5} />
|
|
87
89
|
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
88
90
|
<div className={Styles.ns_button}>
|
|
89
|
-
<NSButton title='Export' icon={{ src: "/assets/images/export-vector.png" }} onClick={() => { }} border
|
|
90
|
-
<NSButton title='Refresh' icon={{ src: "/assets/images/export-vector.png" }} onClick={() => { }} border
|
|
91
|
+
<NSButton title='Export' icon={{ src: "/assets/images/export-vector.png" }} onClick={() => { }} style={{ border: '1px solid rgba(255, 148, 50, 1)' }} />
|
|
92
|
+
<NSButton title='Refresh' icon={{ src: "/assets/images/export-vector.png" }} onClick={() => { }} style={{ border: '1px solid rgba(3, 119, 255, 1)' }} />
|
|
91
93
|
</div>
|
|
92
94
|
</section>
|
|
93
95
|
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { Component } from 'react';
|
|
4
1
|
import Styles from './NSTitle.module.css';
|
|
5
2
|
import { BaseComponentProps } from "../props/BaseComponentProps";
|
|
6
3
|
|
|
7
4
|
export interface NSTitleProps extends BaseComponentProps
|
|
8
5
|
{
|
|
9
6
|
title: string;
|
|
10
|
-
color?: string;
|
|
11
|
-
text_align?: string;
|
|
12
7
|
}
|
|
13
8
|
|
|
14
|
-
export
|
|
9
|
+
export function NSTitle(props: NSTitleProps)
|
|
15
10
|
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
return (
|
|
12
|
+
<h2
|
|
13
|
+
id={props.id}
|
|
14
|
+
className={`${Styles.ns_title} ${props.classList?.join(" ")}`}
|
|
15
|
+
style={props.style}
|
|
16
|
+
>
|
|
17
|
+
{props.title}
|
|
18
|
+
</h2>
|
|
19
|
+
);
|
|
25
20
|
}
|
package/src/main.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { Component } from 'react';
|
|
3
|
-
import { NSLinkBlue, NSButtonGreen, NSSpace, NSSpaceSizeType } from "../main";
|
|
4
2
|
import Styles from './NSLoginPage.module.css'
|
|
5
|
-
|
|
3
|
+
import { NSButtonGreen } from '../components/NSButtonGreen';
|
|
4
|
+
import { NSLinkBlue } from '../components/NSLinkBlue';
|
|
5
|
+
import { NSSpace, NSSpaceSizeType } from '../components/NSSpace';
|
|
6
|
+
|
|
7
|
+
export interface NSLoginPageProps
|
|
6
8
|
{
|
|
7
9
|
title: string;
|
|
8
10
|
logo: string;
|
|
@@ -11,7 +13,7 @@ interface IProps
|
|
|
11
13
|
onClick?: () => void;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
export class NSLoginPage extends Component<
|
|
16
|
+
export class NSLoginPage extends Component<NSLoginPageProps>
|
|
15
17
|
{
|
|
16
18
|
override render()
|
|
17
19
|
{
|
|
@@ -24,7 +26,7 @@ export class NSLoginPage extends Component<IProps>
|
|
|
24
26
|
<div style={{ backgroundImage: this.props.background, width: "100%", backgroundSize: "cover" }}>
|
|
25
27
|
<div className={`${Styles.ns_login_container}`} style={{ marginTop: "100px" }}>
|
|
26
28
|
<div className={`${Styles.ns_logo}`}>
|
|
27
|
-
<img width={256} height={256} src={this.props.logo} alt=
|
|
29
|
+
<img width={256} height={256} src={this.props.logo} alt={`${this.props.title} Logo`}></img>
|
|
28
30
|
</div>
|
|
29
31
|
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
30
32
|
<div><h1 className={`${Styles.ns_title}`}>{this.props.title}</h1></div>
|
|
@@ -33,7 +35,7 @@ export class NSLoginPage extends Component<IProps>
|
|
|
33
35
|
{button}
|
|
34
36
|
</div>
|
|
35
37
|
</div>
|
|
36
|
-
</div>
|
|
38
|
+
</div >
|
|
37
39
|
);
|
|
38
40
|
}
|
|
39
41
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseComponentProps } from "../props/BaseComponentProps";
|
|
3
|
-
export interface NSButtonBlueVectorProps extends BaseComponentProps {
|
|
4
|
-
title: string;
|
|
5
|
-
vector: string;
|
|
6
|
-
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
7
|
-
}
|
|
8
|
-
export interface NSButtonBlueVectorState {
|
|
9
|
-
title: string;
|
|
10
|
-
vector: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class NSButtonBlueVector extends React.Component<NSButtonBlueVectorProps, NSButtonBlueVectorState> {
|
|
13
|
-
constructor(props: NSButtonBlueVectorProps);
|
|
14
|
-
setTitle(title: string, vector: string): void;
|
|
15
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import Style from "./NSButtonBlueVector.module.css";
|
|
5
|
-
export class NSButtonBlueVector extends React.Component {
|
|
6
|
-
constructor(props) {
|
|
7
|
-
super(props);
|
|
8
|
-
this.state = { title: props.title, vector: props.vector };
|
|
9
|
-
}
|
|
10
|
-
setTitle(title, vector) {
|
|
11
|
-
this.setState({ title, vector });
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (_jsxs("button", { onClick: e => this.props.onClick(e), className: Style.ns_button_blue_vector, children: [_jsx("img", { src: this.state.vector, width: 16, height: 16 }), this.state.title] }));
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=NSButtonBlueVector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NSButtonBlueVector.js","sourceRoot":"","sources":["../../src/components/NSButtonBlueVector.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,iCAAiC,CAAC;AAgBpD,MAAM,OAAO,kBAAmB,SAAQ,KAAK,CAAC,SAA2D;IAErG,YAAY,KAA8B;QAEtC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;IAC9D,CAAC;IACD,QAAQ,CAAC,KAAa,EAAE,MAAc;QAElC,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACrC,CAAC;IACQ,MAAM;QAEX,OAAO,CAEH,kBAAQ,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,qBAAqB,aAC/E,cAAK,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,EACrD,IAAI,CAAC,KAAK,CAAC,KAAK,IACZ,CAEZ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
.ns_button_blue_vector {
|
|
2
|
-
background-color: rgba(3, 119, 255, 1);
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
border: 0;
|
|
5
|
-
box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
|
|
6
|
-
font-size: 16px;
|
|
7
|
-
width: 128px;
|
|
8
|
-
height: 48px;
|
|
9
|
-
border-radius: 8px;
|
|
10
|
-
color: white;
|
|
11
|
-
font-weight: 400;
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: row;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
align-items: center;
|
|
16
|
-
gap: 8px;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BackgroundProps.js","sourceRoot":"","sources":["../../src/props/BackgroundProps.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BackgroundProps } from "./BackgroundProps";
|
|
3
|
-
import { BaseComponentProps } from "./BaseComponentProps";
|
|
4
|
-
import { ImageProps } from "./ImageProps";
|
|
5
|
-
export interface NSButtonProps extends BaseComponentProps {
|
|
6
|
-
title: string;
|
|
7
|
-
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
8
|
-
border?: string;
|
|
9
|
-
background?: BackgroundProps;
|
|
10
|
-
icon?: ImageProps;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NSButtonProps.js","sourceRoot":"","sources":["../../src/props/NSButtonProps.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
.ns_button_blue_vector {
|
|
2
|
-
background-color: rgba(3, 119, 255, 1);
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
border: 0;
|
|
5
|
-
box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
|
|
6
|
-
font-size: 16px;
|
|
7
|
-
width: 128px;
|
|
8
|
-
height: 48px;
|
|
9
|
-
border-radius: 8px;
|
|
10
|
-
color: white;
|
|
11
|
-
font-weight: 400;
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: row;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
align-items: center;
|
|
16
|
-
gap: 8px;
|
|
17
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import React from "react";
|
|
4
|
-
import Style from "./NSButtonBlueVector.module.css";
|
|
5
|
-
import { BaseComponentProps } from "../props/BaseComponentProps";
|
|
6
|
-
|
|
7
|
-
export interface NSButtonBlueVectorProps extends BaseComponentProps
|
|
8
|
-
{
|
|
9
|
-
title: string;
|
|
10
|
-
vector: string;
|
|
11
|
-
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface NSButtonBlueVectorState
|
|
15
|
-
{
|
|
16
|
-
title: string;
|
|
17
|
-
vector: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export class NSButtonBlueVector extends React.Component<NSButtonBlueVectorProps, NSButtonBlueVectorState>
|
|
21
|
-
{
|
|
22
|
-
constructor(props: NSButtonBlueVectorProps)
|
|
23
|
-
{
|
|
24
|
-
super(props);
|
|
25
|
-
this.state = { title: props.title, vector: props.vector };
|
|
26
|
-
}
|
|
27
|
-
setTitle(title: string, vector: string)
|
|
28
|
-
{
|
|
29
|
-
this.setState({ title, vector });
|
|
30
|
-
}
|
|
31
|
-
override render()
|
|
32
|
-
{
|
|
33
|
-
return (
|
|
34
|
-
|
|
35
|
-
<button onClick={e => this.props.onClick(e)} className={Style.ns_button_blue_vector}>
|
|
36
|
-
<img src={this.state.vector} width={16} height={16} />
|
|
37
|
-
{this.state.title}
|
|
38
|
-
</button>
|
|
39
|
-
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BackgroundProps } from "./BackgroundProps";
|
|
2
|
-
import { BaseComponentProps } from "./BaseComponentProps";
|
|
3
|
-
import { ImageProps } from "./ImageProps";
|
|
4
|
-
|
|
5
|
-
export interface NSButtonProps extends BaseComponentProps // todo
|
|
6
|
-
{
|
|
7
|
-
title: string;
|
|
8
|
-
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
9
|
-
border?: string;
|
|
10
|
-
background?: BackgroundProps;
|
|
11
|
-
icon?: ImageProps;
|
|
12
|
-
}
|