@vitality-ds/components 4.9.3 → 4.9.5

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.
@@ -11,9 +11,11 @@ function Label(_ref) {
11
11
  var content = _ref.content,
12
12
  htmlFor = _ref.htmlFor,
13
13
  required = _ref.required,
14
- hasError = _ref.hasError;
14
+ hasError = _ref.hasError,
15
+ id = _ref.id;
15
16
  return /*#__PURE__*/_react["default"].createElement(_styled.BaseLabel, {
16
- htmlFor: htmlFor
17
+ htmlFor: htmlFor,
18
+ id: id
17
19
  }, content, required && /*#__PURE__*/_react["default"].createElement(_styled.BaseLabelRequired, {
18
20
  hasError: hasError
19
21
  }, "*"));
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import type { LabelProps } from "./types";
3
- declare function Label({ content, htmlFor, required, hasError }: LabelProps): JSX.Element;
3
+ declare function Label({ content, htmlFor, required, hasError, id }: LabelProps): JSX.Element;
4
4
  export default Label;
@@ -4,9 +4,11 @@ function Label(_ref) {
4
4
  var content = _ref.content,
5
5
  htmlFor = _ref.htmlFor,
6
6
  required = _ref.required,
7
- hasError = _ref.hasError;
7
+ hasError = _ref.hasError,
8
+ id = _ref.id;
8
9
  return /*#__PURE__*/React.createElement(BaseLabel, {
9
- htmlFor: htmlFor
10
+ htmlFor: htmlFor,
11
+ id: id
10
12
  }, content, required && /*#__PURE__*/React.createElement(BaseLabelRequired, {
11
13
  hasError: hasError
12
14
  }, "*"));