@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.
- package/build/index.esm.js +6 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +6 -0
- package/build/index.js.map +1 -1
- package/build/main.css +1 -1
- package/build/styles/header/Header.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/dateInput/DateInput.d.ts +2 -0
- package/build/types/dateInput/DateInput.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/body/Body.story.tsx +14 -2
- package/src/dateInput/DateInput.js +6 -0
- package/src/dateInput/DateInput.story.tsx +43 -1
- package/src/header/Header.css +1 -1
- package/src/header/Header.less +0 -5
- package/src/main.css +1 -1
package/build/index.esm.js
CHANGED
|
@@ -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)]),
|