namirasoft-site-react 1.3.112 → 1.3.114

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 (124) hide show
  1. package/dist/App.js +4 -3
  2. package/dist/App.js.map +1 -1
  3. package/dist/components/{NSInputDate.d.ts → NSBoxDate.d.ts} +4 -4
  4. package/dist/components/{NSInputDate.js → NSBoxDate.js} +5 -5
  5. package/dist/components/NSBoxDate.js.map +1 -0
  6. package/dist/components/NSBoxDateTime.d.ts +21 -0
  7. package/dist/components/NSBoxDateTime.js +41 -0
  8. package/dist/components/NSBoxDateTime.js.map +1 -0
  9. package/dist/components/{NSInputInteger.d.ts → NSBoxDouble.d.ts} +5 -5
  10. package/dist/components/{NSInputPrice.js → NSBoxDouble.js} +8 -8
  11. package/dist/components/NSBoxDouble.js.map +1 -0
  12. package/dist/components/{NSInputDuration.d.ts → NSBoxDuration.d.ts} +4 -4
  13. package/dist/components/{NSInputDuration.js → NSBoxDuration.js} +5 -5
  14. package/dist/components/NSBoxDuration.js.map +1 -0
  15. package/dist/components/{NSInputTime.d.ts → NSBoxEmail.d.ts} +5 -5
  16. package/dist/components/{NSInputEmail.js → NSBoxEmail.js} +5 -5
  17. package/dist/components/NSBoxEmail.js.map +1 -0
  18. package/dist/components/NSBoxEntity.d.ts +12 -0
  19. package/dist/components/NSBoxEntity.js +10 -0
  20. package/dist/components/NSBoxEntity.js.map +1 -0
  21. package/dist/components/NSBoxEnum.d.ts +7 -0
  22. package/dist/components/NSBoxEnum.js +38 -0
  23. package/dist/components/NSBoxEnum.js.map +1 -0
  24. package/dist/components/NSBoxErrorNotifier.d.ts +5 -0
  25. package/dist/components/{NSInputErrorNotifier.js → NSBoxErrorNotifier.js} +3 -3
  26. package/dist/components/NSBoxErrorNotifier.js.map +1 -0
  27. package/dist/components/{NSInputIP.d.ts → NSBoxIPV4.d.ts} +4 -4
  28. package/dist/components/{NSInputIP.js → NSBoxIPV4.js} +6 -5
  29. package/dist/components/NSBoxIPV4.js.map +1 -0
  30. package/dist/components/{NSInputEmail.d.ts → NSBoxIPV6.d.ts} +5 -5
  31. package/dist/components/NSBoxIPV6.js +44 -0
  32. package/dist/components/NSBoxIPV6.js.map +1 -0
  33. package/dist/components/{NSInputFloat.d.ts → NSBoxInteger.d.ts} +5 -5
  34. package/dist/components/{NSInputInteger.js → NSBoxInteger.js} +5 -5
  35. package/dist/components/NSBoxInteger.js.map +1 -0
  36. package/dist/components/{NSInputString.d.ts → NSBoxPassword.d.ts} +4 -4
  37. package/dist/components/{NSInputPassword.js → NSBoxPassword.js} +5 -5
  38. package/dist/components/NSBoxPassword.js.map +1 -0
  39. package/dist/components/{NSInputPhone.d.ts → NSBoxPhone.d.ts} +4 -4
  40. package/dist/components/{NSInputPhone.js → NSBoxPhone.js} +5 -5
  41. package/dist/components/NSBoxPhone.js.map +1 -0
  42. package/dist/components/{NSInputPrice.d.ts → NSBoxPrice.d.ts} +5 -5
  43. package/dist/components/{NSInputFloat.js → NSBoxPrice.js} +5 -5
  44. package/dist/components/NSBoxPrice.js.map +1 -0
  45. package/dist/components/{NSInputSearch.d.ts → NSBoxSearch.d.ts} +4 -4
  46. package/dist/components/{NSInputSearch.js → NSBoxSearch.js} +5 -5
  47. package/dist/components/NSBoxSearch.js.map +1 -0
  48. package/dist/components/{NSInputText.d.ts → NSBoxString.d.ts} +4 -4
  49. package/dist/components/{NSInputString.js → NSBoxString.js} +5 -5
  50. package/dist/components/NSBoxString.js.map +1 -0
  51. package/dist/components/NSBoxText.d.ts +22 -0
  52. package/dist/components/{NSInputText.js → NSBoxText.js} +5 -5
  53. package/dist/components/NSBoxText.js.map +1 -0
  54. package/dist/components/NSBoxTime.d.ts +22 -0
  55. package/dist/components/{NSInputTime.js → NSBoxTime.js} +5 -5
  56. package/dist/components/NSBoxTime.js.map +1 -0
  57. package/dist/components/NSHeader.module.css +4 -3
  58. package/dist/components/NSSelectBox.d.ts +1 -0
  59. package/dist/components/NSSelectBox.js +3 -2
  60. package/dist/components/NSSelectBox.js.map +1 -1
  61. package/dist/components/NSTable.js +2 -2
  62. package/dist/components/NSTable.js.map +1 -1
  63. package/dist/main.d.ts +15 -14
  64. package/dist/main.js +15 -14
  65. package/dist/main.js.map +1 -1
  66. package/package.json +2 -2
  67. package/src/App.tsx +13 -2
  68. package/src/components/NSBoxDate.tsx +81 -0
  69. package/src/components/NSBoxDateTime.tsx +81 -0
  70. package/src/components/NSBoxDouble.tsx +92 -0
  71. package/src/components/NSBoxDuration.tsx +91 -0
  72. package/src/components/NSBoxEmail.tsx +90 -0
  73. package/src/components/NSBoxEntity.tsx +29 -0
  74. package/src/components/NSBoxEnum.tsx +54 -0
  75. package/src/components/NSBoxErrorNotifier.tsx +28 -0
  76. package/src/components/NSBoxIPV4.tsx +96 -0
  77. package/src/components/NSBoxIPV6.tsx +93 -0
  78. package/src/components/NSBoxInteger.tsx +89 -0
  79. package/src/components/NSBoxPassword.tsx +89 -0
  80. package/src/components/NSBoxPhone.tsx +83 -0
  81. package/src/components/NSBoxPrice.tsx +91 -0
  82. package/src/components/{NSInputSearch.tsx → NSBoxSearch.tsx} +9 -9
  83. package/src/components/NSBoxString.tsx +89 -0
  84. package/src/components/NSBoxText.tsx +89 -0
  85. package/src/components/NSBoxTime.tsx +91 -0
  86. package/src/components/NSHeader.module.css +4 -3
  87. package/src/components/NSSelectBox.tsx +94 -93
  88. package/src/components/NSTable.tsx +130 -130
  89. package/src/main.ts +15 -14
  90. package/dist/components/NSInputDate.js.map +0 -1
  91. package/dist/components/NSInputDuration.js.map +0 -1
  92. package/dist/components/NSInputEmail.js.map +0 -1
  93. package/dist/components/NSInputErrorNotifier.d.ts +0 -5
  94. package/dist/components/NSInputErrorNotifier.js.map +0 -1
  95. package/dist/components/NSInputFloat.js.map +0 -1
  96. package/dist/components/NSInputIP.js.map +0 -1
  97. package/dist/components/NSInputInteger.js.map +0 -1
  98. package/dist/components/NSInputPassword.d.ts +0 -22
  99. package/dist/components/NSInputPassword.js.map +0 -1
  100. package/dist/components/NSInputPhone.js.map +0 -1
  101. package/dist/components/NSInputPrice.js.map +0 -1
  102. package/dist/components/NSInputSearch.js.map +0 -1
  103. package/dist/components/NSInputString.js.map +0 -1
  104. package/dist/components/NSInputText.js.map +0 -1
  105. package/dist/components/NSInputTime.js.map +0 -1
  106. package/src/components/NSInputDate.tsx +0 -81
  107. package/src/components/NSInputDuration.tsx +0 -91
  108. package/src/components/NSInputEmail.tsx +0 -90
  109. package/src/components/NSInputErrorNotifier.tsx +0 -28
  110. package/src/components/NSInputFloat.tsx +0 -89
  111. package/src/components/NSInputIP.tsx +0 -90
  112. package/src/components/NSInputInteger.tsx +0 -89
  113. package/src/components/NSInputPassword.tsx +0 -89
  114. package/src/components/NSInputPhone.tsx +0 -83
  115. package/src/components/NSInputPrice.tsx +0 -90
  116. package/src/components/NSInputString.tsx +0 -89
  117. package/src/components/NSInputText.tsx +0 -89
  118. package/src/components/NSInputTime.tsx +0 -91
  119. /package/dist/components/{NSInput.module.css → NSBox.module.css} +0 -0
  120. /package/dist/components/{NSInputDate.module.css → NSBoxDate.module.css} +0 -0
  121. /package/dist/components/{NSInputErrorNotifier.module.css → NSBoxErrorNotifier.module.css} +0 -0
  122. /package/src/components/{NSInput.module.css → NSBox.module.css} +0 -0
  123. /package/src/components/{NSInputDate.module.css → NSBoxDate.module.css} +0 -0
  124. /package/src/components/{NSInputErrorNotifier.module.css → NSBoxErrorNotifier.module.css} +0 -0
