@uncinc/uncinc-react-kitchen-sink 2.17.0 → 2.17.2
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/Form/GenericFormElement/index.js +1 -1
- package/dist/components/Form/Select/Input/index.js +2 -2
- package/dist/components/Form/Select/index.js +2 -2
- package/dist/components/GoogleConsentCookieBanner/index.js +1 -1
- package/dist/components/SkipNav/index.js +1 -1
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ var GenericFormElement = function GenericFormElement(props) {
|
|
|
22
22
|
_props$descriptionAbo = props.descriptionAboveInput,
|
|
23
23
|
descriptionAboveInput = _props$descriptionAbo === void 0 ? false : _props$descriptionAbo;
|
|
24
24
|
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
-
className: error ? "FormElement ".concat(className, " error") : "FormElement ".concat(className)
|
|
25
|
+
className: error && touched ? "FormElement ".concat(className, " error") : "FormElement ".concat(className)
|
|
26
26
|
}, title && !includeFieldSet && /*#__PURE__*/React.createElement("label", {
|
|
27
27
|
htmlFor: fieldName
|
|
28
28
|
}, title, !required && displayRequiredIndicator === 'optional' && /*#__PURE__*/React.createElement("span", {
|
|
@@ -97,7 +97,7 @@ var SelectInput = function SelectInput(props) {
|
|
|
97
97
|
value: selectedOption,
|
|
98
98
|
defaultValue: defaultValue,
|
|
99
99
|
disabled: disabled,
|
|
100
|
-
onChange: function onChange(e) {
|
|
100
|
+
onChange: function onChange(e, actionType) {
|
|
101
101
|
var value = '';
|
|
102
102
|
if (e) {
|
|
103
103
|
if (multiple) {
|
|
@@ -111,7 +111,7 @@ var SelectInput = function SelectInput(props) {
|
|
|
111
111
|
value = [];
|
|
112
112
|
}
|
|
113
113
|
if (_onChange) {
|
|
114
|
-
_onChange(value);
|
|
114
|
+
_onChange(value, actionType);
|
|
115
115
|
}
|
|
116
116
|
setFieldValue(fieldName, value);
|
|
117
117
|
},
|
|
@@ -57,11 +57,11 @@ var Select = function Select(props) {
|
|
|
57
57
|
isClearable: isClearable,
|
|
58
58
|
isTouched: isTouched,
|
|
59
59
|
required: required,
|
|
60
|
-
|
|
60
|
+
validation: validation,
|
|
61
61
|
error: error,
|
|
62
62
|
errorId: errorId,
|
|
63
63
|
onBlur: function onBlur() {
|
|
64
|
-
setFieldTouched(fieldName, true,
|
|
64
|
+
setFieldTouched(fieldName, true, true);
|
|
65
65
|
}
|
|
66
66
|
})));
|
|
67
67
|
};
|
|
@@ -302,7 +302,7 @@ var CookieCompliancePopup = function CookieCompliancePopup(props) {
|
|
|
302
302
|
return /*#__PURE__*/React.createElement("div", {
|
|
303
303
|
className: classes,
|
|
304
304
|
role: "region",
|
|
305
|
-
"aria-label": t('
|
|
305
|
+
"aria-label": t('cookies.banner_label')
|
|
306
306
|
}, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement("div", {
|
|
307
307
|
className: "GoogleConsentCookieBanner__content ".concat(manualChoiceVisible ? 'GoogleConsentCookieBanner__content--full-height' : '')
|
|
308
308
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -33,7 +33,7 @@ var SkipNav = function SkipNav(_ref) {
|
|
|
33
33
|
className: linkClasses
|
|
34
34
|
}, defaultContentText));
|
|
35
35
|
}
|
|
36
|
-
if (skipToSearch && searchRef && 'current' in searchRef
|
|
36
|
+
if (skipToSearch && searchRef && 'current' in searchRef) {
|
|
37
37
|
generatedLinks.push( /*#__PURE__*/React.createElement("button", {
|
|
38
38
|
onClick: function onClick() {
|
|
39
39
|
var _searchRef$current;
|