namirasoft-site-react 1.3.24 → 1.3.26

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 (54) hide show
  1. package/dist/App.js +3 -3
  2. package/dist/App.js.map +1 -1
  3. package/dist/assets/images/404 image.svg +9 -0
  4. package/dist/assets/images/404 image_mobile.svg +9 -0
  5. package/dist/components/NSCard.d.ts +6 -2
  6. package/dist/components/NSCard.js +4 -1
  7. package/dist/components/NSCard.js.map +1 -1
  8. package/dist/components/NSCard.module.css +13 -3
  9. package/dist/components/NSEntityCardBackground.d.ts +5 -5
  10. package/dist/components/NSEntityCardBackground.js.map +1 -1
  11. package/dist/components/NSHeader.d.ts +2 -2
  12. package/dist/components/NSLinkBlue.d.ts +3 -8
  13. package/dist/components/NSLinkBlue.js.map +1 -1
  14. package/dist/components/NSLoading.d.ts +2 -2
  15. package/dist/components/NSSection.d.ts +3 -3
  16. package/dist/components/NSSectionBars.d.ts +2 -2
  17. package/dist/components/NSSectionCards.d.ts +2 -2
  18. package/dist/components/NSSectionCards.js.map +1 -1
  19. package/dist/components/NSSectionTitle.d.ts +2 -2
  20. package/dist/components/NSTable.js +1 -1
  21. package/dist/components/NSTable.js.map +1 -1
  22. package/dist/components/NSTable.module.css +13 -13
  23. package/dist/main.d.ts +2 -0
  24. package/dist/main.js +2 -0
  25. package/dist/main.js.map +1 -1
  26. package/dist/pages/NSNotFoundPage.d.ts +5 -0
  27. package/dist/pages/NSNotFoundPage.js +11 -0
  28. package/dist/pages/NSNotFoundPage.js.map +1 -0
  29. package/dist/pages/NSNotFoundPage.module.css +19 -0
  30. package/dist/types/Background.d.ts +1 -1
  31. package/dist/types/Link.d.ts +5 -0
  32. package/dist/types/Link.js +2 -0
  33. package/dist/types/Link.js.map +1 -0
  34. package/package.json +1 -1
  35. package/src/App.tsx +4 -5
  36. package/src/assets/images/404 image.svg +9 -0
  37. package/src/assets/images/404 image_mobile.svg +9 -0
  38. package/src/components/NSCard.module.css +13 -3
  39. package/src/components/NSCard.tsx +14 -4
  40. package/src/components/NSEntityCardBackground.tsx +7 -5
  41. package/src/components/NSHeader.tsx +2 -2
  42. package/src/components/NSLinkBlue.tsx +6 -10
  43. package/src/components/NSLoading.tsx +2 -2
  44. package/src/components/NSSection.tsx +3 -3
  45. package/src/components/NSSectionBars.tsx +2 -2
  46. package/src/components/NSSectionCards.tsx +4 -3
  47. package/src/components/NSSectionTitle.tsx +2 -2
  48. package/src/components/NSTable.module.css +13 -13
  49. package/src/components/NSTable.tsx +7 -7
  50. package/src/main.ts +2 -0
  51. package/src/pages/NSNotFoundPage.module.css +19 -0
  52. package/src/pages/NSNotFoundPage.tsx +18 -0
  53. package/src/types/Background.ts +1 -1
  54. package/src/types/Link.ts +6 -0
@@ -1,29 +1,25 @@
1
1
  "use client";
2
2
 
3
+ import { LinkType } from "../types/Link";
3
4
  import Styles from "./NSLinkBlue.module.css";
4
5
  import React from "react";
5
6
 
6
- export interface NSLinkBlueProps
7
+ export interface NSLinkBlueProps extends LinkType
7
8
  {
8
- title?: string;
9
- href: string;
10
- target?: string;
11
9
  style?: React.CSSProperties;
12
10
  }
13
11
 
