namirasoft-site-react 1.3.24 → 1.3.25

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 (46) hide show
  1. package/dist/assets/images/404 image.svg +9 -0
  2. package/dist/assets/images/404 image_mobile.svg +9 -0
  3. package/dist/components/NSCard.d.ts +6 -2
  4. package/dist/components/NSCard.js +4 -1
  5. package/dist/components/NSCard.js.map +1 -1
  6. package/dist/components/NSCard.module.css +13 -3
  7. package/dist/components/NSEntityCardBackground.d.ts +5 -5
  8. package/dist/components/NSEntityCardBackground.js.map +1 -1
  9. package/dist/components/NSHeader.d.ts +2 -2
  10. package/dist/components/NSLinkBlue.d.ts +3 -8
  11. package/dist/components/NSLinkBlue.js.map +1 -1
  12. package/dist/components/NSLoading.d.ts +2 -2
  13. package/dist/components/NSSection.d.ts +3 -3
  14. package/dist/components/NSSectionBars.d.ts +2 -2
  15. package/dist/components/NSSectionCards.d.ts +2 -2
  16. package/dist/components/NSSectionCards.js.map +1 -1
  17. package/dist/components/NSSectionTitle.d.ts +2 -2
  18. package/dist/main.d.ts +2 -0
  19. package/dist/main.js +2 -0
  20. package/dist/main.js.map +1 -1
  21. package/dist/pages/NSNotFoundPage.d.ts +5 -0
  22. package/dist/pages/NSNotFoundPage.js +11 -0
  23. package/dist/pages/NSNotFoundPage.js.map +1 -0
  24. package/dist/pages/NSNotFoundPage.module.css +19 -0
  25. package/dist/types/Background.d.ts +1 -1
  26. package/dist/types/Link.d.ts +5 -0
  27. package/dist/types/Link.js +2 -0
  28. package/dist/types/Link.js.map +1 -0
  29. package/package.json +1 -1
  30. package/src/assets/images/404 image.svg +9 -0
  31. package/src/assets/images/404 image_mobile.svg +9 -0
  32. package/src/components/NSCard.module.css +13 -3
  33. package/src/components/NSCard.tsx +14 -4
  34. package/src/components/NSEntityCardBackground.tsx +7 -5
  35. package/src/components/NSHeader.tsx +2 -2
  36. package/src/components/NSLinkBlue.tsx +6 -10
  37. package/src/components/NSLoading.tsx +2 -2
  38. package/src/components/NSSection.tsx +3 -3
  39. package/src/components/NSSectionBars.tsx +2 -2
  40. package/src/components/NSSectionCards.tsx +4 -3
  41. package/src/components/NSSectionTitle.tsx +2 -2
  42. package/src/main.ts +2 -0
  43. package/src/pages/NSNotFoundPage.module.css +19 -0
  44. package/src/pages/NSNotFoundPage.tsx +18 -0
  45. package/src/types/Background.ts +1 -1
  46. 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
  }
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
+ }