namirasoft-site-react 1.2.41 → 1.2.42

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.
Files changed (180) hide show
  1. package/.gitlab-ci.yml +14 -14
  2. package/config-overrides.js +65 -65
  3. package/dist/App.d.ts +3 -3
  4. package/dist/App.js +8 -8
  5. package/dist/assets/images/arrow.svg +3 -3
  6. package/dist/assets/images/danger.svg +3 -3
  7. package/dist/assets/images/exit.svg +3 -3
  8. package/dist/assets/images/icon-input-date.svg +9 -9
  9. package/dist/assets/images/icon-input-duration.svg +9 -9
  10. package/dist/assets/images/icon-input-email.svg +9 -9
  11. package/dist/assets/images/icon-input-float.svg +9 -9
  12. package/dist/assets/images/icon-input-id.svg +9 -9
  13. package/dist/assets/images/icon-input-integer.svg +9 -9
  14. package/dist/assets/images/icon-input-phone.svg +9 -9
  15. package/dist/assets/images/icon-input-price.svg +9 -9
  16. package/dist/assets/images/icon-input-search.svg +4 -4
  17. package/dist/assets/images/icon-input-string.svg +9 -9
  18. package/dist/assets/images/icon-input-text.svg +9 -9
  19. package/dist/assets/images/icon-input-time.svg +9 -9
  20. package/dist/assets/images/logo.svg +9 -9
  21. package/dist/assets/images/menu.svg +3 -3
  22. package/dist/assets/images/namira.svg +9 -9
  23. package/dist/assets/images/rectangle.svg +3 -3
  24. package/dist/components/NSButtonGreen.d.ts +16 -16
  25. package/dist/components/NSButtonGreen.js +16 -16
  26. package/dist/components/NSButtonRed.d.ts +16 -16
  27. package/dist/components/NSButtonRed.js +16 -16
  28. package/dist/components/NSCard.d.ts +20 -20
  29. package/dist/components/NSCard.js +12 -12
  30. package/dist/components/NSFooter.d.ts +20 -20
  31. package/dist/components/NSFooter.js +46 -46
  32. package/dist/components/NSHeader.d.ts +23 -23
  33. package/dist/components/NSHeader.js +60 -60
  34. package/dist/components/NSInputDate.d.ts +15 -15
  35. package/dist/components/NSInputDate.js +27 -27
  36. package/dist/components/NSInputDuration.d.ts +15 -15
  37. package/dist/components/NSInputDuration.js +28 -28
  38. package/dist/components/NSInputEmail.d.ts +16 -16
  39. package/dist/components/NSInputEmail.js +36 -36
  40. package/dist/components/NSInputEmail.module.css +37 -37
  41. package/dist/components/NSInputFloat.d.ts +15 -15
  42. package/dist/components/NSInputFloat.js +28 -28
  43. package/dist/components/NSInputFloat.module.css +25 -25
  44. package/dist/components/NSInputIP.d.ts +15 -15
  45. package/dist/components/NSInputIP.js +28 -28
  46. package/dist/components/NSInputIP.module.css +25 -25
  47. package/dist/components/NSInputInteger.d.ts +15 -15
  48. package/dist/components/NSInputInteger.js +28 -28
  49. package/dist/components/NSInputInteger.module.css +25 -25
  50. package/dist/components/NSInputPhone.d.ts +16 -16
  51. package/dist/components/NSInputPhone.js +30 -30
  52. package/dist/components/NSInputPhone.module.css +32 -32
  53. package/dist/components/NSInputPrice.d.ts +17 -17
  54. package/dist/components/NSInputPrice.js +31 -31
  55. package/dist/components/NSInputPrice.module.css +26 -26
  56. package/dist/components/NSInputSearch.d.ts +17 -17
  57. package/dist/components/NSInputSearch.js +37 -37
  58. package/dist/components/NSInputSearch.module.css +25 -25
  59. package/dist/components/NSInputString.d.ts +17 -17
  60. package/dist/components/NSInputString.js +31 -31
  61. package/dist/components/NSInputString.module.css +26 -26
  62. package/dist/components/NSInputText.d.ts +17 -17
  63. package/dist/components/NSInputText.js +31 -31
  64. package/dist/components/NSInputText.module.css +27 -27
  65. package/dist/components/NSInputTime.d.ts +15 -15
  66. package/dist/components/NSInputTime.js +28 -28
  67. package/dist/components/NSInputTime.module.css +26 -26
  68. package/dist/components/NSLayout.d.ts +8 -8
  69. package/dist/components/NSLayout.js +8 -8
  70. package/dist/components/NSLayout.module.css +16 -16
  71. package/dist/components/NSLayoutHeroBanner.d.ts +12 -12
  72. package/dist/components/NSLayoutHeroBanner.js +8 -8
  73. package/dist/components/NSLayoutHeroBanner.module.css +43 -43
  74. package/dist/components/NSLayoutTitle.d.ts +10 -10
  75. package/dist/components/NSLayoutTitle.js +6 -6
  76. package/dist/components/NSLinkGreen.d.ts +16 -16
  77. package/dist/components/NSLinkGreen.js +20 -20
  78. package/dist/components/NSLinkGreen.module.css +15 -15
  79. package/dist/components/NSLinkRed.d.ts +16 -16
  80. package/dist/components/NSLinkRed.js +20 -20
  81. package/dist/components/NSLinkRed.module.css +15 -15
  82. package/dist/components/NSPagination.d.ts +15 -15
  83. package/dist/components/NSPagination.js +35 -35
  84. package/dist/components/NSPagination.module.css +24 -24
  85. package/dist/components/NSParentCard.module.css +34 -34
  86. package/dist/components/NSSelectBox.d.ts +16 -16
  87. package/dist/components/NSSelectBox.js +24 -24
  88. package/dist/components/NSSelectBox.module.css +28 -28
  89. package/dist/components/NSTable.d.ts +28 -28
  90. package/dist/components/NSTable.js +20 -20
  91. package/dist/components/NSTable.modules.css +76 -76
  92. package/dist/index.d.ts +1 -1
  93. package/dist/index.js +6 -6
  94. package/dist/main.d.ts +26 -26
  95. package/dist/main.js +26 -26
  96. package/dist/pages/NSLoginPage.d.ts +13 -13
  97. package/dist/pages/NSLoginPage.js +17 -17
  98. package/package.json +52 -52
  99. package/public/index.html +42 -42
  100. package/public/manifest.json +25 -25
  101. package/public/robots.txt +3 -3
  102. package/src/App.tsx +70 -70
  103. package/src/assets/images/arrow.svg +3 -3
  104. package/src/assets/images/danger.svg +3 -3
  105. package/src/assets/images/exit.svg +3 -3
  106. package/src/assets/images/icon-input-date.svg +9 -9
  107. package/src/assets/images/icon-input-duration.svg +9 -9
  108. package/src/assets/images/icon-input-email.svg +9 -9
  109. package/src/assets/images/icon-input-float.svg +9 -9
  110. package/src/assets/images/icon-input-id.svg +9 -9
  111. package/src/assets/images/icon-input-integer.svg +9 -9
  112. package/src/assets/images/icon-input-phone.svg +9 -9
  113. package/src/assets/images/icon-input-price.svg +9 -9
  114. package/src/assets/images/icon-input-search.svg +4 -4
  115. package/src/assets/images/icon-input-string.svg +9 -9
  116. package/src/assets/images/icon-input-text.svg +9 -9
  117. package/src/assets/images/icon-input-time.svg +9 -9
  118. package/src/assets/images/logo.svg +9 -9
  119. package/src/assets/images/menu.svg +3 -3
  120. package/src/assets/images/namira.svg +9 -9
  121. package/src/assets/images/rectangle.svg +3 -3
  122. package/src/components/NSButtonGreen.tsx +33 -33
  123. package/src/components/NSButtonRed.tsx +33 -33
  124. package/src/components/NSCard.tsx +54 -54
  125. package/src/components/NSFooter.tsx +123 -123
  126. package/src/components/NSHeader.tsx +134 -134
  127. package/src/components/NSInputDate.tsx +57 -57
  128. package/src/components/NSInputDuration.tsx +65 -65
  129. package/src/components/NSInputEmail.module.css +37 -37
  130. package/src/components/NSInputEmail.tsx +92 -92
  131. package/src/components/NSInputFloat.module.css +25 -25
  132. package/src/components/NSInputFloat.tsx +61 -61
  133. package/src/components/NSInputIP.module.css +25 -25
  134. package/src/components/NSInputIP.tsx +65 -65
  135. package/src/components/NSInputInteger.module.css +25 -25
  136. package/src/components/NSInputInteger.tsx +65 -65
  137. package/src/components/NSInputPhone.module.css +32 -32
  138. package/src/components/NSInputPhone.tsx +65 -65
  139. package/src/components/NSInputPrice.module.css +26 -26
  140. package/src/components/NSInputPrice.tsx +68 -68
  141. package/src/components/NSInputSearch.module.css +25 -25
  142. package/src/components/NSInputSearch.tsx +78 -78
  143. package/src/components/NSInputString.module.css +26 -26
  144. package/src/components/NSInputString.tsx +66 -66
  145. package/src/components/NSInputText.module.css +27 -27
  146. package/src/components/NSInputText.tsx +69 -69
  147. package/src/components/NSInputTime.module.css +26 -26
  148. package/src/components/NSInputTime.tsx +65 -65
  149. package/src/components/NSLayout.module.css +16 -16
  150. package/src/components/NSLayout.tsx +30 -30
  151. package/src/components/NSLayoutHeroBanner.module.css +43 -43
  152. package/src/components/NSLayoutHeroBanner.tsx +85 -85
  153. package/src/components/NSLayoutTitle.tsx +25 -25
  154. package/src/components/NSLinkGreen.module.css +15 -15
  155. package/src/components/NSLinkGreen.tsx +43 -43
  156. package/src/components/NSLinkRed.module.css +15 -15
  157. package/src/components/NSLinkRed.tsx +43 -43
  158. package/src/components/NSPagination.module.css +24 -24
  159. package/src/components/NSPagination.tsx +54 -54
  160. package/src/components/NSParentCard.module.css +34 -34
  161. package/src/components/NSParentCard.tsx.temp +58 -58
  162. package/src/components/NSSelectBox.module.css +28 -28
  163. package/src/components/NSSelectBox.tsx +62 -62
  164. package/src/components/NSTable.modules.css +76 -76
  165. package/src/components/NSTable.tsx +64 -64
  166. package/src/index.tsx +7 -7
  167. package/src/main.ts +25 -25
  168. package/src/pages/NSLoginPage.tsx +39 -39
  169. package/src/react-app-env.d.ts +1 -1
  170. package/tsconfig.json +37 -37
  171. package/dist/App.css +0 -0
  172. package/dist/assets/images/background.svg +0 -9
  173. package/dist/assets/images/left-vector.png +0 -0
  174. package/dist/assets/images/left_vector.png +0 -0
  175. package/dist/assets/images/right-vector.png +0 -0
  176. package/dist/assets/images/right_vector.png +0 -0
  177. package/dist/components/NSParentCard.d.ts +0 -0
  178. package/dist/components/NSParentCard.js +0 -2
  179. package/dist/components/NSParentCard.js.map +0 -1
  180. package/dist/index.css +0 -6
