@transferwise/components 46.0.7 → 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 +9 -3
- package/build/index.esm.js.map +1 -1
- package/build/index.js +9 -3
- package/build/index.js.map +1 -1
- package/build/main.css +1 -1
- package/build/styles/inputs/SelectInput.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/dateLookup/DateLookup.d.ts +1 -1
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/build/types/inputs/_Popover.d.ts +2 -1
- package/build/types/inputs/_Popover.d.ts.map +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/inputs/SelectInput.css +1 -1
- package/src/inputs/SelectInput.tsx +1 -0
- package/src/inputs/_Popover.less +8 -1
- package/src/inputs/_Popover.tsx +8 -3
- package/src/main.css +1 -1
- 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,
|
|
@@ -6602,6 +6603,7 @@ function Popover({
|
|
|
6602
6603
|
open,
|
|
6603
6604
|
renderTrigger,
|
|
6604
6605
|
title,
|
|
6606
|
+
size: size$1 = 'md',
|
|
6605
6607
|
padding = 'md',
|
|
6606
6608
|
children,
|
|
6607
6609
|
onClose
|
|
@@ -6669,7 +6671,10 @@ function Popover({
|
|
|
6669
6671
|
children: /*#__PURE__*/jsx("div", {
|
|
6670
6672
|
// Force inner state invalidation on open
|
|
6671
6673
|
ref: refs.setFloating,
|
|
6672
|
-
className:
|
|
6674
|
+
className: classNames('np-popover-v2-container', {
|
|
6675
|
+
'np-popover-v2-container--size-md': size$1 === 'md',
|
|
6676
|
+
'np-popover-v2-container--size-lg': size$1 === 'lg'
|
|
6677
|
+
})
|
|
6673
6678
|
// eslint-disable-next-line react/forbid-dom-props
|
|
6674
6679
|
,
|
|
6675
6680
|
style: floatingStyles,
|
|
@@ -6892,6 +6897,7 @@ function SelectInput({
|
|
|
6892
6897
|
})
|
|
6893
6898
|
}),
|
|
6894
6899
|
initialFocusRef: controllerRef,
|
|
6900
|
+
size: filterable ? 'lg' : 'md',
|
|
6895
6901
|
padding: "none",
|
|
6896
6902
|
onClose: () => {
|
|
6897
6903
|
setOpen(false);
|
|
@@ -12511,7 +12517,7 @@ const Option = props => {
|
|
|
12511
12517
|
children: note
|
|
12512
12518
|
}), secondary && /*#__PURE__*/jsx("span", {
|
|
12513
12519
|
className: "np-text-body-default text-ellipsis",
|
|
12514
|
-
children: secondary
|
|
12520
|
+
children: hightlight(secondary, query)
|
|
12515
12521
|
})]
|
|
12516
12522
|
})
|
|
12517
12523
|
});
|