@@ -1,19 +1,19 @@
1
1
  import React from "react";
2
2
  import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
- import { IValidationProps } from "../props/IValidationProps";
4
3
  import { IValidationNumberProps } from "../props/IValidationNumberProps";
5
- export interface INSInputFloatProps extends IBaseComponentProps, IValidationProps, IValidationNumberProps {
4
+ import { IValidationProps } from "../props/IValidationProps";
5
+ export interface INSBoxIntegerProps extends IBaseComponentProps, IValidationProps, IValidationNumberProps {
6
6
  title: string;
7
7
  defaultValue?: number;
8
8
  onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
9
9
  placeholder?: string;
10
10
  }
11
- export interface NSInputFloatState {
11
+ export interface INSBoxIntegerState {
12
12
  value?: number;
13
13
  error?: string;
14
14
  }
15
- export declare class NSInputFloat extends React.Component<INSInputFloatProps, NSInputFloatState> {
16
- constructor(props: INSInputFloatProps);
15
+ export declare class NSBoxInteger extends React.Component<INSBoxIntegerProps, INSBoxIntegerState> {
16
+ constructor(props: INSBoxIntegerProps);
17
17
  getError(): string | null;
18
18
  getValue(): number | undefined;
19
19
  setValue(value: number | undefined): void;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import Styles from "./NSInput.module.css";
4
+ import Styles from "./NSBox.module.css";
5
5
  import IconInputInteger from '../assets/images/icon-input-integer.svg';
6
6
  import { Validator } from "../Validator";
7
- import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
8
- export class NSInputInteger extends React.Component {
7
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
8
+ export class NSBoxInteger extends React.Component {
9
9
  constructor(props) {
10
10
  super(props);
11
11
  this.state = { value: props.defaultValue };
@@ -35,7 +35,7 @@ export class NSInputInteger extends React.Component {
35
35
  }
36
36
  render() {
37
37
  var _a;
38
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} p-2 ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputInteger, alt: "Integer Icon", width: 24, height: 24 }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "number", className: Styles.ns_input, placeholder: this.props.placeholder })] }), _jsx(NSInputErrorNotifier, { error: this.state.error })] }));
38
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} p-2 ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputInteger, alt: "Integer Icon", width: 24, height: 24 }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "number", className: Styles.ns_input, placeholder: this.props.placeholder })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error })] }));
39
39
  }
