namirasoft-site-react 1.2.33 → 1.2.35

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 (95) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/App.js.map +1 -1
  3. package/dist/components/NSButtonGreen.d.ts +2 -0
  4. package/dist/components/NSButtonGreen.js +1 -0
  5. package/dist/components/NSButtonGreen.js.map +1 -1
  6. package/dist/components/NSButtonRed.js +1 -0
  7. package/dist/components/NSButtonRed.js.map +1 -1
  8. package/dist/components/NSFooter.js +4 -2
  9. package/dist/components/NSFooter.js.map +1 -1
  10. package/dist/components/NSFooter.module.css +85 -20
  11. package/dist/components/NSHeader.js +4 -4
  12. package/dist/components/NSHeader.js.map +1 -1
  13. package/dist/components/NSHeader.module.css +58 -3
  14. package/dist/components/NSInputDate.js +2 -1
  15. package/dist/components/NSInputDate.js.map +1 -1
  16. package/dist/components/NSInputDate.module.css +30 -26
  17. package/dist/components/NSInputDuration.js +1 -0
  18. package/dist/components/NSInputDuration.js.map +1 -1
  19. package/dist/components/NSInputEmail.js +1 -0
  20. package/dist/components/NSInputEmail.js.map +1 -1
  21. package/dist/components/NSInputFloat.js +1 -0
  22. package/dist/components/NSInputFloat.js.map +1 -1
  23. package/dist/components/NSInputIP.js +1 -0
  24. package/dist/components/NSInputIP.js.map +1 -1
  25. package/dist/components/NSInputInteger.js +1 -0
  26. package/dist/components/NSInputInteger.js.map +1 -1
  27. package/dist/components/NSInputPhone.js +1 -0
  28. package/dist/components/NSInputPhone.js.map +1 -1
  29. package/dist/components/NSInputPrice.js +1 -0
  30. package/dist/components/NSInputPrice.js.map +1 -1
  31. package/dist/components/NSInputSearch.js +1 -0
  32. package/dist/components/NSInputSearch.js.map +1 -1
  33. package/dist/components/NSInputString.js +1 -0
  34. package/dist/components/NSInputString.js.map +1 -1
  35. package/dist/components/NSInputText.js +1 -0
  36. package/dist/components/NSInputText.js.map +1 -1
  37. package/dist/components/NSInputTime.js +1 -0
  38. package/dist/components/NSInputTime.js.map +1 -1
  39. package/dist/components/NSLayout.d.ts +2 -6
  40. package/dist/components/NSLayout.js +2 -5
  41. package/dist/components/NSLayout.js.map +1 -1
  42. package/dist/components/NSLayout.module.css +7 -0
  43. package/dist/components/NSLayoutHeroBanner.d.ts +11 -0
  44. package/dist/components/NSLayoutHeroBanner.js +6 -0
  45. package/dist/components/NSLayoutHeroBanner.js.map +1 -0
  46. package/dist/components/NSLayoutTitle.d.ts +10 -0
  47. package/dist/components/NSLayoutTitle.js +6 -0
  48. package/dist/components/NSLayoutTitle.js.map +1 -0
  49. package/dist/components/NSLinkGreen.js +1 -0
  50. package/dist/components/NSLinkGreen.js.map +1 -1
  51. package/dist/components/NSLinkRed.js +1 -0
  52. package/dist/components/NSLinkRed.js.map +1 -1
  53. package/dist/components/NSPagination.js +1 -0
  54. package/dist/components/NSPagination.js.map +1 -1
  55. package/dist/components/NSSelectBox.js +1 -0
  56. package/dist/components/NSSelectBox.js.map +1 -1
  57. package/dist/components/NSTable.js +1 -0
  58. package/dist/components/NSTable.js.map +1 -1
  59. package/dist/main.d.ts +2 -0
  60. package/dist/main.js +2 -0
  61. package/dist/main.js.map +1 -1
  62. package/dist/pages/NSLoginPage.js +1 -0
  63. package/dist/pages/NSLoginPage.js.map +1 -1
  64. package/package.json +6 -6
  65. package/src/App.tsx +3 -2
  66. package/src/components/NSButtonGreen.tsx +4 -0
  67. package/src/components/NSButtonRed.tsx +2 -0
  68. package/src/components/NSFooter.module.css +85 -20
  69. package/src/components/NSFooter.tsx +21 -20
  70. package/src/components/NSHeader.module.css +58 -3
  71. package/src/components/NSHeader.tsx +11 -10
  72. package/src/components/NSInputDate.module.css +30 -26
  73. package/src/components/NSInputDate.tsx +4 -1
  74. package/src/components/NSInputDuration.tsx +2 -0
  75. package/src/components/NSInputEmail.tsx +2 -0
  76. package/src/components/NSInputFloat.tsx +2 -0
  77. package/src/components/NSInputIP.tsx +2 -0
  78. package/src/components/NSInputInteger.tsx +2 -0
  79. package/src/components/NSInputPhone.tsx +2 -0
  80. package/src/components/NSInputPrice.tsx +2 -0
  81. package/src/components/NSInputSearch.tsx +2 -0
  82. package/src/components/NSInputString.tsx +2 -0
  83. package/src/components/NSInputText.tsx +2 -0
  84. package/src/components/NSInputTime.tsx +2 -0
  85. package/src/components/NSLayout.module.css +7 -0
  86. package/src/components/NSLayout.tsx +18 -27
  87. package/src/components/NSLayoutHeroBanner.tsx +24 -0
  88. package/src/components/NSLayoutTitle.tsx +24 -0
  89. package/src/components/NSLinkGreen.tsx +2 -0
  90. package/src/components/NSLinkRed.tsx +2 -0
  91. package/src/components/NSPagination.tsx +2 -0
  92. package/src/components/NSSelectBox.tsx +2 -0
  93. package/src/components/NSTable.tsx +2 -0
  94. package/src/main.ts +2 -0
  95. package/src/pages/NSLoginPage.tsx +2 -0
