@sebgroup/green-react 3.28.2 → 3.28.4
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/package.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"name": "@sebgroup/green-react",
|
|
3
3
|
"main": "./src/index.js",
|
|
4
4
|
"module": "./src/index.js",
|
|
5
|
-
"version": "3.28.
|
|
5
|
+
"version": "3.28.4",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"react": "^17 || ^18 || ^19",
|
|
8
8
|
"react-dom": "^17 || ^18 || ^19"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@sebgroup/green-core": "^1.
|
|
11
|
+
"@sebgroup/green-core": "^1.79.0",
|
|
12
12
|
"@sebgroup/chlorophyll": "^3.6.16",
|
|
13
13
|
"@sebgroup/extract": "^3.0.3",
|
|
14
14
|
"@lit/react": "^1.0.2",
|
|
@@ -36,7 +36,7 @@ var Datepicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
36
36
|
var max = maxDate ? maxDate : new Date(new Date().getFullYear() + 10, 0, 1);
|
|
37
37
|
var onChangeHandler = function onChangeHandler(e) {
|
|
38
38
|
if (onChange) {
|
|
39
|
-
onChange(e.
|
|
39
|
+
onChange(e.target.value);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
var _ref = useRef(null);
|
|
@@ -71,12 +71,13 @@ var Input = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
71
71
|
if (onChangeInput) onChangeInput(formattedValue);
|
|
72
72
|
}, [formatter, setLocalValue, onChange, onChangeInput]);
|
|
73
73
|
var showSimpleInput = !label && !info && !expandableInfo;
|
|
74
|
-
var describedBy = classNames(ariaDescribedBy, _defineProperty(_defineProperty(
|
|
74
|
+
var describedBy = classNames(ariaDescribedBy, _defineProperty(_defineProperty({}, "".concat(uuid, "_info"), !showSimpleInput && info), "gds-expandable-info-".concat(uuid), !showSimpleInput && expandableInfo));
|
|
75
75
|
var inputClassName = classNames(className, _defineProperty({}, validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator), validator));
|
|
76
76
|
var input = jsx("input", Object.assign({
|
|
77
77
|
"aria-describedby": describedBy || undefined,
|
|
78
78
|
"aria-invalid": (validator === null || validator === void 0 ? void 0 : validator.indicator) === 'error',
|
|
79
79
|
"aria-required": required,
|
|
80
|
+
"aria-errormessage": (validator === null || validator === void 0 ? void 0 : validator.indicator) === 'error' ? "".concat(uuid, "_message") : undefined,
|
|
80
81
|
autoComplete: autoComplete,
|
|
81
82
|
className: inputClassName || undefined,
|
|
82
83
|
"data-testid": dataTestId,
|