namirasoft-account-react 1.3.166 → 1.3.167
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/NSAProductListModal.js +6 -1
- package/dist/components/NSAProductListModal.js.map +1 -1
- package/dist/components/NSAProductListModal.module.css +3 -0
- package/package.json +1 -1
- package/src/components/NSAProductListModal.module.css +3 -0
- package/src/components/NSAProductListModal.tsx +18 -0
|
@@ -3,6 +3,8 @@ import { Component, createRef } from 'react';
|
|
|
3
3
|
import Styles from './NSAProductListModal.module.css';
|
|
4
4
|
import { NamirasoftAPIProductServer } from 'namirasoft-api-product';
|
|
5
5
|
import { useEffect, useState } from 'react';
|
|
6
|
+
import CloseToast from '../assets/images/icon-close.png';
|
|
7
|
+
import { NSBoxString } from "namirasoft-site-react";
|
|
6
8
|
function ProductName() {
|
|
7
9
|
const [state, setState] = useState({ products: [] });
|
|
8
10
|
useEffect(() => {
|
|
@@ -31,7 +33,10 @@ export class NSAProductListModal extends Component {
|
|
|
31
33
|
this.props.onClose();
|
|
32
34
|
}
|
|
33
35
|
render() {
|
|
34
|
-
return (_jsxs(_Fragment, { children: [_jsx("div", { className: Styles.nsa_product_container, ref: this.toastRef, children:
|
|
36
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: Styles.nsa_product_container, ref: this.toastRef, children: _jsxs("div", { className: Styles.nsa_product_group, children: [_jsx("div", { className: 'd-flex w-100 justify-content-end px-4', children: _jsx("img", { src: CloseToast, alt: "Close", width: 18, height: 18, onClick: (e) => {
|
|
37
|
+
e.stopPropagation();
|
|
38
|
+
this.props.onClose();
|
|
39
|
+
}, className: Styles.nsa_close_icon }) }), _jsx(NSBoxString, { title: 'Search', onClicked: () => { }, required: false }), _jsx(ProductName, {})] }) }), _jsx("div", { className: Styles.nsa_toast_background })] }));
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
export default NSAProductListModal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSAProductListModal.js","sourceRoot":"","sources":["../../src/components/NSAProductListModal.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,MAAM,MAAM,kCAAkC,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAkB,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NSAProductListModal.js","sourceRoot":"","sources":["../../src/components/NSAProductListModal.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,MAAM,MAAM,kCAAkC,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAkB,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,UAAU,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAWpD,SAAS,WAAW;IAEhB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAsB,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;IAE1E,SAAS,CAAC,GAAG,EAAE;QAEX,IAAI,MAAM,GAAG,IAAI,0BAA0B,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC3D,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;YAEpD,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAExB,CAAC,EAAE,EAAE,CAAC,CAAC;IAE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AK,SAAS,EAAE,MAAM,CAAC,iBAAiB,aACpC,cAAK,SAAS,EAAC,uCAAuC,YAClD,cACI,GAAG,EAAE,UAAU,EACf,GAAG,EAAC,OAAO,EACX,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;wCAEX,CAAC,CAAC,eAAe,EAAE,CAAC;wCACpB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;oCACzB,CAAC,EACD,SAAS,EAAE,MAAM,CAAC,cAAc,GAClC,GACA,EAEN,KAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,SAAS,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,GAAI,EACrE,KAAC,WAAW,KAAG,IACb,GACJ,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,oBAAoB,GACrC,IACP,CACN,CAAC;IACN,CAAC;CACJ;AAED,eAAe,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,6 +2,8 @@ import React, { Component, createRef } from 'react';
|
|
|
2
2
|
import Styles from './NSAProductListModal.module.css';
|
|
3
3
|
import { NamirasoftAPIProductServer, ProductFullRow } from 'namirasoft-api-product';
|
|
4
4
|
import { useEffect, useState } from 'react';
|
|
5
|
+
import CloseToast from '../assets/images/icon-close.png';
|
|
6
|
+
import { NSBoxString } from "namirasoft-site-react";
|
|
5
7
|
|
|
6
8
|
export interface NSAProductListProps
|
|
7
9
|
{
|
|
@@ -71,6 +73,22 @@ export class NSAProductListModal extends Component<NSAProductListProps, NSAProdu
|
|
|
71
73
|
<>
|
|
72
74
|
<div className={Styles.nsa_product_container} ref={this.toastRef}>
|
|
73
75
|
<div className={Styles.nsa_product_group}>
|
|
76
|
+
<div className='d-flex w-100 justify-content-end px-4'>
|
|
77
|
+
<img
|
|
78
|
+
src={CloseToast}
|
|
79
|
+
alt="Close"
|
|
80
|
+
width={18}
|
|
81
|
+
height={18}
|
|
82
|
+
onClick={(e) =>
|
|
83
|
+
{
|
|
84
|
+
e.stopPropagation();
|
|
85
|
+
this.props.onClose();
|
|
86
|
+
}}
|
|
87
|
+
className={Styles.nsa_close_icon}
|
|
88
|
+
/>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<NSBoxString title='Search' onClicked={() => { }} required={false} />
|
|
74
92
|
<ProductName />
|
|
75
93
|
</div>
|
|
76
94
|
</div>
|