@ornikar/kitt-universal 13.3.2 → 13.4.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.
@@ -3815,7 +3815,8 @@ function getCurrentInternalForcedState$1(_ref) {
3815
3815
  return 'default';
3816
3816
  }
3817
3817
  var InputPart = /*#__PURE__*/forwardRef(function (_ref2, ref) {
3818
- var value = _ref2.value,
3818
+ var id = _ref2.id,
3819
+ value = _ref2.value,
3819
3820
  placeholder = _ref2.placeholder,
3820
3821
  disabled = _ref2.disabled,
3821
3822
  isFocusedInternal = _ref2.isFocusedInternal,
@@ -3827,6 +3828,7 @@ var InputPart = /*#__PURE__*/forwardRef(function (_ref2, ref) {
3827
3828
  onSubmitEditing = _ref2.onSubmitEditing;
3828
3829
  return /*#__PURE__*/jsx(InputText, {
3829
3830
  ref: ref,
3831
+ id: id,
3830
3832
  internalForceState: getCurrentInternalForcedState$1({
3831
3833
  isDisabled: disabled,
3832
3834
  isHoveredInternal: isHoveredInternal,
@@ -3857,11 +3859,11 @@ function PartContainer(_ref) {
3857
3859
  });
3858
3860
  }
3859
3861
 
3860
- var _excluded$m = ["value", "testID", "id", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "returnKeyType", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
3862
+ var _excluded$m = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "returnKeyType", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
3861
3863
  var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
3862
- var value = _ref.value,
3864
+ var id = _ref.id,
3865
+ value = _ref.value,
3863
3866
  testID = _ref.testID,
3864
- id = _ref.id,
3865
3867
  stretch = _ref.stretch,
3866
3868
  placeholder = _ref.placeholder,
3867
3869
  minDate = _ref.minDate,
@@ -3928,7 +3930,8 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
3928
3930
  isStretch: stretch,
3929
3931
  width: "kitt.forms.datePicker.day.minWidth",
3930
3932
  children: /*#__PURE__*/jsx(InputPart, _objectSpread(_objectSpread({
3931
- ref: ref
3933
+ ref: ref,
3934
+ id: id ? "".concat(id, "-day") : undefined
3932
3935
  }, sharedInputPartProps), {}, {
3933
3936
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.day,
3934
3937
  value: state.displayedDay,
@@ -3958,7 +3961,8 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
3958
3961
  isStretch: stretch,
3959
3962
  width: "kitt.forms.datePicker.month.minWidth",
3960
3963
  children: /*#__PURE__*/jsx(InputPart, _objectSpread(_objectSpread({
3961
- ref: monthRef
3964
+ ref: monthRef,
3965
+ id: id ? "".concat(id, "-month") : undefined
3962
3966
  }, sharedInputPartProps), {}, {
3963
3967
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.month,
3964
3968
  value: state.displayedMonth,
@@ -3988,7 +3992,8 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
3988
3992
  isStretch: stretch,
3989
3993
  width: "kitt.forms.datePicker.year.minWidth",
3990
3994
  children: /*#__PURE__*/jsx(InputPart, _objectSpread(_objectSpread({
3991
- ref: yearRef
3995
+ ref: yearRef,
3996
+ id: id ? "".concat(id, "-year") : undefined
3992
3997
  }, sharedInputPartProps), {}, {
3993
3998
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.year,
3994
3999
  value: state.displayedYear,
@@ -4238,11 +4243,14 @@ function InputTag(_ref) {
4238
4243
  }
4239
4244
 
4240
4245
  function Label(_ref) {
4241
- var htmlFor = _ref.htmlFor,
4246
+ var id = _ref.id,
4247
+ htmlFor = _ref.htmlFor,
4242
4248
  children = _ref.children;
4243
4249
  return /*#__PURE__*/jsx(Typography.Text, {
4244
4250
  base: "body",
4251
+ nativeID: undefined,
4245
4252
  children: /*#__PURE__*/jsx("label", {
4253
+ id: id,
4246
4254
  htmlFor: htmlFor,
4247
4255
  children: children
4248
4256
  })