14
- export interface NSLinkBlueState
12
+ export interface NSLinkBlueState extends LinkType
15
13
  {
16
- title?: string;
17
- href: string;
18
- target?: string;
14
+
19
15
  }
20
16
 
21
- export class NSLinkBlue extends React.Component<NSLinkBlueProps, NSLinkBlueState>
17
+ export class NSLinkBlue extends React.Component<NSLinkBlueProps, NSLinkBlueState>
22
18
  {
23
19
  constructor(props: NSLinkBlueProps)
24
20
  {
25
21
  super(props);
26
- this.state = { title: props.title , href: props.href , target: props.target};
22
+ this.state = { title: props.title, href: props.href, target: props.target };
27
23
  }
28
24
  setTitle(title: string)
29
25
  {
@@ -1,11 +1,11 @@
1
1
  import { Component } from 'react';
2
2
  import Styles from './NSLoading.module.css';
3
3
  import { NSSection } from './NSSection';
4
- import { Background } from '../types/Background';
4
+ import { BackgroundType } from '../types/Background';
5
5
 
6
6
  interface NSLoadingProps
7
7
  {
8
- background?: Background;
8
+ background?: BackgroundType;
9
9
  padding_bottom?: string;
10
10
  }
11
11
 
@@ -2,18 +2,18 @@
2
2
 
3
3
  import { Component, ReactNode } from "react";
4
4
  import Styles from './NSSection.module.css'
5
- import { Background } from "../types/Background";
5
+ import { BackgroundType } from "../types/Background";
6
6
 
7
7
  export interface NSSectionProps
8
8
  {
9
9
  children: ReactNode;
10
- background?: Background;
10
+ background?: BackgroundType;
11
11
  padding_bottom?: string
12
12
  }
13
13
 
14
14
  export interface NSSectionState
15
15
  {
16
- background?: Background;
16
+ background?: BackgroundType;
17
17
  }
18
18
 
19
19
  export class NSSection extends Component<NSSectionProps, NSSectionState> {
@@ -4,11 +4,11 @@ import { Component } from 'react';
4
4
  import Styles from './NSSectionBars.module.css';
5
5
  import { NSEntityBar, NSEntityBarProps } from './NSEntityBar';
6
6
  import { NSSection } from './NSSection';
7
- import { Background } from '../types/Background';
7
+ import { BackgroundType } from '../types/Background';
8
8
 
9
9
  export interface NSSectionBarsProps
10
10
  {
11
- background?: Background;
11
+ background?: BackgroundType;
12
12
  bars: NSEntityBarProps[]
13
13
  }
14
14
 
@@ -6,7 +6,7 @@ import { NSTitle } from './NSTitle';
6
6
  import { NSCard, NSCardProps } from './NSCard';
7
7
  import { NSSection } from './NSSection';
8
8
  import { NSLinkBlue } from './NSLinkBlue';
9
- import { Background } from '../types/Background';
9
+ import { BackgroundType } from '../types/Background';
10
10
 
11
11
  export interface NSSectionCardsProps
12
12
  {
@@ -18,7 +18,7 @@ export interface NSSectionCardsProps
18
18
  text: string,
19
19
  color?: string
20
20
  };
21
- background?: Background
21
+ background?: BackgroundType
22
22
  button?: {
23
23
  href: string;
24
24
  title: string;
@@ -27,7 +27,8 @@ export interface NSSectionCardsProps
27
27
  padding_bottom?: string
28
28
  }
29
29
 
30
- export class NSSectionCards extends Component<NSSectionCardsProps> {
30
+ export class NSSectionCards extends Component<NSSectionCardsProps>
31
+ {
31
32
  override render()
32
33
  {
33
34
  return (
@@ -3,7 +3,7 @@
3
3
  import { Component, ReactNode } from 'react';
4
4
  import { NSSection } from './NSSection';
5
5
  import { NSTitle } from './NSTitle';
6
- import { Background } from '../types/Background';
6
+ import { BackgroundType } from '../types/Background';
7
7
 
8
8
  export interface NSSectionTitleProps
9
9
  {
@@ -11,7 +11,7 @@ export interface NSSectionTitleProps
11
11
  text: string,
12
12
  color?: string
13
13
  };
14
- background?: Background
14
+ background?: BackgroundType
15
15
  padding_bottom?: string;
16
16
  children: ReactNode
17
17
  }
@@ -1,4 +1,4 @@
1
- .thead th {
1
+ .ns_thead th {
2
2
  background-color: rgba(20, 27, 92, 1);
3
3
  font-size: 16px;
4
4
  font-weight: 300;
@@ -7,7 +7,7 @@
7
7
  font-size: 16px;
8
8
  }
9
9
 
10
- .tbody td {
10
+ .ns_tbody td {
11
11
  background-color: rgb(173, 178, 206);
12
12
  color: rgba(20, 27, 92, 1);
13
13
  padding: 8px 16px;
@@ -17,17 +17,17 @@
17
17
 
18
18
  }
19
19
 
20
- table {
20
+ .ns_table {
21
21
  width: 100%;
22
22
  }
23
23
 
24
- .project_list_container {
24
+ .ns_project_list_container {
25
25
  text-align: left;
26
26
  border-top-left-radius: 8px;
27
27
  border-top-right-radius: 8px;
28
28
  }
29
29
 
30
- .button_group_desktop {
30
+ .ns_button_group_desktop {
31
31
  display: flex;
32
32
  flex-direction: row;
33
33
  justify-content: end;
@@ -35,7 +35,7 @@ table {
35
35
  padding: 24px 0;
36
36
  }
37
37
 
38
- .button_group_desktop button {
38
+ .ns_button_group_desktop button {
39
39
  display: flex;
40
40
  align-items: center;
41
41
  justify-content: center;
@@ -49,22 +49,22 @@ table {
49
49
  background-color: transparent;
50
50
  }
51
51
 
52
- .export_button {
52
+ .ns_export_button {
53
53
  border: 1px solid rgba(255, 148, 50, 1);
54
54
  }
55
55
 
56
- .refresh_button {
56
+ .ns_refresh_button {
57
57
  border: 1px solid rgba(3, 119, 255, 1);
58
58
  }
59
59
 
60
60
  @media only screen and (max-width:600px) {
61
- .project_list_container {
61
+ .ns_project_list_container {
62
62
  overflow: auto;
63
63
  }
64
64
  }
65
65
 
66
66
  /* table-satus */
67
- .inqueue_status {
67
+ .ns_inqueue_status {
68
68
  color: white;
69
69
  background-color: rgba(255, 148, 50, 1);
70
70
  font-size: 12px;
@@ -76,7 +76,7 @@ table {
76
76
  padding-top: 2px;
77
77
  }
78
78
 
79
- .reserving_status {
79
+ .ns_reserving_status {
80
80
  color: white;
81
81
  background-color: rgba(255, 79, 79, 1);
82
82
  font-size: 12px;
@@ -88,7 +88,7 @@ table {
88
88
  padding-top: 2px;
89
89
  }
90
90
 
91
- .done-status {
91
+ .ns_done-status {
92
92
  color: white;
93
93
  background-color: rgba(6, 209, 130, 1);
94
94
  font-size: 12px;
@@ -100,7 +100,7 @@ table {
100
100
  padding-top: 2px;
101
101
  }
102
102
 
103
- .inprogress_status {
103
+ .ns_inprogress_status {
104
104
  color: white;
105
105
  background-color: rgba(230, 208, 19, 1);
106
106
  font-size: 12px;
@@ -37,14 +37,14 @@ export class NSTable<RowType> extends Component<NSTableProps<RowType>, NSTableSt
37
37
  {
38
38
  let column_keys = Object.keys(this.state.columns);
39
39
  return (
40
- <div className={Styles.project_list_container}>
41
- <table className={Styles.table}>
42
- <thead className={Styles.thead}>
40
+ <div className={Styles.ns_project_list_container}>
41
+ <table className={Styles.ns_table}>
42
+ <thead className={Styles.ns_thead}>
43
43
  <tr>
44
44
  {column_keys.map(column_key => <th key={column_key} scope="col">{this.state.columns[column_key]}</th>)}
45
45
  </tr>
46
46
  </thead>
47
- <tbody className={Styles.tbody}>
47
+ <tbody className={Styles.ns_tbody}>
48
48
  {
49
49
  this.state.rows.map((row, rowIndex) =>
50
50
  <tr key={this.props.getRowKey(row, rowIndex)}>
@@ -59,9 +59,9 @@ export class NSTable<RowType> extends Component<NSTableProps<RowType>, NSTableSt
59
59
  }
60
60
  </tbody >
61
61
  </table>
62
- <div className={Styles.button_group_desktop}>
63
- <button onClick={() => window.print()} className={Styles.export_button}><img src="/assets/images/export-vector.png" alt="Export Table Data" width={13} height={16} />Export</button>
64
- <button onClick={() => window.location.reload()} className={Styles.refresh_button}><img src="/assets/images/refresh-vector.png" alt="Refresh Table Contnet" width={15} height={16} />Refresh</button>
62
+ <div className={Styles.ns_button_group_desktop}>
63
+ <button onClick={() => window.print()} className={Styles.ns_export_button}><img src="/assets/images/export-vector.png" alt="Export Table Data" width={13} height={16} />Export</button>
64
+ <button onClick={() => window.location.reload()} className={Styles.ns_refresh_button}><img src="/assets/images/refresh-vector.png" alt="Refresh Table Contnet" width={15} height={16} />Refresh</button>
65
65
  </div>
66
66
  </div >
67
67
  )
package/src/main.ts CHANGED
@@ -23,6 +23,7 @@ export * from "./components/NSInputTime";
23
23
  export * from "./components/NSLayout";
24
24
  export * from "./components/NSLayoutHeroBanner";
25
25
  export * from "./components/NSLayoutTitle";
26
+ export * from "./components/NSLoading";
26
27
  export * from "./components/NSSelectBox";
27
28
  export * from "./components/NSSection";
28
29
  export * from "./components/NSSectionBars";
@@ -35,5 +36,6 @@ export * from "./components/NSPagination";
35
36
  export * from "./components/NSTable";
36
37
  export * from "./components/NSTitle";
37
38
  export * from "./pages/NSLoginPage";
39
+ export * from "./pages/NSNotFoundPage";
38
40
 
39
41
 
@@ -0,0 +1,19 @@
1
+ .ns_not_found_page {
2
+ display: flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+ background-image: url('../assets/images/404\ image_mobile.svg');
6
+ background-repeat: no-repeat;
7
+ background-size: cover;
8
+ background-position: center;
9
+ background-color: #fff;
10
+ width: 100%;
11
+ height: 100vh;
12
+ margin-bottom: 48px;
13
+ }
14
+
15
+ @media only screen and (min-width: 1024px) {
16
+ .ns_not_found_page {
17
+ background-image: url('../assets/images/404\ image.svg');
18
+ }
19
+ }
@@ -0,0 +1,18 @@
1
+ import { Component } from 'react';
2
+ import Styles from './NSNotFoundPage.module.css'
3
+ import { NSLinkBlue } from '../main';
4
+
5
+ class NSNotFoundPage extends Component
6
+ {
7
+ override render()
8
+ {
9
+ return (
10
+ <>
11
+ <div className={Styles.ns_not_found_page}></div>
12
+ <NSLinkBlue href='/' target='_self' title='Back To Home'/>``
13
+ </>
14
+ );
15
+ }
16
+ }
17
+
18
+ export default NSNotFoundPage;
@@ -1,4 +1,4 @@
1
- export interface Background
1
+ export interface BackgroundType
2
2
  {
3
3
  image?: string,
4
4
  color?: string,
@@ -0,0 +1,6 @@
1
+ export interface LinkType
2
+ {
3
+ title?: string;
4
+ href: string;
5
+ target?: string;
6
+ }