40
40
  }
41
- //# sourceMappingURL=NSInputInteger.js.map
41
+ //# sourceMappingURL=NSBoxInteger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxInteger.js","sourceRoot":"","sources":["../../src/components/NSBoxInteger.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,gBAAgB,MAAM,yCAAyC,CAAC;AAIvE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAgB1D,MAAM,OAAO,YAAa,SAAQ,KAAK,CAAC,SAAiD;IAExF,YAAY,KAAyB;QAEpC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;QAC3C,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,SAAS,GAAG,IAAI,CAAC,SAAS,CAA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,IAAI,eAAM,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,kBAAW,OAAG,IAAI,CAAC,KAAK,CAAC,KAAK,SAAS,EACrI,cACC,SAAS,EAAE,MAAM,CAAC,aAAa,EAC/B,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAC,cAAc,EAClB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACT,EACF,gBACC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAClC,IACG,EACN,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,IAC7C,CACH,CAAC;IACH,CAAC;CACD"}
@@ -2,18 +2,18 @@ import React from "react";
2
2
  import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
3
  import { IValidationProps } from "../props/IValidationProps";
4
4
  import { IValidationStringProps } from "../props/IValidationStringProps";
5
- export interface INSInputStringProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
5
+ export interface INSBoxPasswordProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
6
6
  title: string;
7
7
  defaultValue?: string;
8
8
  onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
9
9
  placeholder?: string;
10
10
  }
11
- export interface NSInputStringState {
11
+ export interface INSBoxPasswordState {
12
12
  value: string;
13
13
  error?: string;
14
14
  }
15
- export declare class NSInputString extends React.Component<INSInputStringProps, NSInputStringState> {
16
- constructor(props: INSInputStringProps);
15
+ export declare class NSBoxPassword extends React.Component<INSBoxPasswordProps, INSBoxPasswordState> {
16
+ constructor(props: INSBoxPasswordProps);
17
17
  getError(): string | null;
18
18
  getValue(): string;
19
19
  setValue(value: string): void;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import Styles from "./NSInput.module.css";
4
+ import Styles from "./NSBox.module.css";
5
5
  import IconInputString from '../assets/images/icon-input-string.svg';
6
6
  import { Validator } from "../Validator";
7
- import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
8
- export class NSInputPassword extends React.Component {
7
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
8
+ export class NSBoxPassword extends React.Component {
9
9
  constructor(props) {
10
10
  var _a;
11
11
  super(props);
@@ -36,7 +36,7 @@ export class NSInputPassword extends React.Component {
36
36
  }
37
37
  render() {
38
38
  var _a;
39
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputString, alt: "Password Icon", width: 24, height: 24 }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "password", className: Styles.ns_input, placeholder: this.props.placeholder })] }), _jsx(NSInputErrorNotifier, { error: this.state.error })] }));
39
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputString, alt: "Password Icon", width: 24, height: 24 }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "password", className: Styles.ns_input, placeholder: this.props.placeholder })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error })] }));
40
40
  }
41
41
  }
42
- //# sourceMappingURL=NSInputPassword.js.map
42
+ //# sourceMappingURL=NSBoxPassword.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxPassword.js","sourceRoot":"","sources":["../../src/components/NSBoxPassword.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,eAAe,MAAM,wCAAwC,CAAC;AAIrE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAgB1D,MAAM,OAAO,aAAc,SAAQ,KAAK,CAAC,SAAmD;IAE3F,YAAY,KAA0B;;QAErC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,MAAA,KAAK,CAAC,YAAY,mCAAI,EAAE,EAAE,CAAC;QACjD,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,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IACD,QAAQ;QAEP,OAAO,CACN,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;YAClE,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CACxE,CAAC;IACH,CAAC;IACD,QAAQ;QAEP,IA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xB,IAAI,EAAC,UAAU,EACf,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAClC,IACG,EACN,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,IAC7C,CACH,CAAC;IACH,CAAC;CACD"}
@@ -3,18 +3,18 @@ import 'react-phone-input-2/lib/style.css';
3
3
  import { IBaseComponentProps } from "../props/IBaseComponentProps";
