namirasoft-site-react 1.3.196 → 1.3.198
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/App.js +11 -2
- package/dist/App.js.map +1 -1
- package/dist/components/NSBox.module.css +3 -30
- package/dist/components/NSBoxBoolean.js.map +1 -1
- package/dist/components/NSBoxDouble.js +1 -1
- package/dist/components/NSBoxDouble.js.map +1 -1
- package/dist/components/NSBoxDuration.js +1 -1
- package/dist/components/NSBoxDuration.js.map +1 -1
- package/dist/components/NSBoxEmail.js +1 -1
- package/dist/components/NSBoxEmail.js.map +1 -1
- package/dist/components/NSBoxIPV4.js +1 -1
- package/dist/components/NSBoxIPV4.js.map +1 -1
- package/dist/components/NSBoxIPV6.js +1 -1
- package/dist/components/NSBoxIPV6.js.map +1 -1
- package/dist/components/NSBoxInteger.js +1 -1
- package/dist/components/NSBoxInteger.js.map +1 -1
- package/dist/components/NSBoxLabel.d.ts +11 -0
- package/dist/components/NSBoxLabel.js +10 -0
- package/dist/components/NSBoxLabel.js.map +1 -0
- package/dist/components/NSBoxLabel.module.css +13 -0
- package/dist/components/NSBoxPassword.js +1 -1
- package/dist/components/NSBoxPassword.js.map +1 -1
- package/dist/components/NSBoxPhone.js +5 -2
- package/dist/components/NSBoxPhone.js.map +1 -1
- package/dist/components/NSBoxPrice.js +1 -1
- package/dist/components/NSBoxPrice.js.map +1 -1
- package/dist/components/NSBoxSearch.js +2 -1
- package/dist/components/NSBoxSearch.js.map +1 -1
- package/dist/components/NSBoxString.js +1 -1
- package/dist/components/NSBoxString.js.map +1 -1
- package/dist/components/NSBoxText.js +1 -1
- package/dist/components/NSBoxText.js.map +1 -1
- package/dist/components/NSBoxTextArea.js +5 -1
- package/dist/components/NSBoxTextArea.js.map +1 -1
- package/dist/components/NSBoxTextArea.module.css +6 -2
- package/dist/components/NSBoxTime.js +1 -1
- package/dist/components/NSBoxTime.js.map +1 -1
- package/dist/components/NSTabPage.module.css +4 -0
- package/package.json +1 -1
- package/src/App.css +5 -1
- package/src/App.tsx +25 -3
- package/src/components/NSBox.module.css +3 -30
- package/src/components/NSBoxBoolean.tsx +0 -1
- package/src/components/NSBoxDouble.tsx +2 -7
- package/src/components/NSBoxDuration.tsx +1 -7
- package/src/components/NSBoxEmail.tsx +4 -9
- package/src/components/NSBoxIPV4.tsx +1 -7
- package/src/components/NSBoxIPV6.tsx +1 -7
- package/src/components/NSBoxInteger.tsx +1 -7
- package/src/components/NSBoxLabel.module.css +13 -0
- package/src/components/NSBoxLabel.tsx +29 -0
- package/src/components/NSBoxPassword.tsx +1 -7
- package/src/components/NSBoxPhone.tsx +7 -10
- package/src/components/NSBoxPrice.tsx +1 -7
- package/src/components/NSBoxSearch.tsx +2 -8
- package/src/components/NSBoxString.tsx +2 -8
- package/src/components/NSBoxText.tsx +3 -8
- package/src/components/NSBoxTextArea.module.css +6 -2
- package/src/components/NSBoxTextArea.tsx +8 -11
- package/src/components/NSBoxTime.tsx +1 -7
- package/src/components/NSTabPage.module.css +4 -0
|
@@ -54,7 +54,7 @@ export class NSBoxTextArea extends React.Component<INSBoxTextAreaProps, INSBoxTe
|
|
|
54
54
|
{
|
|
55
55
|
this.setState({ error });
|
|
56
56
|
// throw new Error(error);
|
|
57
|
-
return '';
|
|
57
|
+
return '';
|
|
58
58
|
}
|
|
59
59
|
return this.state.value;
|
|
60
60
|
|
|
@@ -77,7 +77,7 @@ export class NSBoxTextArea extends React.Component<INSBoxTextAreaProps, INSBoxTe
|
|
|
77
77
|
{
|
|
78
78
|
return (
|
|
79
79
|
<>
|
|
80
|
-
<div className={`${Styles.ns_text_area_parent} ${this.props.classList?.join(" ")} ${this.state.isFullScreen ? Styles.ns_full_screen : ""}`} style={this.props.style}>
|
|
80
|
+
<div className={`${Styles.ns_text_area_parent} ${this.props.classList?.join(" ")} ${this.state.isFullScreen ? Styles.ns_full_screen : ""}`} style={this.props.style} onClick={this.state.isFullScreen ? ()=>{} : ()=>{}}>
|
|
81
81
|
<div className="d-flex justify-content-between align-items-center">
|
|
82
82
|
<span className={Styles.ns_input_title}>
|
|
83
83
|
{this.props.required && <span style={{ color: "red" }}>*</span>} {this.props.title}
|
|
@@ -102,16 +102,13 @@ export class NSBoxTextArea extends React.Component<INSBoxTextAreaProps, INSBoxTe
|
|
|
102
102
|
</div>
|
|
103
103
|
</div>
|
|
104
104
|
<div className={Styles.ns_text_area_container}>
|
|
105
|
-
<figure className={Styles.ns_text_area_icon_container}>
|
|
106
|
-
<img
|
|
107
|
-
src={IconInputString}
|
|
108
|
-
alt="text-area-icon"
|
|
109
|
-
width={24}
|
|
110
|
-
height={24}
|
|
111
|
-
/>
|
|
112
|
-
</figure>
|
|
113
105
|
<textarea
|
|
114
|
-
style={{
|
|
106
|
+
style={{
|
|
107
|
+
height: !this.props.rows ? "96px" : "",
|
|
108
|
+
background:
|
|
109
|
+
`url(${IconInputString}) white no-repeat scroll top right 16px `,
|
|
110
|
+
backgroundPositionY: "12px"
|
|
111
|
+
}}
|
|
115
112
|
cols={this.props.cols}
|
|
116
113
|
rows={this.props.rows}
|
|
117
114
|
id={this.props.id}
|
|
@@ -67,13 +67,6 @@ export class NSBoxTime extends React.Component<INSBoxTimeProps, INSBoxTimeState>
|
|
|
67
67
|
<>
|
|
68
68
|
<div className={`${Styles.ns_input_parent} ${this.props.classList?.join(" ")}`} style={this.props.style}>
|
|
69
69
|
<span className={Styles.ns_input_title}> {this.props.required && <span style={{ color: "red" }} >*</span>} {this.props.title} </span>
|
|
70
|
-
<img
|
|
71
|
-
className={Styles.ns_input_icon}
|
|
72
|
-
src={IconInputTime}
|
|
73
|
-
alt="Time Icon"
|
|
74
|
-
width={24}
|
|
75
|
-
height={24}
|
|
76
|
-
/>
|
|
77
70
|
<input
|
|
78
71
|
id={this.props.id}
|
|
79
72
|
value={this.state.value}
|
|
@@ -82,6 +75,7 @@ export class NSBoxTime extends React.Component<INSBoxTimeProps, INSBoxTimeState>
|
|
|
82
75
|
className={Styles.ns_input}
|
|
83
76
|
placeholder={this.props.placeholder}
|
|
84
77
|
step="2"
|
|
78
|
+
style={{ background: `url(${IconInputTime}) white no-repeat scroll center right 16px` }}
|
|
85
79
|
/>
|
|
86
80
|
</div>
|
|
87
81
|
<NSBoxErrorNotifier error={this.state.error} />
|