@@ -1,6 +1,7 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSHeader.module.css";
3
- import Nav from 'react-bootstrap/Nav';
4
5
  import Menu from '../assets/images/menu.svg';
5
6
  import Exit from '../assets/images/exit.svg';
6
7
  import NavDropdown from 'react-bootstrap/NavDropdown';
@@ -63,18 +64,18 @@ export class NSHeader extends React.Component<IProps, IState> {
63
64
  <div className={`${Styles.ns_navbar_parent_content} container`}>
64
65
  <img
65
66
  src={this.props.logo}
66
- alt="logo"
67
+ alt="Logo"
67
68
  width={48}
68
69
  height={48}
69
70
  />
70
- <div className={`${Styles.ns_navbar_content} gap-2 d-flex justify-content-between`} >
71
+ <div className={`${Styles.ns_navbar_content} `} >
71
72
  <div className={`${Styles.ns_navbar_elements} ${this.state.showNavbar && Styles.ns_navbar_active}`}>
72
73
  {this.render_menu(0, null)}
73
74
  </div>
74
- <div className="d-flex justify-content-center align-items-center">
75
- <span className={`me-2 ${Styles.ns_navbar_usersname}`}>name</span>
75
+ <div className={`${Styles.ns_navbar_login_status}`}>
76
+ <span className={`${Styles.ns_navbar_usersname}`}>name</span>
76
77
  <img src={Exit}
77
- alt="exit"
78
+ alt="Exit"
78
79
  width={20}
79
80
  height={20}
80
81
  />
@@ -82,7 +83,7 @@ export class NSHeader extends React.Component<IProps, IState> {
82
83
  <div className={Styles.ns_navbar_menu_icon} onClick={this.handleShowNavbar}>
83
84
  <img
84
85
  src={Menu}
85
- alt="menu"
86
+ alt="Menu"
86
87
  width={19}
87
88
  height={17}
88
89
  />
@@ -96,9 +97,9 @@ export class NSHeader extends React.Component<IProps, IState> {
96
97
  {
97
98
  let fs: FilterLinkRow[] = this.state.filters?.filter(f => f.parent_id === parent_id);
98
99
  return (
99
- <Nav className="me-auto" >
100
+ <div className={`me-auto nav ${Styles.ns_navbar_items_container}`} >
100
101
  {(fs?.map(f => this.render_menuItem(level, f)))}
101
- </Nav>
102
+ </div>
102
103
  );
103
104
  }
104
105
  private render_menuItem(level: number, filter: FilterLinkRow)
@@ -128,7 +129,7 @@ export class NSHeader extends React.Component<IProps, IState> {
128
129
  } else
129
130
  {
130
131
  return (
131
- <Nav.Link className={level === 0 ? Styles.ns_navbar_first_level_item : Styles.ns_navbar_second_level_item} href={filter.link?.url}>{filter.name}</Nav.Link>
132
+ <a className={`${Styles.ns_navbar_items_link} ${level === 0 ? Styles.ns_navbar_first_level_item : Styles.ns_navbar_second_level_item}`} href={filter.link?.url}>{filter.name}</a>
132
133
  );
133
134
  }
134
135
  }
@@ -1,32 +1,36 @@
1
- .ns_parent_input{
2
- display: flex;
3
- flex-direction: column;
4
- width: 326px;
5
- color: #fff;
6
- position: relative;
7
- max-width: 100%;
1
+ .ns_parent_input {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 326px;
5
+ color: #fff;
6
+ position: relative;
7
+ max-width: 100%;
8
8
  }
9
- .ns_input{
10
- border-radius: 8px;
11
- padding: 10px 12px;
12
- font-size: 16px;
13
- font-weight: 400;
9
+
10
+ .ns_input {
11
+ border-radius: 8px;
12
+ padding: 10px 12px;
13
+ font-size: 16px;
14
+ font-weight: 400;
14
15
  }
15
- .ns_input_icon{
16
- position: absolute;
17
- right: 20px;
18
- top: 51%;
16
+
17
+ .ns_input_icon {
18
+ position: absolute;
19
+ right: 20px;
20
+ top: 51%;
19
21
  }
22
+
20
23
  .ns_input_title {
21
- font-size: 16px;
22
- font-weight: 400;
24
+ font-size: 16px;
25
+ font-weight: 400;
23
26
  }
24
- input[type="date"]::-webkit-calendar-picker-indicator {
25
- display: block;
26
- background: url(../assets/images/icon-input-date.svg) no-repeat;
27
- width: 24px;
28
- height: 24px;
29
- position: relative;
30
- top: 3px;
31
- left: 4px;
27
+
28
+ .ns_input::-webkit-calendar-picker-indicator {
29
+ display: block;
30
+ background: url(../assets/images/icon-input-date.svg) no-repeat;
31
+ width: 24px;
32
+ height: 24px;
33
+ position: relative;
34
+ top: 3px;
35
+ left: 4px;
32
36
  }
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSInputDate.module.css";
3
5
 
@@ -44,7 +46,8 @@ export class NSInputDate extends React.Component<IProps, IState> {
44
46
  onChange={this.setValue}
45
47
  type="date"
46
48
  className={Styles.ns_input}
47
- placeholder="YYYY/MM/DD"
49
+ placeholder="YYYY/MM/DD"
50
+ id="ns-input-date"
48
51
  />
49
52
  </div>
50
53
  );
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSInputDuration.module.css";
3
5
  import IconInputDuration from '../assets/images/icon-input-duration.svg';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSInputEmail.module.css";
3
5
  import IconInputEmail from '../assets/images/icon-input-email.svg';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSInputFloat.module.css";
3
5
  import IconInputFloat from '../assets/images/icon-input-float.svg';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSInputIP.module.css";
3
5
  import IconInputId from '../assets/images/icon-input-id.svg';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSInputInteger.module.css";
3
5
  import IconInputInteger from '../assets/images/icon-input-integer.svg';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSInputPhone.module.css";
3
5
  import IconInputPhone from '../assets/images/icon-input-phone.svg';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSInputPrice.module.css";
3
5
  import IconInputPrice from '../assets/images/icon-input-price.svg';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSInputSearch.module.css";
3
5
  import IconInputSearch from '../assets/images/icon-input-search.svg';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSInputString.module.css";
3
5
  import IconInputString from '../assets/images/icon-input-string.svg';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSInputText.module.css";
3
5
  import IconInputText from '../assets/images/icon-input-text.svg';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSInputTime.module.css";
3
5
  import IconInputTime from '../assets/images/icon-input-time.svg';
@@ -1,7 +1,14 @@
1
1
  .ns_container {
2
2
  min-height: 100vh;
3
+ width: 100%;
3
4
  display: flex;
4
5
  flex-direction: column;
6
+ justify-content: space-between;
7
+ }
8
+
9
+ .ns_header {
10
+ margin-bottom: auto;
11
+ width: 100%;
5
12
  }
6
13
 
7
14
  .ns_footer {
@@ -1,37 +1,28 @@
1
1
  import Styles from './NSLayout.module.css';
2
- import { Component, ReactNode } from 'react';
2
+ import { ReactNode } from 'react';
3
3
  import { NSHeader } from './NSHeader';
4
4
  import { NSFooter } from './NSFooter';
5
5
 
6
6
  interface IProps
7
7
  {
8
- scope: string;
9
- logo: string;
10
- title: string;
11
- description?: string;
12
- children: ReactNode;
8
+ scope: string;
9
+ logo: string;
10
+ children: ReactNode;
13
11
  }
14
12
 
15
- export class NSLayout extends Component<IProps>
13
+ export function NSLayout(props: IProps)
16
14
  {
17
- override render()
18
- {
19
- return (
20
- <div className={Styles.ns_container}>
21
- <div className="d-flex flex-column text-white">
22
- <NSHeader scope={this.props.scope} name="Header" logo={this.props.logo} />
23
- <div>
24
- <h1>{this.props.title}</h1>
25
- <h4 className="page-description">{this.props.description}</h4>
26
- </div>
27
- <main className="container">
28
- {this.props.children}
29
- </main>
30
- </div >
31
- <div className={Styles.ns_footer}>
32
- <NSFooter scope={this.props.scope} name="Footer" logo={this.props.logo} />
33
- </div>
34
- </div>
35
- );
36
- }
15
+ return (
16
+ <div className={Styles.ns_container}>
17
+ <header className={Styles.ns_header}>
18
+ <NSHeader scope={props.scope} name="Header" logo={props.logo} />
19
+ </header>
20
+ <main className="d-flex flex-column text-white">
21
+ {props.children}
22
+ </main>
23
+ <footer className={Styles.ns_footer}>
24
+ <NSFooter scope={props.scope} name="Footer" logo={props.logo} />
25
+ </footer>
26
+ </div >
27
+ );
37
28
  }
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from 'react';
2
+ import { NSLayout } from './NSLayout';
3
+
4
+ interface IProps
5
+ {
6
+ scope: string;
7
+ logo: string;
8
+ title: string;
9
+ description?: string;
10
+ banner: string;
11
+ children: ReactNode;
12
+ }
13
+
14
+ export function NSLayoutHeroBanner(props: IProps)
15
+ {
16
+ return (
17
+ <NSLayout scope={props.scope} logo={props.logo} >
18
+ <div>
19
+ hero banner
20
+ </div>
21
+ {props.children}
22
+ </NSLayout>
23
+ );
24
+ }
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from 'react';
2
+ import { NSLayout } from './NSLayout';
3
+
4
+ interface IProps
5
+ {
6
+ scope: string;
7
+ logo: string;
8
+ title: string;
9
+ description?: string;
10
+ children: ReactNode;
11
+ }
12
+
13
+ export function NSLayoutTitle(props: IProps)
14
+ {
15
+ return (
16
+ <NSLayout scope={props.scope} logo={props.logo} >
17
+ <div>
18
+ <h1 className='text-black text-center'>{props.title}</h1>
19
+ <p className='text-black page-description'>{props.description}</p>
20
+ </div>
21
+ {props.children}
22
+ </NSLayout>
23
+ );
24
+ }
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import Style from "./NSLinkGreen.module.css";
2
4
  import React from "react";
3
5
  import { Link } from "react-router-dom";
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import Style from "./NSLinkRed.module.css";
2
4
  import React from "react";
3
5
  import { Link } from "react-router-dom";
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import './NSPagination.module.css';
2
4
  import { Component } from 'react';
3
5
 
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSSelectBox.module.css";
3
5
  import { Select, Space } from 'antd';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import "./NSTable.modules.css";
2
4
  import { Component } from 'react';
3
5
 
package/src/main.ts CHANGED
@@ -15,6 +15,8 @@ export * from "./components/NSInputString";
15
15
  export * from "./components/NSInputText";
16
16
  export * from "./components/NSInputTime";
17
17
  export * from "./components/NSLayout";
18
+ export * from "./components/NSLayoutHeroBanner";
19
+ export * from "./components/NSLayoutTitle";
18
20
  export * from "./components/NSSelectBox";
19
21
  export * from "./components/NSLinkGreen";
20
22
  export * from "./components/NSLinkRed";
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import "./NSLoginPage.modules.css";
2
4
  import { Component } from 'react';
3
5
  import { NSButtonGreen } from "../main";