4
4
  import { IValidationProps } from "../props/IValidationProps";
5
5
  import { IValidationStringProps } from "../props/IValidationStringProps";
6
- export interface INSInputPhoneProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
6
+ export interface INSBoxPhoneProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
7
7
  title: string;
8
8
  defaultValue?: string;
9
9
  onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
10
10
  placeholder?: string;
11
11
  }
12
- export interface NSInputPhoneState {
12
+ export interface INSBoxPhoneState {
13
13
  value: string;
14
14
  error?: string;
15
15
  }
16
- export declare class NSInputPhone extends React.Component<INSInputPhoneProps, NSInputPhoneState> {
17
- constructor(props: INSInputPhoneProps);
16
+ export declare class NSBoxPhone extends React.Component<INSBoxPhoneProps, INSBoxPhoneState> {
17
+ constructor(props: INSBoxPhoneProps);
18
18
  getError(): string | null;
19
19
  getValue(): string;
20
20
  setValue(value: string): void;
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import Styles from "./NSInput.module.css";
4
+ import Styles from "./NSBox.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
8
  import { Validator } from "../Validator";
9
- import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
10
- export class NSInputPhone extends React.Component {
9
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
10
+ export class NSBoxPhone extends React.Component {
11
11
  constructor(props) {
12
12
  var _a;
13
13
  super(props);
@@ -32,7 +32,7 @@ export class NSInputPhone extends React.Component {
32
32
  }
33
33
  render() {
34
34
  var _a;
35
- return (_jsxs(_Fragment, { children: [_jsxs("div", { id: this.props.id, className: `${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputPhone, alt: "Phone Icon", width: 24, height: 24 }), _jsx(PhoneInput, { value: this.state.value, onChange: this.setValue, country: 'us', inputClass: Styles.ns_input, placeholder: this.props.placeholder })] }), _jsx(NSInputErrorNotifier, { error: this.state.error })] }));
35
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { id: this.props.id, className: `${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputPhone, alt: "Phone Icon", width: 24, height: 24 }), _jsx(PhoneInput, { value: this.state.value, onChange: this.setValue, country: 'us', inputClass: Styles.ns_input, placeholder: this.props.placeholder })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error })] }));
36
36
  }
37
37
  }
38
- //# sourceMappingURL=NSInputPhone.js.map
38
+ //# sourceMappingURL=NSBoxPhone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxPhone.js","sourceRoot":"","sources":["../../src/components/NSBoxPhone.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM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,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC1B,CAAC;IACQ,MAAM;;QAEd,OAAO,CACN,8BACC,eAAK,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,IAAI,MAAA,IAAI,CAAC,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,aACzH,gBAAM,SAAS,EAAE,MAAM,CAAC,cAAc,kBAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,eAAM,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,kBAAW,OAAG,IAAI,CAAC,KAAK,CAAC,KAAK,SAAS,EACrI,cACC,SAAS,EAAE,MAAM,CAAC,aAAa,EAC/B,GAAG,EAAE,cAAc,EACnB,GAAG,EAAC,YAAY,EAChB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACT,EACF,KAAC,UAAU,IACV,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,IAAI,EACb,UAAU,EAAE,MAAM,CAAC,QAAQ,EAC3B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAClC,IACI,EACP,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,IAC7C,CACH,CAAC;IACH,CAAC;CACD"}
@@ -2,21 +2,21 @@ import React from "react";
2
2
  import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
3
  import { IValidationProps } from "../props/IValidationProps";
4
4
  import { IValidationNumberProps } from "../props/IValidationNumberProps";
5
- export interface INSInputPriceProps extends IBaseComponentProps, IValidationProps, IValidationNumberProps {
5
+ export interface INSBoxPriceProps extends IBaseComponentProps, IValidationProps, IValidationNumberProps {
6
6
  title: string;
7
7
  defaultValue?: number;
8
8
  onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
9
9
  placeholder?: string;
10
10
  }
11
- export interface NSInputPriceState {
11
+ export interface INSBoxPriceState {
12
12
  value?: number;
13
13
  error?: string;
14
14
  }
15
- export declare class NSInputPrice extends React.Component<INSInputPriceProps, NSInputPriceState> {
16
- constructor(props: INSInputPriceProps);
15
+ export declare class NSBoxPrice extends React.Component<INSBoxPriceProps, INSBoxPriceState> {
16
+ constructor(props: INSBoxPriceProps);
17
17
  getError(): string | null;
18
18
  getValue(): number | undefined;
19
- setValue(value: number): void;
19
+ setValue(value: number | undefined): void;
20
20
  private onChanged;
21
21
  render(): import("react/jsx-runtime").JSX.Element;
22
22
  }
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import Styles from "./NSInput.module.css";
4
+ import Styles from "./NSBox.module.css";
5
5
  import IconInputFloat from '../assets/images/icon-input-float.svg';
6
6
  import { Validator } from "../Validator";
7
- import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
8
- export class NSInputFloat extends React.Component {
7
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
8
+ export class NSBoxPrice extends React.Component {
9
9
  constructor(props) {
10
10
  super(props);
11
11
  this.state = { value: props.defaultValue };
@@ -35,7 +35,7 @@ export class NSInputFloat extends React.Component {
35
35
  }
36
36
  render() {
37
37
  var _a;
38
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} p-2 ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputFloat, alt: "Flaot Icon", width: 24, height: 24 }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "number", className: Styles.ns_input, placeholder: this.props.placeholder })] }), _jsx(NSInputErrorNotifier, { error: this.state.error })] }));
38
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} p-2 ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputFloat, alt: "Flaot Icon", width: 24, height: 24 }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "number", step: "0.01", min: "0", className: Styles.ns_input, placeholder: this.props.placeholder })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error })] }));
39
39
  }
