namirasoft-site-react 1.3.10 → 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.
@@ -3,7 +3,6 @@
3
3
  flex-direction: column;
4
4
  align-items: flex-end;
5
5
  justify-content: flex-end;
6
- gap: 24px 0;
7
6
  box-shadow: 0 2px 10px 4px #00000040;
8
7
  padding: 24px;
9
8
  border-radius: 24px;
@@ -14,7 +13,7 @@
14
13
  background-repeat: no-repeat;
15
14
  background-size: cover;
16
15
  background-position: center;
17
- min-height: 320px;
16
+ min-height: 216px;
18
17
  }
19
18
 
20
19
  .card_background_text {
@@ -13,11 +13,11 @@
13
13
  color: #fff;
14
14
  font-size: 16px;
15
15
  font-weight: 400;
16
- height: 48px;
16
+ line-height: 16px;
17
17
  display: flex;
18
18
  justify-content: center;
19
19
  align-items: center;
20
- padding: 12px 32px;
20
+ padding: 16px 32px;
21
21
  border-radius: 24px;
22
22
  max-width: 358px;
23
23
  width: 100%;
@@ -1,4 +1,3 @@
1
- import './NSPagination.module.css';
2
1
  import { Component } from 'react';
3
2
  export interface NSPaginationProps {
4
3
  size: number;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import './NSPagination.module.css';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import Styles from './NSPagination.module.css';
4
4
  import { Component } from 'react';
5
5
  export class NSPagination extends Component {
6
6
  constructor(props) {
@@ -16,21 +16,21 @@ export class NSPagination extends Component {
16
16
  let arr = [];
17
17
  let pushPage = (index) => {
18
18
  if (index == page)
19
- arr.push(_jsx("div", { className: 'center_number', children: _jsx("a", { href: '#', className: 'center_number text-decoration-none text-light', children: index }) }));
19
+ arr.push(_jsx("div", { className: `${Styles.center_number}`, children: _jsx("a", { href: '#', className: `${Styles.center_number} text-decoration-none text-light ${Styles.ns_paginate_link}`, children: index }) }));
20
20
  else
21
- arr.push(_jsx("div", { children: _jsx("a", { href: '#', className: 'text-decoration-none text-light', children: index }) }));
21
+ arr.push(_jsx("div", { children: _jsx("a", { href: '#', className: `text-decoration-none text-light ${Styles.ns_paginate_link}`, children: index }) }));
22
22
  };
23
- arr.push(_jsx("div", { children: _jsx("a", { href: '#', children: _jsx("img", { src: '/assets/images/left-vector.png', alt: 'left_vector' }) }) }));
23
+ arr.push(_jsx("div", { children: _jsxs("a", { href: '#', children: [" ", _jsx("img", { src: '/assets/images/left-vector.png', alt: 'left_vector' }), " "] }) }));
24
24
  pushPage(1);
25
25
  if (page > window * 2)
26
- arr.push(_jsx("div", { children: _jsx("a", { href: '#', className: 'text-decoration-none text-light', children: "..." }) }));
26
+ arr.push(_jsx("div", { children: _jsx("a", { href: '#', className: `${Styles.ns_paginate_link}`, children: "..." }) }));
27
27
  for (let i = min; i <= max; i++)
28
28
  pushPage(i);
29
29
  if (page <= size - window * 2)
30
- arr.push(_jsx("div", { children: _jsx("a", { href: '#', className: 'text-decoration-none text-light', children: "..." }) }));
30
+ arr.push(_jsx("div", { children: _jsx("a", { href: '#', className: `${Styles.ns_paginate_link}`, children: "..." }) }));
31
31
  pushPage(size);
32
- arr.push(_jsx("div", { children: _jsx("a", { href: '#', children: _jsx("img", { src: '/assets/images/right-vector.png', alt: 'right_vector' }) }) }));
33
- return (_jsx("div", { className: "ns_pagination_container d-flex flex-row gap-3 mt-3", children: arr.map(x => (x)) }));
32
+ arr.push(_jsx("div", { children: _jsxs("a", { href: '#', children: [" ", _jsx("img", { src: '/assets/images/right-vector.png', alt: 'right_vector' }), " "] }) }));
33
+ return (_jsx("div", { className: `${Styles.ns_pagination_container}`, children: arr.map(x => (x)) }));
34
34
  }
35
35
  }
36
36
  //# sourceMappingURL=NSPagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSPagination.js","sourceRoot":"","sources":["../../src/components/NSPagination.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,2BAA2B,CAAC;AACnC,OAAO,EA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EAAE;YAC3B,QAAQ,CAAC,CAAC,CAAC,CAAC;QAChB,IAAI,IAAI,IAAI,IAAI,GAAG,MAAM,GAAG,CAAC;YAClC,GAAG,CAAC,IAAI,CACP,wBACC,YAAG,IAAI,EAAC,GAAG,EAAC,SAAS,EAAE,GAAG,MAAM,CAAC,gBAAgB,EAAE,oBAAS,GACvD,CACN,CAAC;QACG,QAAQ,CAAC,IAAI,CAAC,CAAC;QACrB,GAAG,CAAC,IAAI,CACP,wBACC,aAAG,IAAI,EAAC,GAAG,kBAAE,cAAK,GAAG,EAAC,iCAAiC,EAAC,GAAG,EAAC,cAAc,GAAE,SAAK,GAC5E,CACN,CAAC;QAEI,OAAO,CACH,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,uBAAuB,EAAE,YAC9C,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAChB,CACT,CAAC;IACN,CAAC;CACJ"}
@@ -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
  }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.10",
11
+ "version": "1.3.12",
12
12
  "main": "./dist/main.js",
13
13
  "types": "./dist/main.d.ts",
14
14
  "author": "Amir Abolhasani",
@@ -21,21 +21,21 @@
21
21
  "copy": "copyfiles -u 1 src/**/*.html src/**/*.css src/**/*.svg src/**/*.png src/**/*.jpg dist/"
22
22
  },
23
23
  "dependencies": {
24
- "@types/node": "^20.12.2",
25
- "@types/react": "^18.2.73",
24
+ "@types/node": "^20.12.3",
25
+ "@types/react": "^18.2.74",
26
26
  "@types/react-dom": "^18.2.23",
27
- "antd": "^5.15.4",
27
+ "antd": "^5.16.0",
28
28
  "bootstrap": "^5.3.3",
29
29
  "link-react": "^3.0.0",
30
30
  "namirasoft-api-link": "^1.3.1",
31
- "namirasoft-core": "^1.3.14",
31
+ "namirasoft-core": "^1.3.18",
32
32
  "path-browserify": "^1.0.1",
33
33
  "react": "^18.2.0",
34
34
  "react-app-rewired": "^2.2.1",
35
35
  "react-bootstrap": "^2.10.2",
36
36
  "react-dom": "^18.2.0",
37
37
  "react-phone-input-2": "^2.15.1",
38
- "react-phone-number-input": "^3.3.9",
38
+ "react-phone-number-input": "^3.3.10",
39
39
  "react-router-dom": "^6.22.3",
40
40
  "react-scripts": "5.0.1",
41
41
  "copyfiles": "^2.4.1"
@@ -3,7 +3,6 @@
3
3
  flex-direction: column;
4
4
  align-items: flex-end;
5
5
  justify-content: flex-end;
6
- gap: 24px 0;
7
6
  box-shadow: 0 2px 10px 4px #00000040;
8
7
  padding: 24px;
9
8
  border-radius: 24px;
@@ -14,7 +13,7 @@
14
13
  background-repeat: no-repeat;
15
14
  background-size: cover;
16
15
  background-position: center;
17
- min-height: 320px;
16
+ min-height: 216px;
18
17
  }
19
18
 
20
19
  .card_background_text {
@@ -13,11 +13,11 @@
13
13
  color: #fff;
14
14
  font-size: 16px;
15
15
  font-weight: 400;
16
- height: 48px;
16
+ line-height: 16px;
17
17
  display: flex;
18
18
  justify-content: center;
19
19
  align-items: center;
20
- padding: 12px 32px;
20
+ padding: 16px 32px;
21
21
  border-radius: 24px;
22
22
  max-width: 358px;
23
23
  width: 100%;
@@ -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,6 +1,6 @@
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
6
  export interface NSPaginationProps
@@ -33,23 +33,47 @@ export class NSPagination extends Component<NSPaginationState, NSPaginationProps
33
33
  let pushPage = (index: number) =>
34
34
  {
35
35
  if (index == page)
36
- 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
+ );
37
41
  else
38
- 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
+ );
39
47
  };
40
- 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
+ );
41
53
  pushPage(1);
42
54
  if (page > window * 2)
43
- 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
+ );
44
60
  for (let i = min; i <= max; i++)
45
61
  pushPage(i);
46
62
  if (page <= size - window * 2)
47
- 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
+ );
48
68
  pushPage(size);
49
- 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
+ );
50
74
 
51
75
  return (
52
- <div className="ns_pagination_container d-flex flex-row gap-3 mt-3">
76
+ <div className={`${Styles.ns_pagination_container}`}>
53
77
  {arr.map(x => (x))}
54
78
  </div>
55
79
  );