namirasoft-site-react 1.3.154 → 1.3.156
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/NSBox.module.css +3 -3
- package/dist/components/NSBoxEnum.d.ts +1 -0
- package/dist/components/NSBoxEnum.js +1 -1
- package/dist/components/NSBoxEnum.js.map +1 -1
- package/dist/components/NSBoxEnum.module.css +1 -4
- package/package.json +2 -2
- package/src/components/NSBox.module.css +3 -3
- package/src/components/NSBoxEnum.module.css +1 -4
- package/src/components/NSBoxEnum.tsx +2 -1
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
color: #141B5C;
|
|
6
6
|
position: relative;
|
|
7
7
|
justify-content: center;
|
|
8
|
-
width:
|
|
9
|
-
max-width:
|
|
8
|
+
width: 272px;
|
|
9
|
+
max-width: 100%;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.ns_input_parent img {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
font-weight: 400;
|
|
38
38
|
border: 1px solid rgba(0, 0, 0, 1) !important;
|
|
39
39
|
height: 48px;
|
|
40
|
-
width:
|
|
40
|
+
width: 272px
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.ns_input li {
|
|
@@ -56,7 +56,7 @@ export class NSBoxEnum extends React.Component {
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
var _a;
|
|
59
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent}`, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx(Select, { mode: this.props.multiple ? "multiple" : undefined, style: { width: '100%' }, className: Styles.ns_input_select, placeholder: (_a = this.props.placeHolder) !== null && _a !== void 0 ? _a : "Combo Box", onChange: this.handleChange, optionLabelProp: "label", options: this.props.options, optionRender: (option) => (_jsx(Space, { className: Styles.ns_input_select_option, children: option.data.desc })), suffixIcon: _jsx("img", { src: IconSelectBox, alt: "SelectBox Icon" }) })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error })] }));
|
|
59
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} ${this.props.customClass}`, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx(Select, { mode: this.props.multiple ? "multiple" : undefined, style: { width: '100%' }, className: Styles.ns_input_select, placeholder: (_a = this.props.placeHolder) !== null && _a !== void 0 ? _a : "Combo Box", onChange: this.handleChange, optionLabelProp: "label", options: this.props.options, optionRender: (option) => (_jsx(Space, { className: Styles.ns_input_select_option, children: option.data.desc })), suffixIcon: _jsx("img", { src: IconSelectBox, alt: "SelectBox Icon" }) })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error })] }));
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
//# sourceMappingURL=NSBoxEnum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxEnum.js","sourceRoot":"","sources":["../../src/components/NSBoxEnum.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,aAAa,MAAM,sCAAsC,CAAC;AAGjE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"NSBoxEnum.js","sourceRoot":"","sources":["../../src/components/NSBoxEnum.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAC5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CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EAClD,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EACxB,SAAS,EAAE,MAAM,CAAC,eAAe,EACjC,WAAW,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,WAAW,mCAAI,WAAW,EAClD,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,eAAe,EAAC,OAAO,EACvB,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,EAC3B,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CACzB,KAAC,KAAK,IAAC,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC7C,MAAM,CAAC,IAAI,CAAC,IAAI,GACV,CACR,EACD,UAAU,EAAE,cAAK,GAAG,EAAE,aAAa,EAAE,GAAG,EAAC,gBAAgB,GAAG,GAC3D,IACG,EACN,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,IAC7C,CACH,CAAC;IACH,CAAC;CACD"}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
height: 48px;
|
|
9
9
|
border: 1px solid #000 !important;
|
|
10
10
|
border-radius: 8px;
|
|
11
|
+
overflow: hidden;
|
|
11
12
|
width: 100% !important;
|
|
12
13
|
}
|
|
13
14
|
|
|
@@ -35,8 +36,4 @@
|
|
|
35
36
|
.ns_input_parent {
|
|
36
37
|
width: 272px;
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
-
.ns_input_select {
|
|
40
|
-
width: 272px !important;
|
|
41
|
-
}
|
|
42
39
|
}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.3.
|
|
11
|
+
"version": "1.3.156",
|
|
12
12
|
"author": "Amir Abolhasani, Alireza Esmaeeli, Sepideh Mazloumi, Hooman Shashaeh",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"copyfiles": "^2.4.1",
|
|
30
30
|
"link-react": "^3.0.0",
|
|
31
31
|
"namirasoft-api-link": "^1.3.10",
|
|
32
|
-
"namirasoft-core": "^1.3.
|
|
32
|
+
"namirasoft-core": "^1.3.36",
|
|
33
33
|
"path-browserify": "^1.0.1",
|
|
34
34
|
"react": "^18.3.1",
|
|
35
35
|
"react-app-rewired": "^2.2.1",
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
color: #141B5C;
|
|
6
6
|
position: relative;
|
|
7
7
|
justify-content: center;
|
|
8
|
-
width:
|
|
9
|
-
max-width:
|
|
8
|
+
width: 272px;
|
|
9
|
+
max-width: 100%;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.ns_input_parent img {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
font-weight: 400;
|
|
38
38
|
border: 1px solid rgba(0, 0, 0, 1) !important;
|
|
39
39
|
height: 48px;
|
|
40
|
-
width:
|
|
40
|
+
width: 272px
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.ns_input li {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
height: 48px;
|
|
9
9
|
border: 1px solid #000 !important;
|
|
10
10
|
border-radius: 8px;
|
|
11
|
+
overflow: hidden;
|
|
11
12
|
width: 100% !important;
|
|
12
13
|
}
|
|
13
14
|
|
|
@@ -35,8 +36,4 @@
|
|
|
35
36
|
.ns_input_parent {
|
|
36
37
|
width: 272px;
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
-
.ns_input_select {
|
|
40
|
-
width: 272px !important;
|
|
41
|
-
}
|
|
42
39
|
}
|
|
@@ -22,6 +22,7 @@ export interface INSBoxEnumProps extends IBaseComponentProps, IValidationProps
|
|
|
22
22
|
options: INSBoxEnumOption[];
|
|
23
23
|
multiple: boolean;
|
|
24
24
|
placeHolder?: string;
|
|
25
|
+
customClass?: string;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
export interface INSBoxEnumState
|
|
@@ -97,7 +98,7 @@ export class NSBoxEnum extends React.Component<INSBoxEnumProps, INSBoxEnumState>
|
|
|
97
98
|
{
|
|
98
99
|
return (
|
|
99
100
|
<>
|
|
100
|
-
<div className={`${Styles.ns_input_parent}`}>
|
|
101
|
+
<div className={`${Styles.ns_input_parent} ${this.props.customClass}`}>
|
|
101
102
|
<span className={Styles.ns_input_title}> {this.props.required && <span style={{ color: "red" }} >*</span>} {this.props.title} </span>
|
|
102
103
|
<Select
|
|
103
104
|
mode={this.props.multiple ? "multiple" : undefined}
|