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.
- package/dist/components/NSLabel.d.ts +1 -0
- package/dist/components/NSLabel.js +3 -1
- package/dist/components/NSLabel.js.map +1 -1
- package/dist/components/NSLabel.module.css +6 -0
- package/dist/components/NSLine.js +1 -1
- package/dist/components/NSLine.js.map +1 -1
- package/dist/components/NSLine.module.css +3 -1
- package/package.json +1 -1
- package/src/components/NSLabel.module.css +6 -0
- package/src/components/NSLabel.tsx +16 -3
- package/src/components/NSLine.module.css +3 -1
- package/src/components/NSLine.tsx +1 -1
|
@@ -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.
|
|
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;
|
|
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;AAc1B,MAAM,OAAO,OAAQ,SAAQ,KAAK,CAAC,SAAqC;IAE3D,MAAM;;QAEX,OAAO,CACH,eAAK,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,aAAa,IAAI,MAAA,MAAA,IAAI,CAAC,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,mCAAI,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,aAC1H,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,cAAc,kBAAkB,YACtD,IAAI,CAAC,KAAK,CAAC,KAAK,GACd,EAEH,IAAI,CAAC,KAAK,CAAC,UAAU;oBACrB,wBACI,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,mBAAmB,EAAE,YAC3C,IAAI,CAAC,KAAK,CAAC,UAAU,GACnB,GACL,EAIN,IAAI,CAAC,KAAK,CAAC,QAAQ;oBACnB,4BACI,wBACK,IAAI,CAAC,KAAK,CAAC,QAAQ,GAClB,GACP,IAEJ,CACV,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -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,
|
|
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"}
|
package/package.json
CHANGED
|
@@ -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`}>
|
|
24
|
+
<span className={`${Styles.ns_label_title} ns_font_16_bold`}>
|
|
25
|
+
{this.props.title}
|
|
26
|
+
</span>
|
|
24
27
|
{
|
|
25
|
-
this.props.
|
|
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
|
}
|
|
@@ -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
|
);
|