namirasoft-site-react 1.2.0 → 1.2.1
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.d.ts +4 -0
- package/dist/App.js +47 -0
- package/dist/App.js.map +1 -0
- package/dist/components/NSButtonGreen.d.ts +11 -0
- package/dist/components/NSButtonGreen.js +9 -0
- package/dist/components/NSButtonGreen.js.map +1 -0
- package/dist/components/NSButtonRed.d.ts +11 -0
- package/dist/components/NSButtonRed.js +9 -0
- package/dist/components/NSButtonRed.js.map +1 -0
- package/dist/components/NSFooter.d.ts +19 -0
- package/dist/components/NSFooter.js +45 -0
- package/dist/components/NSFooter.js.map +1 -0
- package/dist/components/NSHeader.d.ts +22 -0
- package/dist/components/NSHeader.js +63 -0
- package/dist/components/NSHeader.js.map +1 -0
- package/dist/components/NSInputDate.d.ts +15 -0
- package/dist/components/NSInputDate.js +27 -0
- package/dist/components/NSInputDate.js.map +1 -0
- package/dist/components/NSInputDuration.d.ts +15 -0
- package/dist/components/NSInputDuration.js +28 -0
- package/dist/components/NSInputDuration.js.map +1 -0
- package/dist/components/NSInputEmail.d.ts +16 -0
- package/dist/components/NSInputEmail.js +36 -0
- package/dist/components/NSInputEmail.js.map +1 -0
- package/dist/components/NSInputFloat.d.ts +15 -0
- package/dist/components/NSInputFloat.js +28 -0
- package/dist/components/NSInputFloat.js.map +1 -0
- package/dist/components/NSInputIP.d.ts +15 -0
- package/dist/components/NSInputIP.js +28 -0
- package/dist/components/NSInputIP.js.map +1 -0
- package/dist/components/NSInputInteger.d.ts +15 -0
- package/dist/components/NSInputInteger.js +28 -0
- package/dist/components/NSInputInteger.js.map +1 -0
- package/dist/components/NSInputPhone.d.ts +16 -0
- package/dist/components/NSInputPhone.js +30 -0
- package/dist/components/NSInputPhone.js.map +1 -0
- package/dist/components/NSInputPrice.d.ts +15 -0
- package/dist/components/NSInputPrice.js +28 -0
- package/dist/components/NSInputPrice.js.map +1 -0
- package/dist/components/NSInputSearch.d.ts +17 -0
- package/dist/components/NSInputSearch.js +37 -0
- package/dist/components/NSInputSearch.js.map +1 -0
- package/dist/components/NSInputString.d.ts +15 -0
- package/dist/components/NSInputString.js +28 -0
- package/dist/components/NSInputString.js.map +1 -0
- package/dist/components/NSInputText.d.ts +15 -0
- package/dist/components/NSInputText.js +28 -0
- package/dist/components/NSInputText.js.map +1 -0
- package/dist/components/NSInputTime.d.ts +15 -0
- package/dist/components/NSInputTime.js +28 -0
- package/dist/components/NSInputTime.js.map +1 -0
- package/dist/components/NSSelectBox.d.ts +16 -0
- package/dist/components/NSSelectBox.js +24 -0
- package/dist/components/NSSelectBox.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +17 -0
- package/dist/main.js +18 -0
- package/dist/main.js.map +1 -0
- package/package.json +18 -10
- package/src/App.tsx +48 -49
- package/src/components/NSButtonGreen.tsx +3 -6
- package/src/components/NSButtonRed.tsx +3 -6
- package/src/components/NSHeader.tsx +14 -28
- package/src/main.ts +17 -0
- package/tsconfig.json +32 -32
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import Styles from "./NSInputPhone.module.css";
|
|
4
|
+
import IconInputPhone from '../assets/images/icon-input-phone.svg';
|
|
5
|
+
import PhoneInput from 'react-phone-input-2';
|
|
6
|
+
import 'react-phone-input-2/lib/style.css';
|
|
7
|
+
export default class NSInputPhone extends React.Component {
|
|
8
|
+
constructor(props) {
|
|
9
|
+
super(props);
|
|
10
|
+
this.state = {
|
|
11
|
+
value: "",
|
|
12
|
+
};
|
|
13
|
+
this.setValue = this.setValue.bind(this);
|
|
14
|
+
this.getValue = this.getValue.bind(this);
|
|
15
|
+
this.setDefaultValue = this.setDefaultValue.bind(this);
|
|
16
|
+
}
|
|
17
|
+
setValue(value) {
|
|
18
|
+
this.setState({ value });
|
|
19
|
+
}
|
|
20
|
+
setDefaultValue(value) {
|
|
21
|
+
this.setState({ value });
|
|
22
|
+
}
|
|
23
|
+
getValue() {
|
|
24
|
+
return this.state.value;
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return (_jsxs("div", { className: `${Styles.ns_input_parent} p-2`, children: [_jsx("span", { className: Styles.ns_input_title, children: this.props.title }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputPhone, alt: "icon", width: 24, height: 24 }), _jsx(PhoneInput, { inputClass: Styles.ns_input, country: 'us', value: this.state.value, onChange: this.setValue })] }));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=NSInputPhone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSInputPhone.js","sourceRoot":"","sources":["../../src/components/NSInputPhone.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,cAAc,MAAM,uCAAuC,CAAC;AACnE,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,mCAAmC,CAAA;AAY1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,SAAyB;IACrE,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,KAAK,EAAE,EAAE;SACZ,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IACD,QAAQ,CAAC,KAAa;QAElB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,eAAe,CAAC,KAAa;QAEzB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,QAAQ;QAEJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,MAAM,aAC3C,eAAM,SAAS,EAAE,MAAM,CAAC,cAAc,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAQ,EACjE,cACI,SAAS,EAAE,MAAM,CAAC,aAAa,EAC/B,GAAG,EAAE,cAAc,EACnB,GAAG,EAAC,MAAM,EACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACZ,EACF,KAAC,UAAU,IACP,UAAU,EAAE,MAAM,CAAC,QAAQ,EAC3B,OAAO,EAAE,IAAI,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACzB,IACA,CACT,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IProps {
|
|
3
|
+
title: string;
|
|
4
|
+
}
|
|
5
|
+
interface IState {
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
export default class NSInputPrice extends React.Component<IProps, IState> {
|
|
9
|
+
constructor(props: IProps);
|
|
10
|
+
setValue(e: React.ChangeEvent<HTMLInputElement>): void;
|
|
11
|
+
setDefaultValue(value: string): void;
|
|
12
|
+
getValue(): string;
|
|
13
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import Styles from "./NSInputPrice.module.css";
|
|
4
|
+
import IconInputPrice from '../assets/images/icon-input-price.svg';
|
|
5
|
+
export default class NSInputPrice extends React.Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.state = {
|
|
9
|
+
value: "",
|
|
10
|
+
};
|
|
11
|
+
this.setValue = this.setValue.bind(this);
|
|
12
|
+
this.getValue = this.getValue.bind(this);
|
|
13
|
+
this.setDefaultValue = this.setDefaultValue.bind(this);
|
|
14
|
+
}
|
|
15
|
+
setValue(e) {
|
|
16
|
+
this.setState({ value: e.target.value });
|
|
17
|
+
}
|
|
18
|
+
setDefaultValue(value) {
|
|
19
|
+
this.setState({ value });
|
|
20
|
+
}
|
|
21
|
+
getValue() {
|
|
22
|
+
return this.state.value;
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return (_jsxs("div", { className: `${Styles.ns_input_parent} p-2`, children: [_jsx("span", { className: Styles.ns_input_title, children: this.props.title }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputPrice, alt: "icon", width: 24, height: 24 }), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "number", className: Styles.ns_input, placeholder: "$1000" })] }));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=NSInputPrice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSInputPrice.js","sourceRoot":"","sources":["../../src/components/NSInputPrice.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,cAAc,MAAM,uCAAuC,CAAC;AAYnE,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,SAAyB;IACrE,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,KAAK,EAAE,EAAE;SACZ,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IACD,QAAQ,CAAC,CAAsC;QAE3C,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,eAAe,CAAC,KAAa;QAEzB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,QAAQ;QAEJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,MAAM,aAC3C,eAAM,SAAS,EAAE,MAAM,CAAC,cAAc,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAQ,EACjE,cACI,SAAS,EAAE,MAAM,CAAC,aAAa,EAC/B,GAAG,EAAE,cAAc,EACnB,GAAG,EAAC,MAAM,EACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACZ,EACF,gBACI,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAC,OAAO,GACrB,IACA,CACT,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IProps {
|
|
3
|
+
title: string;
|
|
4
|
+
}
|
|
5
|
+
interface IState {
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
export default class NSInputSearch extends React.Component<IProps, IState> {
|
|
9
|
+
constructor(props: IProps);
|
|
10
|
+
setValue(e: React.ChangeEvent<HTMLInputElement>): void;
|
|
11
|
+
setDefaultValue(value: string): void;
|
|
12
|
+
getValue(): string;
|
|
13
|
+
onChanged(e: React.ChangeEvent<HTMLInputElement>): void;
|
|
14
|
+
keyDownEvent(event: React.KeyboardEvent<HTMLDivElement>): void;
|
|
15
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import Styles from "./NSInputSearch.module.css";
|
|
4
|
+
import IconInputSearch from '../assets/images/icon-input-search.svg';
|
|
5
|
+
export default class NSInputSearch extends React.Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.state = {
|
|
9
|
+
value: "",
|
|
10
|
+
};
|
|
11
|
+
this.setValue = this.setValue.bind(this);
|
|
12
|
+
this.getValue = this.getValue.bind(this);
|
|
13
|
+
this.setDefaultValue = this.setDefaultValue.bind(this);
|
|
14
|
+
this.keyDownEvent = this.keyDownEvent.bind(this);
|
|
15
|
+
}
|
|
16
|
+
setValue(e) {
|
|
17
|
+
this.setState({ value: e.target.value });
|
|
18
|
+
}
|
|
19
|
+
setDefaultValue(value) {
|
|
20
|
+
this.setState({ value });
|
|
21
|
+
}
|
|
22
|
+
getValue() {
|
|
23
|
+
return this.state.value;
|
|
24
|
+
}
|
|
25
|
+
onChanged(e) {
|
|
26
|
+
this.setValue(e);
|
|
27
|
+
}
|
|
28
|
+
keyDownEvent(event) {
|
|
29
|
+
if (event.code === "Enter") {
|
|
30
|
+
console.log("function");
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
return (_jsxs("div", { className: `${Styles.ns_input_form} p-2`, children: [_jsx("span", { className: Styles.ns_input_title, children: this.props.title }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputSearch, alt: "icon", width: 32, height: 32 }), _jsx("input", { value: this.state.value, onChange: this.setValue, onKeyDown: this.keyDownEvent, type: "text", className: Styles.ns_input, placeholder: "Search" })] }));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=NSInputSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSInputSearch.js","sourceRoot":"","sources":["../../src/components/NSInputSearch.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,eAAe,MAAM,wCAAwC,CAAC;AAYrE,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK,CAAC,SAAyB;IACtE,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,KAAK,EAAE,EAAE;SACZ,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IACD,QAAQ,CAAC,CAAsC;QAE3C,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,eAAe,CAAC,KAAa;QAEzB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,QAAQ;QAEJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAC5B,CAAC;IACD,SAAS,CAAC,CAAsC;QAE5C,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;IACD,YAAY,CAAC,KAA0C;QAEnD,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,EAC1B;YAEI,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;SAC1B;IACL,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,aAAa,MAAM,aACzC,eAAM,SAAS,EAAE,MAAM,CAAC,cAAc,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAQ,EACjE,cACI,SAAS,EAAE,MAAM,CAAC,aAAa,EAC/B,GAAG,EAAE,eAAe,EACpB,GAAG,EAAC,MAAM,EACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACZ,EACF,gBACI,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,SAAS,EAAE,IAAI,CAAC,YAAY,EAC5B,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAC,QAAQ,GACtB,IACA,CACT,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IProps {
|
|
3
|
+
title: string;
|
|
4
|
+
}
|
|
5
|
+
interface IState {
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
export default class NSInputString extends React.Component<IProps, IState> {
|
|
9
|
+
constructor(props: IProps);
|
|
10
|
+
setValue(e: React.ChangeEvent<HTMLInputElement>): void;
|
|
11
|
+
setDefaultValue(value: string): void;
|
|
12
|
+
getValue(): string;
|
|
13
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import Styles from "./NSInputString.module.css";
|
|
4
|
+
import IconInputString from '../assets/images/icon-input-string.svg';
|
|
5
|
+
export default class NSInputString extends React.Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.state = {
|
|
9
|
+
value: "",
|
|
10
|
+
};
|
|
11
|
+
this.setValue = this.setValue.bind(this);
|
|
12
|
+
this.getValue = this.getValue.bind(this);
|
|
13
|
+
this.setDefaultValue = this.setDefaultValue.bind(this);
|
|
14
|
+
}
|
|
15
|
+
setValue(e) {
|
|
16
|
+
this.setState({ value: e.target.value });
|
|
17
|
+
}
|
|
18
|
+
setDefaultValue(value) {
|
|
19
|
+
this.setState({ value });
|
|
20
|
+
}
|
|
21
|
+
getValue() {
|
|
22
|
+
return this.state.value;
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return (_jsxs("div", { className: `${Styles.ns_input_parent} p-2`, children: [_jsx("span", { className: Styles.ns_input_title, children: this.props.title }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputString, alt: "icon", width: 24, height: 24 }), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "text", className: Styles.ns_input, placeholder: "12AB34cf" })] }));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=NSInputString.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSInputString.js","sourceRoot":"","sources":["../../src/components/NSInputString.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,eAAe,MAAM,wCAAwC,CAAC;AAYrE,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK,CAAC,SAAyB;IACtE,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,KAAK,EAAE,EAAE;SACZ,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IACD,QAAQ,CAAC,CAAsC;QAE3C,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,eAAe,CAAC,KAAa;QAEzB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,QAAQ;QAEJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,MAAM,aAC3C,eAAM,SAAS,EAAE,MAAM,CAAC,cAAc,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAQ,EACjE,cACI,SAAS,EAAE,MAAM,CAAC,aAAa,EAC/B,GAAG,EAAE,eAAe,EACpB,GAAG,EAAC,MAAM,EACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACZ,EACF,gBACI,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAC,UAAU,GACxB,IACA,CACT,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IProps {
|
|
3
|
+
title: string;
|
|
4
|
+
}
|
|
5
|
+
interface IState {
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
export default class NSInputText extends React.Component<IProps, IState> {
|
|
9
|
+
constructor(props: IProps);
|
|
10
|
+
setValue(e: React.ChangeEvent<HTMLInputElement>): void;
|
|
11
|
+
setDefaultValue(value: string): void;
|
|
12
|
+
getValue(): string;
|
|
13
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import Styles from "./NSInputText.module.css";
|
|
4
|
+
import IconInputText from '../assets/images/icon-input-text.svg';
|
|
5
|
+
export default class NSInputText extends React.Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.state = {
|
|
9
|
+
value: "",
|
|
10
|
+
};
|
|
11
|
+
this.setValue = this.setValue.bind(this);
|
|
12
|
+
this.getValue = this.getValue.bind(this);
|
|
13
|
+
this.setDefaultValue = this.setDefaultValue.bind(this);
|
|
14
|
+
}
|
|
15
|
+
setValue(e) {
|
|
16
|
+
this.setState({ value: e.target.value });
|
|
17
|
+
}
|
|
18
|
+
setDefaultValue(value) {
|
|
19
|
+
this.setState({ value });
|
|
20
|
+
}
|
|
21
|
+
getValue() {
|
|
22
|
+
return this.state.value;
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return (_jsxs("div", { className: `${Styles.ns_input_parent} p-2`, children: [_jsx("span", { className: Styles.ns_input_title, children: this.props.title }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputText, alt: "icon", width: 24, height: 24 }), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "text", className: Styles.ns_input, placeholder: "Enter your Text" })] }));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=NSInputText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSInputText.js","sourceRoot":"","sources":["../../src/components/NSInputText.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,aAAa,MAAM,sCAAsC,CAAC;AAYjE,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,SAAyB;IACpE,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,KAAK,EAAE,EAAE;SACZ,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IACD,QAAQ,CAAC,CAAsC;QAE3C,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,eAAe,CAAC,KAAa;QAEzB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,QAAQ;QAEJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,MAAM,aAC3C,eAAM,SAAS,EAAE,MAAM,CAAC,cAAc,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAQ,EACjE,cACI,SAAS,EAAE,MAAM,CAAC,aAAa,EAC/B,GAAG,EAAE,aAAa,EAClB,GAAG,EAAC,MAAM,EACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACZ,EACF,gBACI,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAC,iBAAiB,GAC/B,IAEA,CACT,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IProps {
|
|
3
|
+
title: string;
|
|
4
|
+
}
|
|
5
|
+
interface IState {
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
export default class NSInputTime extends React.Component<IProps, IState> {
|
|
9
|
+
constructor(props: IProps);
|
|
10
|
+
setValue(e: React.ChangeEvent<HTMLInputElement>): void;
|
|
11
|
+
setDefaultValue(value: string): void;
|
|
12
|
+
getValue(): string;
|
|
13
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import Styles from "./NSInputTime.module.css";
|
|
4
|
+
import IconInputTime from '../assets/images/icon-input-time.svg';
|
|
5
|
+
export default class NSInputTime extends React.Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.state = {
|
|
9
|
+
value: "",
|
|
10
|
+
};
|
|
11
|
+
this.setValue = this.setValue.bind(this);
|
|
12
|
+
this.getValue = this.getValue.bind(this);
|
|
13
|
+
this.setDefaultValue = this.setDefaultValue.bind(this);
|
|
14
|
+
}
|
|
15
|
+
setValue(e) {
|
|
16
|
+
this.setState({ value: e.target.value });
|
|
17
|
+
}
|
|
18
|
+
setDefaultValue(value) {
|
|
19
|
+
this.setState({ value });
|
|
20
|
+
}
|
|
21
|
+
getValue() {
|
|
22
|
+
return this.state.value;
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return (_jsxs("div", { className: `${Styles.ns_input_parent} p-2`, children: [_jsx("span", { className: Styles.ns_input_title, children: this.props.title }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputTime, alt: "icon", width: 24, height: 24 }), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "time", className: Styles.ns_input, placeholder: "21:44:06", step: "2" })] }));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=NSInputTime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSInputTime.js","sourceRoot":"","sources":["../../src/components/NSInputTime.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,aAAa,MAAM,sCAAsC,CAAC;AAYjE,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,SAAyB;IACpE,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,KAAK,EAAE,EAAE;SACZ,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IACD,QAAQ,CAAC,CAAsC;QAE3C,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,eAAe,CAAC,KAAa;QAEzB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,QAAQ;QAEJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,MAAM,aAC3C,eAAM,SAAS,EAAE,MAAM,CAAC,cAAc,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAQ,EACjE,cACI,SAAS,EAAE,MAAM,CAAC,aAAa,EAC/B,GAAG,EAAE,aAAa,EAClB,GAAG,EAAC,MAAM,EACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACZ,EACF,gBACI,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAC,UAAU,EACtB,IAAI,EAAC,GAAG,GACV,IACA,CACT,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { SelectProps } from 'antd';
|
|
3
|
+
interface IProps {
|
|
4
|
+
title: string;
|
|
5
|
+
options: SelectProps['options'];
|
|
6
|
+
}
|
|
7
|
+
interface IState {
|
|
8
|
+
value: string[];
|
|
9
|
+
}
|
|
10
|
+
export default class NSSelectBox extends React.Component<IProps, IState> {
|
|
11
|
+
constructor(props: IProps);
|
|
12
|
+
setValue(value: string[]): void;
|
|
13
|
+
getValue(): string[];
|
|
14
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import Styles from "./NSSelectBox.module.css";
|
|
4
|
+
import { Select, Space } from 'antd';
|
|
5
|
+
import { CaretDownOutlined } from '@ant-design/icons';
|
|
6
|
+
export default class NSSelectBox extends React.Component {
|
|
7
|
+
constructor(props) {
|
|
8
|
+
super(props);
|
|
9
|
+
this.state = {
|
|
10
|
+
value: [],
|
|
11
|
+
};
|
|
12
|
+
this.setValue = this.setValue.bind(this);
|
|
13
|
+
}
|
|
14
|
+
setValue(value) {
|
|
15
|
+
this.setState({ value });
|
|
16
|
+
}
|
|
17
|
+
getValue() {
|
|
18
|
+
return this.state.value;
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return (_jsx("div", { className: `${Styles.ns_input_parent} p-2`, children: _jsx(Select, { suffixIcon: _jsx(CaretDownOutlined, {}), mode: "multiple", style: { width: '100%' }, className: Styles.ns_input_select, placeholder: "Combo Box", onChange: this.setValue, optionLabelProp: "label", options: this.props.options, optionRender: (option) => (_jsx(Space, { className: Styles.ns_input_select_option, children: option.data.desc })) }) }));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=NSSelectBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSSelectBox.js","sourceRoot":"","sources":["../../src/components/NSSelectBox.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,EAAC,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAapD,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,SAAyB;IACpE,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,KAAK,EAAE,EAAE;SACZ,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IACD,QAAQ,CAAC,KAAe;QAEpB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,QAAQ;QAEJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAC5B,CAAC;IACQ,MAAM;QAGX,OAAO,CACH,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,MAAM,YAC3C,KAAC,MAAM,IACH,UAAU,EAAE,KAAC,iBAAiB,KAAG,EACjC,IAAI,EAAC,UAAU,EACf,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EACxB,SAAS,EAAE,MAAM,CAAC,eAAe,EACjC,WAAW,EAAC,WAAW,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,eAAe,EAAC,OAAO,EACvB,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,EAC3B,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CACtB,KAAC,KAAK,IAAC,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC1C,MAAM,CAAC,IAAI,CAAC,IAAI,GACb,CACX,GACH,GACA,CACT,CAAC;IACN,CAAC;CACJ"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.css';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import ReactDOM from 'react-dom/client';
|
|
3
|
+
import './index.css';
|
|
4
|
+
import App from './App';
|
|
5
|
+
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
6
|
+
root.render(_jsx(App, {}));
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,aAAa,CAAC;AACrB,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,MAAM,IAAI,GAAG,QAAQ,CAAC,UAAU,CAC9B,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAgB,CAC/C,CAAC;AACF,IAAI,CAAC,MAAM,CAAC,KAAC,GAAG,KAAG,CAAC,CAAC"}
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from "./components/NSButtonGreen";
|
|
2
|
+
export * from "./components/NSButtonRed";
|
|
3
|
+
export * from "./components/NSFooter";
|
|
4
|
+
export * from "./components/NSHeader";
|
|
5
|
+
export * from "./components/NSInputDate";
|
|
6
|
+
export * from "./components/NSInputDuration";
|
|
7
|
+
export * from "./components/NSInputEmail";
|
|
8
|
+
export * from "./components/NSInputFloat";
|
|
9
|
+
export * from "./components/NSInputIP";
|
|
10
|
+
export * from "./components/NSInputInteger";
|
|
11
|
+
export * from "./components/NSInputPhone";
|
|
12
|
+
export * from "./components/NSInputPrice";
|
|
13
|
+
export * from "./components/NSInputSearch";
|
|
14
|
+
export * from "./components/NSInputString";
|
|
15
|
+
export * from "./components/NSInputText";
|
|
16
|
+
export * from "./components/NSInputTime";
|
|
17
|
+
export * from "./components/NSSelectBox";
|
package/dist/main.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from "./components/NSButtonGreen";
|
|
2
|
+
export * from "./components/NSButtonRed";
|
|
3
|
+
export * from "./components/NSFooter";
|
|
4
|
+
export * from "./components/NSHeader";
|
|
5
|
+
export * from "./components/NSInputDate";
|
|
6
|
+
export * from "./components/NSInputDuration";
|
|
7
|
+
export * from "./components/NSInputEmail";
|
|
8
|
+
export * from "./components/NSInputFloat";
|
|
9
|
+
export * from "./components/NSInputIP";
|
|
10
|
+
export * from "./components/NSInputInteger";
|
|
11
|
+
export * from "./components/NSInputPhone";
|
|
12
|
+
export * from "./components/NSInputPrice";
|
|
13
|
+
export * from "./components/NSInputSearch";
|
|
14
|
+
export * from "./components/NSInputString";
|
|
15
|
+
export * from "./components/NSInputText";
|
|
16
|
+
export * from "./components/NSInputTime";
|
|
17
|
+
export * from "./components/NSSelectBox";
|
|
18
|
+
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "namirasoft-site-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
|
+
"main": "./dist/main.js",
|
|
5
|
+
"types": "./dist/main.d.ts",
|
|
4
6
|
"dependencies": {
|
|
5
|
-
"@types/node": "^20.10.
|
|
6
|
-
"@types/react": "^18.2.
|
|
7
|
-
"@types/react-dom": "^18.2.
|
|
8
|
-
"antd": "^5.12.
|
|
7
|
+
"@types/node": "^20.10.5",
|
|
8
|
+
"@types/react": "^18.2.45",
|
|
9
|
+
"@types/react-dom": "^18.2.18",
|
|
10
|
+
"antd": "^5.12.5",
|
|
9
11
|
"bootstrap": "^5.3.2",
|
|
10
|
-
"namirasoft-api-link": "^1.2.
|
|
12
|
+
"namirasoft-api-link": "^1.2.3",
|
|
11
13
|
"namirasoft-core": "^1.2.4",
|
|
12
14
|
"path-browserify": "^1.0.1",
|
|
13
15
|
"react": "^18.2.0",
|
|
14
16
|
"react-app-rewired": "^2.2.1",
|
|
15
|
-
"react-bootstrap": "^2.9.
|
|
17
|
+
"react-bootstrap": "^2.9.2",
|
|
16
18
|
"react-dom": "^18.2.0",
|
|
17
19
|
"react-phone-input-2": "^2.15.1",
|
|
18
20
|
"react-phone-number-input": "^3.3.7",
|
|
@@ -20,9 +22,11 @@
|
|
|
20
22
|
},
|
|
21
23
|
"scripts": {
|
|
22
24
|
"start": "react-app-rewired start",
|
|
23
|
-
"build": "react-app-rewired build",
|
|
24
25
|
"test": "react-app-rewired test",
|
|
25
|
-
"eject": "react-app-rewired eject"
|
|
26
|
+
"eject": "react-app-rewired eject",
|
|
27
|
+
"clean": "rimraf dist/",
|
|
28
|
+
"copy-files": "copyfiles -u 1 src/**/*.html src/**/*.css dist/",
|
|
29
|
+
"build": "npm run clean && tsc && npm run copy-files"
|
|
26
30
|
},
|
|
27
31
|
"eslintConfig": {
|
|
28
32
|
"extends": [
|
|
@@ -41,5 +45,9 @@
|
|
|
41
45
|
"last 1 firefox version",
|
|
42
46
|
"last 1 safari version"
|
|
43
47
|
]
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"copyfiles": "^2.4.1",
|
|
51
|
+
"rimraf": "^5.0.5"
|
|
44
52
|
}
|
|
45
|
-
}
|
|
53
|
+
}
|
package/src/App.tsx
CHANGED
|
@@ -14,58 +14,57 @@ import NSInputIP from './components/NSInputIP';
|
|
|
14
14
|
import NSInputEmail from './components/NSInputEmail';
|
|
15
15
|
import NSInputSearch from './components/NSInputSearch';
|
|
16
16
|
import NSInputPhone from './components/NSInputPhone';
|
|
17
|
-
import NSButtonGreen from './components/NSButtonGreen';
|
|
18
|
-
import NSButtonRed from './components/NSButtonRed';
|
|
17
|
+
import { NSButtonGreen } from './components/NSButtonGreen';
|
|
18
|
+
import { NSButtonRed } from './components/NSButtonRed';
|
|
19
19
|
import NSSelectBox from './components/NSSelectBox';
|
|
20
20
|
import type { SelectProps } from 'antd';
|
|
21
21
|
|
|
22
|
-
function App()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
);
|
|
22
|
+
function App() {
|
|
23
|
+
const options: SelectProps['options'] = [
|
|
24
|
+
{
|
|
25
|
+
label: 'Test1',
|
|
26
|
+
value: 'test1',
|
|
27
|
+
desc: 'Test1',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: 'Test2',
|
|
31
|
+
value: 'test2',
|
|
32
|
+
desc: 'Test2',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: 'Test3',
|
|
36
|
+
value: 'test3',
|
|
37
|
+
desc: 'Test3',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: 'Test4',
|
|
41
|
+
value: 'test4',
|
|
42
|
+
desc: 'Test4',
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
return (
|
|
46
|
+
<div className="App">
|
|
47
|
+
<NSHeader scope='test' name='test' />
|
|
48
|
+
<div className='my-4'>
|
|
49
|
+
<NSInputText title='Text' />
|
|
50
|
+
<NSInputInteger title='Integer' />
|
|
51
|
+
<NSInputFloat title='Floating Point' />
|
|
52
|
+
<NSInputPrice title='Price' />
|
|
53
|
+
<NSInputDate title='Date' />
|
|
54
|
+
<NSInputTime title='Time' />
|
|
55
|
+
<NSInputDuration title='Duration' />
|
|
56
|
+
<NSInputString title='String' />
|
|
57
|
+
<NSInputIP title='IP' />
|
|
58
|
+
<NSInputEmail title='Email' />
|
|
59
|
+
<NSInputSearch title='Search' />
|
|
60
|
+
<NSInputPhone title='Phone' />
|
|
61
|
+
<NSSelectBox title="t" options={options} />
|
|
62
|
+
<NSButtonGreen title='Save' onClick={() => { }} />
|
|
63
|
+
<NSButtonRed title='Delete' onClick={() => { }} />
|
|
64
|
+
</div>
|
|
65
|
+
<NSFooter scope='test' name='test' />
|
|
66
|
+
</div>
|
|
67
|
+
);
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
export default App;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Style from "./NSButtonGreen.module.css";
|
|
3
3
|
|
|
4
|
-
interface IProps
|
|
5
|
-
{
|
|
4
|
+
interface IProps {
|
|
6
5
|
title: string;
|
|
7
6
|
onClick: () => void;
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
interface IState { }
|
|
11
9
|
|
|
12
|
-
export
|
|
10
|
+
export class NSButtonGreen extends React.Component<IProps, IState>
|
|
13
11
|
{
|
|
14
|
-
override
|
|
15
|
-
{
|
|
12
|
+
override render() {
|
|
16
13
|
return <button onClick={this.props.onClick} className={Style.ns_button_green}>{this.props.title}</button>;
|
|
17
14
|
}
|
|
18
15
|
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Style from "./NSButtonRed.module.css";
|
|
3
3
|
|
|
4
|
-
interface IProps
|
|
5
|
-
{
|
|
4
|
+
interface IProps {
|
|
6
5
|
title: string;
|
|
7
6
|
onClick: () => void;
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
interface IState { }
|
|
11
9
|
|
|
12
|
-
export
|
|
10
|
+
export class NSButtonRed extends React.Component<IProps, IState>
|
|
13
11
|
{
|
|
14
|
-
override
|
|
15
|
-
{
|
|
12
|
+
override render() {
|
|
16
13
|
return <button onClick={this.props.onClick} className={Style.ns_button_red}>{this.props.title}</button>;
|
|
17
14
|
}
|
|
18
15
|
}
|