@uncinc/uncinc-react-kitchen-sink 2.10.0 → 2.10.1
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.
|
@@ -92,6 +92,8 @@ var DatePickerRange = function DatePickerRange(props) {
|
|
|
92
92
|
touched: isTouched,
|
|
93
93
|
error: error,
|
|
94
94
|
displayRequiredIndicator: displayRequiredIndicator,
|
|
95
|
+
errorId: errorId,
|
|
96
|
+
descriptionId: descriptionId,
|
|
95
97
|
includeFieldSet: includeFieldSet
|
|
96
98
|
}, /*#__PURE__*/React.createElement(Field, {
|
|
97
99
|
name: fieldName,
|
|
@@ -106,7 +106,7 @@ var RadioButtons = function RadioButtons(props) {
|
|
|
106
106
|
displayRequiredIndicator = _useExtendedFormikCon.displayRequiredIndicator;
|
|
107
107
|
var isTouched = touched[fieldName];
|
|
108
108
|
var error = errors[fieldName];
|
|
109
|
-
var errorId = "".concat(props.fieldName, "--
|
|
109
|
+
var errorId = "".concat(props.fieldName, "--error");
|
|
110
110
|
var descriptionId = "".concat(props.fieldName, "--description");
|
|
111
111
|
var handleValidation = function handleValidation(value) {
|
|
112
112
|
if (validation) {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export default WysiwygField;
|
|
2
|
-
declare function WysiwygField({ html,
|
|
2
|
+
declare function WysiwygField({ html, customElementHandler, className, ...props }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
html: any;
|
|
5
|
-
id?: string | undefined;
|
|
6
5
|
customElementHandler?: (() => void) | undefined;
|
|
7
6
|
className?: string | undefined;
|
|
8
7
|
}): React.JSX.Element;
|
|
@@ -18,7 +17,7 @@ declare namespace WysiwygField {
|
|
|
18
17
|
export { customElementHandler_1 as customElementHandler };
|
|
19
18
|
let className_1: string;
|
|
20
19
|
export { className_1 as className };
|
|
21
|
-
let id_1:
|
|
20
|
+
let id_1: null;
|
|
22
21
|
export { id_1 as id };
|
|
23
22
|
}
|
|
24
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["html", "
|
|
1
|
+
var _excluded = ["html", "customElementHandler", "className"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -9,8 +9,6 @@ import c from 'classnames';
|
|
|
9
9
|
import Button from '../Button';
|
|
10
10
|
var WysiwygField = function WysiwygField(_ref) {
|
|
11
11
|
var html = _ref.html,
|
|
12
|
-
_ref$id = _ref.id,
|
|
13
|
-
id = _ref$id === void 0 ? '' : _ref$id,
|
|
14
12
|
_ref$customElementHan = _ref.customElementHandler,
|
|
15
13
|
customElementHandler = _ref$customElementHan === void 0 ? function () {} : _ref$customElementHan,
|
|
16
14
|
_ref$className = _ref.className,
|
|
@@ -48,7 +46,6 @@ var WysiwygField = function WysiwygField(_ref) {
|
|
|
48
46
|
}
|
|
49
47
|
});
|
|
50
48
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
51
|
-
id: id,
|
|
52
49
|
className: classes
|
|
53
50
|
}, props), parsedHtml);
|
|
54
51
|
};
|
|
@@ -61,6 +58,6 @@ WysiwygField.propTypes = {
|
|
|
61
58
|
WysiwygField.defaultProps = {
|
|
62
59
|
customElementHandler: function customElementHandler() {},
|
|
63
60
|
className: '',
|
|
64
|
-
id:
|
|
61
|
+
id: null
|
|
65
62
|
};
|
|
66
63
|
export default WysiwygField;
|