@transferwise/components 45.19.2 → 45.19.4
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 +13 -8
- package/build/index.esm.js.map +1 -1
- package/build/index.js +13 -8
- package/build/index.js.map +1 -1
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/common/bottomSheet/__snapshots__/BottomSheet.spec.tsx.snap +8 -8
- package/src/common/focusBoundary/FocusBoundary.tsx +4 -4
- package/src/inputs/SelectInput.tsx +8 -3
package/build/index.js
CHANGED
|
@@ -1530,12 +1530,12 @@ const FocusBoundary = ({
|
|
|
1530
1530
|
preventScroll: true
|
|
1531
1531
|
});
|
|
1532
1532
|
}, []);
|
|
1533
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
1537
|
-
|
|
1538
|
-
|
|
1533
|
+
return /*#__PURE__*/jsxRuntime.jsx(focus.FocusScope, {
|
|
1534
|
+
contain: true,
|
|
1535
|
+
restoreFocus: true,
|
|
1536
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1537
|
+
ref: wrapperReference,
|
|
1538
|
+
tabIndex: -1,
|
|
1539
1539
|
children: children
|
|
1540
1540
|
})
|
|
1541
1541
|
});
|
|
@@ -6867,7 +6867,12 @@ function SelectInputOptions({
|
|
|
6867
6867
|
listboxRef
|
|
6868
6868
|
}) {
|
|
6869
6869
|
const [query, setQuery] = React.useState('');
|
|
6870
|
-
const needle = React.useMemo(() =>
|
|
6870
|
+
const needle = React.useMemo(() => {
|
|
6871
|
+
if (filterable) {
|
|
6872
|
+
return query ? searchableString(query) : null;
|
|
6873
|
+
}
|
|
6874
|
+
return undefined;
|
|
6875
|
+
}, [filterable, query]);
|
|
6871
6876
|
const listboxContainerRef = React.useRef(null);
|
|
6872
6877
|
React.useEffect(() => {
|
|
6873
6878
|
if (listboxContainerRef.current != null) {
|
|
@@ -6979,7 +6984,7 @@ function SelectInputGroupItemView({
|
|
|
6979
6984
|
jsxRuntime.jsxs("section", {
|
|
6980
6985
|
role: "group",
|
|
6981
6986
|
"aria-labelledby": headerId,
|
|
6982
|
-
className: classNames__default.default(needle
|
|
6987
|
+
className: classNames__default.default(needle === null && 'np-select-input-group-item--without-needle'),
|
|
6983
6988
|
children: [needle == null ? /*#__PURE__*/jsxRuntime.jsx("header", {
|
|
6984
6989
|
id: headerId,
|
|
6985
6990
|
role: "presentation",
|