40
40
  }
41
- //# sourceMappingURL=NSInputFloat.js.map
41
+ //# sourceMappingURL=NSBoxPrice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxPrice.js","sourceRoot":"","sources":["../../src/components/NSBoxPrice.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,cAAc,MAAM,uCAAuC,CAAC;AAInE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAgB1D,MAAM,OAAO,UAAW,SAAQ,KAAK,CAAC,SAA6C;IAElF,YAAY,KAAuB;QAElC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAA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AAK,CAAC,KAAK,aAC1G,gBAAM,SAAS,EAAE,MAAM,CAAC,cAAc,kBAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,eAAM,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,kBAAW,OAAG,IAAI,CAAC,KAAK,CAAC,KAAK,SAAS,EACrI,cACC,SAAS,EAAE,MAAM,CAAC,aAAa,EAC/B,GAAG,EAAE,cAAc,EACnB,GAAG,EAAC,YAAY,EAChB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACT,EACF,gBACC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,MAAM,EACX,GAAG,EAAC,GAAG,EACP,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAClC,IACG,EACN,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,IAC7C,CACH,CAAC;IACH,CAAC;CACD"}
@@ -2,18 +2,18 @@ import React from "react";
2
2
  import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
3
  import { IValidationProps } from "../props/IValidationProps";
4
4
  import { IValidationStringProps } from "../props/IValidationStringProps";
5
- export interface INSInputSearchProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
5
+ export interface INSBoxSearchProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
6
6
  title: string;
7
7
  defaultValue?: string;
8
8
  onChanged?: () => void;
9
9
  placeholder?: string;
10
10
  }
11
- export interface NSInputSearchState {
11
+ export interface INSBoxSearchState {
12
12
  value: string;
13
13
  error?: string;
14
14
  }
15
- export declare class NSInputSearch extends React.Component<INSInputSearchProps, NSInputSearchState> {
16
- constructor(props: INSInputSearchProps);
15
+ export declare class NSBoxSearch extends React.Component<INSBoxSearchProps, INSBoxSearchState> {
16
+ constructor(props: INSBoxSearchProps);
17
17
  getError(): string | null;
18
18
  getValue(): string;
19
19
  setValue(value: string): void;
@@ -10,10 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
12
12
  import React from "react";
13
- import Styles from "./NSInput.module.css";
13
+ import Styles from "./NSBox.module.css";
14
14
  import { Validator } from "../Validator";
15
- import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
16
- export class NSInputSearch extends React.Component {
15
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
16
+ export class NSBoxSearch extends React.Component {
17
17
  constructor(props) {
18
18
  var _a;
19
19
  super(props);
@@ -44,7 +44,7 @@ export class NSInputSearch extends React.Component {
44
44
  }
45
45
  render() {
46
46
  var _a;
47
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsxs("div", { className: Styles.ns_input_container, children: [_jsx("figure", { className: Styles.ns_input_icon_container, children: _jsx("img", { src: "https://static.namirasoft.com/image/concept/magnifier/blue.svg", alt: "input-icon", width: 24, height: 24 }) }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "text", className: Styles.ns_input, placeholder: this.props.placeholder })] })] }), _jsx(NSInputErrorNotifier, { error: this.state.error })] }));
47
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsxs("div", { className: Styles.ns_input_container, children: [_jsx("figure", { className: Styles.ns_input_icon_container, children: _jsx("img", { src: "https://static.namirasoft.com/image/concept/magnifier/blue.svg", alt: "input-icon", width: 24, height: 24 }) }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "text", className: Styles.ns_input, placeholder: this.props.placeholder })] })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error })] }));
48
48
  }
49
49
  }
50
- //# sourceMappingURL=NSInputSearch.js.map
50
+ //# sourceMappingURL=NSBoxSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxSearch.js","sourceRoot":"","sources":["../../src/components/NSBoxSearch.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAIxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAgB1D,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAA+C;IAErF,YAAY,KAAwB;;QAEnC,KAAK,CAAC,KAAK,CAAC,CAAC;QA4BN,cAAS,GAAG,CAAO,CAAsC,EAAiB,EAAE;YAEnF,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACpC,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS;gBACvB,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;QACzB,CAAC,CAAA,CAAA;QAhCA,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,MAAA,KAAK,CAAC,YAAY,mCAAI,EAAE,EAAE,CAAC;QACjD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,C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,eAAK,SAAS,EAAE,MAAM,CAAC,kBAAkB,aACxC,iBAAQ,SAAS,EAAE,MAAM,CAAC,uBAAuB,YAChD,cACC,GAAG,EAAC,gEAAgE,EACpE,GAAG,EAAC,YAAY,EAChB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACT,GACM,EACT,gBACC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAClC,IACG,IACD,EACN,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,IAC7C,CACH,CAAC;IACH,CAAC;CACD"}
@@ -2,18 +2,18 @@ import React from "react";
2
2
  import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
