namirasoft-site-react 1.3.9 → 1.3.12

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 (105) hide show
  1. package/dist/components/NSButtonGreen.d.ts +4 -7
  2. package/dist/components/NSButtonGreen.js.map +1 -1
  3. package/dist/components/NSButtonRed.d.ts +4 -7
  4. package/dist/components/NSButtonRed.js.map +1 -1
  5. package/dist/components/NSCard.js.map +1 -1
  6. package/dist/components/NSEntityBar.js.map +1 -1
  7. package/dist/components/NSEntityCardBackground.d.ts +4 -5
  8. package/dist/components/NSEntityCardBackground.js.map +1 -1
  9. package/dist/components/NSEntityCardBackground.module.css +1 -2
  10. package/dist/components/NSFooter.d.ts +4 -5
  11. package/dist/components/NSFooter.js.map +1 -1
  12. package/dist/components/NSHeader.d.ts +4 -5
  13. package/dist/components/NSHeader.js.map +1 -1
  14. package/dist/components/NSInputDate.d.ts +4 -5
  15. package/dist/components/NSInputDate.js.map +1 -1
  16. package/dist/components/NSInputDuration.d.ts +4 -5
  17. package/dist/components/NSInputDuration.js.map +1 -1
  18. package/dist/components/NSInputEmail.d.ts +4 -5
  19. package/dist/components/NSInputEmail.js.map +1 -1
  20. package/dist/components/NSInputFloat.d.ts +4 -5
  21. package/dist/components/NSInputFloat.js.map +1 -1
  22. package/dist/components/NSInputIP.d.ts +4 -5
  23. package/dist/components/NSInputIP.js.map +1 -1
  24. package/dist/components/NSInputInteger.d.ts +4 -5
  25. package/dist/components/NSInputInteger.js.map +1 -1
  26. package/dist/components/NSInputPhone.d.ts +4 -5
  27. package/dist/components/NSInputPhone.js.map +1 -1
  28. package/dist/components/NSInputPrice.d.ts +4 -5
  29. package/dist/components/NSInputPrice.js.map +1 -1
  30. package/dist/components/NSInputSearch.d.ts +4 -5
  31. package/dist/components/NSInputSearch.js.map +1 -1
  32. package/dist/components/NSInputString.d.ts +4 -5
  33. package/dist/components/NSInputString.js.map +1 -1
  34. package/dist/components/NSInputText.d.ts +4 -5
  35. package/dist/components/NSInputText.js.map +1 -1
  36. package/dist/components/NSInputTime.d.ts +4 -5
  37. package/dist/components/NSInputTime.js.map +1 -1
  38. package/dist/components/NSLayout.d.ts +2 -3
  39. package/dist/components/NSLayout.js.map +1 -1
  40. package/dist/components/NSLayoutHeroBanner.d.ts +2 -3
  41. package/dist/components/NSLayoutHeroBanner.js.map +1 -1
  42. package/dist/components/NSLayoutTitle.d.ts +2 -3
  43. package/dist/components/NSLayoutTitle.js.map +1 -1
  44. package/dist/components/NSLinkBlue.d.ts +4 -5
  45. package/dist/components/NSLinkBlue.js.map +1 -1
  46. package/dist/components/NSLinkBlue.module.css +2 -2
  47. package/dist/components/NSLinkGreen.d.ts +4 -5
  48. package/dist/components/NSLinkGreen.js.map +1 -1
  49. package/dist/components/NSLinkRed.d.ts +4 -5
  50. package/dist/components/NSLinkRed.js.map +1 -1
  51. package/dist/components/NSPagination.d.ts +4 -6
  52. package/dist/components/NSPagination.js +9 -9
  53. package/dist/components/NSPagination.js.map +1 -1
  54. package/dist/components/NSPagination.module.css +7 -1
  55. package/dist/components/NSSection.d.ts +2 -3
  56. package/dist/components/NSSection.js.map +1 -1
  57. package/dist/components/NSSectionBars.d.ts +1 -2
  58. package/dist/components/NSSectionBars.js.map +1 -1
  59. package/dist/components/NSSectionCards.d.ts +1 -2
  60. package/dist/components/NSSectionCards.js.map +1 -1
  61. package/dist/components/NSSectionTitle.d.ts +1 -2
  62. package/dist/components/NSSectionTitle.js.map +1 -1
  63. package/dist/components/NSSelectBox.d.ts +4 -5
  64. package/dist/components/NSSelectBox.js.map +1 -1
  65. package/dist/components/NSTable.d.ts +4 -5
  66. package/dist/components/NSTable.js.map +1 -1
  67. package/dist/components/NSTitle.d.ts +1 -2
  68. package/dist/components/NSTitle.js.map +1 -1
  69. package/package.json +7 -7
  70. package/src/components/NSButtonGreen.tsx +4 -6
  71. package/src/components/NSButtonRed.tsx +4 -6
  72. package/src/components/NSCard.tsx +3 -5
  73. package/src/components/NSEntityBar.tsx +0 -1
  74. package/src/components/NSEntityCardBackground.module.css +1 -2
  75. package/src/components/NSEntityCardBackground.tsx +4 -5
  76. package/src/components/NSFooter.tsx +4 -4
  77. package/src/components/NSHeader.tsx +50 -51
  78. package/src/components/NSInputDate.tsx +6 -6
  79. package/src/components/NSInputDuration.tsx +5 -7
  80. package/src/components/NSInputEmail.tsx +5 -7
  81. package/src/components/NSInputFloat.tsx +4 -4
  82. package/src/components/NSInputIP.tsx +5 -7
  83. package/src/components/NSInputInteger.tsx +4 -4
  84. package/src/components/NSInputPhone.tsx +5 -7
  85. package/src/components/NSInputPrice.tsx +6 -8
  86. package/src/components/NSInputSearch.tsx +5 -7
  87. package/src/components/NSInputString.tsx +4 -4
  88. package/src/components/NSInputText.tsx +5 -7
  89. package/src/components/NSInputTime.tsx +5 -7
  90. package/src/components/NSLayout.tsx +2 -2
  91. package/src/components/NSLayoutHeroBanner.tsx +2 -2
  92. package/src/components/NSLayoutTitle.tsx +3 -3
  93. package/src/components/NSLinkBlue.module.css +2 -2
  94. package/src/components/NSLinkBlue.tsx +4 -4
  95. package/src/components/NSLinkGreen.tsx +4 -4
  96. package/src/components/NSLinkRed.tsx +4 -4
  97. package/src/components/NSPagination.module.css +7 -1
  98. package/src/components/NSPagination.tsx +38 -12
  99. package/src/components/NSSection.tsx +3 -2
  100. package/src/components/NSSectionBars.tsx +1 -3
  101. package/src/components/NSSectionCards.tsx +1 -2
  102. package/src/components/NSSectionTitle.tsx +2 -1
  103. package/src/components/NSSelectBox.tsx +5 -7
  104. package/src/components/NSTable.tsx +4 -4
  105. package/src/components/NSTitle.tsx +3 -3
