namirasoft-site-react 1.4.374 → 1.4.375

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.
@@ -2,11 +2,12 @@
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import Styles from './NSLabel.module.css';
4
4
  import React from "react";
5
+ import { StringFormatter } from '../main';
5
6
  export class NSLabel extends React.Component {
6
7
  render() {
7
8
  var _a, _b;
8
9
  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("div", { children: _jsx("span", { className: `${Styles.ns_label_desciption}`, children: StringFormatter.toHTML(this.props.desciption) }) }), this.props.children &&
10
11
  _jsx(_Fragment, { children: _jsx("div", { children: this.props.children }) })] }));
11
12
  }
12
13
  }
@@ -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;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,C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AK,CAAC,QAAQ;oBACnB,4BACI,wBACK,IAAI,CAAC,KAAK,CAAC,QAAQ,GAClB,GACP,IAEJ,CACV,CAAC;IACN,CAAC;CACJ"}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.374",
11
+ "version": "1.4.375",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -4,6 +4,7 @@ import Styles from './NSLabel.module.css'
4
4
  import React from "react";
5
5
  import { ReactNode } from "react";
6
6
  import { IBaseComponentProps } from '../props/IBaseComponentProps';
7
+ import { StringFormatter } from '../main';
7
8
 
8
9
  export interface NSLabelProps extends IBaseComponentProps
9
10
  {
@@ -28,7 +29,7 @@ export class NSLabel extends React.Component<NSLabelProps, NSLabelState>
28
29
  this.props.desciption &&
29
30
  <div>
30
31
  <span className={`${Styles.ns_label_desciption}`}>
31
- {this.props.desciption}
32
+ {StringFormatter.toHTML(this.props.desciption)}
32
33
  </span>
33
34
  </div>
34
35
  }