3
  import { IValidationProps } from "../props/IValidationProps";
4
4
  import { IValidationStringProps } from "../props/IValidationStringProps";
5
- export interface INSInputTextProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
5
+ export interface INSBoxStringProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
6
6
  title: string;
7
7
  defaultValue?: string;
8
8
  onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
9
9
  placeholder?: string;
10
10
  }
11
- export interface NSInputTextState {
11
+ export interface INSBoxStringState {
12
12
  value: string;
13
13
  error?: string;
14
14
  }
15
- export declare class NSInputText extends React.Component<INSInputTextProps, NSInputTextState> {
16
- constructor(props: INSInputTextProps);
15
+ export declare class NSBoxString extends React.Component<INSBoxStringProps, INSBoxStringState> {
16
+ constructor(props: INSBoxStringProps);
17
17
  getError(): string | null;
18
18
  getValue(): string;
19
19
  setValue(value: string): void;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import Styles from "./NSInput.module.css";
4
+ import Styles from "./NSBox.module.css";
5
5
  import IconInputString from '../assets/images/icon-input-string.svg';
6
6
  import { Validator } from "../Validator";
7
- import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
8
- export class NSInputString extends React.Component {
7
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
8
+ export class NSBoxString extends React.Component {
9
9
  constructor(props) {
10
10
  var _a;
11
11
  super(props);
@@ -36,7 +36,7 @@ export class NSInputString extends React.Component {
36
36
  }
37
37
  render() {
38
38
  var _a;
39
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} p-2 ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputString, alt: "String Icon", width: 24, height: 24 }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "text", className: Styles.ns_input, placeholder: this.props.placeholder })] }), _jsx(NSInputErrorNotifier, { error: this.state.error })] }));
39
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} p-2 ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputString, alt: "String Icon", width: 24, height: 24 }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "text", className: Styles.ns_input, placeholder: this.props.placeholder })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error })] }));
40
40
  }
41
41
  }
42
- //# sourceMappingURL=NSInputString.js.map
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,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAClC,IACG,EACN,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,IAC7C,CACH,CAAC;IACH,CAAC;CACD"}
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
+ import { IValidationProps } from "../props/IValidationProps";
4
+ import { IValidationStringProps } from "../props/IValidationStringProps";
5
+ export interface INSBoxTextProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
6
+ title: string;
7
+ defaultValue?: string;
8
+ onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
9
+ placeholder?: string;
10
+ }
11
+ export interface INSBoxTextState {
12
+ value: string;
13
+ error?: string;
14
+ }
15
+ export declare class NSBoxText extends React.Component<INSBoxTextProps, INSBoxTextState> {
16
+ constructor(props: INSBoxTextProps);
17
+ getError(): string | null;
18
+ getValue(): string;
19
+ setValue(value: string): void;
20
+ private onChanged;
21
+ render(): import("react/jsx-runtime").JSX.Element;
22
+ }
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import Styles from "./NSInput.module.css";
4
+ import Styles from "./NSBox.module.css";
5
5
  import IconInputText from '../assets/images/icon-input-text.svg';
6
6
  import { Validator } from "../Validator";
7
- import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
8
- export class NSInputText extends React.Component {
7
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
8
+ export class NSBoxText extends React.Component {
9
9
  constructor(props) {
10
10
  var _a;
11
11
  super(props);
@@ -36,7 +36,7 @@ export class NSInputText extends React.Component {
36
36
  }
37
37
  render() {
38
38
  var _a;
39
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputText, alt: "Text Icon", width: 24, height: 24 }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "text", className: Styles.ns_input, placeholder: this.props.placeholder })] }), _jsx(NSInputErrorNotifier, { error: this.state.error })] }));
39
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputText, alt: "Text Icon", width: 24, height: 24 }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "text", className: Styles.ns_input, placeholder: this.props.placeholder })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error })] }));
40
40
  }
41
41
  }
42
- //# sourceMappingURL=NSInputText.js.map
42
+ //# sourceMappingURL=NSBoxText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxText.js","sourceRoot":"","sources":["../../src/components/NSBoxText.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,aAAa,MAAM,sCAAsC,CAAC;AAIjE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAgB1D,MAAM,OAAO,SAAU,SAAQ,KAAK,CAAC,SAA2C;IAE/E,YAAY,KAAsB;;QAEjC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAA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BACC,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,IAAI,MAAA,IAAI,CAAC,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,aACtG,gBAAM,SAAS,EAAE,MAAM,CAAC,cAAc,kBAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,eAAM,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,kBAAW,OAAG,IAAI,CAAC,KAAK,CAAC,KAAK,SAAS,EACrI,cACC,SAAS,EAAE,MAAM,CAAC,aAAa,EAC/B,GAAG,EAAE,aAAa,EAClB,GAAG,EAAC,WAAW,EACf,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACT,EACF,gBACC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAClC,IACG,EACN,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,IAC7C,CACH,CAAC;IACH,CAAC;CACD"}
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
+ import { IValidationProps } from "../props/IValidationProps";
4
+ import { IValidationStringProps } from "../props/IValidationStringProps";
5
+ export interface INSBoxTimeProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
6
+ title: string;
7
+ defaultValue?: string;
8
+ onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
9
+ placeholder?: string;
10
+ }
11
+ export interface INSBoxTimeState {
12
+ value: string;
13
+ error?: string;
14
+ }
15
+ export declare class NSBoxTime extends React.Component<INSBoxTimeProps, INSBoxTimeState> {
16
+ constructor(props: INSBoxTimeProps);
17
+ getError(): string | null;
18
+ getValue(): string;
19
+ setValue(value: string): void;
20
+ private onChanged;
21
+ render(): import("react/jsx-runtime").JSX.Element;
22
+ }
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import Styles from "./NSInput.module.css";
4
+ import Styles from "./NSBox.module.css";
5
5
  import IconInputTime from '../assets/images/icon-input-time.svg';
