@transferwise/components 46.0.8 → 46.1.0
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 +3 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +3 -2
- package/build/index.js.map +1 -1
- package/build/types/dateLookup/DateLookup.d.ts +1 -1
- package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/dateLookup/DateLookup.js +2 -1
- package/src/dateLookup/DateLookup.proptypes.spec.js +28 -0
- package/src/typeahead/typeaheadOption/TypeaheadOption.js +3 -1
package/build/index.esm.js
CHANGED
|
@@ -4424,7 +4424,7 @@ class DateLookup extends PureComponent {
|
|
|
4424
4424
|
}
|
|
4425
4425
|
}
|
|
4426
4426
|
DateLookup.propTypes = {
|
|
4427
|
-
value: PropTypes.instanceOf(Date)
|
|
4427
|
+
value: PropTypes.instanceOf(Date),
|
|
4428
4428
|
min: PropTypes.instanceOf(Date),
|
|
4429
4429
|
max: PropTypes.instanceOf(Date),
|
|
4430
4430
|
size: PropTypes.oneOf(['sm', 'md', 'lg']),
|
|
@@ -4438,6 +4438,7 @@ DateLookup.propTypes = {
|
|
|
4438
4438
|
clearable: PropTypes.bool
|
|
4439
4439
|
};
|
|
4440
4440
|
DateLookup.defaultProps = {
|
|
4441
|
+
value: null,
|
|
4441
4442
|
min: null,
|
|
4442
4443
|
max: null,
|
|
4443
4444
|
size: Size.MEDIUM,
|
|
@@ -12516,7 +12517,7 @@ const Option = props => {
|
|
|
12516
12517
|
children: note
|
|
12517
12518
|
}), secondary && /*#__PURE__*/jsx("span", {
|
|
12518
12519
|
className: "np-text-body-default text-ellipsis",
|
|
12519
|
-
children: secondary
|
|
12520
|
+
children: hightlight(secondary, query)
|
|
12520
12521
|
})]
|
|
12521
12522
|
})
|
|
12522
12523
|
});
|