namirasoft-site-react 1.3.60 → 1.3.62

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 (223) hide show
  1. package/dist/App.js +2 -2
  2. package/dist/App.js.map +1 -1
  3. package/dist/Validator.d.ts +7 -2
  4. package/dist/Validator.js +57 -15
  5. package/dist/Validator.js.map +1 -1
  6. package/dist/components/NSButton.d.ts +0 -9
  7. package/dist/components/NSButton.js +2 -9
  8. package/dist/components/NSButton.js.map +1 -1
  9. package/dist/components/NSButton.module.css +8 -7
  10. package/dist/components/NSButtonBlue.d.ts +2 -14
  11. package/dist/components/NSButtonBlue.js +7 -13
  12. package/dist/components/NSButtonBlue.js.map +1 -1
  13. package/dist/components/NSButtonBlue.module.css +0 -8
  14. package/dist/components/NSButtonGreen.d.ts +2 -14
  15. package/dist/components/NSButtonGreen.js +7 -13
  16. package/dist/components/NSButtonGreen.js.map +1 -1
  17. package/dist/components/NSButtonGreen.module.css +0 -8
  18. package/dist/components/NSButtonRed.d.ts +2 -14
  19. package/dist/components/NSButtonRed.js +8 -14
  20. package/dist/components/NSButtonRed.js.map +1 -1
  21. package/dist/components/NSButtonRed.module.css +0 -8
  22. package/dist/components/NSCard.d.ts +3 -9
  23. package/dist/components/NSCard.js +12 -16
  24. package/dist/components/NSCard.js.map +1 -1
  25. package/dist/components/NSCopyToClipboard.d.ts +1 -8
  26. package/dist/components/NSCopyToClipboard.js +6 -14
  27. package/dist/components/NSCopyToClipboard.js.map +1 -1
  28. package/dist/components/NSCopyToClipboard.module.css +1 -1
  29. package/dist/components/NSEntityBar.d.ts +3 -9
  30. package/dist/components/NSEntityBar.js +3 -6
  31. package/dist/components/NSEntityBar.js.map +1 -1
  32. package/dist/components/NSEntityBar.module.css +1 -1
  33. package/dist/components/NSEntityCardBackground.d.ts +1 -11
  34. package/dist/components/NSEntityCardBackground.js +4 -23
  35. package/dist/components/NSEntityCardBackground.js.map +1 -1
  36. package/dist/components/NSFooter.js +2 -1
  37. package/dist/components/NSFooter.js.map +1 -1
  38. package/dist/components/NSHeader.d.ts +1 -2
  39. package/dist/components/NSHeader.js +9 -4
  40. package/dist/components/NSHeader.js.map +1 -1
  41. package/dist/components/NSInput.module.css +29 -0
  42. package/dist/components/NSInputDate.d.ts +3 -1
  43. package/dist/components/NSInputDate.js +14 -4
  44. package/dist/components/NSInputDate.js.map +1 -1
  45. package/dist/components/NSInputDate.module.css +4 -1
  46. package/dist/components/NSInputDuration.d.ts +6 -1
  47. package/dist/components/NSInputDuration.js +15 -6
  48. package/dist/components/NSInputDuration.js.map +1 -1
  49. package/dist/components/NSInputEmail.d.ts +1 -1
  50. package/dist/components/NSInputEmail.js +5 -3
  51. package/dist/components/NSInputEmail.js.map +1 -1
  52. package/dist/components/NSInputFloat.d.ts +4 -4
  53. package/dist/components/NSInputFloat.js +8 -9
  54. package/dist/components/NSInputFloat.js.map +1 -1
  55. package/dist/components/NSInputIP.d.ts +5 -1
  56. package/dist/components/NSInputIP.js +17 -7
  57. package/dist/components/NSInputIP.js.map +1 -1
  58. package/dist/components/NSInputInteger.d.ts +9 -5
  59. package/dist/components/NSInputInteger.js +16 -8
  60. package/dist/components/NSInputInteger.js.map +1 -1
  61. package/dist/components/NSInputPassword.d.ts +5 -1
  62. package/dist/components/NSInputPassword.js +15 -6
  63. package/dist/components/NSInputPassword.js.map +1 -1
  64. package/dist/components/NSInputPhone.d.ts +8 -3
  65. package/dist/components/NSInputPhone.js +18 -12
  66. package/dist/components/NSInputPhone.js.map +1 -1
  67. package/dist/components/NSInputPrice.d.ts +7 -2
  68. package/dist/components/NSInputPrice.js +15 -7
  69. package/dist/components/NSInputPrice.js.map +1 -1
  70. package/dist/components/NSInputSearch.d.ts +6 -1
  71. package/dist/components/NSInputSearch.js +15 -6
  72. package/dist/components/NSInputSearch.js.map +1 -1
  73. package/dist/components/NSInputString.d.ts +5 -1
  74. package/dist/components/NSInputString.js +15 -6
  75. package/dist/components/NSInputString.js.map +1 -1
  76. package/dist/components/NSInputText.d.ts +5 -1
  77. package/dist/components/NSInputText.js +15 -6
  78. package/dist/components/NSInputText.js.map +1 -1
  79. package/dist/components/NSInputTime.d.ts +5 -1
  80. package/dist/components/NSInputTime.js +16 -6
  81. package/dist/components/NSInputTime.js.map +1 -1
  82. package/dist/components/NSLayout.js +2 -2
  83. package/dist/components/NSLayout.js.map +1 -1
  84. package/dist/components/NSLayoutHeroBanner.js.map +1 -1
  85. package/dist/components/NSLinkBlue.d.ts +1 -9
  86. package/dist/components/NSLinkBlue.js +3 -17
  87. package/dist/components/NSLinkBlue.js.map +1 -1
  88. package/dist/components/NSLoading.d.ts +1 -6
  89. package/dist/components/NSLoading.js +2 -6
  90. package/dist/components/NSLoading.js.map +1 -1
  91. package/dist/components/NSNotification.js +2 -2
  92. package/dist/components/NSNotification.js.map +1 -1
  93. package/dist/components/NSPagination.d.ts +1 -1
  94. package/dist/components/NSPagination.js +2 -1
  95. package/dist/components/NSPagination.js.map +1 -1
  96. package/dist/components/NSPanel.d.ts +2 -7
  97. package/dist/components/NSPanel.js +3 -9
  98. package/dist/components/NSPanel.js.map +1 -1
  99. package/dist/components/NSSection.d.ts +2 -10
  100. package/dist/components/NSSection.js +6 -25
  101. package/dist/components/NSSection.js.map +1 -1
  102. package/dist/components/NSSectionBars.d.ts +2 -6
  103. package/dist/components/NSSectionBars.js +4 -8
  104. package/dist/components/NSSectionBars.js.map +1 -1
  105. package/dist/components/NSSectionCards.d.ts +4 -14
  106. package/dist/components/NSSectionCards.js +7 -11
  107. package/dist/components/NSSectionCards.js.map +1 -1
  108. package/dist/components/NSSectionTitle.d.ts +3 -10
  109. package/dist/components/NSSectionTitle.js +2 -6
  110. package/dist/components/NSSectionTitle.js.map +1 -1
  111. package/dist/components/NSSelectBox.d.ts +6 -3
  112. package/dist/components/NSSelectBox.js +21 -6
  113. package/dist/components/NSSelectBox.js.map +1 -1
  114. package/dist/components/NSSpace.js +2 -1
  115. package/dist/components/NSSpace.js.map +1 -1
  116. package/dist/components/NSTable.js +2 -1
  117. package/dist/components/NSTable.js.map +1 -1
  118. package/dist/components/NSTitle.d.ts +1 -6
  119. package/dist/components/NSTitle.js +3 -6
  120. package/dist/components/NSTitle.js.map +1 -1
  121. package/dist/main.d.ts +0 -1
  122. package/dist/main.js +0 -1
  123. package/dist/main.js.map +1 -1
  124. package/dist/pages/NSLoginPage.d.ts +2 -3
  125. package/dist/pages/NSLoginPage.js +4 -3
  126. package/dist/pages/NSLoginPage.js.map +1 -1
  127. package/dist/props/BaseComponentProps.d.ts +1 -0
  128. package/dist/props/ValidationNumberProps.d.ts +1 -2
  129. package/dist/props/ValidationProps.d.ts +1 -0
  130. package/dist/props/ValidationStringProps.d.ts +1 -2
  131. package/package.json +3 -4
  132. package/src/App.tsx +14 -4
  133. package/src/Validator.ts +67 -18
  134. package/src/components/NSButton.module.css +8 -7
  135. package/src/components/NSButton.tsx +6 -24
  136. package/src/components/NSButtonBlue.module.css +0 -8
  137. package/src/components/NSButtonBlue.tsx +8 -28
  138. package/src/components/NSButtonGreen.module.css +0 -8
  139. package/src/components/NSButtonGreen.tsx +8 -29
  140. package/src/components/NSButtonRed.module.css +0 -8
  141. package/src/components/NSButtonRed.tsx +9 -30
  142. package/src/components/NSCard.tsx +49 -56
  143. package/src/components/NSCopyToClipboard.module.css +1 -1
  144. package/src/components/NSCopyToClipboard.tsx +21 -35
  145. package/src/components/NSEntityBar.module.css +1 -1
  146. package/src/components/NSEntityBar.tsx +17 -23
  147. package/src/components/NSEntityCardBackground.tsx +22 -56
  148. package/src/components/NSFooter.tsx +4 -1
  149. package/src/components/NSHeader.tsx +16 -7
  150. package/src/components/NSInput.module.css +29 -0
  151. package/src/components/NSInputDate.module.css +4 -1
  152. package/src/components/NSInputDate.tsx +29 -10
  153. package/src/components/NSInputDuration.tsx +44 -23
  154. package/src/components/NSInputEmail.tsx +10 -5
  155. package/src/components/NSInputFloat.tsx +33 -32
  156. package/src/components/NSInputIP.tsx +44 -24
  157. package/src/components/NSInputInteger.tsx +48 -31
  158. package/src/components/NSInputPassword.tsx +42 -23
  159. package/src/components/NSInputPhone.tsx +45 -29
  160. package/src/components/NSInputPrice.tsx +45 -23
  161. package/src/components/NSInputSearch.tsx +43 -21
  162. package/src/components/NSInputString.tsx +42 -23
  163. package/src/components/NSInputText.tsx +42 -23
  164. package/src/components/NSInputTime.tsx +44 -23
  165. package/src/components/NSLayout.tsx +3 -3
  166. package/src/components/NSLayoutHeroBanner.tsx +0 -1
  167. package/src/components/NSLinkBlue.tsx +12 -32
  168. package/src/components/NSLoading.tsx +8 -17
  169. package/src/components/NSNotification.tsx +19 -14
  170. package/src/components/NSPagination.tsx +4 -3
  171. package/src/components/NSPanel.tsx +10 -21
  172. package/src/components/NSSection.tsx +13 -39
  173. package/src/components/NSSectionBars.tsx +13 -22
  174. package/src/components/NSSectionCards.tsx +30 -45
  175. package/src/components/NSSectionTitle.tsx +10 -20
  176. package/src/components/NSSelectBox.tsx +48 -23
  177. package/src/components/NSSpace.tsx +3 -1
  178. package/src/components/NSTable.tsx +6 -4
  179. package/src/components/NSTitle.tsx +10 -15
  180. package/src/main.ts +0 -1
  181. package/src/pages/NSLoginPage.tsx +8 -6
  182. package/src/props/BaseComponentProps.ts +1 -0
  183. package/src/props/ValidationNumberProps.ts +1 -3
  184. package/src/props/ValidationProps.ts +1 -0
  185. package/src/props/ValidationStringProps.ts +1 -3
  186. package/dist/components/NSButtonBlueVector.d.ts +0 -16
  187. package/dist/components/NSButtonBlueVector.js +0 -17
  188. package/dist/components/NSButtonBlueVector.js.map +0 -1
  189. package/dist/components/NSButtonBlueVector.module.css +0 -17
  190. package/dist/components/NSInputDuration.module.css +0 -26
  191. package/dist/components/NSInputEmail.module.css +0 -38
  192. package/dist/components/NSInputFloat.module.css +0 -26
  193. package/dist/components/NSInputIP.module.css +0 -26
  194. package/dist/components/NSInputInteger.module.css +0 -26
  195. package/dist/components/NSInputPassword.module.css +0 -27
  196. package/dist/components/NSInputPhone.module.css +0 -33
  197. package/dist/components/NSInputPrice.module.css +0 -27
  198. package/dist/components/NSInputSearch.module.css +0 -27
  199. package/dist/components/NSInputString.module.css +0 -27
  200. package/dist/components/NSInputText.module.css +0 -28
  201. package/dist/components/NSInputTime.module.css +0 -27
  202. package/dist/props/BackgroundProps.d.ts +0 -6
  203. package/dist/props/BackgroundProps.js +0 -2
  204. package/dist/props/BackgroundProps.js.map +0 -1
  205. package/dist/props/NSButtonProps.d.ts +0 -11
  206. package/dist/props/NSButtonProps.js +0 -2
  207. package/dist/props/NSButtonProps.js.map +0 -1
  208. package/src/components/NSButtonBlueVector.module.css +0 -17
  209. package/src/components/NSButtonBlueVector.tsx +0 -42
  210. package/src/components/NSInputDuration.module.css +0 -26
  211. package/src/components/NSInputEmail.module.css +0 -38
  212. package/src/components/NSInputFloat.module.css +0 -26
  213. package/src/components/NSInputIP.module.css +0 -26
  214. package/src/components/NSInputInteger.module.css +0 -26
  215. package/src/components/NSInputPassword.module.css +0 -27
  216. package/src/components/NSInputPhone.module.css +0 -33
  217. package/src/components/NSInputPrice.module.css +0 -27
  218. package/src/components/NSInputSearch.module.css +0 -27
  219. package/src/components/NSInputString.module.css +0 -27
  220. package/src/components/NSInputText.module.css +0 -28
  221. package/src/components/NSInputTime.module.css +0 -27
  222. package/src/props/BackgroundProps.ts +0 -7
  223. package/src/props/NSButtonProps.ts +0 -12