6
6
  import { Validator } from "../Validator";
7
- import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
8
- export class NSInputTime extends React.Component {
7
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
8
+ export class NSBoxTime extends React.Component {
9
9
  constructor(props) {
10
10
  var _a;
11
11
  super(props);
@@ -37,7 +37,7 @@ export class NSInputTime extends React.Component {
37
37
  }
38
38
  render() {
39
39
  var _a;
40
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} p-2 ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputTime, alt: "Time Icon", width: 24, height: 24 }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "time", className: Styles.ns_input, placeholder: this.props.placeholder, step: "2" })] }), _jsx(NSInputErrorNotifier, { error: this.state.error })] }));
40
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} p-2 ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputTime, alt: "Time Icon", width: 24, height: 24 }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "time", className: Styles.ns_input, placeholder: this.props.placeholder, step: "2" })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error })] }));
41
41
  }
42
42
  }
43
- //# sourceMappingURL=NSInputTime.js.map
43
+ //# sourceMappingURL=NSBoxTime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxTime.js","sourceRoot":"","sources":["../../src/components/NSBoxTime.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,aAAa,MAAM,sCAAsC,CAAC;AAIjE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAgB1D,MAAM,OAAO,SAAU,SAAQ,KAAK,CAAC,SAA2C;IAE/E,YAAY,KAAsB;;QAEjC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,MAAA,KAAK,CAAC,YAAY,mCAAI,EAAE,EAAE,CAAC;QACjD,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,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IACD,QAAQ;QAEP,OAAO,CACN,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;YAClE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AAS,EAAE,MAAM,CAAC,aAAa,EAC/B,GAAG,EAAE,aAAa,EAClB,GAAG,EAAC,WAAW,EACf,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACT,EACF,gBACC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,EACnC,IAAI,EAAC,GAAG,GACP,IACG,EACN,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,IAC7C,CACH,CAAC;IACH,CAAC;CACD"}
@@ -187,22 +187,23 @@
187
187
 
188
188
  .ns_navbar_first_level_item a {
189
189
  color: #fff;
190
+ padding-top: 12px;
190
191
  }
191
192
 
192
193
  .ns_navbar_second_level_item a {
193
194
  color: #000 !important;
194
195
  width: 100%;
195
- padding: 10px;
196
+ padding: 10px;
196
197
  }
197
198
 
198
199
  .ns_navbar_first_level_item {
199
200
  color: #fff;
200
- padding-top: 12px;
201
- padding-bottom: 12px;
202
201
  }
203
202
 
204
203
  .ns_navbar_second_level_item {
205
204
  color: #000 !important;
205
+ width: 100%;
206
+ padding: 10px;
206
207
  }
207
208
 
208
209
  .ns_navbar_username {
@@ -6,6 +6,7 @@ export interface INSSelectBoxProps extends IBaseComponentProps, IValidationProps
6
6
  title: string;
7
7
  options: SelectProps['options'];
8
8
  multiple: boolean;
9
+ placeHolder?: string;
9
10
  }
10
11
  export interface NSSelectBoxState {
11
12
  value: string | null;
@@ -5,7 +5,7 @@ import Styles from "./NSSelectBox.module.css";
5
5
  import { Select, Space } from 'antd';
6
6
  import IconSelectBox from '../assets/images/icon-select-box.svg';
7
7
  import { Validator } from "../Validator";
8
- import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
8
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
9
9
  export class NSSelectBox extends React.Component {
10
10
  constructor(props) {
11
11
  super(props);
@@ -55,7 +55,8 @@ export class NSSelectBox extends React.Component {
55
55
  }
56
56
  }
57
57
  render() {
58
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent}`, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx(Select, { mode: this.props.multiple ? "multiple" : undefined, style: { width: '100%' }, className: Styles.ns_input_select, placeholder: "Combo Box", onChange: this.handleChange, optionLabelProp: "label", options: this.props.options, optionRender: (option) => (_jsx(Space, { className: Styles.ns_input_select_option, children: option.data.desc })), suffixIcon: _jsx("img", { src: IconSelectBox, alt: "SelectBox Icon" }) })] }), _jsx(NSInputErrorNotifier, { error: this.state.error })] }));
58
+ var _a;
59
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent}`, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx(Select, { mode: this.props.multiple ? "multiple" : undefined, style: { width: '100%' }, className: Styles.ns_input_select, placeholder: (_a = this.props.placeHolder) !== null && _a !== void 0 ? _a : "Combo Box", onChange: this.handleChange, optionLabelProp: "label", options: this.props.options, optionRender: (option) => (_jsx(Space, { className: Styles.ns_input_select_option, children: option.data.desc })), suffixIcon: _jsx("img", { src: IconSelectBox, alt: "SelectBox Icon" }) })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error })] }));
59
60
  }
