@experium/findy-form 1.3.13 → 1.3.15
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.
|
@@ -472,7 +472,7 @@ var File = /*#__PURE__*/function (_Component) {
|
|
|
472
472
|
open: this.state.visibleModal,
|
|
473
473
|
onClose: this.closeModal,
|
|
474
474
|
classNames: {
|
|
475
|
-
modal: 'modal',
|
|
475
|
+
modal: 'modal file-modal',
|
|
476
476
|
closeButton: 'modalCloseButton'
|
|
477
477
|
}
|
|
478
478
|
}, /*#__PURE__*/_react["default"].createElement(ModalContent, {
|
package/lib/styles/index.css
CHANGED
|
@@ -459,6 +459,15 @@ body .rc-checkbox:hover .rc-checkbox-inner, body .rc-checkbox-input:focus + .rc-
|
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
/* Modal */
|
|
462
|
+
.file-modal image, .file-modal video {
|
|
463
|
+
width: 100%;
|
|
464
|
+
}
|
|
465
|
+
@media screen and (max-width: 700px) {
|
|
466
|
+
.file-modal {
|
|
467
|
+
width: 100%;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
|
|
462
471
|
.pda-modal {
|
|
463
472
|
min-width: 50%;
|
|
464
473
|
}
|
package/lib/utils/validation.js
CHANGED
|
@@ -90,7 +90,7 @@ var validateLink = function validateLink(field, values) {
|
|
|
90
90
|
return false;
|
|
91
91
|
} else {
|
|
92
92
|
var linkedValue = (0, _ramda.path)((0, _ramda.split)('.', "".concat(linkField)), values);
|
|
93
|
-
return linkValue === linkedValue;
|
|
93
|
+
return linkValue === linkedValue ? field.required : false;
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
|
package/package.json
CHANGED
package/src/styles/index.css
CHANGED
|
@@ -128,6 +128,15 @@ body .rc-checkbox:hover .rc-checkbox-inner, body .rc-checkbox-input:focus + .rc-
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
/* Modal */
|
|
131
|
+
.file-modal image, .file-modal video {
|
|
132
|
+
width: 100%;
|
|
133
|
+
}
|
|
134
|
+
@media screen and (max-width: 700px) {
|
|
135
|
+
.file-modal {
|
|
136
|
+
width: 100%;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
131
140
|
.pda-modal {
|
|
132
141
|
min-width: 50%;
|
|
133
142
|
}
|
package/src/utils/validation.js
CHANGED