namirasoft-site-react 1.3.60 → 1.3.61

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 (132) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/App.js.map +1 -1
  3. package/dist/components/NSButton.d.ts +0 -9
  4. package/dist/components/NSButton.js +2 -9
  5. package/dist/components/NSButton.js.map +1 -1
  6. package/dist/components/NSButton.module.css +8 -7
  7. package/dist/components/NSButtonBlue.d.ts +2 -14
  8. package/dist/components/NSButtonBlue.js +6 -13
  9. package/dist/components/NSButtonBlue.js.map +1 -1
  10. package/dist/components/NSButtonBlue.module.css +0 -8
  11. package/dist/components/NSButtonGreen.d.ts +2 -14
  12. package/dist/components/NSButtonGreen.js +6 -13
  13. package/dist/components/NSButtonGreen.js.map +1 -1
  14. package/dist/components/NSButtonGreen.module.css +0 -8
  15. package/dist/components/NSButtonRed.d.ts +2 -14
  16. package/dist/components/NSButtonRed.js +7 -14
  17. package/dist/components/NSButtonRed.js.map +1 -1
  18. package/dist/components/NSButtonRed.module.css +0 -8
  19. package/dist/components/NSCard.d.ts +3 -9
  20. package/dist/components/NSCard.js +12 -16
  21. package/dist/components/NSCard.js.map +1 -1
  22. package/dist/components/NSCopyToClipboard.d.ts +1 -8
  23. package/dist/components/NSCopyToClipboard.js +6 -14
  24. package/dist/components/NSCopyToClipboard.js.map +1 -1
  25. package/dist/components/NSCopyToClipboard.module.css +1 -1
  26. package/dist/components/NSEntityBar.d.ts +3 -9
  27. package/dist/components/NSEntityBar.js +3 -6
  28. package/dist/components/NSEntityBar.js.map +1 -1
  29. package/dist/components/NSEntityBar.module.css +1 -1
  30. package/dist/components/NSEntityCardBackground.d.ts +1 -11
  31. package/dist/components/NSEntityCardBackground.js +4 -23
  32. package/dist/components/NSEntityCardBackground.js.map +1 -1
  33. package/dist/components/NSFooter.js +2 -1
  34. package/dist/components/NSFooter.js.map +1 -1
  35. package/dist/components/NSHeader.d.ts +1 -2
  36. package/dist/components/NSHeader.js +9 -4
  37. package/dist/components/NSHeader.js.map +1 -1
  38. package/dist/components/NSInputDate.js +1 -1
  39. package/dist/components/NSInputDate.js.map +1 -1
  40. package/dist/components/NSLayout.js +2 -2
  41. package/dist/components/NSLayout.js.map +1 -1
  42. package/dist/components/NSLayoutHeroBanner.js.map +1 -1
  43. package/dist/components/NSLinkBlue.d.ts +1 -9
  44. package/dist/components/NSLinkBlue.js +3 -17
  45. package/dist/components/NSLinkBlue.js.map +1 -1
  46. package/dist/components/NSLoading.d.ts +1 -6
  47. package/dist/components/NSLoading.js +2 -6
  48. package/dist/components/NSLoading.js.map +1 -1
  49. package/dist/components/NSNotification.js +2 -2
  50. package/dist/components/NSNotification.js.map +1 -1
  51. package/dist/components/NSPagination.d.ts +1 -1
  52. package/dist/components/NSPagination.js +2 -1
  53. package/dist/components/NSPagination.js.map +1 -1
  54. package/dist/components/NSPanel.d.ts +2 -7
  55. package/dist/components/NSPanel.js +3 -9
  56. package/dist/components/NSPanel.js.map +1 -1
  57. package/dist/components/NSSection.d.ts +2 -10
  58. package/dist/components/NSSection.js +6 -25
  59. package/dist/components/NSSection.js.map +1 -1
  60. package/dist/components/NSSectionBars.d.ts +1 -6
  61. package/dist/components/NSSectionBars.js +4 -8
  62. package/dist/components/NSSectionBars.js.map +1 -1
  63. package/dist/components/NSSectionCards.d.ts +5 -14
  64. package/dist/components/NSSectionCards.js +7 -11
  65. package/dist/components/NSSectionCards.js.map +1 -1
  66. package/dist/components/NSSectionTitle.d.ts +4 -10
  67. package/dist/components/NSSectionTitle.js +2 -6
  68. package/dist/components/NSSectionTitle.js.map +1 -1
  69. package/dist/components/NSSpace.js +2 -1
  70. package/dist/components/NSSpace.js.map +1 -1
  71. package/dist/components/NSTable.js +2 -1
  72. package/dist/components/NSTable.js.map +1 -1
  73. package/dist/components/NSTitle.d.ts +1 -6
  74. package/dist/components/NSTitle.js +3 -6
  75. package/dist/components/NSTitle.js.map +1 -1
  76. package/dist/main.d.ts +0 -1
  77. package/dist/main.js +0 -1
  78. package/dist/main.js.map +1 -1
  79. package/dist/pages/NSLoginPage.d.ts +2 -3
  80. package/dist/pages/NSLoginPage.js +4 -3
  81. package/dist/pages/NSLoginPage.js.map +1 -1
  82. package/dist/props/BaseComponentProps.d.ts +1 -0
  83. package/package.json +1 -2
  84. package/src/App.tsx +1 -1
  85. package/src/components/NSButton.module.css +8 -7
  86. package/src/components/NSButton.tsx +6 -24
  87. package/src/components/NSButtonBlue.module.css +0 -8
  88. package/src/components/NSButtonBlue.tsx +7 -29
  89. package/src/components/NSButtonGreen.module.css +0 -8
  90. package/src/components/NSButtonGreen.tsx +7 -29
  91. package/src/components/NSButtonRed.module.css +0 -8
  92. package/src/components/NSButtonRed.tsx +8 -30
  93. package/src/components/NSCard.tsx +49 -56
  94. package/src/components/NSCopyToClipboard.module.css +1 -1
  95. package/src/components/NSCopyToClipboard.tsx +21 -35
  96. package/src/components/NSEntityBar.module.css +1 -1
  97. package/src/components/NSEntityBar.tsx +17 -23
  98. package/src/components/NSEntityCardBackground.tsx +22 -56
  99. package/src/components/NSFooter.tsx +4 -1
  100. package/src/components/NSHeader.tsx +16 -7
  101. package/src/components/NSInputDate.tsx +4 -2
  102. package/src/components/NSLayout.tsx +3 -3
  103. package/src/components/NSLayoutHeroBanner.tsx +0 -1
  104. package/src/components/NSLinkBlue.tsx +12 -32
  105. package/src/components/NSLoading.tsx +8 -17
  106. package/src/components/NSNotification.tsx +19 -14
  107. package/src/components/NSPagination.tsx +4 -3
  108. package/src/components/NSPanel.tsx +10 -21
  109. package/src/components/NSSection.tsx +13 -39
  110. package/src/components/NSSectionBars.tsx +12 -22
  111. package/src/components/NSSectionCards.tsx +31 -46
  112. package/src/components/NSSectionTitle.tsx +11 -21
  113. package/src/components/NSSpace.tsx +3 -1
  114. package/src/components/NSTable.tsx +5 -3
  115. package/src/components/NSTitle.tsx +10 -15
  116. package/src/main.ts +0 -1
  117. package/src/pages/NSLoginPage.tsx +8 -6
  118. package/src/props/BaseComponentProps.ts +1 -0
  119. package/dist/components/NSButtonBlueVector.d.ts +0 -16
  120. package/dist/components/NSButtonBlueVector.js +0 -17
  121. package/dist/components/NSButtonBlueVector.js.map +0 -1
  122. package/dist/components/NSButtonBlueVector.module.css +0 -17
  123. package/dist/props/BackgroundProps.d.ts +0 -6
  124. package/dist/props/BackgroundProps.js +0 -2
  125. package/dist/props/BackgroundProps.js.map +0 -1
  126. package/dist/props/NSButtonProps.d.ts +0 -11
  127. package/dist/props/NSButtonProps.js +0 -2
  128. package/dist/props/NSButtonProps.js.map +0 -1
  129. package/src/components/NSButtonBlueVector.module.css +0 -17
  130. package/src/components/NSButtonBlueVector.tsx +0 -42
  131. package/src/props/BackgroundProps.ts +0 -7
  132. package/src/props/NSButtonProps.ts +0 -12