60
61
  }
61
62
  //# sourceMappingURL=NSSelectBox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSSelectBox.js","sourceRoot":"","sources":["../../src/components/NSSelectBox.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,KAAK,MAAM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IAAI,GACV,CACR,EACD,UAAU,EAAE,cAAK,GAAG,EAAE,aAAa,EAAE,GAAG,EAAC,gBAAgB,GAAG,GAC3D,IACG,EACN,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,IAC7C,CACH,CAAC;IACH,CAAC;CACD"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import NSButton from './NSButton';
4
- import { NSInputSearch } from './NSInputSearch';
4
+ import { NSBoxSearch } from './NSBoxSearch';
5
5
  import { NSPagination } from './NSPagination';
6
6
  import { NSSpace, NSSpaceSizeType } from './NSSpace';
7
7
  import Styles from './NSTable.module.css';
@@ -62,7 +62,7 @@ export class NSTable extends Component {
62
62
  if (!overided)
63
63
  this.showModal(getCell(row, column, rowIndex, columnIndex));
64
64
  };
65
- return (_jsxs("div", { id: this.props.id, className: `${Styles.ns_project_list_container} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsx(NSInputSearch, { title: "Search", required: false, onChanged: this.props.onChanged, ref: this.search }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("table", { className: Styles.ns_table, children: [_jsx("thead", { className: Styles.ns_thead, children: _jsx("tr", { children: column_keys.map(column_key => _jsx("th", { scope: "col", onClick: (e) => modalTitle(e), children: this.state.columns[column_key] }, column_key)) }) }), _jsx("tbody", { className: Styles.ns_tbody, children: this.state.rows.map((row, rowIndex) => _jsx("tr", { onClick: (e) => { onRowClick(e, row, rowIndex); }, children: column_keys.map((column, columnIndex) => (_jsx("td", Object.assign({}, getColumnAttributes(column, columnIndex), { "data-label": `${this.state.columns[column]} : `, onClick: (e) => { onCellClick(e, row, column, rowIndex, columnIndex); }, children: getCell(row, column, rowIndex, columnIndex) })))) }, this.props.getRowKey(row, rowIndex))) })] }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsxs("section", { className: Styles.ns_pagination_button, children: [_jsx(NSPagination, { size: 50, page: 5 }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("div", { className: Styles.ns_button, children: [_jsx(NSButton, { title: 'Export', icon: { src: "/assets/images/export-vector.png" }, onClick: () => { }, style: { border: '1px solid rgba(255, 148, 50, 1)', width: "128px" } }), _jsx(NSButton, { title: 'Refresh', icon: { src: "/assets/images/refresh-vector.png" }, onClick: () => { }, style: { border: '1px solid rgba(3, 119, 255, 1)', width: "128px" } })] })] }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx(NSModal, { show: this.state.model.show, description: this.state.model.description, onClose: () => { this.hideModal(); }, title: this.state.title })] }));
65
+ return (_jsxs("div", { id: this.props.id, className: `${Styles.ns_project_list_container} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsx(NSBoxSearch, { title: "Search", required: false, onChanged: this.props.onChanged, ref: this.search }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("table", { className: Styles.ns_table, children: [_jsx("thead", { className: Styles.ns_thead, children: _jsx("tr", { children: column_keys.map(column_key => _jsx("th", { scope: "col", onClick: (e) => modalTitle(e), children: this.state.columns[column_key] }, column_key)) }) }), _jsx("tbody", { className: Styles.ns_tbody, children: this.state.rows.map((row, rowIndex) => _jsx("tr", { onClick: (e) => { onRowClick(e, row, rowIndex); }, children: column_keys.map((column, columnIndex) => (_jsx("td", Object.assign({}, getColumnAttributes(column, columnIndex), { "data-label": `${this.state.columns[column]} : `, onClick: (e) => { onCellClick(e, row, column, rowIndex, columnIndex); }, children: getCell(row, column, rowIndex, columnIndex) })))) }, this.props.getRowKey(row, rowIndex))) })] }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsxs("section", { className: Styles.ns_pagination_button, children: [_jsx(NSPagination, { size: 50, page: 5 }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("div", { className: Styles.ns_button, children: [_jsx(NSButton, { title: 'Export', icon: { src: "/assets/images/export-vector.png" }, onClick: () => { }, style: { border: '1px solid rgba(255, 148, 50, 1)', width: "128px" } }), _jsx(NSButton, { title: 'Refresh', icon: { src: "/assets/images/refresh-vector.png" }, onClick: () => { }, style: { border: '1px solid rgba(3, 119, 255, 1)', width: "128px" } })] })] }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx(NSModal, { show: this.state.model.show, description: this.state.model.description, onClose: () => { this.hideModal(); }, title: this.state.title })] }));
66
66
  }
67
67
  }
68
68
  //# sourceMappingURL=NSTable.js.map