namirasoft-site-react 1.4.497 → 1.4.498
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 +20 -0
- package/dist/components/NSBoxBaseLayout.js +1 -2
- package/dist/components/NSBoxBaseLayout.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NSBox.module.css +20 -0
- package/src/components/NSBoxBaseLayout.tsx +2 -3
- package/dist/components/NSBoxBaseLayout.module.css +0 -18
- package/src/components/NSBoxBaseLayout.module.css +0 -18
|
@@ -49,10 +49,30 @@
|
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
51
|
gap: 0.5rem;
|
|
52
|
+
background-color: #efefef;
|
|
52
53
|
font-size: 1rem;
|
|
53
54
|
color: #8e8e8e;
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
.ns_nullable_label {
|
|
58
|
+
margin-top: 0.5rem;
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 0.25rem;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ns_nullable_label span {
|
|
66
|
+
font-size: 0.875rem;
|
|
67
|
+
line-height: 1rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ns_nullable_checkbox {
|
|
71
|
+
width: 1rem;
|
|
72
|
+
height: 1rem;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
}
|
|
75
|
+
|
|
56
76
|
@media only screen and (min-width: 480px) {
|
|
57
77
|
.ns_box_input {
|
|
58
78
|
max-width: inherit;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React, { createRef } from "react";
|
|
4
4
|
import StylesNSBox from "./NSBox.module.css";
|
|
5
|
-
import Styles from "./NSBoxBaseLayout.module.css";
|
|
6
5
|
import { NSLabelErrorNotifier } from "./NSLabelErrorNotifier";
|
|
7
6
|
import { NSLoading } from "./NSLoading";
|
|
8
7
|
import { NSMenuButton } from "./NSMenuButton";
|
|
@@ -53,7 +52,7 @@ export class NSBoxBaseLayout extends React.Component {
|
|
|
53
52
|
_jsx("div", { className: StylesNSBox.ns_box_disabled, children: _jsx(NSLoading, { small: true, hideDesciption: true, hideTitle: true, hideContainer: true }) }), !this.state.null && !this.props.loading && this.state.disabled &&
|
|
54
53
|
_jsx("div", { className: StylesNSBox.ns_box_disabled, children: value }), !this.state.null && !this.props.loading && !this.state.disabled &&
|
|
55
54
|
this.props.children, this.props.nullable &&
|
|
56
|
-
_jsxs("label", { className:
|
|
55
|
+
_jsxs("label", { className: StylesNSBox.ns_nullable_label, children: [_jsx("input", { ref: this.NullableCheckBox_Ref, type: "checkbox", className: StylesNSBox.ns_nullable_checkbox, checked: this.state.null, onChange: e => {
|
|
57
56
|
var _a, _b;
|
|
58
57
|
this.setNull(e.target.checked);
|
|
59
58
|
(_b = (_a = this.props).onNullableChanged) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxBaseLayout.js","sourceRoot":"","sources":["../../src/components/NSBoxBaseLayout.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAIpD,OAAO,WAAW,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"NSBoxBaseLayout.js","sourceRoot":"","sources":["../../src/components/NSBoxBaseLayout.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAIpD,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO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52
|
+
background-color: #efefef;
|
|
52
53
|
font-size: 1rem;
|
|
53
54
|
color: #8e8e8e;
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
.ns_nullable_label {
|
|
58
|
+
margin-top: 0.5rem;
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 0.25rem;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ns_nullable_label span {
|
|
66
|
+
font-size: 0.875rem;
|
|
67
|
+
line-height: 1rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ns_nullable_checkbox {
|
|
71
|
+
width: 1rem;
|
|
72
|
+
height: 1rem;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
}
|
|
75
|
+
|
|
56
76
|
@media only screen and (min-width: 480px) {
|
|
57
77
|
.ns_box_input {
|
|
58
78
|
max-width: inherit;
|
|
@@ -4,7 +4,6 @@ import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
|
4
4
|
import { IValidationProps } from "../props/IValidationProps";
|
|
5
5
|
import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
6
6
|
import StylesNSBox from "./NSBox.module.css";
|
|
7
|
-
import Styles from "./NSBoxBaseLayout.module.css";
|
|
8
7
|
import { NSInfoProps } from "./NSInfo";
|
|
9
8
|
import { NSLabelErrorNotifier } from "./NSLabelErrorNotifier";
|
|
10
9
|
import { NSLoading } from "./NSLoading";
|
|
@@ -136,11 +135,11 @@ export class NSBoxBaseLayout extends React.Component<NSBoxBaseLayoutProps, NSBox
|
|
|
136
135
|
}
|
|
137
136
|
{
|
|
138
137
|
this.props.nullable &&
|
|
139
|
-
<label className={
|
|
138
|
+
<label className={StylesNSBox.ns_nullable_label}>
|
|
140
139
|
<input
|
|
141
140
|
ref={this.NullableCheckBox_Ref}
|
|
142
141
|
type="checkbox"
|
|
143
|
-
className={
|
|
142
|
+
className={StylesNSBox.ns_nullable_checkbox}
|
|
144
143
|
checked={this.state.null}
|
|
145
144
|
onChange={e =>
|
|
146
145
|
{
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.ns_label {
|
|
2
|
-
margin-top: 0.5rem;
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
gap: 0.25rem;
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.ns_label span {
|
|
10
|
-
font-size: 0.875rem;
|
|
11
|
-
line-height: 1rem;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.ns_checkbox {
|
|
15
|
-
width: 1rem;
|
|
16
|
-
height: 1rem;
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.ns_label {
|
|
2
|
-
margin-top: 0.5rem;
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
gap: 0.25rem;
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.ns_label span {
|
|
10
|
-
font-size: 0.875rem;
|
|
11
|
-
line-height: 1rem;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.ns_checkbox {
|
|
15
|
-
width: 1rem;
|
|
16
|
-
height: 1rem;
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
}
|