@transferwise/components 45.25.0 → 45.25.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.
@@ -2900,6 +2900,8 @@ const INITIAL_DEFAULT_STATE = {
2900
2900
  day: null
2901
2901
  };
2902
2902
  const DateInput = ({
2903
+ 'aria-labelledby': ariaLabelledBy,
2904
+ 'aria-label': ariaLabel,
2903
2905
  disabled,
2904
2906
  size,
2905
2907
  value,
@@ -3087,6 +3089,8 @@ const DateInput = ({
3087
3089
  return /*#__PURE__*/jsx("div", {
3088
3090
  className: "tw-date",
3089
3091
  id: id,
3092
+ "aria-labelledby": ariaLabelledBy,
3093
+ "aria-label": ariaLabel,
3090
3094
  onFocus: event => shouldPropagateOnFocus(event) ? onFocus && onFocus() : event.stopPropagation(),
3091
3095
  onBlur: event => shouldPropagateOnBlur(event) ? onBlur && onBlur() : event.stopPropagation(),
3092
3096
  children: /*#__PURE__*/jsxs("div", {
@@ -3169,6 +3173,8 @@ function shouldPropagateOnBlur({
3169
3173
  return blurElementParent !== focusElementParent;
3170
3174
  }
3171
3175
  DateInput.propTypes = {
3176
+ 'aria-label': PropTypes.string,
3177
+ 'aria-labelledby': PropTypes.string,
3172
3178
  disabled: PropTypes.bool,
3173
3179
  size: PropTypes.oneOf(['sm', 'md', 'lg']),
3174
3180
  value: PropTypes.oneOfType([PropTypes.string, PropTypes.instanceOf(Date)]),