namirasoft-site-react 1.4.215 → 1.4.216

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,6 +3,7 @@ import { ReactNode } from "react";
3
3
  import { IBaseComponentProps } from '../props/IBaseComponentProps';
4
4
  export interface NSLabelProps extends IBaseComponentProps {
5
5
  title: string;
6
+ desciption?: string;
6
7
  children?: ReactNode;
7
8
  }
8
9
  export interface NSLabelState {
@@ -5,7 +5,9 @@ import React from "react";
5
5
  export class NSLabel extends React.Component {
6
6
  render() {
7
7
  var _a, _b;
8
- return (_jsxs("div", { id: this.props.id, className: `${Styles.ns_label_item} ${(_b = (_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")) !== null && _b !== void 0 ? _b : ""}`, style: this.props.style, children: [_jsx("span", { className: `${Styles.ns_label_title} ns_font_16_bold`, children: this.props.title }), this.props.children && _jsx(_Fragment, { children: _jsx("div", { children: this.props.children }) })] }));
8
+ return (_jsxs("div", { id: this.props.id, className: `${Styles.ns_label_item} ${(_b = (_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")) !== null && _b !== void 0 ? _b : ""}`, style: this.props.style, children: [_jsx("span", { className: `${Styles.ns_label_title} ns_font_16_bold`, children: this.props.title }), this.props.desciption &&
9
+ _jsx("div", { children: _jsx("span", { className: `${Styles.ns_label_desciption}`, children: this.props.desciption }) }), this.props.children &&
10
+ _jsx(_Fragment, { children: _jsx("div", { children: this.props.children }) })] }));
9
11
  }
10
12
  }
11
13
  //# sourceMappingURL=NSLabel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSLabel.js","sourceRoot":"","sources":["../../src/components/NSLabel.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,sBAAsB,CAAA;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,OAAO,OAAQ,SAAQ,KAAK,CAAC,SAAqC;IAE3D,MAAM;;Q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IAAI,CAAC,KAAK,CAAC,QAAQ;oBACnB,4BACI,wBACK,IAAI,CAAC,KAAK,CAAC,QAAQ,GAClB,GACP,IAEJ,CACV,CAAC;IACN,CAAC;CACJ"}
@@ -8,6 +8,12 @@
8
8
  align-content: center;
9
9
  }
10
10
 
11
+ .ns_label_desciption {
12
+ color: hsla(234, 64%, 22%, 1);
13
+ font-size: 16px;
14
+ padding: 0px;
15
+ margin: 0px;
16
+ }
11
17
 
12
18
  .ns_label_item {
13
19
  padding: 8px;
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import Styles from './NSLine.module.css';
3
3
  export function NSLine(props) {
4
4
  var _a, _b;
5
- return (_jsx("div", { style: props.style, className: `${Styles.ns_line_container} `, children: _jsx("hr", { className: `${Styles.ns_line} ${(_b = (_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")) !== null && _b !== void 0 ? _b : ""}` }) }));
5
+ return (_jsx("div", { id: props.id, style: props.style, className: `${Styles.ns_line_container} `, children: _jsx("hr", { className: `${Styles.ns_line} ${(_b = (_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")) !== null && _b !== void 0 ? _b : ""}` }) }));
6
6
  }
7
7
  //# sourceMappingURL=NSLine.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSLine.js","sourceRoot":"","sources":["../../src/components/NSLine.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAKzC,MAAM,UAAU,MAAM,CAAC,KAAkB;;IAExC,OAAO,CACN,cAAK,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,iBAAiB,GAAG,YACjE,aAAI,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,IAAI,MAAA,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,mCAAI,EAAE,EAAE,GAAI,GACrE,CACN,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"NSLine.js","sourceRoot":"","sources":["../../src/components/NSLine.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAKzC,MAAM,UAAU,MAAM,CAAC,KAAkB;;IAExC,OAAO,CACN,cAAK,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,iBAAiB,GAAG,YAC/E,aAAI,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,IAAI,MAAA,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,mCAAI,EAAE,EAAE,GAAI,GACrE,CACN,CAAC;AACH,CAAC"}
@@ -9,6 +9,8 @@
9
9
 
10
10
  .ns_line {
11
11
  width: 80%;
12
- height: 2px;
12
+ margin: 0;
13
+ padding: 0;
14
+ height: 3px;
13
15
  background: linear-gradient(90deg, #b0b0b0 0%, hsla(0, 0%, 0%, 1) 50%, #b0b0b0 100%);
14
16
  }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.215",
11
+ "version": "1.4.216",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -8,6 +8,12 @@
8
8
  align-content: center;
9
9
  }
10
10
 
11
+ .ns_label_desciption {
12
+ color: hsla(234, 64%, 22%, 1);
13
+ font-size: 16px;
14
+ padding: 0px;
15
+ margin: 0px;
16
+ }
11
17
 
12
18
  .ns_label_item {
13
19
  padding: 8px;
@@ -8,6 +8,7 @@ import { IBaseComponentProps } from '../props/IBaseComponentProps';
8
8
  export interface NSLabelProps extends IBaseComponentProps
9
9
  {
10
10
  title: string;
11
+ desciption?: string;
11
12
  children?: ReactNode;
12
13
  }
13
14
 
@@ -20,15 +21,27 @@ export class NSLabel extends React.Component<NSLabelProps, NSLabelState>
20
21
  {
21
22
  return (
22
23
  <div id={this.props.id} className={`${Styles.ns_label_item} ${this.props.classList?.join(" ") ?? ""}`} style={this.props.style}>
23
- <span className={`${Styles.ns_label_title} ns_font_16_bold`}>{this.props.title}</span>
24
+ <span className={`${Styles.ns_label_title} ns_font_16_bold`}>
25
+ {this.props.title}
26
+ </span>
24
27
  {
25
- this.props.children && <>
28
+ this.props.desciption &&
29
+ <div>
30
+ <span className={`${Styles.ns_label_desciption}`}>
31
+ {this.props.desciption}
32
+ </span>
33
+ </div>
34
+ }
35
+ {
36
+
37
+ this.props.children &&
38
+ <>
26
39
  <div>
27
40
  {this.props.children}
28
41
  </div>
29
42
  </>
30
43
  }
31
- </div>
44
+ </div >
32
45
  );
33
46
  }
34
47
  }
@@ -9,6 +9,8 @@
9
9
 
10
10
  .ns_line {
11
11
  width: 80%;
12
- height: 2px;
12
+ margin: 0;
13
+ padding: 0;
14
+ height: 3px;
13
15
  background: linear-gradient(90deg, #b0b0b0 0%, hsla(0, 0%, 0%, 1) 50%, #b0b0b0 100%);
14
16
  }
@@ -7,7 +7,7 @@ export interface NSLineProps extends IBaseComponentProps
7
7
  export function NSLine(props: NSLineProps)
8
8
  {
9
9
  return (
10
- <div style={props.style} className={`${Styles.ns_line_container} `} >
10
+ <div id={props.id} style={props.style} className={`${Styles.ns_line_container} `} >
11
11
  <hr className={`${Styles.ns_line} ${props.classList?.join(" ") ?? ""}`} />
12
12
  </div>
13
13
  );