namirasoft-site-react 1.3.66 → 1.3.68
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/Validator.d.ts +6 -6
- package/dist/Validator.js.map +1 -1
- package/dist/components/NSButton.d.ts +5 -5
- package/dist/components/NSButton.js.map +1 -1
- package/dist/components/NSButtonBlue.d.ts +2 -2
- package/dist/components/NSButtonBlue.js.map +1 -1
- package/dist/components/NSButtonGreen.d.ts +2 -2
- package/dist/components/NSButtonGreen.js.map +1 -1
- package/dist/components/NSButtonRed.d.ts +2 -2
- package/dist/components/NSButtonRed.js.map +1 -1
- package/dist/components/NSCard.d.ts +7 -7
- package/dist/components/NSCard.js.map +1 -1
- package/dist/components/NSCopyToClipboard.d.ts +3 -3
- package/dist/components/NSCopyToClipboard.js.map +1 -1
- package/dist/components/NSEntityBar.d.ts +5 -5
- package/dist/components/NSEntityBar.js.map +1 -1
- package/dist/components/NSEntityCardBackground.d.ts +5 -5
- package/dist/components/NSEntityCardBackground.js.map +1 -1
- package/dist/components/NSFooter.d.ts +4 -4
- package/dist/components/NSFooter.js.map +1 -1
- package/dist/components/NSHeader.d.ts +5 -5
- package/dist/components/NSHeader.js.map +1 -1
- package/dist/components/NSInputDate.d.ts +5 -5
- package/dist/components/NSInputDate.js.map +1 -1
- package/dist/components/NSInputDuration.d.ts +7 -7
- package/dist/components/NSInputDuration.js.map +1 -1
- package/dist/components/NSInputEmail.d.ts +6 -6
- package/dist/components/NSInputEmail.js.map +1 -1
- package/dist/components/NSInputErrorNotifier.d.ts +3 -3
- package/dist/components/NSInputErrorNotifier.js.map +1 -1
- package/dist/components/NSInputFloat.d.ts +6 -6
- package/dist/components/NSInputFloat.js.map +1 -1
- package/dist/components/NSInputIP.d.ts +6 -6
- package/dist/components/NSInputIP.js.map +1 -1
- package/dist/components/NSInputInteger.d.ts +6 -6
- package/dist/components/NSInputInteger.js.map +1 -1
- package/dist/components/NSInputPassword.d.ts +6 -6
- package/dist/components/NSInputPassword.js.map +1 -1
- package/dist/components/NSInputPhone.d.ts +6 -6
- package/dist/components/NSInputPhone.js.map +1 -1
- package/dist/components/NSInputPrice.d.ts +6 -6
- package/dist/components/NSInputPrice.js.map +1 -1
- package/dist/components/NSInputSearch.d.ts +6 -6
- package/dist/components/NSInputSearch.js.map +1 -1
- package/dist/components/NSInputString.d.ts +6 -6
- package/dist/components/NSInputString.js.map +1 -1
- package/dist/components/NSInputText.d.ts +6 -6
- package/dist/components/NSInputText.js.map +1 -1
- package/dist/components/NSInputTime.d.ts +6 -6
- package/dist/components/NSInputTime.js.map +1 -1
- package/dist/components/NSLayout.d.ts +5 -5
- package/dist/components/NSLayout.js.map +1 -1
- package/dist/components/NSLayoutHeroBanner.d.ts +4 -4
- package/dist/components/NSLayoutHeroBanner.js.map +1 -1
- package/dist/components/NSLayoutTitle.d.ts +4 -4
- package/dist/components/NSLayoutTitle.js.map +1 -1
- package/dist/components/NSLink.d.ts +4 -4
- package/dist/components/NSLink.js.map +1 -1
- package/dist/components/NSLinkBlue.d.ts +2 -2
- package/dist/components/NSLinkBlue.js.map +1 -1
- package/dist/components/NSLinkGreen.d.ts +2 -2
- package/dist/components/NSLinkGreen.js.map +1 -1
- package/dist/components/NSLinkRed.d.ts +2 -2
- package/dist/components/NSLinkRed.js.map +1 -1
- package/dist/components/NSLoading.d.ts +3 -3
- package/dist/components/NSLoading.js.map +1 -1
- package/dist/components/NSNotification.d.ts +3 -3
- package/dist/components/NSNotification.js.map +1 -1
- package/dist/components/NSPagination.d.ts +3 -3
- package/dist/components/NSPagination.js.map +1 -1
- package/dist/components/NSPanel.d.ts +3 -3
- package/dist/components/NSPanel.js.map +1 -1
- package/dist/components/NSSection.d.ts +3 -3
- package/dist/components/NSSection.js.map +1 -1
- package/dist/components/NSSectionBars.d.ts +5 -5
- package/dist/components/NSSectionBars.js.map +1 -1
- package/dist/components/NSSectionCards.d.ts +7 -7
- package/dist/components/NSSectionCards.js.map +1 -1
- package/dist/components/NSSectionTitle.d.ts +3 -3
- package/dist/components/NSSectionTitle.js.map +1 -1
- package/dist/components/NSSelectBox.d.ts +5 -5
- package/dist/components/NSSelectBox.js.map +1 -1
- package/dist/components/NSSpace.d.ts +3 -3
- package/dist/components/NSSpace.js.map +1 -1
- package/dist/components/NSTable.d.ts +4 -4
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTitle.d.ts +3 -3
- package/dist/components/NSTitle.js.map +1 -1
- package/dist/main.d.ts +12 -0
- package/dist/main.js +12 -0
- package/dist/main.js.map +1 -1
- package/dist/pages/NSLoginPage.d.ts +2 -2
- package/dist/pages/NSLoginPage.js.map +1 -1
- package/dist/props/{BaseComponentProps.d.ts → IBaseComponentProps.d.ts} +1 -1
- package/dist/props/IBaseComponentProps.js +2 -0
- package/dist/props/IBaseComponentProps.js.map +1 -0
- package/dist/props/{ImageProps.d.ts → IImageProps.d.ts} +1 -1
- package/dist/props/IImageProps.js +2 -0
- package/dist/props/IImageProps.js.map +1 -0
- package/dist/props/{LinkProps.d.ts → ILinkProps.d.ts} +1 -1
- package/dist/props/ILinkProps.js +2 -0
- package/dist/props/ILinkProps.js.map +1 -0
- package/dist/props/IValidationNumberProps.d.ts +4 -0
- package/dist/props/IValidationNumberProps.js +2 -0
- package/dist/props/IValidationNumberProps.js.map +1 -0
- package/dist/props/IValidationProps.d.ts +6 -0
- package/dist/props/IValidationProps.js +2 -0
- package/dist/props/IValidationProps.js.map +1 -0
- package/dist/props/IValidationRegexProps.d.ts +4 -0
- package/dist/props/IValidationRegexProps.js +2 -0
- package/dist/props/IValidationRegexProps.js.map +1 -0
- package/dist/props/{ValidationStringProps.d.ts → IValidationStringProps.d.ts} +1 -1
- package/dist/props/IValidationStringProps.js +2 -0
- package/dist/props/IValidationStringProps.js.map +1 -0
- package/dist/routing/INSRouterMaker.d.ts +5 -0
- package/dist/routing/INSRouterMaker.js +2 -0
- package/dist/routing/INSRouterMaker.js.map +1 -0
- package/dist/routing/INSRouterProps.d.ts +4 -0
- package/dist/routing/INSRouterProps.js +2 -0
- package/dist/routing/INSRouterProps.js.map +1 -0
- package/dist/routing/INSRouterState.d.ts +4 -0
- package/dist/routing/INSRouterState.js +2 -0
- package/dist/routing/INSRouterState.js.map +1 -0
- package/dist/routing/NSRouterMaker.d.ts +11 -0
- package/dist/routing/NSRouterMaker.js +23 -0
- package/dist/routing/NSRouterMaker.js.map +1 -0
- package/dist/routing/Notifier.d.ts +16 -0
- package/dist/routing/Notifier.js +68 -0
- package/dist/routing/Notifier.js.map +1 -0
- package/package.json +1 -1
- package/src/Validator.ts +6 -6
- package/src/components/NSButton.tsx +5 -5
- package/src/components/NSButtonBlue.tsx +2 -2
- package/src/components/NSButtonGreen.tsx +2 -2
- package/src/components/NSButtonRed.tsx +2 -2
- package/src/components/NSCard.tsx +7 -7
- package/src/components/NSCopyToClipboard.tsx +3 -3
- package/src/components/NSEntityBar.tsx +5 -5
- package/src/components/NSEntityCardBackground.tsx +5 -5
- package/src/components/NSFooter.tsx +4 -4
- package/src/components/NSHeader.tsx +6 -6
- package/src/components/NSInputDate.tsx +5 -5
- package/src/components/NSInputDuration.tsx +7 -7
- package/src/components/NSInputEmail.tsx +6 -6
- package/src/components/NSInputErrorNotifier.tsx +3 -3
- package/src/components/NSInputFloat.tsx +6 -6
- package/src/components/NSInputIP.tsx +6 -6
- package/src/components/NSInputInteger.tsx +6 -6
- package/src/components/NSInputPassword.tsx +6 -6
- package/src/components/NSInputPhone.tsx +6 -6
- package/src/components/NSInputPrice.tsx +6 -6
- package/src/components/NSInputSearch.tsx +6 -6
- package/src/components/NSInputString.tsx +6 -6
- package/src/components/NSInputText.tsx +6 -6
- package/src/components/NSInputTime.tsx +6 -6
- package/src/components/NSLayout.tsx +5 -5
- package/src/components/NSLayoutHeroBanner.tsx +4 -4
- package/src/components/NSLayoutTitle.tsx +4 -4
- package/src/components/NSLink.tsx +4 -4
- package/src/components/NSLinkBlue.tsx +2 -2
- package/src/components/NSLinkGreen.tsx +2 -2
- package/src/components/NSLinkRed.tsx +2 -2
- package/src/components/NSLoading.tsx +3 -3
- package/src/components/NSNotification.tsx +3 -3
- package/src/components/NSPagination.tsx +3 -3
- package/src/components/NSPanel.tsx +3 -3
- package/src/components/NSSection.tsx +3 -3
- package/src/components/NSSectionBars.tsx +5 -5
- package/src/components/NSSectionCards.tsx +7 -7
- package/src/components/NSSectionTitle.tsx +3 -3
- package/src/components/NSSelectBox.tsx +5 -5
- package/src/components/NSSpace.tsx +3 -3
- package/src/components/NSTable.tsx +4 -4
- package/src/components/NSTitle.tsx +3 -3
- package/src/main.ts +13 -1
- package/src/pages/NSLoginPage.tsx +2 -2
- package/src/props/{BaseComponentProps.ts → IBaseComponentProps.ts} +1 -1
- package/src/props/{ImageProps.ts → IImageProps.ts} +1 -1
- package/src/props/{LinkProps.ts → ILinkProps.ts} +1 -1
- package/src/props/IValidationNumberProps.ts +5 -0
- package/src/props/IValidationProps.ts +8 -0
- package/src/props/IValidationRegexProps.ts +5 -0
- package/src/props/{ValidationStringProps.ts → IValidationStringProps.ts} +1 -1
- package/src/routing/INSRouterMaker.ts +7 -0
- package/src/routing/INSRouterProps.ts +6 -0
- package/src/routing/INSRouterState.ts +6 -0
- package/src/routing/NSRouterMaker.tsx +34 -0
- package/src/routing/Notifier.ts +80 -0
- package/dist/props/BaseComponentProps.js +0 -2
- package/dist/props/BaseComponentProps.js.map +0 -1
- package/dist/props/ImageProps.js +0 -2
- package/dist/props/ImageProps.js.map +0 -1
- package/dist/props/LinkProps.js +0 -2
- package/dist/props/LinkProps.js.map +0 -1
- package/dist/props/ValidationNumberProps.d.ts +0 -4
- package/dist/props/ValidationNumberProps.js +0 -2
- package/dist/props/ValidationNumberProps.js.map +0 -1
- package/dist/props/ValidationProps.d.ts +0 -6
- package/dist/props/ValidationProps.js +0 -2
- package/dist/props/ValidationProps.js.map +0 -1
- package/dist/props/ValidationRegexProps.d.ts +0 -4
- package/dist/props/ValidationRegexProps.js +0 -2
- package/dist/props/ValidationRegexProps.js.map +0 -1
- package/dist/props/ValidationStringProps.js +0 -2
- package/dist/props/ValidationStringProps.js.map +0 -1
- package/src/props/ValidationNumberProps.ts +0 -5
- package/src/props/ValidationProps.ts +0 -8
- package/src/props/ValidationRegexProps.ts +0 -5
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import Styles from './NSEntityCardBackground.module.css'
|
|
2
2
|
import { NSLinkBlue } from './NSLinkBlue';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { ILinkProps } from '../props/ILinkProps';
|
|
4
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
5
5
|
|
|
6
|
-
export interface
|
|
6
|
+
export interface INSEntityCardBackgroundProps extends IBaseComponentProps
|
|
7
7
|
{
|
|
8
8
|
title: string;
|
|
9
|
-
link?:
|
|
9
|
+
link?: ILinkProps
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export function NSEntityCardBackground(props:
|
|
12
|
+
export function NSEntityCardBackground(props: INSEntityCardBackgroundProps)
|
|
13
13
|
{
|
|
14
14
|
return (
|
|
15
15
|
<>
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSFooter.module.css";
|
|
5
5
|
import { NamirasoftAPILinkServer, FilterLinkRow } from 'namirasoft-api-link';
|
|
6
|
-
import {
|
|
6
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
7
7
|
|
|
8
|
-
export interface
|
|
8
|
+
export interface INSFooterProps extends IBaseComponentProps
|
|
9
9
|
{
|
|
10
10
|
scope: string;
|
|
11
11
|
name: string;
|
|
@@ -18,9 +18,9 @@ export interface NSFooterState
|
|
|
18
18
|
selected: FilterLinkRow | null;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export class NSFooter extends React.Component<
|
|
21
|
+
export class NSFooter extends React.Component<INSFooterProps, NSFooterState>
|
|
22
22
|
{
|
|
23
|
-
constructor(props:
|
|
23
|
+
constructor(props: INSFooterProps)
|
|
24
24
|
{
|
|
25
25
|
super(props);
|
|
26
26
|
this.state = {
|
|
@@ -4,15 +4,15 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSHeader.module.css";
|
|
5
5
|
import NavDropdown from 'react-bootstrap/NavDropdown';
|
|
6
6
|
import { NamirasoftAPILinkServer, FilterLinkRow } from 'namirasoft-api-link';
|
|
7
|
-
import {
|
|
7
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
8
8
|
|
|
9
|
-
export interface
|
|
9
|
+
export interface INSHeaderProps extends IBaseComponentProps
|
|
10
10
|
{
|
|
11
11
|
scope: string;
|
|
12
12
|
name: string;
|
|
13
13
|
logo: string;
|
|
14
14
|
account?: boolean;
|
|
15
|
-
nav?:
|
|
15
|
+
nav?: IBaseComponentProps
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export interface NSHeaderState
|
|
@@ -22,9 +22,9 @@ export interface NSHeaderState
|
|
|
22
22
|
showNavbar: boolean;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export class NSHeader extends React.Component<
|
|
25
|
+
export class NSHeader extends React.Component<INSHeaderProps, NSHeaderState>
|
|
26
26
|
{
|
|
27
|
-
constructor(props:
|
|
27
|
+
constructor(props: INSHeaderProps)
|
|
28
28
|
{
|
|
29
29
|
super(props);
|
|
30
30
|
this.state = {
|
|
@@ -61,7 +61,7 @@ export class NSHeader extends React.Component<NSHeaderProps, NSHeaderState>
|
|
|
61
61
|
}
|
|
62
62
|
override render()
|
|
63
63
|
{
|
|
64
|
-
let nav:
|
|
64
|
+
let nav: IBaseComponentProps | undefined = this.props.nav;
|
|
65
65
|
if (!nav)
|
|
66
66
|
nav = { style: {} };
|
|
67
67
|
if (!nav.style)
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSInputDate.module.css";
|
|
5
5
|
import IconInputDate from '../assets/images/icon-input-date.svg';
|
|
6
|
-
import {
|
|
6
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
7
7
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
8
|
-
import {
|
|
8
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
9
9
|
import { Validator } from "../Validator";
|
|
10
10
|
|
|
11
|
-
export interface
|
|
11
|
+
export interface INSInputDateProps extends IBaseComponentProps, IValidationProps
|
|
12
12
|
{
|
|
13
13
|
title: string;
|
|
14
14
|
defaultValue?: string;
|
|
@@ -22,9 +22,9 @@ export interface NSInputDateState
|
|
|
22
22
|
error?: string;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export class NSInputDate extends React.Component<
|
|
25
|
+
export class NSInputDate extends React.Component<INSInputDateProps, NSInputDateState>
|
|
26
26
|
{
|
|
27
|
-
constructor(props:
|
|
27
|
+
constructor(props: INSInputDateProps)
|
|
28
28
|
{
|
|
29
29
|
super(props);
|
|
30
30
|
this.state = { value: props.defaultValue ?? "" };
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSInput.module.css";
|
|
5
5
|
import IconInputDuration from '../assets/images/icon-input-duration.svg';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
7
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
8
|
+
import { IValidationNumberProps } from "../props/IValidationNumberProps";
|
|
9
|
+
import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
10
10
|
import { Validator } from "../Validator";
|
|
11
11
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
12
12
|
|
|
13
|
-
export interface
|
|
13
|
+
export interface INSInputDurationProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, IValidationNumberProps
|
|
14
14
|
{
|
|
15
15
|
title: string;
|
|
16
16
|
defaultValue?: string;
|
|
@@ -24,9 +24,9 @@ export interface NSInputDurationState
|
|
|
24
24
|
error?: string;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export class NSInputDuration extends React.Component<
|
|
27
|
+
export class NSInputDuration extends React.Component<INSInputDurationProps, NSInputDurationState>
|
|
28
28
|
{
|
|
29
|
-
constructor(props:
|
|
29
|
+
constructor(props: INSInputDurationProps)
|
|
30
30
|
{
|
|
31
31
|
super(props);
|
|
32
32
|
this.state = { value: props.defaultValue ?? "" };
|
|
@@ -4,12 +4,12 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSInput.module.css";
|
|
5
5
|
import IconInputEmail from '../assets/images/icon-input-email.svg';
|
|
6
6
|
import { Validator } from "../Validator";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
8
|
+
import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
9
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
10
10
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
11
11
|
|
|
12
|
-
export interface
|
|
12
|
+
export interface INSInputEmailProps extends IBaseComponentProps, IValidationProps, IValidationStringProps
|
|
13
13
|
{
|
|
14
14
|
title: string;
|
|
15
15
|
defaultValue?: string;
|
|
@@ -23,9 +23,9 @@ export interface NSInputEmailState
|
|
|
23
23
|
error?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export class NSInputEmail extends React.Component<
|
|
26
|
+
export class NSInputEmail extends React.Component<INSInputEmailProps, NSInputEmailState>
|
|
27
27
|
{
|
|
28
|
-
constructor(props:
|
|
28
|
+
constructor(props: INSInputEmailProps)
|
|
29
29
|
{
|
|
30
30
|
super(props);
|
|
31
31
|
this.state = { value: props.defaultValue ?? "" };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import Styles from "./NSInputErrorNotifier.module.css";
|
|
2
2
|
import Danger from '../assets/images/danger.svg';
|
|
3
|
-
import {
|
|
3
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface INSInputErrorNotifierProps extends IBaseComponentProps
|
|
6
6
|
{
|
|
7
7
|
error?: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export function NSInputErrorNotifier(props:
|
|
10
|
+
export function NSInputErrorNotifier(props: INSInputErrorNotifierProps)
|
|
11
11
|
{
|
|
12
12
|
return <>
|
|
13
13
|
{
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSInput.module.css";
|
|
5
5
|
import IconInputFloat from '../assets/images/icon-input-float.svg';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
7
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
8
|
+
import { IValidationNumberProps } from "../props/IValidationNumberProps";
|
|
9
9
|
import { Validator } from "../Validator";
|
|
10
10
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
11
11
|
|
|
12
|
-
export interface
|
|
12
|
+
export interface INSInputFloatProps extends IBaseComponentProps, IValidationProps, IValidationNumberProps
|
|
13
13
|
{
|
|
14
14
|
title: string;
|
|
15
15
|
defaultValue?: number;
|
|
@@ -23,9 +23,9 @@ export interface NSInputFloatState
|
|
|
23
23
|
error?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export class NSInputFloat extends React.Component<
|
|
26
|
+
export class NSInputFloat extends React.Component<INSInputFloatProps, NSInputFloatState>
|
|
27
27
|
{
|
|
28
|
-
constructor(props:
|
|
28
|
+
constructor(props: INSInputFloatProps)
|
|
29
29
|
{
|
|
30
30
|
super(props);
|
|
31
31
|
this.state = { value: props.defaultValue };
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSInput.module.css";
|
|
5
5
|
import IconInputIP from '../assets/images/icon-input-ip.svg';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
7
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
8
|
+
import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
9
9
|
import { Validator } from "../Validator";
|
|
10
10
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
11
11
|
|
|
12
|
-
export interface
|
|
12
|
+
export interface INSInputIPProps extends IBaseComponentProps, IValidationProps, IValidationStringProps
|
|
13
13
|
{
|
|
14
14
|
title: string;
|
|
15
15
|
defaultValue?: string;
|
|
@@ -23,9 +23,9 @@ export interface NSInputIPState
|
|
|
23
23
|
error?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export class NSInputIP extends React.Component<
|
|
26
|
+
export class NSInputIP extends React.Component<INSInputIPProps, NSInputIPState>
|
|
27
27
|
{
|
|
28
|
-
constructor(props:
|
|
28
|
+
constructor(props: INSInputIPProps)
|
|
29
29
|
{
|
|
30
30
|
super(props);
|
|
31
31
|
this.state = { value: props.defaultValue ?? "" };
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSInput.module.css";
|
|
5
5
|
import IconInputInteger from '../assets/images/icon-input-integer.svg';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
7
|
+
import { IValidationNumberProps } from "../props/IValidationNumberProps";
|
|
8
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
9
9
|
import { Validator } from "../Validator";
|
|
10
10
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
11
11
|
|
|
12
|
-
export interface
|
|
12
|
+
export interface INSInputIntegerProps extends IBaseComponentProps, IValidationProps, IValidationNumberProps
|
|
13
13
|
{
|
|
14
14
|
title: string;
|
|
15
15
|
defaultValue?: number;
|
|
@@ -23,9 +23,9 @@ export interface NSInputIntegerState
|
|
|
23
23
|
error?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export class NSInputInteger extends React.Component<
|
|
26
|
+
export class NSInputInteger extends React.Component<INSInputIntegerProps, NSInputIntegerState>
|
|
27
27
|
{
|
|
28
|
-
constructor(props:
|
|
28
|
+
constructor(props: INSInputIntegerProps)
|
|
29
29
|
{
|
|
30
30
|
super(props);
|
|
31
31
|
this.state = { value: props.defaultValue };
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSInput.module.css";
|
|
5
5
|
import IconInputString from '../assets/images/icon-input-string.svg';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
7
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
8
|
+
import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
9
9
|
import { Validator } from "../Validator";
|
|
10
10
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
11
11
|
|
|
12
|
-
export interface
|
|
12
|
+
export interface INSInputPasswordProps extends IBaseComponentProps, IValidationProps, IValidationStringProps
|
|
13
13
|
{
|
|
14
14
|
title: string;
|
|
15
15
|
defaultValue?: string;
|
|
@@ -23,9 +23,9 @@ export interface NSInputPasswordState
|
|
|
23
23
|
error?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export class NSInputPassword extends React.Component<
|
|
26
|
+
export class NSInputPassword extends React.Component<INSInputPasswordProps, NSInputPasswordState>
|
|
27
27
|
{
|
|
28
|
-
constructor(props:
|
|
28
|
+
constructor(props: INSInputPasswordProps)
|
|
29
29
|
{
|
|
30
30
|
super(props);
|
|
31
31
|
this.state = { value: props.defaultValue ?? "" };
|
|
@@ -5,13 +5,13 @@ import Styles from "./NSInput.module.css";
|
|
|
5
5
|
import IconInputPhone from '../assets/images/icon-input-phone.svg';
|
|
6
6
|
import PhoneInput from 'react-phone-input-2'
|
|
7
7
|
import 'react-phone-input-2/lib/style.css'
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
9
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
10
|
+
import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
11
11
|
import { Validator } from "../Validator";
|
|
12
12
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
13
13
|
|
|
14
|
-
export interface
|
|
14
|
+
export interface INSInputPhoneProps extends IBaseComponentProps, IValidationProps, IValidationStringProps
|
|
15
15
|
{
|
|
16
16
|
title: string;
|
|
17
17
|
defaultValue?: string;
|
|
@@ -25,9 +25,9 @@ export interface NSInputPhoneState
|
|
|
25
25
|
error?: string;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export class NSInputPhone extends React.Component<
|
|
28
|
+
export class NSInputPhone extends React.Component<INSInputPhoneProps, NSInputPhoneState>
|
|
29
29
|
{
|
|
30
|
-
constructor(props:
|
|
30
|
+
constructor(props: INSInputPhoneProps)
|
|
31
31
|
{
|
|
32
32
|
super(props);
|
|
33
33
|
this.state = { value: props.defaultValue ?? "" };
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSInput.module.css";
|
|
5
5
|
import IconInputPrice from '../assets/images/icon-input-price.svg';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
7
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
8
|
+
import { IValidationNumberProps } from "../props/IValidationNumberProps";
|
|
9
9
|
import { Validator } from "../Validator";
|
|
10
10
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
11
11
|
|
|
12
|
-
export interface
|
|
12
|
+
export interface INSInputPriceProps extends IBaseComponentProps, IValidationProps, IValidationNumberProps
|
|
13
13
|
{
|
|
14
14
|
title: string;
|
|
15
15
|
defaultValue?: number;
|
|
@@ -23,9 +23,9 @@ export interface NSInputPriceState
|
|
|
23
23
|
error?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export class NSInputPrice extends React.Component<
|
|
26
|
+
export class NSInputPrice extends React.Component<INSInputPriceProps, NSInputPriceState>
|
|
27
27
|
{
|
|
28
|
-
constructor(props:
|
|
28
|
+
constructor(props: INSInputPriceProps)
|
|
29
29
|
{
|
|
30
30
|
super(props);
|
|
31
31
|
this.state = { value: props.defaultValue };
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSInput.module.css";
|
|
5
5
|
import IconInputSearch from '../assets/images/icon-input-search.svg';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
7
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
8
|
+
import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
9
9
|
import { Validator } from "../Validator";
|
|
10
10
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
11
11
|
|
|
12
|
-
export interface
|
|
12
|
+
export interface INSInputSearchProps extends IBaseComponentProps, IValidationProps, IValidationStringProps
|
|
13
13
|
{
|
|
14
14
|
title: string;
|
|
15
15
|
defaultValue?: string;
|
|
@@ -23,9 +23,9 @@ export interface NSInputSearchState
|
|
|
23
23
|
error?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export class NSInputSearch extends React.Component<
|
|
26
|
+
export class NSInputSearch extends React.Component<INSInputSearchProps, NSInputSearchState>
|
|
27
27
|
{
|
|
28
|
-
constructor(props:
|
|
28
|
+
constructor(props: INSInputSearchProps)
|
|
29
29
|
{
|
|
30
30
|
super(props);
|
|
31
31
|
this.state = { value: props.defaultValue ?? "" };
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSInput.module.css";
|
|
5
5
|
import IconInputString from '../assets/images/icon-input-string.svg';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
7
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
8
|
+
import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
9
9
|
import { Validator } from "../Validator";
|
|
10
10
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
11
11
|
|
|
12
|
-
export interface
|
|
12
|
+
export interface INSInputStringProps extends IBaseComponentProps, IValidationProps, IValidationStringProps
|
|
13
13
|
{
|
|
14
14
|
title: string;
|
|
15
15
|
defaultValue?: string;
|
|
@@ -23,9 +23,9 @@ export interface NSInputStringState
|
|
|
23
23
|
error?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export class NSInputString extends React.Component<
|
|
26
|
+
export class NSInputString extends React.Component<INSInputStringProps, NSInputStringState>
|
|
27
27
|
{
|
|
28
|
-
constructor(props:
|
|
28
|
+
constructor(props: INSInputStringProps)
|
|
29
29
|
{
|
|
30
30
|
super(props);
|
|
31
31
|
this.state = { value: props.defaultValue ?? "" };
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSInput.module.css";
|
|
5
5
|
import IconInputText from '../assets/images/icon-input-text.svg';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
7
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
8
|
+
import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
9
9
|
import { Validator } from "../Validator";
|
|
10
10
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
11
11
|
|
|
12
|
-
export interface
|
|
12
|
+
export interface INSInputTextProps extends IBaseComponentProps, IValidationProps, IValidationStringProps
|
|
13
13
|
{
|
|
14
14
|
title: string;
|
|
15
15
|
defaultValue?: string;
|
|
@@ -23,9 +23,9 @@ export interface NSInputTextState
|
|
|
23
23
|
error?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export class NSInputText extends React.Component<
|
|
26
|
+
export class NSInputText extends React.Component<INSInputTextProps, NSInputTextState>
|
|
27
27
|
{
|
|
28
|
-
constructor(props:
|
|
28
|
+
constructor(props: INSInputTextProps)
|
|
29
29
|
{
|
|
30
30
|
super(props);
|
|
31
31
|
this.state = { value: props.defaultValue ?? "" };
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Styles from "./NSInput.module.css";
|
|
5
5
|
import IconInputTime from '../assets/images/icon-input-time.svg';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
7
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
8
|
+
import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
9
9
|
import { Validator } from "../Validator";
|
|
10
10
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
11
11
|
|
|
12
|
-
export interface
|
|
12
|
+
export interface INSInputTimeProps extends IBaseComponentProps, IValidationProps, IValidationStringProps
|
|
13
13
|
{
|
|
14
14
|
title: string;
|
|
15
15
|
defaultValue?: string;
|
|
@@ -23,9 +23,9 @@ export interface NSInputTimeState
|
|
|
23
23
|
error?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export class NSInputTime extends React.Component<
|
|
26
|
+
export class NSInputTime extends React.Component<INSInputTimeProps, NSInputTimeState>
|
|
27
27
|
{
|
|
28
|
-
constructor(props:
|
|
28
|
+
constructor(props: INSInputTimeProps)
|
|
29
29
|
{
|
|
30
30
|
super(props);
|
|
31
31
|
this.state = { value: props.defaultValue ?? "" };
|
|
@@ -2,19 +2,19 @@ import Styles from './NSLayout.module.css';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { NSHeader } from './NSHeader';
|
|
4
4
|
import { NSFooter } from './NSFooter';
|
|
5
|
-
import {
|
|
6
|
-
import { NSNotification,
|
|
5
|
+
import { IBaseComponentProps } from '../props/IBaseComponentProps';
|
|
6
|
+
import { NSNotification, INSNotificationProps } from './NSNotification';
|
|
7
7
|
|
|
8
|
-
export interface
|
|
8
|
+
export interface INSLayoutProps extends IBaseComponentProps
|
|
9
9
|
{
|
|
10
10
|
scope: string;
|
|
11
11
|
logo: string;
|
|
12
12
|
background?: string;
|
|
13
|
-
notifications:
|
|
13
|
+
notifications: INSNotificationProps[];
|
|
14
14
|
children: ReactNode;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export function NSLayout(props:
|
|
17
|
+
export function NSLayout(props: INSLayoutProps)
|
|
18
18
|
{
|
|
19
19
|
return (
|
|
20
20
|
<div id={props.id}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
import { NSLayout,
|
|
4
|
+
import { NSLayout, INSLayoutProps } from './NSLayout';
|
|
5
5
|
import Styles from './NSLayoutHeroBanner.module.css'
|
|
6
6
|
import { Link } from 'react-router-dom';
|
|
7
|
-
import {
|
|
7
|
+
import { IBaseComponentProps } from '../props/IBaseComponentProps';
|
|
8
8
|
|
|
9
|
-
export interface
|
|
9
|
+
export interface INSLayoutHeroBannerProps extends INSLayoutProps, IBaseComponentProps
|
|
10
10
|
{
|
|
11
11
|
title: string;
|
|
12
12
|
description?: string;
|
|
@@ -15,7 +15,7 @@ export interface NSLayoutHeroBannerProps extends NSLayoutProps, BaseComponentPro
|
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export function NSLayoutHeroBanner(props:
|
|
18
|
+
export function NSLayoutHeroBanner(props: INSLayoutHeroBannerProps)
|
|
19
19
|
{
|
|
20
20
|
return (
|
|
21
21
|
<NSLayout {...props} >
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import Styles from './NSLayoutTitle.module.css';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { NSLayout,
|
|
3
|
+
import { NSLayout, INSLayoutProps } from './NSLayout';
|
|
4
4
|
import { NSSpace, NSSpaceSizeType } from './NSSpace';
|
|
5
|
-
import {
|
|
5
|
+
import { IBaseComponentProps } from '../props/IBaseComponentProps';
|
|
6
6
|
|
|
7
|
-
export interface
|
|
7
|
+
export interface INSLayoutTitleProps extends INSLayoutProps, IBaseComponentProps
|
|
8
8
|
{
|
|
9
9
|
title: string;
|
|
10
10
|
description?: string;
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export function NSLayoutTitle(props:
|
|
14
|
+
export function NSLayoutTitle(props: INSLayoutTitleProps)
|
|
15
15
|
{
|
|
16
16
|
let lines = (props.description ?? "").split(/(\n|\\n|<br>|<br\s*\/>)/gm);
|
|
17
17
|
return (
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
2
|
+
import { ILinkProps } from "../props/ILinkProps";
|
|
3
3
|
import Styles from "./NSLink.module.css";
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface INSILinkProps extends ILinkProps, IBaseComponentProps
|
|
6
6
|
{
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export function NSLink(props:
|
|
9
|
+
export function NSLink(props: INSILinkProps)
|
|
10
10
|
{
|
|
11
11
|
return (
|
|
12
12
|
<div
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NSLink,
|
|
1
|
+
import { NSLink, INSILinkProps } from "./NSLink";
|
|
2
2
|
|
|
3
|
-
export function NSLinkBlue(props:
|
|
3
|
+
export function NSLinkBlue(props: INSILinkProps)
|
|
4
4
|
{
|
|
5
5
|
return <NSLink id={props.id} classList={props.classList} style={{ ...props.style, backgroundColor: "#366EFF" }} title={props.title} href={props.href} target={props.target} />;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NSLink,
|
|
1
|
+
import { NSLink, INSILinkProps } from "./NSLink";
|
|
2
2
|
|
|
3
|
-
export function NSLinkGreen(props:
|
|
3
|
+
export function NSLinkGreen(props: INSILinkProps)
|
|
4
4
|
{
|
|
5
5
|
return <NSLink id={props.id} classList={props.classList} style={{ ...props.style, backgroundColor: "#06D182" }} title={props.title} href={props.href} target={props.target} />;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NSLink,
|
|
1
|
+
import { NSLink, INSILinkProps } from "./NSLink";
|
|
2
2
|
|
|
3
|
-
export function NSLinkRed(props:
|
|
3
|
+
export function NSLinkRed(props: INSILinkProps)
|
|
4
4
|
{
|
|
5
5
|
return <NSLink id={props.id} classList={props.classList} style={{ ...props.style, backgroundColor: "rgb(265, 63, 63, 1)" }} title={props.title} href={props.href} target={props.target} />;
|
|
6
6
|
}
|