@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.js
CHANGED
|
@@ -4458,7 +4458,7 @@ class DateLookup extends React.PureComponent {
|
|
|
4458
4458
|
}
|
|
4459
4459
|
}
|
|
4460
4460
|
DateLookup.propTypes = {
|
|
4461
|
-
value: PropTypes__default.default.instanceOf(Date)
|
|
4461
|
+
value: PropTypes__default.default.instanceOf(Date),
|
|
4462
4462
|
min: PropTypes__default.default.instanceOf(Date),
|
|
4463
4463
|
max: PropTypes__default.default.instanceOf(Date),
|
|
4464
4464
|
size: PropTypes__default.default.oneOf(['sm', 'md', 'lg']),
|
|
@@ -4472,6 +4472,7 @@ DateLookup.propTypes = {
|
|
|
4472
4472
|
clearable: PropTypes__default.default.bool
|
|
4473
4473
|
};
|
|
4474
4474
|
DateLookup.defaultProps = {
|
|
4475
|
+
value: null,
|
|
4475
4476
|
min: null,
|
|
4476
4477
|
max: null,
|
|
4477
4478
|
size: exports.Size.MEDIUM,
|
|
@@ -6636,6 +6637,7 @@ function Popover({
|
|
|
6636
6637
|
open,
|
|
6637
6638
|
renderTrigger,
|
|
6638
6639
|
title,
|
|
6640
|
+
size = 'md',
|
|
6639
6641
|
padding = 'md',
|
|
6640
6642
|
children,
|
|
6641
6643
|
onClose
|
|
@@ -6703,7 +6705,10 @@ function Popover({
|
|
|
6703
6705
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
6704
6706
|
// Force inner state invalidation on open
|
|
6705
6707
|
ref: refs.setFloating,
|
|
6706
|
-
className:
|
|
6708
|
+
className: classNames__default.default('np-popover-v2-container', {
|
|
6709
|
+
'np-popover-v2-container--size-md': size === 'md',
|
|
6710
|
+
'np-popover-v2-container--size-lg': size === 'lg'
|
|
6711
|
+
})
|
|
6707
6712
|
// eslint-disable-next-line react/forbid-dom-props
|
|
6708
6713
|
,
|
|
6709
6714
|
style: floatingStyles,
|
|
@@ -6926,6 +6931,7 @@ function SelectInput({
|
|
|
6926
6931
|
})
|
|
6927
6932
|
}),
|
|
6928
6933
|
initialFocusRef: controllerRef,
|
|
6934
|
+
size: filterable ? 'lg' : 'md',
|
|
6929
6935
|
padding: "none",
|
|
6930
6936
|
onClose: () => {
|
|
6931
6937
|
setOpen(false);
|
|
@@ -12545,7 +12551,7 @@ const Option = props => {
|
|
|
12545
12551
|
children: note
|
|
12546
12552
|
}), secondary && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
12547
12553
|
className: "np-text-body-default text-ellipsis",
|
|
12548
|
-
children: secondary
|
|
12554
|
+
children: hightlight(secondary, query)
|
|
12549
12555
|
})]
|
|
12550
12556
|
})
|
|
12551
12557
|
});
|