@@ -1,10 +1,5 @@
1
- import { Component } from 'react';
2
1
  import { BaseComponentProps } from "../props/BaseComponentProps";
3
2
  export interface NSTitleProps extends BaseComponentProps {
4
3
  title: string;
5
- color?: string;
6
- text_align?: string;
7
- }
8
- export declare class NSTitle extends Component<NSTitleProps> {
9
- render(): import("react/jsx-runtime").JSX.Element;
10
4
  }
5
+ export declare function NSTitle(props: NSTitleProps): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,7 @@
1
- "use client";
2
1
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Component } from 'react';
4
2
  import Styles from './NSTitle.module.css';
5
- export class NSTitle extends Component {
6
- render() {
7
- return (_jsx("h2", { style: { color: this.props.color, textAlign: this.props.text_align ? "start" : "center" }, className: `${Styles.ns_title}`, children: this.props.title }));
8
- }
3
+ export function NSTitle(props) {
4
+ var _a;
5
+ return (_jsx("h2", { id: props.id, className: `${Styles.ns_title} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, children: props.title }));
9
6
  }
10
7
  //# sourceMappingURL=NSTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSTitle.js","sourceRoot":"","sources":["../../src/components/NSTitle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAU1C,MAAM,OAAO,OAAQ,SAAQ,SAAuB;IAE1C,MAAM;QAEd,OAAO,CAEN,aAAI,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,EAAE,YAC5H,IAAI,CAAC,KAAK,CAAC,KAAK,GACb,CACL,CAAC;IACH,CAAC;CACD"}
1
+ {"version":3,"file":"NSTitle.js","sourceRoot":"","sources":["../../src/components/NSTitle.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAQ1C,MAAM,UAAU,OAAO,CAAC,KAAmB;;IAE1C,OAAO,CACN,aACC,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAC7D,KAAK,EAAE,KAAK,CAAC,KAAK,YAEjB,KAAK,CAAC,KAAK,GACR,CACL,CAAC;AACH,CAAC"}
package/dist/main.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from "./components/NSButtonBlue";
2
- export * from "./components/NSButtonBlueVector";
3
2
  export * from "./components/NSButtonGreen";
4
3
  export * from "./components/NSButton";
5
4
  export * from "./components/NSButtonRed";
package/dist/main.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from "./components/NSButtonBlue";
2
- export * from "./components/NSButtonBlueVector";
3
2
  export * from "./components/NSButtonGreen";
4
3
  export * from "./components/NSButton";
5
4
  export * from "./components/NSButt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AAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"}
@@ -1,12 +1,11 @@
1
1
  import { Component } from 'react';
2
- interface IProps {
2
+ export interface NSLoginPageProps {
3
3
  title: string;
4
4
  logo: string;
5
5
  background: string;
6
6
  href?: string;
7
7
  onClick?: () => void;
8
8
  }
9
- export declare class NSLoginPage extends Component<IProps> {
9
+ export declare class NSLoginPage extends Component<NSLoginPageProps> {
10
10
  render(): import("react/jsx-runtime").JSX.Element;
11
11
  }
12
- export {};
@@ -1,8 +1,9 @@
1
- "use client";
2
1
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  import { Component } from 'react';
4
- import { NSLinkBlue, NSButtonGreen, NSSpace, NSSpaceSizeType } from "../main";
5
3
  import Styles from './NSLoginPage.module.css';
4
+ import { NSButtonGreen } from '../components/NSButtonGreen';
5
+ import { NSLinkBlue } from '../components/NSLinkBlue';
6
+ import { NSSpace, NSSpaceSizeType } from '../components/NSSpace';
6
7
  export class NSLoginPage extends Component {
7
8
  render() {
8
9
  var _a;
@@ -11,7 +12,7 @@ export class NSLoginPage extends Component {
11
12
  button = _jsx(NSLinkBlue, { title: "Login", href: (_a = this.props.href) !== null && _a !== void 0 ? _a : "" });
12
13
  else if (this.props.onClick)
13
14
  button = _jsx(NSButtonGreen, { title: "Login", onClick: this.props.onClick });
14
- return (_jsx("div", { style: { backgroundImage: this.props.background, width: "100%", backgroundSize: "cover" }, children: _jsxs("div", { className: `${Styles.ns_login_container}`, style: { marginTop: "100px" }, children: [_jsx("div", { className: `${Styles.ns_logo}`, children: _jsx("img", { width: 256, height: 256, src: this.props.logo, alt: "logo" }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx("div", { children: _jsx("h1", { className: `${Styles.ns_title}`, children: this.props.title }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx("div", { className: `${Styles.ns_button}`, children: button })] }) }));
15
+ return (_jsx("div", { style: { backgroundImage: this.props.background, width: "100%", backgroundSize: "cover" }, children: _jsxs("div", { className: `${Styles.ns_login_container}`, style: { marginTop: "100px" }, children: [_jsx("div", { className: `${Styles.ns_logo}`, children: _jsx("img", { width: 256, height: 256, src: this.props.logo, alt: `${this.props.title} Logo` }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx("div", { children: _jsx("h1", { className: `${Styles.ns_title}`, children: this.props.title }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx("div", { className: `${Styles.ns_button}`, children: button })] }) }));
15
16
  }
16
17
  }
17
18
  //# sourceMappingURL=NSLoginPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSLoginPage.js","sourceRoot":"","sources":["../../src/pages/NSLoginPage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAU7C,MAAM,OAAO,WAAY,SAAQ,SAAiB;IAErC,MAAM;;QAEX,IAAI,MAAM,GAAG,mBAAK,CAAC;QACnB,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI;YACf,MAAM,GAAG,KAAC,UAAU,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,IAAI,mCAAI,EAAE,GAAI,CAAC;aAClE,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO;YACvB,MAAM,GAAG,KAAC,aAAa,IAAC,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAI,CAAC;QAC1E,OAAO,CACH,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,OAA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,EAAE,GAAI,CAAC;aAClE,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO;YACvB,MAAM,GAAG,KAAC,aAAa,IAAC,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAI,CAAC;QAC1E,OAAO,CACH,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,YAC1F,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,aACzE,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE,YAC/B,cAAK,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,OAAO,GAAQ,GACzF,EACN,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EACxC,wBAAK,aAAI,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,EAAE,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAM,GAAM,EACvE,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EACxC,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,SAAS,EAAE,YAChC,MAAM,GACL,IACJ,GACH,CACV,CAAC;IACN,CAAC;CACJ"}
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
2
  export interface BaseComponentProps {
3
+ id?: string;
3
4
  classList?: string[];
4
5
  style?: React.CSSProperties;
5
6
  }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.60",
11
+ "version": "1.3.61",
12
12
  "author": "Amir Abolhasani, Alireza Esmaeeli, Hooman Shashaeh",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -30,7 +30,6 @@
30
30
  "link-react": "^3.0.0",
31
31
  "namirasoft-api-link": "^1.3.1",
32
32
  "namirasoft-core": "^1.3.18",
33
- "namirasoft-site-react": "^1.3.59",
34
33
  "path-browserify": "^1.0.1",
35
34
  "react": "^18.2.0",
36
35
  "react-app-rewired": "^2.2.1",
package/src/App.tsx CHANGED
@@ -45,7 +45,7 @@ export function App()
45
45
  scope='Namira Software Corporation'
46
46
  logo='https://static.namirasoft.com/logo/namirasoft/base.png'
47
47
  account={false}
48
- background={{ color: "transparent !important" }}
48
+ style={{ backgroundColor: "transparent !important" }}
49
49
  />
50
50
  <div className="container">
51
51
  <NSInputDate title="rrt" />
@@ -1,13 +1,14 @@
1
1
  .ns_button {
2
- display: flex;
3
2
  align-items: center;
4
- justify-content: center;
5
- font-size: 16px;
3
+ background-color: transparent;
6
4
  border-radius: 8px;
7
- gap: 10px;
8
- text-decoration: none;
5
+ box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
9
6
  color: black;
10
- background-color: transparent;
11
- width: 128px;
7
+ font-size: 16px;
8
+ font-weight: 400;
12
9
  height: 48px;
10
+ justify-content: center;
11
+ text-decoration: none;
12
+ max-width: 100%;
13
+ width: 128px;
13
14
  }
@@ -1,6 +1,3 @@
1
- "use client";
2
-
3
- import { BackgroundProps } from "../props/BackgroundProps";
4
1
  import { BaseComponentProps } from "../props/BaseComponentProps";
5
2
  import { ImageProps } from "../props/ImageProps";
6
3
  import Styles from "./NSButton.module.css";
@@ -8,34 +5,19 @@ import Styles from "./NSButton.module.css";
8
5
  export interface NSButtonProps extends BaseComponentProps
9
6
  {
10
7
  title: string;
11
- border?: string;
12
- background?: BackgroundProps;
13
8
  icon?: ImageProps;
14
9
  onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
15
10
  }
16
11
 
17
- export interface NSButtonState
18
- {
19
- title: string;
20
- border?: string;
21
- background?: BackgroundProps;
22
- icon?: ImageProps;
23
- }
24
-
25
12
  export default function NSButton(props: NSButtonProps)
26
13
  {
27
14
  return (
28
- <button onClick={(e) => { props.onClick(e) }} className={Styles.ns_button}
29
- style={{
30
- border: props.border,
31
- backgroundColor: props.background?.color,
32
- backgroundImage: props.background?.image,
33
- backdropFilter: props.background?.filter,
34
- backgroundPosition: props.background?.position,
35
- }}>
36
- {
37
- props.icon && <img src={props.icon.src} alt={props.icon.alt} />
38
- }
15
+ <button id={props.id}
16
+ className={`${Styles.ns_button} ${props.classList?.join(" ")}`}
17
+ style={props.style}
18
+ onClick={(e) => { props.onClick(e) }}
19
+ >
20
+ {props.icon && <img {...props.icon} />}
39
21
  {props.title}
40
22
  </button >
41
23
  );
@@ -1,12 +1,4 @@
1
1
  .ns_button_blue {
2
- width: 358px;
3
- max-width: 100%;
4
- height: 48px;
5
- border-radius: 8px;
6
2
  background-color: rgba(3, 119, 255, 1);
7
- color: #fff;
8
- border: 0;
9
3
  box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
10
- font-size: 16px;
11
- font-weight: 400;
12
4
  }
@@ -1,33 +1,11 @@
1
- "use client";
2
-
3
- import React from "react";
1
+ import NSButton from "./NSButton";
4
2
  import Style from "./NSButtonBlue.module.css";
5
- import { BaseComponentProps } from "../props/BaseComponentProps";
6
-
7
- export interface NSButtonBlueProps extends BaseComponentProps
8
- {
9
- title: string;
10
- onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
11
- }
12
-
13
- export interface NSButtonBlueState
14
- {
15
- title: string;
16
- }
3
+ import { NSButtonProps } from "./NSButton";
17
4
 
18
- export class NSButtonBlue extends React.Component<NSButtonBlueProps, NSButtonBlueState>
5
+ export function NSButtonBlue(props: NSButtonProps)
19
6
  {
20
- constructor(props: NSButtonBlueProps)
21
- {
22
- super(props);
23
- this.state = { title: props.title };
24
- }
25
- setTitle(title: string)
26
- {
27
- this.setState({ title });
28
- }
29
- override render()
30
- {
31
- return <button onClick={e => this.props.onClick(e)} className={Style.ns_button_blue}>{this.state.title}</button>;
32
- }
7
+ if (!props.classList)
8
+ props.classList = [];
9
+ props.classList.push(Style.ns_button_blue);
10
+ return <NSButton {...props} />;
33
11
  }
@@ -1,12 +1,4 @@
1
1
  .ns_button_green {
2
- width: 358px;
3
- max-width: 100%;
4
- height: 48px;
5
- border-radius: 8px;
6
2
  background-color: #06D182;
7
- color: #fff;
8
- border: 0;
9
3
  box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
10
- font-size: 16px;
11
- font-weight: 400;
12
4
  }
@@ -1,33 +1,11 @@
1
- "use client";
2
-
3
- import React from "react";
1
+ import NSButton from "./NSButton";
4
2
  import Style from "./NSButtonGreen.module.css";
5
- import { BaseComponentProps } from "../props/BaseComponentProps";
6
-
7
- export interface NSButtonGreenProps extends BaseComponentProps
8
- {
9
- title: string;
10
- onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
11
- }
12
-
13
- export interface NSButtonGreenState
14
- {
15
- title: string;
16
- }
3
+ import { NSButtonProps } from "./NSButton";
17
4
 
18
- export class NSButtonGreen extends React.Component<NSButtonGreenProps, NSButtonGreenState>
5
+ export function NSButtonGreen(props: NSButtonProps)
19
6
  {
20
- constructor(props: NSButtonGreenProps)
21
- {
22
- super(props);
23
- this.state = { title: props.title };
24
- }
25
- setTitle(title: string)
26
- {
27
- this.setState({ title });
28
- }
29
- override render()
30
- {
31
- return <button onClick={e => this.props.onClick(e)} className={Style.ns_button_green}>{this.state.title}</button>;
32
- }
7
+ if (!props.classList)
8
+ props.classList = [];
9
+ props.classList.push(Style.ns_button_green);
10
+ return <NSButton {...props} />;
33
11
  }
@@ -1,12 +1,4 @@
1
1
  .ns_button_red {
2
- width: 358px;
3
- max-width: 100%;
4
- height: 48px;
5
- border-radius: 8px;
6
2
  background-color: #FF3F3F;
7
- color: #fff;
8
- border: 0;
9
3
  box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
10
- font-size: 16px;
11
- font-weight: 400;
12
4
  }
@@ -1,33 +1,11 @@
1
- "use client";
1
+ import NSButton from "./NSButton";
2
+ import Style from "./NSButtonGreen.module.css";
3
+ import { NSButtonProps } from "./NSButton";
2
4
 
3
- import React from "react";
4
- import Style from "./NSButtonRed.module.css";
5
- import { BaseComponentProps } from "../props/BaseComponentProps";
6
-
7
- export interface NSButtonRedProps extends BaseComponentProps
8
- {
9
- title: string;
10
- onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
11
- }
12
-
13
- export interface NSButtonRedState
14
- {
15
- title: string;
16
- }
17
-
18
- export class NSButtonRed extends React.Component<NSButtonRedProps, NSButtonRedState>
5
+ export function NSButtonRed(props: NSButtonProps)
19
6
  {
20
- constructor(props: NSButtonRedProps)
21
- {
22
- super(props);
23
- this.state = { title: props.title };
24
- }
25
- setTitle(title: string)
26
- {
27
- this.setState({ title });
28
- }
29
- override render()
30
- {
31
- return <button onClick={e => this.props.onClick(e)} className={Style.ns_button_red}>{this.state.title}</button>;
32
- }
7
+ if (!props.classList)
8
+ props.classList = [];
9
+ props.classList.push(Style.ns_button_red);
10
+ return <NSButton {...props} />;
33
11
  }
@@ -1,75 +1,68 @@
1
- "use client";
2
- import { Component } from 'react';
3
1
  import Styles from './NSCard.module.css'
4
2
  import { NSLinkBlue } from './NSLinkBlue';
5
3
  import { LinkProps } from '../props/LinkProps';
6
4
  import { BaseComponentProps } from "../props/BaseComponentProps";
5
+ import { ImageProps } from '../props/ImageProps';
7
6
 
8
7
  export interface NSCardProps extends BaseComponentProps
9
8
  {
10
- id?: string | number;
11
9
  title?: string;
12
10
  headline?: {
13
11
  color?: string;
14
12
  text: string;
15
13
  }
16
14
  description?: string;
17
- image: {
18
- src: string;
19
- alt: string;
20
- };
21
- link?: LinkProps
15
+ image: ImageProps;
16
+ link?: LinkProps;
22
17
  }
23
18
 
24
- export class NSCard extends Component<NSCardProps>
19
+ export function NSCard(props: NSCardProps)
25
20
  {
26
- override render()
27
- {
28
- return (
29
- <>
30
- <article className={Styles.ns_card}>
31
- <div className={Styles.ns_card_detail_container}>
32
- <div className={Styles.ns_card_title_img}
33
- style={{
34
- alignItems: this.props.description ? "flex-start" : "center",
35
- }}
36
- >
37
- <img className={Styles.ns_card_img} src={this.props.image.src} alt={this.props.image.alt} />
38
- <span className={Styles.ns_card_headline} style={{ color: this.props.headline?.color }}> {this.props.headline?.text} </span>
39
- <h3 className={Styles.ns_card_title}>
40
- {this.props.title && this.props.title}
41
- </h3>
21
+ return (
22
+ <article id={props.id}
23
+ className={`${Styles.ns_card} ${props.classList?.join(" ")}`}
24
+ style={props.style}
25
+ >
26
+ <div className={Styles.ns_card_detail_container}>
27
+ <div className={Styles.ns_card_title_img}
28
+ style={{
29
+ alignItems: props.description ? "flex-start" : "center",
30
+ }}
31
+ >
32
+ <img className={Styles.ns_card_img} {...props.image} />
33
+ <span className={Styles.ns_card_headline} style={{ color: props.headline?.color }}> {props.headline?.text} </span>
34
+ <h3 className={Styles.ns_card_title}>
35
+ {props.title}
36
+ </h3>
37
+ </div>
38
+ {
39
+ props.description &&
40
+ <p className={Styles.ns_card_description}>
41
+ {props.description}
42
+ </p>
43
+ }
44
+ </div>
45
+ {
46
+ props.link ?
47
+ props.link.title ?
48
+ <div className={Styles.ns_card_link_container}>
49
+ <NSLinkBlue
50
+ title={props.link.title}
51
+ href={props.link.href}
52
+ target={props.link.target}
53
+ style={{ marginTop: "24px" }}
54
+ />
42
55
  </div>
43
-
44
- {this.props.description &&
45
- <p className={Styles.ns_card_description}>
46
- {this.props.description}
47
- </p>
48
- }
49
-
50
- </div>
51
- {this.props.link ?
52
- this.props.link.title ?
53
- <div className={Styles.ns_card_link_container}>
54
- <NSLinkBlue
55
- title={this.props.link.title}
56
- href={this.props.link.href}
57
- target={this.props.link.target}
58
- style={{ marginTop: "24px" }}
59
- />
60
- </div>
61
- :
62
- <div className={Styles.ns_card_link_container}>
63
- <NSLinkBlue
64
- href={this.props.link.href}
65
- target={this.props.link.target}
66
- />
67
- </div>
68
56
  :
69
- <></>
70
- }
71
- </article >
72
- </>
73
- );
74
- }
57
+ <div className={Styles.ns_card_link_container}>
58
+ <NSLinkBlue
59
+ href={props.link.href}
60
+ target={props.link.target}
61
+ />
62
+ </div>
63
+ :
64
+ <></>
65
+ }
66
+ </article >
67
+ );
75
68
  }
@@ -27,7 +27,7 @@
27
27
  .ns_copy_to_clipboard_title {
28
28
  font-size: 24px;
29
29
  font-weight: 700;
30
- color:rgba(20, 27, 92, 1);
30
+ color: rgba(20, 27, 92, 1);
31
31
  text-align: center;
32
32
  margin-bottom: 16px;
33
33
  }
@@ -1,6 +1,3 @@
1
- "use client";
2
-
3
- import React from "react";
4
1
  import Styles from "./NSCopyToClipboard.module.css";
5
2
  import IconInputString from '../assets/images/icon-input-copy.svg';
6
3
  import { BaseComponentProps } from "../props/BaseComponentProps";
@@ -11,41 +8,30 @@ export interface NSCopyToClipboardProps extends BaseComponentProps
11
8
  value: string;
12
9
  }
13
10
 
14
- export interface NSCopyToClipboardState
15
- { }
16
-
17
- export class NSCopyToClipboard extends React.Component<NSCopyToClipboardProps, NSCopyToClipboardState>
11
+ export function NSCopyToClipboard(props: NSCopyToClipboardProps)
18
12
  {
19
- constructor(props: NSCopyToClipboardProps)
20
- {
21
- super(props);
22
- this.copyToClipboard = this.copyToClipboard.bind(this);
23
- }
24
-
25
- copyToClipboard(): void
13
+ function copyToClipboard(): void
26
14
  {
27
15
  if (navigator.clipboard && navigator.clipboard.writeText)
28
- {
29
- navigator.clipboard.writeText(this.props.value);
30
- }
16
+ navigator.clipboard.writeText(props.value);
31
17
  }
32
- override render()
33
- {
34
- return (
35
- <div className={`${Styles.ns_copy_to_clipboard} p-2`}>
36
- <span className={Styles.ns_copy_to_clipboard_title}>{this.props.title}</span>
37
- <div className={Styles.ns_copy_to_clipboard_value}>
38
- <img
39
- className={Styles.ns_copy_to_clipboard_icon}
40
- src={IconInputString}
41
- alt="icon"
42
- width={16}
43
- height={16}
44
- onClick={this.copyToClipboard}
45
- />
46
- <span>{this.props.value}</span>
47
- </div>
18
+ return (
19
+ <div id={props.id}
20
+ className={`${Styles.ns_copy_to_clipboard} p-2 ${props.classList?.join(" ")}`}
21
+ style={props.style}
22
+ >
23
+ <span className={Styles.ns_copy_to_clipboard_title}>{props.title}</span>
24
+ <div className={Styles.ns_copy_to_clipboard_value}>
25
+ <img
26
+ className={Styles.ns_copy_to_clipboard_icon}
27
+ src={IconInputString}
28
+ alt="icon"
29
+ width={16}
30
+ height={16}
31
+ onClick={copyToClipboard}
32
+ />
33
+ <span>{props.value}</span>
48
34
  </div>
49
- );
50
- }
35
+ </div>
36
+ );
51
37
  }
@@ -65,7 +65,7 @@
65
65
  width: 30%;
66
66
  max-width: 310px;
67
67
  }
68
-
68
+
69
69
  .ns_entity_bar_image_title {
70
70
  font-size: 32px;
71
71
  line-height: 32px;
@@ -1,34 +1,28 @@
1
- "use client";
2
-
3
- import { Component } from 'react';
4
1
  import Styles from './NSEntityBar.module.css'
5
2
  import { BaseComponentProps } from "../props/BaseComponentProps";
3
+ import { ImageProps } from '../props/ImageProps';
6
4
 
7
5
  export interface NSEntityBarProps extends BaseComponentProps
8
6
  {
9
- id?: string | number;
10
7
  title: string;
11
8
  description: string;
12
- image: {
13
- src: string;
14
- alt: string;
15
- },
9
+ image: ImageProps;
16
10
  }
17
11
 
18
- export class NSEntityBar extends Component<NSEntityBarProps>
12
+ export function NSEntityBar(props: NSEntityBarProps)
19
13
  {
20
- override render()
21
- {
22
- return (
23
- <article className={Styles.ns_entity_bar_item}>
24
- <figure className={Styles.ns_entity_bar_image_container}>
25
- <img className={Styles.ns_entity_bar_image} src={this.props.image.src} alt={this.props.image.alt} width={310} height={240} />
26
- </figure>
27
- <div className={Styles.ns_entity_bar_details_container}>
28
- <h3 className={Styles.ns_entity_bar_image_title}> {this.props.title} </h3>
29
- <p className={Styles.ns_entity_bar_image_description} > {this.props.description} </p>
30
- </div>
31
- </article>
32
- );
33
- }
14
+ return (
15
+ <article id={props.id}
16
+ className={`${Styles.ns_entity_bar_item} ${props.classList?.join(" ")}`}
17
+ style={props.style}
18
+ >
19
+ <figure className={Styles.ns_entity_bar_image_container}>
20
+ <img className={Styles.ns_entity_bar_image} {...props.image} width={256} height={256} />
21
+ </figure>
22
+ <div className={Styles.ns_entity_bar_details_container}>
23
+ <h3 className={Styles.ns_entity_bar_image_title}> {props.title} </h3>
24
+ <p className={Styles.ns_entity_bar_image_description} > {props.description} </p>
25
+ </div>
26
+ </article>
27
+ );
34
28
  }