@@ -4,21 +4,21 @@ import Style from "./NSLinkGreen.module.css";
4
4
  import React from "react";
5
5
  import { Link } from "react-router-dom";
6
6
 
7
- interface IProps
7
+ export interface NSLinkGreenProps
8
8
  {
9
9
  title: string;
10
10
  href: string;
11
11
  }
12
12
 
13
- interface IState
13
+ export interface NSLinkGreenState
14
14
  {
15
15
  title: string;
16
16
  href: string;
17
17
  }
18
18
 
19
- export class NSLinkGreen extends React.Component<IProps, IState>
19
+ export class NSLinkGreen extends React.Component<NSLinkGreenProps, NSLinkGreenState>
20
20
  {
21
- constructor(props: IProps)
21
+ constructor(props: NSLinkGreenProps)
22
22
  {
23
23
  super(props);
24
24
  this.state = { title: props.title, href: props.href };
@@ -4,21 +4,21 @@ import Style from "./NSLinkRed.module.css";
4
4
  import React from "react";
5
5
  import { Link } from "react-router-dom";
6
6
 
7
- interface IProps
7
+ export interface NSLinkRedProps
8
8
  {
9
9
  title: string;
10
10
  href: string;
11
11
  }
12
12
 
13
- interface IState
13
+ export interface NSLinkRedState
14
14
  {
15
15
  title: string;
16
16
  href: string;
17
17
  }
18
18
 
19
- export class NSLinkRed extends React.Component<IProps, IState>
19
+ export class NSLinkRed extends React.Component<NSLinkRedProps, NSLinkRedState>
20
20
  {
21
- constructor(props: IProps)
21
+ constructor(props: NSLinkRedProps)
22
22
  {
23
23
  super(props);
24
24
  this.state = { title: props.title, href: props.href };
@@ -1,12 +1,13 @@
1
1
  .ns_pagination_container {
2
2
  display: flex;
3
3
  flex-direction: row;
4
- gap: 18px;
4
+ gap: 16px;
5
5
  text-align: left;
6
6
  padding-left: 48px;
7
7
  font-size: 14px;
8
8
  justify-items: center;
9
9
  line-height: 35px;
10
+ margin-top: 16px;
10
11
  }
11
12
 
12
13
  @media only screen and (max-width: 600px) {
@@ -22,4 +23,9 @@
22
23
  width: 32px;
23
24
  text-align: center;
24
25
  align-items: center;
26
+ }
27
+
28
+ .ns_paginate_link {
29
+ color: #fff;
30
+ text-decoration: none;
25
31
  }
@@ -1,21 +1,23 @@
1
1
  "use client";
2
2
 
3
- import './NSPagination.module.css';
3
+ import Styles from './NSPagination.module.css';
4
4
  import { Component } from 'react';
5
5
 
6
- interface IProps
6
+ export interface NSPaginationProps
7
7
  {
8
8
  size: number;
9
9
  page: number;
10
10
  }
11
- interface IState
11
+
12
+ export interface NSPaginationState
12
13
  {
13
14
  size: number;
14
15
  page: number;
15
16
  }
16
- export class NSPagination extends Component<IState, IProps>
17
+
18
+ export class NSPagination extends Component<NSPaginationState, NSPaginationProps>
17
19
  {
18
- constructor(props: IProps)
20
+ constructor(props: NSPaginationProps)
19
21
  {
20
22
  super(props);
21
23
  this.state = { size: props.size, page: props.page }
@@ -31,23 +33,47 @@ export class NSPagination extends Component<IState, IProps>
31
33
  let pushPage = (index: number) =>
32
34
  {
33
35
  if (index == page)
34
- arr.push(<div className='center_number'><a href='#' className='center_number text-decoration-none text-light'>{index}</a></div>);
36
+ arr.push(
37
+ <div className={`${Styles.center_number}`}>
38
+ <a href='#' className={`${Styles.center_number} text-decoration-none text-light ${Styles.ns_paginate_link}`}>{index}</a>
39
+ </div>
40
+ );
35
41
  else
36
- arr.push(<div><a href='#' className='text-decoration-none text-light'>{index}</a></div>);
42
+ arr.push(
43
+ <div>
44
+ <a href='#' className={`text-decoration-none text-light ${Styles.ns_paginate_link}`}>{index}</a>
45
+ </div>
46
+ );
37
47
  };
38
- arr.push(<div><a href='#'><img src='/assets/images/left-vector.png' alt='left_vector'></img></a></div>);
48
+ arr.push(
49
+ <div>
50
+ <a href='#'> <img src='/assets/images/left-vector.png' alt='left_vector' /> </a>
51
+ </div>
52
+ );
39
53
  pushPage(1);
40
54
  if (page > window * 2)
41
- arr.push(<div><a href='#' className='text-decoration-none text-light'>...</a></div>);
55
+ arr.push(
56
+ <div>
57
+ <a href='#' className={`${Styles.ns_paginate_link}`}>...</a>
58
+ </div>
59
+ );
42
60
  for (let i = min; i <= max; i++)
43
61
  pushPage(i);
44
62
  if (page <= size - window * 2)
45
- arr.push(<div><a href='#' className='text-decoration-none text-light'>...</a></div>);
63
+ arr.push(
64
+ <div>
65
+ <a href='#' className={`${Styles.ns_paginate_link}`}>...</a>
66
+ </div>
67
+ );
46
68
  pushPage(size);
47
- arr.push(<div><a href='#'><img src='/assets/images/right-vector.png' alt='right_vector'></img></a></div>);
69
+ arr.push(
70
+ <div>
71
+ <a href='#'> <img src='/assets/images/right-vector.png' alt='right_vector'/> </a>
72
+ </div>
73
+ );
48
74
 
49
75
  return (
50
- <div className="ns_pagination_container d-flex flex-row gap-3 mt-3">
76
+ <div className={`${Styles.ns_pagination_container}`}>
51
77
  {arr.map(x => (x))}
52
78
  </div>
53
79
  );
@@ -3,14 +3,15 @@
3
3
  import { Component, ReactNode } from "react";
4
4
  import Styles from './NSSection.module.css'
5
5
  import { Background } from "../types/Background";
6
- interface NSSectionProps
6
+
7
+ export interface NSSectionProps
7
8
  {
8
9
  children: ReactNode;
9
10
  background?: Background;
10
11
  padding_bottom?: string
11
12
  }
12
13
 
13
- interface NSSectionState
14
+ export interface NSSectionState
14
15
  {
15
16
  background?: Background;
16
17
  }
@@ -1,14 +1,12 @@
1
1
  "use client";
2
2
 
3
3
  import { Component } from 'react';
4
-
5
4
  import Styles from './NSSectionBars.module.css';
6
-
7
5
  import { NSEntityBar, NSEntityBarProps } from './NSEntityBar';
8
6
  import { NSSection } from './NSSection';
9
7
  import { Background } from '../types/Background';
10
8
 
11
- interface NSSectionBarsProps
9
+ export interface NSSectionBarsProps
12
10
  {
13
11
  background?: Background;
14
12
  bars: NSEntityBarProps[]
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
 
3
3
  import { Component } from 'react';
4
-
5
4
  import Styles from './NSSectionCards.module.css';
6
5
  import { NSTitle } from './NSTitle';
7
6
  import { NSCard, NSCardProps } from './NSCard';
@@ -9,7 +8,7 @@ import { NSSection } from './NSSection';
9
8
  import { NSLinkBlue } from './NSLinkBlue';
10
9
  import { Background } from '../types/Background';
11
10
 
12
- interface NSSectionCardsProps
11
+ export interface NSSectionCardsProps
13
12
  {
14
13
  title?: {
15
14
  text: string,
@@ -1,10 +1,11 @@
1
1
  "use client";
2
+
2
3
  import { Component, ReactNode } from 'react';
3
4
  import { NSSection } from './NSSection';
4
5
  import { NSTitle } from './NSTitle';
5
6
  import { Background } from '../types/Background';
6
7
 
7
- interface NSSectionTitleProps
8
+ export interface NSSectionTitleProps
8
9
  {
9
10
  title: {
10
11
  text: string,
@@ -6,19 +6,19 @@ import { Select, Space } from 'antd';
6
6
  import type { SelectProps } from 'antd';
7
7
  // import { CaretDownOutlined } from '@ant-design/icons'
8
8
 
9
- interface IProps
9
+ export interface NSSelectBoxProps
10
10
  {
11
11
  title: string;
12
12
  options: SelectProps['options'];
13
13
  }
14
14
 
15
- interface IState
15
+ export interface NSSelectBoxState
16
16
  {
17
17
  value: string[];
18
18
  }
19
19
 
20
- export class NSSelectBox extends React.Component<IProps, IState> {
21
- constructor(props: IProps)
20
+ export class NSSelectBox extends React.Component<NSSelectBoxProps, NSSelectBoxState> {
21
+ constructor(props: NSSelectBoxProps)
22
22
  {
23
23
  super(props);
24
24
  this.state = {
@@ -56,6 +56,4 @@ export class NSSelectBox extends React.Component<IProps, IState> {
56
56
  </div>
57
57
  );
58
58
  }
59
- }
60
-
61
-
59
+ }
@@ -3,7 +3,7 @@
3
3
  import "./NSTable.modules.css";
4
4
  import { Component } from 'react';
5
5
 
6
- interface IProps<RowType>
6
+ export interface NSTableProps<RowType>
7
7
  {
8
8
  columns: { [key: string]: string };
9
9
  rows: RowType[];
@@ -12,15 +12,15 @@ interface IProps<RowType>
12
12
  getCell: (row: RowType, column: string, rowIndex: number, columnIndex: number) => any;
13
13
  }
14
14
 
15
- interface IState<RowType>
15
+ export interface NSTableState<RowType>
16
16
  {
17
17
  columns: { [key: string]: string };
18
18
  rows: RowType[];
19
19
  }
20
20
 
21
- export class NSTable<RowType> extends Component<IProps<RowType>, IState<RowType>>
21
+ export class NSTable<RowType> extends Component<NSTableProps<RowType>, NSTableState<RowType>>
22
22
  {
23
- constructor(props: IProps<RowType>)
23
+ constructor(props: NSTableProps<RowType>)
24
24
  {
25
25
  super(props);
26
26
  this.state = { columns: props.columns, rows: props.rows };
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { Component } from 'react';
3
2
 
4
- //Styles
3
+ import { Component } from 'react';
5
4
  import Styles from './NSTitle.module.css';
6
5
 
7
- interface NSTitleProps
6
+ export interface NSTitleProps
8
7
  {
9
8
  title: string;
10
9
  color?: string;
11
10
  text_align?: string;
12
11
  }
12
+
13
13
  export class NSTitle extends Component<NSTitleProps> {
14
14
  override render()
15
15
  {