@@ -1,8 +1,10 @@
1
- "use client";
2
1
  import { Component } from 'react';
3
- import { NSLinkBlue, NSButtonGreen, NSSpace, NSSpaceSizeType } from "../main";
4
2
  import Styles from './NSLoginPage.module.css'
5
- interface IProps
3
+ import { NSButtonGreen } from '../components/NSButtonGreen';
4
+ import { NSLinkBlue } from '../components/NSLinkBlue';
5
+ import { NSSpace, NSSpaceSizeType } from '../components/NSSpace';
6
+
7
+ export interface NSLoginPageProps
6
8
  {
7
9
  title: string;
8
10
  logo: string;
@@ -11,7 +13,7 @@ interface IProps
11
13
  onClick?: () => void;
12
14
  }
13
15
 
14
- export class NSLoginPage extends Component<IProps>
16
+ export class NSLoginPage extends Component<NSLoginPageProps>
15
17
  {
16
18
  override render()
17
19
  {
@@ -24,7 +26,7 @@ export class NSLoginPage extends Component<IProps>
24
26
  <div style={{ backgroundImage: this.props.background, width: "100%", backgroundSize: "cover" }}>
25
27
  <div className={`${Styles.ns_login_container}`} style={{ marginTop: "100px" }}>
26
28
  <div className={`${Styles.ns_logo}`}>
27
- <img width={256} height={256} src={this.props.logo} alt="logo"></img>
29
+ <img width={256} height={256} src={this.props.logo} alt={`${this.props.title} Logo`}></img>
28
30
  </div>
29
31
  <NSSpace size={NSSpaceSizeType.SMALL} />
30
32
  <div><h1 className={`${Styles.ns_title}`}>{this.props.title}</h1></div>
@@ -33,7 +35,7 @@ export class NSLoginPage extends Component<IProps>
33
35
  {button}
34
36
  </div>
35
37
  </div>
36
- </div>
38
+ </div >
37
39
  );
38
40
  }
