namirasoft-site-react 1.3.59 → 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 +2 -15
- package/dist/App.js.map +1 -1
- package/dist/components/NSButton.d.ts +2 -10
- 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 -13
- 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 -13
- 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 -13
- 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 +5 -10
- package/dist/components/NSCard.js +12 -16
- package/dist/components/NSCard.js.map +1 -1
- package/dist/components/NSCopyToClipboard.d.ts +3 -9
- 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 +5 -10
- 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 +3 -12
- package/dist/components/NSEntityCardBackground.js +4 -23
- package/dist/components/NSEntityCardBackground.js.map +1 -1
- package/dist/components/NSFooter.d.ts +2 -1
- package/dist/components/NSFooter.js +2 -1
- package/dist/components/NSFooter.js.map +1 -1
- package/dist/components/NSHeader.d.ts +3 -3
- package/dist/components/NSHeader.js +9 -4
- package/dist/components/NSHeader.js.map +1 -1
- package/dist/components/NSInputDate.d.ts +1 -0
- package/dist/components/NSInputDate.js +4 -3
- package/dist/components/NSInputDate.js.map +1 -1
- package/dist/components/NSInputDuration.js.map +1 -1
- package/dist/components/NSInputEmail.js +2 -1
- package/dist/components/NSInputEmail.js.map +1 -1
- package/dist/components/NSInputErrorNotifier.d.ts +5 -0
- package/dist/components/NSInputErrorNotifier.js +7 -0
- package/dist/components/NSInputErrorNotifier.js.map +1 -0
- package/dist/components/NSInputIP.js.map +1 -1
- package/dist/components/NSInputInteger.js.map +1 -1
- package/dist/components/NSInputPhone.js.map +1 -1
- package/dist/components/NSInputPrice.js.map +1 -1
- package/dist/components/NSInputSearch.js.map +1 -1
- package/dist/components/NSInputText.js.map +1 -1
- package/dist/components/NSInputTime.js.map +1 -1
- package/dist/components/NSLayout.d.ts +4 -1
- package/dist/components/NSLayout.js +3 -2
- package/dist/components/NSLayout.js.map +1 -1
- package/dist/components/NSLayoutHeroBanner.d.ts +3 -3
- package/dist/components/NSLayoutHeroBanner.js +1 -1
- package/dist/components/NSLayoutHeroBanner.js.map +1 -1
- package/dist/components/NSLayoutTitle.d.ts +3 -4
- package/dist/components/NSLayoutTitle.js +2 -2
- package/dist/components/NSLayoutTitle.js.map +1 -1
- package/dist/components/NSLinkBlue.d.ts +3 -11
- package/dist/components/NSLinkBlue.js +3 -17
- package/dist/components/NSLinkBlue.js.map +1 -1
- package/dist/components/NSLinkGreen.d.ts +2 -1
- package/dist/components/NSLinkGreen.js.map +1 -1
- package/dist/components/NSLinkRed.d.ts +2 -1
- package/dist/components/NSLinkRed.js.map +1 -1
- package/dist/components/NSLoading.d.ts +3 -8
- package/dist/components/NSLoading.js +2 -6
- package/dist/components/NSLoading.js.map +1 -1
- package/dist/components/NSNotification.d.ts +22 -0
- package/dist/components/NSNotification.js +32 -0
- package/dist/components/NSNotification.js.map +1 -0
- package/dist/components/NSNotification.module.css +32 -0
- package/dist/components/NSPagination.d.ts +3 -2
- package/dist/components/NSPagination.js +2 -1
- package/dist/components/NSPagination.js.map +1 -1
- package/dist/components/NSPanel.d.ts +4 -8
- package/dist/components/NSPanel.js +3 -9
- package/dist/components/NSPanel.js.map +1 -1
- package/dist/components/NSSection.d.ts +4 -11
- package/dist/components/NSSection.js +6 -25
- package/dist/components/NSSection.js.map +1 -1
- package/dist/components/NSSectionBars.d.ts +3 -7
- package/dist/components/NSSectionBars.js +4 -8
- package/dist/components/NSSectionBars.js.map +1 -1
- package/dist/components/NSSectionCards.d.ts +7 -15
- package/dist/components/NSSectionCards.js +7 -11
- package/dist/components/NSSectionCards.js.map +1 -1
- package/dist/components/NSSectionTitle.d.ts +6 -11
- package/dist/components/NSSectionTitle.js +2 -6
- package/dist/components/NSSectionTitle.js.map +1 -1
- package/dist/components/NSSelectBox.d.ts +8 -4
- package/dist/components/NSSelectBox.js +11 -3
- package/dist/components/NSSelectBox.js.map +1 -1
- package/dist/components/NSSpace.d.ts +2 -1
- package/dist/components/NSSpace.js +2 -1
- package/dist/components/NSSpace.js.map +1 -1
- package/dist/components/NSTable.d.ts +2 -1
- package/dist/components/NSTable.js +2 -1
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTitle.d.ts +3 -7
- package/dist/components/NSTitle.js +3 -6
- package/dist/components/NSTitle.js.map +1 -1
- package/dist/main.d.ts +2 -3
- package/dist/main.js +2 -3
- 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 +2 -3
- package/src/App.tsx +4 -25
- package/src/components/NSButton.module.css +8 -7
- package/src/components/NSButton.tsx +8 -24
- package/src/components/NSButtonBlue.module.css +0 -8
- package/src/components/NSButtonBlue.tsx +7 -28
- package/src/components/NSButtonGreen.module.css +0 -8
- package/src/components/NSButtonGreen.tsx +7 -28
- package/src/components/NSButtonRed.module.css +0 -8
- package/src/components/NSButtonRed.tsx +8 -29
- package/src/components/NSCard.tsx +51 -57
- package/src/components/NSCopyToClipboard.module.css +1 -1
- package/src/components/NSCopyToClipboard.tsx +23 -37
- package/src/components/NSEntityBar.module.css +1 -1
- package/src/components/NSEntityBar.tsx +20 -24
- package/src/components/NSEntityCardBackground.tsx +24 -58
- package/src/components/NSFooter.tsx +13 -9
- package/src/components/NSHeader.tsx +25 -15
- package/src/components/NSInputDate.tsx +22 -15
- package/src/components/NSInputDuration.tsx +10 -9
- package/src/components/NSInputEmail.tsx +2 -0
- package/src/components/NSInputErrorNotifier.tsx +28 -0
- package/src/components/NSInputFloat.tsx +1 -1
- package/src/components/NSInputIP.tsx +4 -3
- package/src/components/NSInputInteger.tsx +2 -1
- package/src/components/NSInputPhone.tsx +2 -1
- package/src/components/NSInputPrice.tsx +2 -1
- package/src/components/NSInputSearch.tsx +3 -3
- package/src/components/NSInputText.tsx +2 -1
- package/src/components/NSInputTime.tsx +2 -1
- package/src/components/NSLayout.tsx +8 -4
- package/src/components/NSLayoutHeroBanner.tsx +4 -7
- package/src/components/NSLayoutTitle.tsx +4 -6
- package/src/components/NSLinkBlue.tsx +14 -35
- package/src/components/NSLinkGreen.tsx +2 -1
- package/src/components/NSLinkRed.tsx +2 -1
- package/src/components/NSLoading.tsx +10 -18
- package/src/components/NSNotification.module.css +32 -0
- package/src/components/NSNotification.tsx +72 -0
- package/src/components/NSPagination.tsx +18 -16
- package/src/components/NSPanel.tsx +14 -23
- package/src/components/NSSection.tsx +15 -40
- package/src/components/NSSectionBars.tsx +14 -23
- package/src/components/NSSectionCards.tsx +33 -47
- package/src/components/NSSectionTitle.tsx +13 -22
- package/src/components/NSSelectBox.tsx +21 -8
- package/src/components/NSSpace.tsx +6 -2
- package/src/components/NSTable.tsx +7 -4
- package/src/components/NSTitle.tsx +12 -16
- package/src/main.ts +2 -3
- package/src/pages/NSLoginPage.tsx +8 -6
- package/src/props/BaseComponentProps.ts +1 -0
- package/dist/components/NSButtonBlueVector.d.ts +0 -15
- 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/components/NSError.d.ts +0 -11
- package/dist/components/NSError.js +0 -14
- package/dist/components/NSError.js.map +0 -1
- package/dist/components/NSMessenger.d.ts +0 -14
- package/dist/components/NSMessenger.js +0 -23
- package/dist/components/NSMessenger.js.map +0 -1
- package/dist/components/NSMessenger.module.css +0 -16
- 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 -10
- 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 -41
- package/src/components/NSError.tsx +0 -42
- package/src/components/NSMessenger.module.css +0 -16
- package/src/components/NSMessenger.tsx +0 -56
- package/src/props/BackgroundProps.ts +0 -7
- package/src/props/NSButtonProps.ts +0 -11
- /package/dist/components/{NSError.module.css → NSInputErrorNotifier.module.css} +0 -0
- /package/src/components/{NSError.module.css → NSInputErrorNotifier.module.css} +0 -0
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { Component } from 'react';
|
|
4
1
|
import Styles from './NSTitle.module.css';
|
|
2
|
+
import { BaseComponentProps } from "../props/BaseComponentProps";
|
|
5
3
|
|
|
6
|
-
export interface NSTitleProps
|
|
4
|
+
export interface NSTitleProps extends BaseComponentProps
|
|
7
5
|
{
|
|
8
6
|
title: string;
|
|
9
|
-
color?: string;
|
|
10
|
-
text_align?: string;
|
|
11
7
|
}
|
|
12
8
|
|
|
13
|
-
export
|
|
9
|
+
export function NSTitle(props: NSTitleProps)
|
|
14
10
|
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
+
);
|
|
24
20
|
}
|
package/src/main.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export * from "./components/NSButtonBlue";
|
|
2
|
-
export * from "./components/NSButtonBlueVector";
|
|
3
2
|
export * from "./components/NSButtonGreen";
|
|
4
3
|
export * from "./components/NSButton";
|
|
5
4
|
export * from "./components/NSButtonRed";
|
|
6
5
|
export * from "./components/NSCard";
|
|
7
6
|
export * from "./components/NSEntityCardBackground";
|
|
8
7
|
export * from "./components/NSEntityBar";
|
|
9
|
-
export * from "./components/
|
|
8
|
+
export * from "./components/NSInputErrorNotifier";
|
|
10
9
|
export * from "./components/NSFooter";
|
|
11
10
|
export * from "./components/NSHeader";
|
|
12
11
|
export * from "./components/NSCopyToClipboard";
|
|
@@ -27,7 +26,7 @@ export * from "./components/NSLayout";
|
|
|
27
26
|
export * from "./components/NSLayoutHeroBanner";
|
|
28
27
|
export * from "./components/NSLayoutTitle";
|
|
29
28
|
export * from "./components/NSLoading";
|
|
30
|
-
export * from "./components/
|
|
29
|
+
export * from "./components/NSNotification";
|
|
31
30
|
export * from "./components/NSSelectBox";
|
|
32
31
|
export * from "./components/NSSpace";
|
|
33
32
|
export * from "./components/NSSection";
|
|
@@ -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,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface NSButtonBlueVectorProps {
|
|
3
|
-
title: string;
|
|
4
|
-
vector: string;
|
|
5
|
-
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
6
|
-
}
|
|
7
|
-
export interface NSButtonBlueVectorState {
|
|
8
|
-
title: string;
|
|
9
|
-
vector: string;
|
|
10
|
-
}
|
|
11
|
-
export declare class NSButtonBlueVector extends React.Component<NSButtonBlueVectorProps, NSButtonBlueVectorState> {
|
|
12
|
-
constructor(props: NSButtonBlueVectorProps);
|
|
13
|
-
setTitle(title: string, vector: string): void;
|
|
14
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
}
|
|
@@ -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;AAepD,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,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface NSErrorProps {
|
|
3
|
-
text: string;
|
|
4
|
-
show: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface NSErroState {
|
|
7
|
-
}
|
|
8
|
-
export declare class NSError extends React.Component<NSErrorProps, NSErroState> {
|
|
9
|
-
constructor(props: NSErrorProps);
|
|
10
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import Styles from "./NSError.module.css";
|
|
5
|
-
import Danger from '../assets/images/danger.svg';
|
|
6
|
-
export class NSError extends React.Component {
|
|
7
|
-
constructor(props) {
|
|
8
|
-
super(props);
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
return _jsx(_Fragment, { children: this.props.show && (_jsx(_Fragment, { children: _jsxs("div", { className: "d-flex justify-content-start align-items-center gap-2 ms-2", children: [_jsx("img", { className: "", src: Danger, alt: "Error Icon", width: 13, height: 13 }), _jsx("span", { className: Styles.ns_input_error, children: this.props.text })] }) })) });
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=NSError.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NSError.js","sourceRoot":"","sources":["../../src/components/NSError.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,MAAM,MAAM,6BAA6B,CAAC;AAWjD,MAAM,OAAO,OAAQ,SAAQ,KAAK,CAAC,SAAoC;IAEnE,YAAY,KAAmB;QAE3B,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IAEQ,MAAM;QAEX,OAAO,4BACF,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAChB,4BACI,eAAK,SAAS,EAAC,4DAA4D,aACvE,cACI,SAAS,EAAE,EAAE,EACb,GAAG,EAAE,MAAM,EACX,GAAG,EAAC,YAAY,EAChB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACZ,EACF,eAAM,SAAS,EAAE,MAAM,CAAC,cAAc,YAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAQ,IAC9D,GACP,CACN,GACF,CAAA;IACP,CAAC;CACJ"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface NSMessengerProps {
|
|
3
|
-
title: string;
|
|
4
|
-
success: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface NSMessengerState {
|
|
7
|
-
show: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare class NSMessenger extends React.Component<NSMessengerProps, NSMessengerState> {
|
|
10
|
-
constructor(props: NSMessengerProps);
|
|
11
|
-
componentDidMount(): void;
|
|
12
|
-
handleDestroy: () => void;
|
|
13
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import Exit from '../assets/images/close-vector.png';
|
|
5
|
-
import Styles from "./NSMessenger.module.css";
|
|
6
|
-
export class NSMessenger extends React.Component {
|
|
7
|
-
constructor(props) {
|
|
8
|
-
super(props);
|
|
9
|
-
this.handleDestroy = () => {
|
|
10
|
-
this.setState({ show: false });
|
|
11
|
-
};
|
|
12
|
-
this.state = {
|
|
13
|
-
show: true,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
componentDidMount() {
|
|
17
|
-
setTimeout(() => { this.handleDestroy(); }, 8000);
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
return _jsx(_Fragment, { children: this.state.show && (_jsxs("div", { className: `${Styles.ns_messenger} "" ${this.props.success == true ? Styles.ns_green : Styles.ns_red}`, children: [_jsx("p", { className: `mb-0 ns-font-16-normal`, children: this.props.title }), _jsx("img", { className: Styles.ns_exit_icon, src: Exit, alt: "exit", width: 32, height: 32, onClick: () => this.handleDestroy() })] })) });
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=NSMessenger.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NSMessenger.js","sourceRoot":"","sources":["../../src/components/NSMessenger.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,mCAAmC,CAAC;AACrD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAa9C,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAA6C;IAEhF,YAAY,KAAuB;QAE/B,KAAK,CAAC,KAAK,CAAC,CAAC;QAWjB,kBAAa,GAAG,GAAG,EAAE;YAEjB,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QACnC,CAAC,CAAC;QAbE,IAAI,CAAC,KAAK,GAAG;YACT,IAAI,EAAE,IAAI;SACb,CAAC;IACN,CAAC;IAEQ,iBAAiB;QAEtB,UAAU,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,aAAa,EAAE,CAAA,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAOQ,MAAM;QAEX,OAAO,4BACF,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAChB,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,YAAY,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,aACvG,YAAG,SAAS,EAAE,wBAAwB,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAK,EAC9D,cACI,SAAS,EAAE,MAAM,CAAC,YAAY,EAC9B,GAAG,EAAE,IAAI,EACT,GAAG,EAAC,MAAM,EACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,GACrC,IACA,CACT,GACF,CAAA;IACP,CAAC;CACJ"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
.ns_messenger {
|
|
2
|
-
background-color: #fff;
|
|
3
|
-
padding: 12px 15px;
|
|
4
|
-
display: flex;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
align-items: center;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.ns_green {
|
|
10
|
-
border: 3px solid rgba(112, 224, 0, 1);
|
|
11
|
-
box-shadow: 1px 1px 8px 0px rgba(112, 224, 0, 1);
|
|
12
|
-
}
|
|
13
|
-
.ns_red {
|
|
14
|
-
border: 3px solid red;
|
|
15
|
-
box-shadow: 1px 1px 8px 0px red;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BackgroundProps.js","sourceRoot":"","sources":["../../src/props/BackgroundProps.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BackgroundProps } from "./BackgroundProps";
|
|
3
|
-
import { ImageProps } from "./ImageProps";
|
|
4
|
-
export interface NSButtonProps {
|
|
5
|
-
title: string;
|
|
6
|
-
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
7
|
-
border?: string;
|
|
8
|
-
background?: BackgroundProps;
|
|
9
|
-
icon?: ImageProps;
|
|
10
|
-
}
|
|
@@ -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,41 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import React from "react";
|
|
4
|
-
import Style from "./NSButtonBlueVector.module.css";
|
|
5
|
-
|
|
6
|
-
export interface NSButtonBlueVectorProps
|
|
7
|
-
{
|
|
8
|
-
title: string;
|
|
9
|
-
vector: string;
|
|
10
|
-
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface NSButtonBlueVectorState
|
|
14
|
-
{
|
|
15
|
-
title: string;
|
|
16
|
-
vector: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export class NSButtonBlueVector extends React.Component<NSButtonBlueVectorProps, NSButtonBlueVectorState>
|
|
20
|
-
{
|
|
21
|
-
constructor(props: NSButtonBlueVectorProps)
|
|
22
|
-
{
|
|
23
|
-
super(props);
|
|
24
|
-
this.state = { title: props.title, vector: props.vector };
|
|
25
|
-
}
|
|
26
|
-
setTitle(title: string, vector: string)
|
|
27
|
-
{
|
|
28
|
-
this.setState({ title, vector });
|
|
29
|
-
}
|
|
30
|
-
override render()
|
|
31
|
-
{
|
|
32
|
-
return (
|
|
33
|
-
|
|
34
|
-
<button onClick={e => this.props.onClick(e)} className={Style.ns_button_blue_vector}>
|
|
35
|
-
<img src={this.state.vector} width={16} height={16} />
|
|
36
|
-
{this.state.title}
|
|
37
|
-
</button>
|
|
38
|
-
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import React from "react";
|
|
4
|
-
import Styles from "./NSError.module.css";
|
|
5
|
-
import Danger from '../assets/images/danger.svg';
|
|
6
|
-
|
|
7
|
-
export interface NSErrorProps
|
|
8
|
-
{
|
|
9
|
-
text: string;
|
|
10
|
-
show: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface NSErroState
|
|
14
|
-
{ }
|
|
15
|
-
|
|
16
|
-
export class NSError extends React.Component<NSErrorProps, NSErroState>
|
|
17
|
-
{
|
|
18
|
-
constructor(props: NSErrorProps)
|
|
19
|
-
{
|
|
20
|
-
super(props);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
override render()
|
|
24
|
-
{
|
|
25
|
-
return <>
|
|
26
|
-
{this.props.show && (
|
|
27
|
-
<>
|
|
28
|
-
<div className="d-flex justify-content-start align-items-center gap-2 ms-2">
|
|
29
|
-
<img
|
|
30
|
-
className={""}
|
|
31
|
-
src={Danger}
|
|
32
|
-
alt="Error Icon"
|
|
33
|
-
width={13}
|
|
34
|
-
height={13}
|
|
35
|
-
/>
|
|
36
|
-
<span className={Styles.ns_input_error}>{this.props.text}</span>
|
|
37
|
-
</div>
|
|
38
|
-
</>
|
|
39
|
-
)}
|
|
40
|
-
</>
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
.ns_messenger {
|
|
2
|
-
background-color: #fff;
|
|
3
|
-
padding: 12px 15px;
|
|
4
|
-
display: flex;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
align-items: center;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.ns_green {
|
|
10
|
-
border: 3px solid rgba(112, 224, 0, 1);
|
|
11
|
-
box-shadow: 1px 1px 8px 0px rgba(112, 224, 0, 1);
|
|
12
|
-
}
|
|
13
|
-
.ns_red {
|
|
14
|
-
border: 3px solid red;
|
|
15
|
-
box-shadow: 1px 1px 8px 0px red;
|
|
16
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import React from "react";
|
|
4
|
-
import Exit from '../assets/images/close-vector.png';
|
|
5
|
-
import Styles from "./NSMessenger.module.css";
|
|
6
|
-
|
|
7
|
-
export interface NSMessengerProps
|
|
8
|
-
{
|
|
9
|
-
title: string;
|
|
10
|
-
success: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface NSMessengerState
|
|
14
|
-
{
|
|
15
|
-
show: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export class NSMessenger extends React.Component<NSMessengerProps, NSMessengerState>
|
|
19
|
-
{
|
|
20
|
-
constructor(props: NSMessengerProps)
|
|
21
|
-
{
|
|
22
|
-
super(props);
|
|
23
|
-
this.state = {
|
|
24
|
-
show: true,
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
override componentDidMount(): void
|
|
29
|
-
{
|
|
30
|
-
setTimeout(() => { this.handleDestroy() }, 8000);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
handleDestroy = () =>
|
|
34
|
-
{
|
|
35
|
-
this.setState({ show: false });
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
override render()
|
|
39
|
-
{
|
|
40
|
-
return <>
|
|
41
|
-
{this.state.show && (
|
|
42
|
-
<div className={`${Styles.ns_messenger} "" ${this.props.success == true ? Styles.ns_green : Styles.ns_red}`}>
|
|
43
|
-
<p className={`mb-0 ns-font-16-normal`}>{this.props.title}</p>
|
|
44
|
-
<img
|
|
45
|
-
className={Styles.ns_exit_icon}
|
|
46
|
-
src={Exit}
|
|
47
|
-
alt="exit"
|
|
48
|
-
width={32}
|
|
49
|
-
height={32}
|
|
50
|
-
onClick={() => this.handleDestroy()}
|
|
51
|
-
/>
|
|
52
|
-
</div>
|
|
53
|
-
)}
|
|
54
|
-
</>
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BackgroundProps } from "./BackgroundProps";
|
|
2
|
-
import { ImageProps } from "./ImageProps";
|
|
3
|
-
|
|
4
|
-
export interface NSButtonProps
|
|
5
|
-
{
|
|
6
|
-
title: string;
|
|
7
|
-
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
8
|
-
border?: string;
|
|
9
|
-
background?: BackgroundProps;
|
|
10
|
-
icon?: ImageProps;
|
|
11
|
-
}
|
|
File without changes
|
|
File without changes
|