namirasoft-site-react 1.3.283 → 1.3.284

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.
@@ -1,4 +1,5 @@
1
- export interface INSNoDataProps {
1
+ import { IBaseComponentProps } from '../props/IBaseComponentProps';
2
+ export interface INSNoDataProps extends IBaseComponentProps {
2
3
  lable?: string;
3
4
  }
4
5
  export declare function NSNoData(props: INSNoDataProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Styles from './NSNoData.module.css';
3
3
  export function NSNoData(props) {
4
- return (_jsxs("div", { className: Styles.ns_table_no_data, children: [_jsx("img", { src: 'https://static.namirasoft.com/image/concept/no_data/white.svg', alt: 'No Data', width: 96, height: 96 }), props.lable ? _jsx("h4", { id: 'lable', children: props.lable }) : _jsx("h4", { id: 'lable', children: "No Data" })] }));
4
+ var _a, _b;
5
+ return (_jsxs("div", { id: props.id, className: `${Styles.ns_table_no_data} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, children: [_jsx("img", { src: 'https://static.namirasoft.com/image/concept/no_data/white.svg', alt: 'No Data', width: 96, height: 96 }), _jsx("h4", { children: (_b = props.lable) !== null && _b !== void 0 ? _b : "No Data" })] }));
5
6
  }
6
7
  //# sourceMappingURL=NSNoData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSNoData.js","sourceRoot":"","sources":["../../src/components/NSNoData.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAM3C,MAAM,UAAU,QAAQ,CAAC,KAAqB;IAE7C,OAAO,CACN,eAAK,SAAS,EAAE,MAAM,CAAC,gBAAgB,aACtC,cACC,GAAG,EAAC,+DAA+D,EACnE,GAAG,EAAC,SAAS,EACb,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GAAI,EACd,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,aAAI,EAAE,EAAC,OAAO,YAAE,KAAK,CAAC,KAAK,GAAM,CAAC,CAAC,CAAC,aAAI,EAAE,EAAC,OAAO,wBAAa,IACzE,CACN,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"NSNoData.js","sourceRoot":"","sources":["../../src/components/NSNoData.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAQ3C,MAAM,UAAU,QAAQ,CAAC,KAAqB;;IAE7C,OAAO,CACN,eACC,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,SAAS,EAAE,GAAG,MAAM,CAAC,gBAAgB,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EACrE,KAAK,EAAE,KAAK,CAAC,KAAK,aAElB,cACC,GAAG,EAAC,+DAA+D,EACnE,GAAG,EAAC,SAAS,EACb,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GAAI,EACf,uBAAK,MAAA,KAAK,CAAC,KAAK,mCAAI,SAAS,GAAM,IAC9B,CACN,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.283",
11
+ "version": "1.3.284",
12
12
  "author": "Amir Abolhasani, Alireza Esmaeeli, Sepideh Mazloumi, Hooman Shashaeh",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -1,19 +1,25 @@
1
1
  import Styles from './NSNoData.module.css';
2
+ import { IBaseComponentProps } from '../props/IBaseComponentProps';
2
3
 
3
- export interface INSNoDataProps
4
+ export interface INSNoDataProps extends IBaseComponentProps
4
5
  {
5
6
  lable?: string;
6
7
  }
8
+
7
9
  export function NSNoData(props: INSNoDataProps)
8
10
  {
9
11
  return (
10
- <div className={Styles.ns_table_no_data}>
12
+ <div
13
+ id={props.id}
14
+ className={`${Styles.ns_table_no_data} ${props.classList?.join(" ")}`}
15
+ style={props.style}
16
+ >
11
17
  <img
12
18
  src='https://static.namirasoft.com/image/concept/no_data/white.svg'
13
19
  alt='No Data'
14
20
  width={96}
15
21
  height={96} />
16
- {props.lable ? <h4 id='lable'>{props.lable}</h4> : <h4 id='lable'>No Data</h4>}
22
+ <h4>{props.lable ?? "No Data"}</h4>
17
23
  </div>
18
24
  );
19
25
  }