@@ -1,15 +1,15 @@
1
- import React from "react";
2
- interface IProps {
3
- title: string;
4
- }
5
- interface IState {
6
- value: string;
7
- }
8
- export declare class NSInputDuration 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 {};
1
+ import React from "react";
2
+ interface IProps {
3
+ title: string;
4
+ }
5
+ interface IState {
6
+ value: string;
7
+ }
8
+ export declare class NSInputDuration 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 {};
@@ -1,29 +1,29 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import React from "react";
4
- import Styles from "./NSInputDuration.module.css";
5
- import IconInputDuration from '../assets/images/icon-input-duration.svg';
6
- export class NSInputDuration extends React.Component {
7
- constructor(props) {
8
- super(props);
9
- this.state = {
10
- value: "",
11
- };
12
- this.setValue = this.setValue.bind(this);
13
- this.getValue = this.getValue.bind(this);
14
- this.setDefaultValue = this.setDefaultValue.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
- render() {
26
- return (_jsxs("div", Object.assign({ className: `${Styles.ns_input_parent} p-2` }, { children: [_jsx("span", Object.assign({ className: Styles.ns_input_title }, { children: this.props.title })), _jsx("img", { className: Styles.ns_input_icon, src: IconInputDuration, 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" })] })));
27
- }
28
- }
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import Styles from "./NSInputDuration.module.css";
5
+ import IconInputDuration from '../assets/images/icon-input-duration.svg';
6
+ export class NSInputDuration extends React.Component {
7
+ constructor(props) {
8
+ super(props);
9
+ this.state = {
10
+ value: "",
11
+ };
12
+ this.setValue = this.setValue.bind(this);
13
+ this.getValue = this.getValue.bind(this);
14
+ this.setDefaultValue = this.setDefaultValue.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
+ render() {
26
+ return (_jsxs("div", Object.assign({ className: `${Styles.ns_input_parent} p-2` }, { children: [_jsx("span", Object.assign({ className: Styles.ns_input_title }, { children: this.props.title })), _jsx("img", { className: Styles.ns_input_icon, src: IconInputDuration, 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" })] })));
27
+ }
28
+ }
29
29
  //# sourceMappingURL=NSInputDuration.js.map
@@ -1,16 +1,16 @@
1
- import React from "react";
2
- interface IProps {
3
- title: string;
4
- }
5
- interface IState {
6
- value: string;
7
- error: boolean;
8
- }
9
- export declare class NSInputEmail extends React.Component<IProps, IState> {
10
- constructor(props: IProps);
11
- setValue(e: React.ChangeEvent<HTMLInputElement>): void;
12
- setDefaultValue(value: string): void;
13
- getValue(): string;
14
- render(): import("react/jsx-runtime").JSX.Element;
15
- }
16
- export {};
1
+ import React from "react";
2
+ interface IProps {
3
+ title: string;
4
+ }
5
+ interface IState {
6
+ value: string;
7
+ error: boolean;
8
+ }
9
+ export declare class NSInputEmail extends React.Component<IProps, IState> {
10
+ constructor(props: IProps);
11
+ setValue(e: React.ChangeEvent<HTMLInputElement>): void;
12
+ setDefaultValue(value: string): void;
13
+ getValue(): string;
14
+ render(): import("react/jsx-runtime").JSX.Element;
15
+ }
16
+ export {};
@@ -1,37 +1,37 @@
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 "./NSInputEmail.module.css";
5
- import IconInputEmail from '../assets/images/icon-input-email.svg';
6
- import Danger from '../assets/images/danger.svg';
7
- export class NSInputEmail extends React.Component {
8
- constructor(props) {
9
- super(props);
10
- this.state = {
11
- value: "",
12
- error: false,
13
- };
14
- this.setValue = this.setValue.bind(this);
15
- this.getValue = this.getValue.bind(this);
16
- this.setDefaultValue = this.setDefaultValue.bind(this);
17
- }
18
- setValue(e) {
19
- let email = /^(([^<>()[]\\.,;:\s@"]+(\.[^<>()[]\\.,;:\s@"]+)*)|(".+"))@(([[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
20
- if (!email.test(e.target.value)) {
21
- this.setState({ error: true, value: e.target.value });
22
- }
23
- else {
24
- this.setState({ error: false, value: e.target.value });
25
- }
26
- }
27
- setDefaultValue(value) {
28
- this.setState({ value });
29
- }
30
- getValue() {
31
- return this.state.value;
32
- }
33
- render() {
34
- return (_jsxs(_Fragment, { children: [_jsxs("div", Object.assign({ className: `${Styles.ns_input_parent} p-2` }, { children: [_jsx("span", Object.assign({ className: Styles.ns_input_title }, { children: this.props.title })), _jsx("img", { className: Styles.ns_input_icon, src: IconInputEmail, alt: "icon", width: 24, height: 24 }), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "email", className: `${this.state.error === true ? Styles.ns_input_red : ""} ${Styles.ns_input}`, placeholder: "Sample@gmail.com" })] })), this.state.error === true ? (_jsx(_Fragment, { children: _jsxs("div", Object.assign({ className: "d-flex justify-content-start align-items-center gap-2 ms-2 " }, { children: [_jsx("img", { className: "", src: Danger, alt: "icon", width: 13, height: 13 }), _jsx("span", Object.assign({ className: Styles.ns_input_error }, { children: "Enter a valid email. " }))] })) })) : null] }));
35
- }
36
- }
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 "./NSInputEmail.module.css";
5
+ import IconInputEmail from '../assets/images/icon-input-email.svg';
6
+ import Danger from '../assets/images/danger.svg';
7
+ export class NSInputEmail extends React.Component {
8
+ constructor(props) {
9
+ super(props);
10
+ this.state = {
11
+ value: "",
12
+ error: false,
13
+ };
14
+ this.setValue = this.setValue.bind(this);
15
+ this.getValue = this.getValue.bind(this);
16
+ this.setDefaultValue = this.setDefaultValue.bind(this);
17
+ }
18
+ setValue(e) {
19
+ let email = /^(([^<>()[]\\.,;:\s@"]+(\.[^<>()[]\\.,;:\s@"]+)*)|(".+"))@(([[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
20
+ if (!email.test(e.target.value)) {
21
+ this.setState({ error: true, value: e.target.value });
22
+ }
23
+ else {
24
+ this.setState({ error: false, value: e.target.value });
25
+ }
26
+ }
27
+ setDefaultValue(value) {
28
+ this.setState({ value });
29
+ }
30
+ getValue() {
31
+ return this.state.value;
32
+ }
33
+ render() {
34
+ return (_jsxs(_Fragment, { children: [_jsxs("div", Object.assign({ className: `${Styles.ns_input_parent} p-2` }, { children: [_jsx("span", Object.assign({ className: Styles.ns_input_title }, { children: this.props.title })), _jsx("img", { className: Styles.ns_input_icon, src: IconInputEmail, alt: "icon", width: 24, height: 24 }), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "email", className: `${this.state.error === true ? Styles.ns_input_red : ""} ${Styles.ns_input}`, placeholder: "Sample@gmail.com" })] })), this.state.error === true ? (_jsx(_Fragment, { children: _jsxs("div", Object.assign({ className: "d-flex justify-content-start align-items-center gap-2 ms-2 " }, { children: [_jsx("img", { className: "", src: Danger, alt: "icon", width: 13, height: 13 }), _jsx("span", Object.assign({ className: Styles.ns_input_error }, { children: "Enter a valid email. " }))] })) })) : null] }));
35
+ }
36
+ }
37
37
  //# sourceMappingURL=NSInputEmail.js.map
@@ -1,38 +1,38 @@
1
- .ns_input_parent {
2
- display: flex;
3
- flex-direction: column;
4
- width: 326px;
5
- color: #fff;
6
- position: relative;
7
- max-width: 100%;
8
- }
9
-
10
- .ns_input {
11
- border-radius: 8px;
12
- padding: 10px 12px;
13
- }
14
-
15
- .ns_input_icon {
16
- position: absolute;
17
- right: 20px;
18
- top: 51%;
19
- font-size: 16px;
20
- font-weight: 400;
21
- }
22
-
23
- .ns_input_title {
24
- font-size: 16px;
25
- font-weight: 400;
26
- }
27
-
28
- .ns_input_error {
29
- color: #FF3F3F !important;
30
- }
31
-
32
- .ns_input_error:focus {
33
- color: #FF3F3F !important;
34
- }
35
-
36
- .ns_input_red {
37
- border: 2px solid #FF3F3F;
1
+ .ns_input_parent {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 326px;
5
+ color: #fff;
6
+ position: relative;
7
+ max-width: 100%;
8
+ }
9
+
10
+ .ns_input {
11
+ border-radius: 8px;
12
+ padding: 10px 12px;
13
+ }
14
+
15
+ .ns_input_icon {
16
+ position: absolute;
17
+ right: 20px;
18
+ top: 51%;
19
+ font-size: 16px;
20
+ font-weight: 400;
21
+ }
22
+
23
+ .ns_input_title {
24
+ font-size: 16px;
25
+ font-weight: 400;
26
+ }
27
+
28
+ .ns_input_error {
29
+ color: #FF3F3F !important;
30
+ }
31
+
32
+ .ns_input_error:focus {
33
+ color: #FF3F3F !important;
34
+ }
35
+
36
+ .ns_input_red {
37
+ border: 2px solid #FF3F3F;
38
38
  }
@@ -1,15 +1,15 @@
1
- import React from "react";
2
- interface IProps {
3
- title: string;
4
- }
5
- interface IState {
6
- value: string;
7
- }
8
- export declare class NSInputFloat 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 {};
1
+ import React from "react";
2
+ interface IProps {
3
+ title: string;
4
+ }
5
+ interface IState {
6
+ value: string;
7
+ }
8
+ export declare class NSInputFloat 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 {};
@@ -1,29 +1,29 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import React from "react";
4
- import Styles from "./NSInputFloat.module.css";
5
- import IconInputFloat from '../assets/images/icon-input-float.svg';
6
- export class NSInputFloat extends React.Component {
7
- constructor(props) {
8
- super(props);
9
- this.state = {
10
- value: "",
11
- };
12
- this.setValue = this.setValue.bind(this);
13
- this.getValue = this.getValue.bind(this);
14
- this.setDefaultValue = this.setDefaultValue.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
- render() {
26
- return (_jsxs("div", Object.assign({ className: `${Styles.ns_input_parent} p-2` }, { children: [_jsx("span", Object.assign({ className: Styles.ns_input_title }, { children: this.props.title })), _jsx("img", { className: Styles.ns_input_icon, src: IconInputFloat, alt: "icon", width: 24, height: 24 }), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "number", className: Styles.ns_input, placeholder: "1.2" })] })));
27
- }
28
- }
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import Styles from "./NSInputFloat.module.css";
5
+ import IconInputFloat from '../assets/images/icon-input-float.svg';
6
+ export class NSInputFloat extends React.Component {
7
+ constructor(props) {
8
+ super(props);
9
+ this.state = {
10
+ value: "",
11
+ };
12
+ this.setValue = this.setValue.bind(this);
13
+ this.getValue = this.getValue.bind(this);
14
+ this.setDefaultValue = this.setDefaultValue.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
+ render() {
26
+ return (_jsxs("div", Object.assign({ className: `${Styles.ns_input_parent} p-2` }, { children: [_jsx("span", Object.assign({ className: Styles.ns_input_title }, { children: this.props.title })), _jsx("img", { className: Styles.ns_input_icon, src: IconInputFloat, alt: "icon", width: 24, height: 24 }), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "number", className: Styles.ns_input, placeholder: "1.2" })] })));
27
+ }
28
+ }
29
29
  //# sourceMappingURL=NSInputFloat.js.map
@@ -1,26 +1,26 @@
1
- .ns_input_parent {
2
- display: flex;
3
- flex-direction: column;
4
- width: 326px;
5
- color: #fff;
6
- position: relative;
7
- max-width: 100%;
8
- }
9
-
10
- .ns_input {
11
- border-radius: 8px;
12
- padding: 10px 12px;
13
- font-size: 16px;
14
- font-weight: 400;
15
- }
16
-
17
- .ns_input_icon {
18
- position: absolute;
19
- right: 20px;
20
- top: 51%;
21
- }
22
-
23
- .ns_input_title {
24
- font-size: 16px;
25
- font-weight: 400;
1
+ .ns_input_parent {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 326px;
5
+ color: #fff;
6
+ position: relative;
7
+ max-width: 100%;
8
+ }
9
+
10
+ .ns_input {
11
+ border-radius: 8px;
12
+ padding: 10px 12px;
13
+ font-size: 16px;
14
+ font-weight: 400;
15
+ }
16
+
17
+ .ns_input_icon {
18
+ position: absolute;
19
+ right: 20px;
20
+ top: 51%;
21
+ }
22
+
23
+ .ns_input_title {
24
+ font-size: 16px;
25
+ font-weight: 400;
26
26
  }
@@ -1,15 +1,15 @@
1
- import React from "react";
2
- interface IProps {
3
- title: string;
4
- }
5
- interface IState {
6
- value: string;
7
- }
8
- export declare class NSInputIP 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 {};
1
+ import React from "react";
2
+ interface IProps {
3
+ title: string;
4
+ }
5
+ interface IState {
6
+ value: string;
7
+ }
8
+ export declare class NSInputIP 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 {};
@@ -1,29 +1,29 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import React from "react";
4
- import Styles from "./NSInputIP.module.css";
5
- import IconInputId from '../assets/images/icon-input-id.svg';
6
- export class NSInputIP extends React.Component {
7
- constructor(props) {
8
- super(props);
9
- this.state = {
10
- value: "",
11
- };
12
- this.setValue = this.setValue.bind(this);
13
- this.getValue = this.getValue.bind(this);
14
- this.setDefaultValue = this.setDefaultValue.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
- render() {
26
- return (_jsxs("div", Object.assign({ className: `${Styles.ns_input_parent} p-2` }, { children: [_jsx("span", Object.assign({ className: Styles.ns_input_title }, { children: this.props.title })), _jsx("img", { className: Styles.ns_input_icon, src: IconInputId, alt: "icon", width: 24, height: 24 }), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "number", className: Styles.ns_input, placeholder: "192.158.1.38" })] })));
27
- }
28
- }
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import Styles from "./NSInputIP.module.css";
5
+ import IconInputId from '../assets/images/icon-input-id.svg';
6
+ export class NSInputIP extends React.Component {
7
+ constructor(props) {
8
+ super(props);
9
+ this.state = {
10
+ value: "",
11
+ };
12
+ this.setValue = this.setValue.bind(this);
13
+ this.getValue = this.getValue.bind(this);
14
+ this.setDefaultValue = this.setDefaultValue.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
+ render() {
26
+ return (_jsxs("div", Object.assign({ className: `${Styles.ns_input_parent} p-2` }, { children: [_jsx("span", Object.assign({ className: Styles.ns_input_title }, { children: this.props.title })), _jsx("img", { className: Styles.ns_input_icon, src: IconInputId, alt: "icon", width: 24, height: 24 }), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "number", className: Styles.ns_input, placeholder: "192.158.1.38" })] })));
27
+ }
28
+ }
29
29
  //# sourceMappingURL=NSInputIP.js.map
@@ -1,26 +1,26 @@
1
- .ns_input_parent {
2
- display: flex;
3
- flex-direction: column;
4
- width: 326px;
5
- color: #fff;
6
- position: relative;
7
- max-width: 100%;
8
- }
9
-
10
- .ns_input {
11
- border-radius: 8px;
12
- padding: 10px 12px;
13
- font-size: 16px;
14
- font-weight: 400;
15
- }
16
-
17
- .ns_input_icon {
18
- position: absolute;
19
- right: 20px;
20
- top: 51%;
21
- }
22
-
23
- .ns_input_title {
24
- font-size: 16px;
25
- font-weight: 400;
1
+ .ns_input_parent {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 326px;
5
+ color: #fff;
6
+ position: relative;
7
+ max-width: 100%;
8
+ }
9
+
10
+ .ns_input {
11
+ border-radius: 8px;
12
+ padding: 10px 12px;
13
+ font-size: 16px;
14
+ font-weight: 400;
15
+ }
16
+
17
+ .ns_input_icon {
18
+ position: absolute;
19
+ right: 20px;
20
+ top: 51%;
21
+ }
22
+
23
+ .ns_input_title {
24
+ font-size: 16px;
25
+ font-weight: 400;
26
26
  }
@@ -1,15 +1,15 @@
1
- import React from "react";
2
- interface IProps {
3
- title: string;
4
- }
5
- interface IState {
6
- value: string;
7
- }
8
- export declare class NSInputInteger 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 {};
1
+ import React from "react";
2
+ interface IProps {
3
+ title: string;
4
+ }
5
+ interface IState {
6
+ value: string;
7
+ }
8
+ export declare class NSInputInteger 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 {};
@@ -1,29 +1,29 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import React from "react";
4
- import Styles from "./NSInputInteger.module.css";
5
- import IconInputInteger from '../assets/images/icon-input-integer.svg';
6
- export class NSInputInteger extends React.Component {
7
- constructor(props) {
8
- super(props);
9
- this.state = {
10
- value: "",
11
- };
12
- this.setValue = this.setValue.bind(this);
13
- this.getValue = this.getValue.bind(this);
14
- this.setDefaultValue = this.setDefaultValue.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
- render() {
26
- return (_jsxs("div", Object.assign({ className: `${Styles.ns_input_parent} p-2` }, { children: [_jsx("span", Object.assign({ className: Styles.ns_input_title }, { children: this.props.title })), _jsx("img", { className: Styles.ns_input_icon, src: IconInputInteger, alt: "icon", width: 24, height: 24 }), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "number", className: Styles.ns_input, placeholder: "1234" })] })));
27
- }
28
- }
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import Styles from "./NSInputInteger.module.css";
5
+ import IconInputInteger from '../assets/images/icon-input-integer.svg';
6
+ export class NSInputInteger extends React.Component {
7
+ constructor(props) {
8
+ super(props);
9
+ this.state = {
10
+ value: "",
11
+ };
12
+ this.setValue = this.setValue.bind(this);
13
+ this.getValue = this.getValue.bind(this);
14
+ this.setDefaultValue = this.setDefaultValue.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
+ render() {
26
+ return (_jsxs("div", Object.assign({ className: `${Styles.ns_input_parent} p-2` }, { children: [_jsx("span", Object.assign({ className: Styles.ns_input_title }, { children: this.props.title })), _jsx("img", { className: Styles.ns_input_icon, src: IconInputInteger, alt: "icon", width: 24, height: 24 }), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "number", className: Styles.ns_input, placeholder: "1234" })] })));
27
+ }
28
+ }
29
29
  //# sourceMappingURL=NSInputInteger.js.map