39
41
  }
@@ -2,6 +2,7 @@ import React from "react";
2
2
 
3
3
  export interface BaseComponentProps
4
4
  {
5
+ id?: string;
5
6
  classList?: string[]
6
7
  style?: React.CSSProperties
7
8
  }
@@ -1,6 +1,4 @@
1
- import { ValidationProps } from "./ValidationProps";
2
-
3
- export interface ValidationNumberProps extends ValidationProps
1
+ export interface ValidationNumberProps
4
2
  {
5
3
  min?: number;
6
4
  max?: number;
@@ -4,4 +4,5 @@ export interface ValidationProps
4
4
  {
5
5
  required: boolean;
6
6
  regex?: ValidationRegexProps;
7
+ validator?: (name: string, value: string | number | null | undefined) => string | null;
7
8
  }
@@ -1,6 +1,4 @@
1
- import { ValidationProps } from "./ValidationProps";
2
-
3
- export interface ValidationStringProps extends ValidationProps
1
+ export interface ValidationStringProps
4
2
  {
5
3
  min_length?: number;
6
4
  max_length?: number;
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import { BaseComponentProps } from "../props/BaseComponentProps";
3
- export interface NSButtonBlueVectorProps extends BaseComponentProps {
4
- title: string;
5
- vector: string;
6
- onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
7
- }
8
- export interface NSButtonBlueVectorState {
9
- title: string;
10
- vector: string;
11
- }
12
- export declare class NSButtonBlueVector extends React.Component<NSButtonBlueVectorProps, NSButtonBlueVectorState> {
13
- constructor(props: NSButtonBlueVectorProps);
14
- setTitle(title: string, vector: string): void;
15
- render(): import("react/jsx-runtime").JSX.Element;
16
- }
@@ -1,17 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import React from "react";
4
- import Style from "./NSButtonBlueVector.module.css";
5
- export class NSButtonBlueVector extends React.Component {
6
- constructor(props) {
7
- super(props);
8
- this.state = { title: props.title, vector: props.vector };
9
- }
10
- setTitle(title, vector) {
11
- this.setState({ title, vector });
12
- }
13
- render() {
14
- return (_jsxs("button", { onClick: e => this.props.onClick(e), className: Style.ns_button_blue_vector, children: [_jsx("img", { src: this.state.vector, width: 16, height: 16 }), this.state.title] }));
15
- }
16
- }
17
- //# sourceMappingURL=NSButtonBlueVector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NSButtonBlueVector.js","sourceRoot":"","sources":["../../src/components/NSButtonBlueVector.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,iCAAiC,CAAC;AAgBpD,MAAM,OAAO,kBAAmB,SAAQ,KAAK,CAAC,SAA2D;IAErG,YAAY,KAA8B;QAEtC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;IAC9D,CAAC;IACD,QAAQ,CAAC,KAAa,EAAE,MAAc;QAElC,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACrC,CAAC;IACQ,MAAM;QAEX,OAAO,CAEH,kBAAQ,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,qBAAqB,aAC/E,cAAK,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,EACrD,IAAI,CAAC,KAAK,CAAC,KAAK,IACZ,CAEZ,CAAC;IACN,CAAC;CACJ"}
@@ -1,17 +0,0 @@
1
- .ns_button_blue_vector {
2
- background-color: rgba(3, 119, 255, 1);
3
- max-width: 100%;
4
- border: 0;
5
- box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
6
- font-size: 16px;
7
- width: 128px;
8
- height: 48px;
9
- border-radius: 8px;
10
- color: white;
11
- font-weight: 400;
12
- display: flex;
13
- flex-direction: row;
14
- justify-content: center;
15
- align-items: center;
16
- gap: 8px;
17
- }
@@ -1,26 +0,0 @@
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
- }
@@ -1,38 +0,0 @@
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
- }
@@ -1,26 +0,0 @@
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
- }
@@ -1,26 +0,0 @@
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
- }
@@ -1,26 +0,0 @@
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
- }
@@ -1,27 +0,0 @@
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
- z-index: 1;
22
- }
23
-
24
- .ns_input_title {
25
- font-size: 16px;
26
- font-weight: 400;
27
- }
@@ -1,33 +0,0 @@
1
- .ns_input_parent {
2
- display: flex;
3
- flex-direction: column;
4
- width: 326px;
5
-
6
- position: relative;
7
- max-width: 100%;
8
- }
9
-
10
- .ns_input {
11
- height: 48px !important;
12
- font-size: 16px !important;
13
- font-weight: 400;
14
- width: 310px !important;
15
- }
16
-
17
- .ns_input span {
18
- color: #000 !important;
19
-
20
- }
21
-
22
- .ns_input_icon {
23
- position: absolute;
24
- right: 20px;
25
- top: 51%;
26
- z-index: 1;
27
- }
28
-
29
- .ns_input_title {
30
- color: #fff;
31
- font-size: 16px;
32
- font-weight: 400;
33
- }
@@ -1,27 +0,0 @@
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: 33%;
21
- z-index: 1;
22
- }
23
-
24
- .ns_input_title {
25
- font-size: 16px;
26
- font-weight: 400;
27
- }
@@ -1,27 +0,0 @@
1
- .ns_input_form {
2
- display: flex;
3
- flex-direction: column;
4
- width: 326px;
5
- color: #fff;
6
- max-width: 100%;
7
- position: relative;
8
- }
9
-
10
- .ns_input {
11
- border-radius: 8px;
12
- padding: 10px 12px;
13
- font-size: 16px;
14
- font-weight: 400;
15
- border: 1px solid rgba(47, 0, 236, 0.6);
16
- }
17
-
18
- .ns_input_icon {
19
- position: absolute;
20
- right: 20px;
21
- top: 34%;
22
- }
23
-
24
- .ns_input_title {
25
- font-size: 16px;
26
- font-weight: 400;
27
- }
@@ -1,27 +0,0 @@
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
- z-index: 1;
22
- }
23
-
24
- .ns_input_title {
25
- font-size: 16px;
26
- font-weight: 400;
27
- }
@@ -1,28 +0,0 @@
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
- padding: 8px;
9
- }
10
-
11
- .ns_input {
12
- border-radius: 8px;
13
- padding: 10px 12px;
14
- font-size: 16px;
15
- font-weight: 400;
16
- }
17
-
18
- .ns_input_icon {
19
- position: absolute;
20
- right: 20px;
21
- top: 51%;
22
- z-index: 1;
23
- }
24
-
25
- .ns_input_title {
26
- font-size: 16px;
27
- font-weight: 400;
28
- }
@@ -1,27 +0,0 @@
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
- z-index: 1;
22
- }
23
-
24
- .ns_input_title {
25
- font-size: 16px;
26
- font-weight: 400;
27
- }
@@ -1,6 +0,0 @@
1
- export interface BackgroundProps {
2
- image?: string;
3
- color?: string;
4
- position?: string;
5
- filter?: string;
6
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=BackgroundProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BackgroundProps.js","sourceRoot":"","sources":["../../src/props/BackgroundProps.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { BackgroundProps } from "./BackgroundProps";
3
- import { BaseComponentProps } from "./BaseComponentProps";
4
- import { ImageProps } from "./ImageProps";
5
- export interface NSButtonProps extends BaseComponentProps {
6
- title: string;
7
- onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
8
- border?: string;
9
- background?: BackgroundProps;
10
- icon?: ImageProps;
11
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=NSButtonProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NSButtonProps.js","sourceRoot":"","sources":["../../src/props/NSButtonProps.ts"],"names":[],"mappings":""}
@@ -1,17 +0,0 @@
1
- .ns_button_blue_vector {
2
- background-color: rgba(3, 119, 255, 1);
3
- max-width: 100%;
4
- border: 0;
5
- box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
6
- font-size: 16px;
7
- width: 128px;
8
- height: 48px;
9
- border-radius: 8px;
10
- color: white;
11
- font-weight: 400;
12
- display: flex;
13
- flex-direction: row;
14
- justify-content: center;
15
- align-items: center;
16
- gap: 8px;
17
- }
@@ -1,42 +0,0 @@
1
- "use client";
2
-
3
- import React from "react";
4
- import Style from "./NSButtonBlueVector.module.css";
5
- import { BaseComponentProps } from "../props/BaseComponentProps";
6
-
7
- export interface NSButtonBlueVectorProps extends BaseComponentProps
8
- {
9
- title: string;
10
- vector: string;
11
- onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
12
- }
13
-
14
- export interface NSButtonBlueVectorState
15
- {
16
- title: string;
17
- vector: string;
18
- }
19
-
20
- export class NSButtonBlueVector extends React.Component<NSButtonBlueVectorProps, NSButtonBlueVectorState>
21
- {
22
- constructor(props: NSButtonBlueVectorProps)
23
- {
24
- super(props);
25
- this.state = { title: props.title, vector: props.vector };
26
- }
27
- setTitle(title: string, vector: string)
28
- {
29
- this.setState({ title, vector });
30
- }
31
- override render()
32
- {
33
- return (
34
-
35
- <button onClick={e => this.props.onClick(e)} className={Style.ns_button_blue_vector}>
36
- <img src={this.state.vector} width={16} height={16} />
37
- {this.state.title}
38
- </button>
39
-
40
- );
41
- }
42
- }
@@ -1,26 +0,0 @@
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
- }
@@ -1,38 +0,0 @@
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
- }
@@ -1,26 +0,0 @@
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
- }