namirasoft-site-react 1.2.55 → 1.3.1

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 (150) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/App.js.map +1 -1
  3. package/dist/components/NSButtonGreen.js +1 -1
  4. package/dist/components/NSButtonGreen.js.map +1 -1
  5. package/dist/components/NSButtonRed.js +1 -1
  6. package/dist/components/NSButtonRed.js.map +1 -1
  7. package/dist/components/NSCard.d.ts +1 -0
  8. package/dist/components/NSCard.js +3 -3
  9. package/dist/components/NSCard.js.map +1 -1
  10. package/dist/components/NSEntityBar.d.ts +1 -0
  11. package/dist/components/NSEntityBar.js +1 -1
  12. package/dist/components/NSEntityBar.js.map +1 -1
  13. package/dist/components/NSFooter.js +4 -4
  14. package/dist/components/NSFooter.js.map +1 -1
  15. package/dist/components/NSHeader.js +5 -5
  16. package/dist/components/NSHeader.js.map +1 -1
  17. package/dist/components/NSInputDate.js +1 -1
  18. package/dist/components/NSInputDate.js.map +1 -1
  19. package/dist/components/NSInputDuration.js +1 -1
  20. package/dist/components/NSInputDuration.js.map +1 -1
  21. package/dist/components/NSInputEmail.js +1 -1
  22. package/dist/components/NSInputEmail.js.map +1 -1
  23. package/dist/components/NSInputFloat.js +1 -1
  24. package/dist/components/NSInputFloat.js.map +1 -1
  25. package/dist/components/NSInputIP.js +1 -1
  26. package/dist/components/NSInputIP.js.map +1 -1
  27. package/dist/components/NSInputInteger.js +1 -1
  28. package/dist/components/NSInputInteger.js.map +1 -1
  29. package/dist/components/NSInputPhone.js +1 -1
  30. package/dist/components/NSInputPhone.js.map +1 -1
  31. package/dist/components/NSInputPrice.js +1 -1
  32. package/dist/components/NSInputPrice.js.map +1 -1
  33. package/dist/components/NSInputSearch.js +1 -1
  34. package/dist/components/NSInputSearch.js.map +1 -1
  35. package/dist/components/NSInputString.js +1 -1
  36. package/dist/components/NSInputString.js.map +1 -1
  37. package/dist/components/NSInputText.js +1 -1
  38. package/dist/components/NSInputText.js.map +1 -1
  39. package/dist/components/NSInputTime.js +1 -1
  40. package/dist/components/NSInputTime.js.map +1 -1
  41. package/dist/components/NSLayout.js +1 -1
  42. package/dist/components/NSLayout.js.map +1 -1
  43. package/dist/components/NSLayoutHeroBanner.js +1 -1
  44. package/dist/components/NSLayoutHeroBanner.js.map +1 -1
  45. package/dist/components/NSLayoutTitle.js +1 -1
  46. package/dist/components/NSLayoutTitle.js.map +1 -1
  47. package/dist/components/NSLinkBlue.js +1 -1
  48. package/dist/components/NSLinkBlue.js.map +1 -1
  49. package/dist/components/NSLinkGreen.js +1 -1
  50. package/dist/components/NSLinkGreen.js.map +1 -1
  51. package/dist/components/NSLinkRed.js +1 -1
  52. package/dist/components/NSLinkRed.js.map +1 -1
  53. package/dist/components/NSPagination.js +7 -7
  54. package/dist/components/NSPagination.js.map +1 -1
  55. package/dist/components/NSSection.d.ts +2 -2
  56. package/dist/components/NSSection.js +4 -5
  57. package/dist/components/NSSection.js.map +1 -1
  58. package/dist/components/NSSectionBars.d.ts +2 -2
  59. package/dist/components/NSSectionBars.js +3 -4
  60. package/dist/components/NSSectionBars.js.map +1 -1
  61. package/dist/components/NSSectionCards.d.ts +2 -2
  62. package/dist/components/NSSectionCards.js +7 -8
  63. package/dist/components/NSSectionCards.js.map +1 -1
  64. package/dist/components/NSSectionTitle.d.ts +1 -1
  65. package/dist/components/NSSectionTitle.js +5 -5
  66. package/dist/components/NSSectionTitle.js.map +1 -1
  67. package/dist/components/NSSelectBox.js +1 -1
  68. package/dist/components/NSSelectBox.js.map +1 -1
  69. package/dist/components/NSTable.js +1 -1
  70. package/dist/components/NSTable.js.map +1 -1
  71. package/dist/components/NSTitle.d.ts +2 -2
  72. package/dist/components/NSTitle.js +3 -4
  73. package/dist/components/NSTitle.js.map +1 -1
  74. package/dist/main.d.ts +0 -1
  75. package/dist/main.js +0 -1
  76. package/dist/main.js.map +1 -1
  77. package/dist/pages/NSLoginPage.js +1 -1
  78. package/dist/pages/NSLoginPage.js.map +1 -1
  79. package/logo.png +0 -0
  80. package/package.json +27 -30
  81. package/src/components/NSCard.module.css +8 -5
  82. package/src/components/NSCard.tsx +4 -3
  83. package/src/components/NSEntityBar.module.css +9 -8
  84. package/src/components/NSEntityBar.tsx +6 -5
  85. package/src/components/NSSection.tsx +6 -7
  86. package/src/components/NSSectionBars.tsx +4 -7
  87. package/src/components/NSSectionCards.module.css +4 -4
  88. package/src/components/NSSectionCards.tsx +5 -7
  89. package/src/components/NSSectionTitle.tsx +8 -8
  90. package/src/components/NSTitle.module.css +1 -0
  91. package/src/components/NSTitle.tsx +3 -5
  92. package/src/main.ts +0 -1
  93. package/tsconfig.json +42 -36
  94. package/.gitlab-ci.yml +0 -15
  95. package/dist/assets/images/arrow.svg +0 -3
  96. package/dist/assets/images/danger.svg +0 -3
  97. package/dist/assets/images/exit.svg +0 -3
  98. package/dist/assets/images/icon-input-date.svg +0 -9
  99. package/dist/assets/images/icon-input-duration.svg +0 -9
  100. package/dist/assets/images/icon-input-email.svg +0 -9
  101. package/dist/assets/images/icon-input-float.svg +0 -9
  102. package/dist/assets/images/icon-input-id.svg +0 -9
  103. package/dist/assets/images/icon-input-integer.svg +0 -9
  104. package/dist/assets/images/icon-input-phone.svg +0 -9
  105. package/dist/assets/images/icon-input-price.svg +0 -9
  106. package/dist/assets/images/icon-input-search.svg +0 -4
  107. package/dist/assets/images/icon-input-string.svg +0 -9
  108. package/dist/assets/images/icon-input-text.svg +0 -9
  109. package/dist/assets/images/icon-input-time.svg +0 -9
  110. package/dist/assets/images/logo.svg +0 -9
  111. package/dist/assets/images/map_location.png +0 -0
  112. package/dist/assets/images/menu.svg +0 -3
  113. package/dist/assets/images/namira.svg +0 -9
  114. package/dist/assets/images/rectangle.svg +0 -3
  115. package/dist/components/NSButtonGreen.module.css +0 -12
  116. package/dist/components/NSButtonRed.module.css +0 -12
  117. package/dist/components/NSCard.module.css +0 -94
  118. package/dist/components/NSEntityBar.module.css +0 -53
  119. package/dist/components/NSFooter.module.css +0 -102
  120. package/dist/components/NSHeader.module.css +0 -181
  121. package/dist/components/NSInputDate.module.css +0 -36
  122. package/dist/components/NSInputDuration.module.css +0 -26
  123. package/dist/components/NSInputEmail.module.css +0 -38
  124. package/dist/components/NSInputFloat.module.css +0 -26
  125. package/dist/components/NSInputIP.module.css +0 -26
  126. package/dist/components/NSInputInteger.module.css +0 -26
  127. package/dist/components/NSInputPhone.module.css +0 -33
  128. package/dist/components/NSInputPrice.module.css +0 -27
  129. package/dist/components/NSInputSearch.module.css +0 -26
  130. package/dist/components/NSInputString.module.css +0 -27
  131. package/dist/components/NSInputText.module.css +0 -28
  132. package/dist/components/NSInputTime.module.css +0 -27
  133. package/dist/components/NSLayout.module.css +0 -17
  134. package/dist/components/NSLayoutHeroBanner.module.css +0 -43
  135. package/dist/components/NSLinkBlue.module.css +0 -24
  136. package/dist/components/NSLinkGreen.module.css +0 -16
  137. package/dist/components/NSLinkRed.module.css +0 -16
  138. package/dist/components/NSMap.d.ts +0 -12
  139. package/dist/components/NSMap.js +0 -18
  140. package/dist/components/NSMap.js.map +0 -1
  141. package/dist/components/NSPagination.module.css +0 -25
  142. package/dist/components/NSSection.module.css +0 -10
  143. package/dist/components/NSSectionBars.module.css +0 -11
  144. package/dist/components/NSSectionCards.module.css +0 -38
  145. package/dist/components/NSSectionTitle.module.css +0 -0
  146. package/dist/components/NSSelectBox.module.css +0 -29
  147. package/dist/components/NSTable.modules.css +0 -77
  148. package/dist/components/NSTitle.module.css +0 -9
  149. package/dist/pages/NSLoginPage.modules.css +0 -0
  150. package/src/components/NSMap.tsx +0 -38
