namirasoft-site-react 1.3.9 → 1.3.10

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 (98) 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/NSFooter.d.ts +4 -5
  10. package/dist/components/NSFooter.js.map +1 -1
  11. package/dist/components/NSHeader.d.ts +4 -5
  12. package/dist/components/NSHeader.js.map +1 -1
  13. package/dist/components/NSInputDate.d.ts +4 -5
  14. package/dist/components/NSInputDate.js.map +1 -1
  15. package/dist/components/NSInputDuration.d.ts +4 -5
  16. package/dist/components/NSInputDuration.js.map +1 -1
  17. package/dist/components/NSInputEmail.d.ts +4 -5
  18. package/dist/components/NSInputEmail.js.map +1 -1
  19. package/dist/components/NSInputFloat.d.ts +4 -5
  20. package/dist/components/NSInputFloat.js.map +1 -1
  21. package/dist/components/NSInputIP.d.ts +4 -5
  22. package/dist/components/NSInputIP.js.map +1 -1
  23. package/dist/components/NSInputInteger.d.ts +4 -5
  24. package/dist/components/NSInputInteger.js.map +1 -1
  25. package/dist/components/NSInputPhone.d.ts +4 -5
  26. package/dist/components/NSInputPhone.js.map +1 -1
  27. package/dist/components/NSInputPrice.d.ts +4 -5
  28. package/dist/components/NSInputPrice.js.map +1 -1
  29. package/dist/components/NSInputSearch.d.ts +4 -5
  30. package/dist/components/NSInputSearch.js.map +1 -1
  31. package/dist/components/NSInputString.d.ts +4 -5
  32. package/dist/components/NSInputString.js.map +1 -1
  33. package/dist/components/NSInputText.d.ts +4 -5
  34. package/dist/components/NSInputText.js.map +1 -1
  35. package/dist/components/NSInputTime.d.ts +4 -5
  36. package/dist/components/NSInputTime.js.map +1 -1
  37. package/dist/components/NSLayout.d.ts +2 -3
  38. package/dist/components/NSLayout.js.map +1 -1
  39. package/dist/components/NSLayoutHeroBanner.d.ts +2 -3
  40. package/dist/components/NSLayoutHeroBanner.js.map +1 -1
  41. package/dist/components/NSLayoutTitle.d.ts +2 -3
  42. package/dist/components/NSLayoutTitle.js.map +1 -1
  43. package/dist/components/NSLinkBlue.d.ts +4 -5
  44. package/dist/components/NSLinkBlue.js.map +1 -1
  45. package/dist/components/NSLinkGreen.d.ts +4 -5
  46. package/dist/components/NSLinkGreen.js.map +1 -1
  47. package/dist/components/NSLinkRed.d.ts +4 -5
  48. package/dist/components/NSLinkRed.js.map +1 -1
  49. package/dist/components/NSPagination.d.ts +4 -5
  50. package/dist/components/NSPagination.js.map +1 -1
  51. package/dist/components/NSSection.d.ts +2 -3
  52. package/dist/components/NSSection.js.map +1 -1
  53. package/dist/components/NSSectionBars.d.ts +1 -2
  54. package/dist/components/NSSectionBars.js.map +1 -1
  55. package/dist/components/NSSectionCards.d.ts +1 -2
  56. package/dist/components/NSSectionCards.js.map +1 -1
  57. package/dist/components/NSSectionTitle.d.ts +1 -2
  58. package/dist/components/NSSectionTitle.js.map +1 -1
  59. package/dist/components/NSSelectBox.d.ts +4 -5
  60. package/dist/components/NSSelectBox.js.map +1 -1
  61. package/dist/components/NSTable.d.ts +4 -5
  62. package/dist/components/NSTable.js.map +1 -1
  63. package/dist/components/NSTitle.d.ts +1 -2
  64. package/dist/components/NSTitle.js.map +1 -1
  65. package/package.json +4 -4
  66. package/src/components/NSButtonGreen.tsx +4 -6
  67. package/src/components/NSButtonRed.tsx +4 -6
  68. package/src/components/NSCard.tsx +3 -5
  69. package/src/components/NSEntityBar.tsx +0 -1
  70. package/src/components/NSEntityCardBackground.tsx +4 -5
  71. package/src/components/NSFooter.tsx +4 -4
  72. package/src/components/NSHeader.tsx +50 -51
  73. package/src/components/NSInputDate.tsx +6 -6
  74. package/src/components/NSInputDuration.tsx +5 -7
  75. package/src/components/NSInputEmail.tsx +5 -7
  76. package/src/components/NSInputFloat.tsx +4 -4
  77. package/src/components/NSInputIP.tsx +5 -7
  78. package/src/components/NSInputInteger.tsx +4 -4
  79. package/src/components/NSInputPhone.tsx +5 -7
  80. package/src/components/NSInputPrice.tsx +6 -8
  81. package/src/components/NSInputSearch.tsx +5 -7
  82. package/src/components/NSInputString.tsx +4 -4
  83. package/src/components/NSInputText.tsx +5 -7
  84. package/src/components/NSInputTime.tsx +5 -7
  85. package/src/components/NSLayout.tsx +2 -2
  86. package/src/components/NSLayoutHeroBanner.tsx +2 -2
  87. package/src/components/NSLayoutTitle.tsx +3 -3
  88. package/src/components/NSLinkBlue.tsx +4 -4
  89. package/src/components/NSLinkGreen.tsx +4 -4
  90. package/src/components/NSLinkRed.tsx +4 -4
  91. package/src/components/NSPagination.tsx +6 -4
  92. package/src/components/NSSection.tsx +3 -2
  93. package/src/components/NSSectionBars.tsx +1 -3
  94. package/src/components/NSSectionCards.tsx +1 -2
  95. package/src/components/NSSectionTitle.tsx +2 -1
  96. package/src/components/NSSelectBox.tsx +5 -7
  97. package/src/components/NSTable.tsx +4 -4
  98. package/src/components/NSTitle.tsx +3 -3
@@ -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
  {