@@ -6,6 +6,7 @@ import Styles from './NSEntityBar.module.css'
6
6
 
7
7
  export interface NSEntityBarProps
8
8
  {
9
+ id?: string | number;
9
10
  title: string;
10
11
  description: string;
11
12
  image: {
@@ -18,13 +19,13 @@ export class NSEntityBar extends Component<NSEntityBarProps> {
18
19
  override render()
19
20
  {
20
21
  return (
21
- <article className={Styles.entity_bar_item}>
22
- <figure className={Styles.entity_bar_image_container}>
22
+ <article className={Styles.ns_entity_bar_item}>
23
+ <figure className={Styles.ns_entity_bar_image_container}>
23
24
  <img src={this.props.image.src} alt={this.props.image.alt} width={310} height={240} />
24
25
  </figure>
25
- <div className={Styles.entity_bar_details_container}>
26
- <h3 className={Styles.entity_bar_image_title}> {this.props.title} </h3>
27
- <p className={Styles.entity_bar_image_description} > {this.props.description} </p>
26
+ <div className={Styles.ns_entity_bar_details_container}>
27
+ <h3 className={Styles.ns_entity_bar_image_title}> {this.props.title} </h3>
28
+ <p className={Styles.ns_entity_bar_image_description} > {this.props.description} </p>
28
29
  </div>
29
30
  </article>
30
31
  );
@@ -1,4 +1,5 @@
1
- 'use client'
1
+ "use client";
2
+
2
3
  import { Component, ReactNode } from "react";
3
4
  import Styles from './NSSection.module.css'
4
5
  import { Background } from "../types/Background";
@@ -14,12 +15,12 @@ interface NSSectionState
14
15
  background?: Background;
15
16
  }
16
17
 
17
- class NSSection extends Component<NSSectionProps, NSSectionState> {
18
+ export class NSSection extends Component<NSSectionProps, NSSectionState> {
18
19
  constructor(props: NSSectionProps)
19
20
  {
20
21
  super(props);
21
22
  this.state = {
22
- background: {
23
+ background: {
23
24
  image: `url(${props.background?.image})`,
24
25
  color: props.background?.color,
25
26
  position: props.background?.position
@@ -33,7 +34,7 @@ class NSSection extends Component<NSSectionProps, NSSectionState> {
33
34
  {{
34
35
  backgroundImage: this.state.background?.image,
35
36
  backgroundColor: this.state.background?.color,
36
- backgroundPosition : this.state.background?.position
37
+ backgroundPosition: this.state.background?.position
37
38
  }}
38
39
  className={Styles.ns_section} >
39
40
  <div style={{ paddingBottom: this.props.padding_bottom }}
@@ -43,6 +44,4 @@ class NSSection extends Component<NSSectionProps, NSSectionState> {
43
44
  </section>
44
45
  );
45
46
  }
46
- }
47
-
48
- export default NSSection;
47
+ }
@@ -5,9 +5,8 @@ import { Component } from 'react';
5
5
  import Styles from './NSSectionBars.module.css';
6
6
 
7
7
  import { NSEntityBar, NSEntityBarProps } from './NSEntityBar';
8
- import NSSection from './NSSection';
8
+ import { NSSection } from './NSSection';
9
9
  import { Background } from '../types/Background';
10
- // import { NSLinkBlue } from './NSLinkBlue';
11
10
 
12
11
  interface NSSectionBarsProps
13
12
  {
@@ -15,7 +14,7 @@ interface NSSectionBarsProps
15
14
  bars: NSEntityBarProps[]
16
15
  }
17
16
 
18
- class NSSectionBars extends Component<NSSectionBarsProps> {
17
+ export class NSSectionBars extends Component<NSSectionBarsProps> {
19
18
  override render()
20
19
  {
21
20
  return (
@@ -23,13 +22,11 @@ class NSSectionBars extends Component<NSSectionBarsProps> {
23
22
  <NSSection background={this.props.background} >
24
23
  <div className={`container mx-auto px-4 lg:px-12 ${Styles.ns_entity_bar_container}`}>
25
24
  {
26
- this.props.bars?.map((bar) => <NSEntityBar {...bar} />)
25
+ this.props.bars?.map((bar) => <NSEntityBar key={bar.id} {...bar} />)
27
26
  }
28
27
  </div>
29
28
  </NSSection>
30
29
  </>
31
30
  );
32
31
  }
33
- }
34
-
35
- export default NSSectionBars;
32
+ }
@@ -18,7 +18,7 @@
18
18
  flex-direction: row;
19
19
  flex-wrap: wrap;
20
20
  justify-content: center;
21
- gap: 48px;
21
+ gap: 24px;
22
22
  width: 100%;
23
23
  }
24
24
 
@@ -30,9 +30,9 @@
30
30
 
31
31
  .description {
32
32
  font-style: normal;
33
- font-weight: initial;
33
+ font-weight: inherit;
34
34
  font-size: 16px;
35
- font-family: initial;
36
- line-height: initial;
35
+ font-family: inherit;
36
+ line-height: inherit;
37
37
  margin-bottom: 16px;
38
38
  }
@@ -3,9 +3,9 @@
3
3
  import { Component } from 'react';
4
4
 
5
5
  import Styles from './NSSectionCards.module.css';
6
- import NSTitle from './NSTitle';
6
+ import { NSTitle } from './NSTitle';
7
7
  import { NSCard, NSCardProps } from './NSCard';
8
- import NSSection from './NSSection';
8
+ import { NSSection } from './NSSection';
9
9
  import { NSLinkBlue } from './NSLinkBlue';
10
10
  import { Background } from '../types/Background';
11
11
 
@@ -27,7 +27,7 @@ interface NSSectionCardsProps
27
27
  cards: NSCardProps[]
28
28
  }
29
29
 
30
- class NSSectionCards extends Component<NSSectionCardsProps> {
30
+ export class NSSectionCards extends Component<NSSectionCardsProps> {
31
31
  override render()
32
32
  {
33
33
  return (
@@ -50,7 +50,7 @@ class NSSectionCards extends Component<NSSectionCardsProps> {
50
50
 
51
51
  <div className={` ${Styles.ns_card_container}`}>
52
52
  {
53
- this.props.cards?.map((card) => <NSCard {...card} />)
53
+ this.props.cards?.map((card) => <NSCard key={card.id} {...card} />)
54
54
  }
55
55
  </div>
56
56
  {
@@ -64,6 +64,4 @@ class NSSectionCards extends Component<NSSectionCardsProps> {
64
64
  </>
65
65
  );
66
66
  }
67
- }
68
-
69
- export default NSSectionCards;
67
+ }
@@ -1,8 +1,7 @@
1
- 'use client'
2
-
1
+ "use client";
3
2
  import { Component, ReactNode } from 'react';
4
- import NSSection from './NSSection';
5
- import NSTitle from './NSTitle';
3
+ import { NSSection } from './NSSection';
4
+ import { NSTitle } from './NSTitle';
6
5
  import { Background } from '../types/Background';
7
6
 
8
7
  interface NSSectionTitleProps
@@ -15,10 +14,11 @@ interface NSSectionTitleProps
15
14
  padding_bottom?: string;
16
15
  children: ReactNode
17
16
  }
18
-
19
- export default class NSSectionTitle extends Component<NSSectionTitleProps> {
20
- override render() {
21
- return (
17
+
18
+ export class NSSectionTitle extends Component<NSSectionTitleProps> {
19
+ override render()
20
+ {
21
+ return (
22
22
  <NSSection padding_bottom={this.props.padding_bottom} background={this.props.background} >
23
23
  <NSTitle color={this.props.title.color} title={this.props.title.text} />
24
24
  {this.props.children}
@@ -6,4 +6,5 @@
6
6
  margin-bottom: 16px;
7
7
  width: 100%;
8
8
  text-align: center;
9
+ font-family: inherit;
9
10
  }
@@ -1,4 +1,4 @@
1
- 'use client'
1
+ "use client";
2
2
  import { Component } from 'react';
3
3
 
4
4
  //Styles
@@ -10,7 +10,7 @@ interface NSTitleProps
10
10
  color?: string;
11
11
  text_align?: string;
12
12
  }
13
- class NSTitle extends Component<NSTitleProps> {
13
+ export class NSTitle extends Component<NSTitleProps> {
14
14
  override render()
15
15
  {
16
16
  return (
@@ -20,6 +20,4 @@ class NSTitle extends Component<NSTitleProps> {
20
20
  </h2>
21
21
  );
22
22
  }
23
- }
24
-
25
- export default NSTitle;
23
+ }
package/src/main.ts CHANGED
@@ -27,7 +27,6 @@ export * from "./components/NSSectionTitle";
27
27
  export * from "./components/NSLinkBlue";
28
28
  export * from "./components/NSLinkGreen";
29
29
  export * from "./components/NSLinkRed";
30
- export * from "./components/NSMap";
31
30
  export * from "./components/NSPagination";
32
31
  export * from "./components/NSTable";
33
32
  export * from "./components/NSTitle";
package/tsconfig.json CHANGED
@@ -1,38 +1,44 @@
1
1
  {
2
- "compilerOptions": {
3
- "target": "ES6",
4
- "module": "esnext",
5
- "rootDir": "./src",
6
- "outDir": "./dist",
7
- "lib": [
8
- "dom",
9
- "dom.iterable",
10
- "esnext"
11
- ],
12
- "allowJs": false,
13
- "checkJs": false,
14
- "strict": true,
15
- "esModuleInterop": true,
16
- "sourceMap": true,
17
- "resolveJsonModule": true,
18
- "declaration": true,
19
- "noUnusedLocals": true,
20
- "noUnusedParameters": true,
21
- "noImplicitAny": true,
22
- "noImplicitOverride": true,
23
- "noImplicitReturns": true,
24
- "noImplicitThis": true,
25
- "skipLibCheck": true,
26
- "allowSyntheticDefaultImports": true,
27
- "forceConsistentCasingInFileNames": true,
28
- "noFallthroughCasesInSwitch": true,
29
- "isolatedModules": true,
30
- "removeComments": true,
31
- "noEmit": false,
32
- "moduleResolution": "node",
33
- "jsx": "react-jsx"
34
- },
35
- "include": [
36
- "src"
37
- ]
2
+ "compilerOptions": {
3
+ "target": "ES6",
4
+ "jsx": "react-jsx",
5
+ "moduleResolution": "node",
6
+ "rootDir": "./src",
7
+ "outDir": "./dist",
8
+ "lib": [
9
+ "dom",
10
+ "dom.iterable",
11
+ "esnext"
12
+ ],
13
+ "allowJs": false,
14
+ "checkJs": false,
15
+ "strict": true,
16
+ "esModuleInterop": true,
17
+ "sourceMap": true,
18
+ "resolveJsonModule": true,
19
+ "declaration": true,
20
+ "noUnusedLocals": true,
21
+ "noUnusedParameters": true,
22
+ "noImplicitAny": true,
23
+ "noImplicitOverride": true,
24
+ "noImplicitReturns": true,
25
+ "noImplicitThis": true,
26
+ "skipLibCheck": true,
27
+ "allowSyntheticDefaultImports": true,
28
+ "forceConsistentCasingInFileNames": true,
29
+ "noFallthroughCasesInSwitch": true,
30
+ "isolatedModules": false,
31
+ "removeComments": true,
32
+ },
33
+ "include": [
34
+ "src",
35
+ "build/types/**/*.ts"
36
+ ],
37
+ "exclude": [
38
+ "node_modules",
39
+ "build",
40
+ "dist",
41
+ "static",
42
+ "public"
43
+ ]
38
44
  }
package/.gitlab-ci.yml DELETED
@@ -1,15 +0,0 @@
1
- stages:
2
- - npm-publish
3
-
4
- publish:
5
- stage: npm-publish
6
- script:
7
- - rm -rf node_modules
8
- - rm -rf dist
9
- - ncu -u
10
- - npm i
11
- - tsc
12
- - npm run build
13
- - npm publish
14
- only:
15
- - master
@@ -1,3 +0,0 @@
1
- <svg width="20" height="16" viewBox="0 0 20 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M10 16L0.473722 0.249998L19.5263 0.25L10 16Z" fill="#848484"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M6.5 0C10.0899 0 13 2.9107 13 6.5C13 10.0893 10.0899 13 6.5 13C2.91005 13 0 10.0893 0 6.5C0 2.9107 2.91005 0 6.5 0ZM6.33272 3.35661C6.24576 3.35386 6.15914 3.36861 6.07799 3.39999C5.99684 3.43137 5.92283 3.47873 5.86034 3.53927C5.79786 3.59981 5.74817 3.67229 5.71424 3.75241C5.68031 3.83252 5.66283 3.91864 5.66283 4.00564C5.66283 4.09264 5.68031 4.17876 5.71424 4.25887C5.74817 4.33899 5.79786 4.41147 5.86034 4.472C5.92283 4.53254 5.99684 4.57991 6.07799 4.61129C6.15914 4.64267 6.24576 4.65742 6.33272 4.65466C6.5013 4.64933 6.66119 4.57861 6.77855 4.45748C6.89591 4.33634 6.96153 4.1743 6.96153 4.00564C6.96153 3.83698 6.89591 3.67493 6.77855 3.5538C6.66119 3.43267 6.5013 3.36195 6.33272 3.35661ZM6.33142 5.04839C6.17212 5.04843 6.01837 5.10697 5.89938 5.21289C5.7804 5.31882 5.70445 5.46476 5.68597 5.62299L5.68142 5.69839L5.68272 8.94904L5.68727 9.02509C5.70606 9.18307 5.78214 9.32867 5.9011 9.43432C6.02006 9.53996 6.17363 9.59831 6.33272 9.59831C6.49182 9.59831 6.64539 9.53996 6.76435 9.43432C6.8833 9.32867 6.95938 9.18307 6.97817 9.02509L6.98272 8.94904L6.98142 5.69839L6.97687 5.62234C6.95825 5.46422 6.88224 5.31844 6.76326 5.21265C6.64429 5.10686 6.49063 5.04841 6.33142 5.04839Z" fill="#FF3F3F"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M0 2.22173C0 0.999778 0.999778 0 2.22173 0H11.1086V2.22173H2.22173V17.7738H11.1086V19.9956H2.22173C0.999778 19.9956 0 18.9958 0 17.7738V2.22173ZM15.7476 8.88691L12.9305 6.06976L14.5012 4.499L20 9.99778L14.5012 15.4966L12.9305 13.9258L15.7476 11.1086H8.43146V8.88691H15.7476Z" fill="white"/>
3
- </svg>