@transferwise/components 45.19.4 → 45.19.6
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 +30 -35
- package/build/index.esm.js.map +1 -1
- package/build/index.js +30 -35
- package/build/index.js.map +1 -1
- package/build/main.css +1 -1
- package/build/styles/dateLookup/DateLookup.css +1 -1
- package/build/styles/inputs/SelectInput.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/dateLookup/dateHeader/DateHeader.d.ts.map +1 -1
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/build/types/inputs/_BottomSheet.d.ts.map +1 -1
- package/build/types/inputs/_Popover.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/dateLookup/DateLookup.css +1 -1
- package/src/dateLookup/DateLookup.less +6 -6
- package/src/dateLookup/DateLookup.story.js +6 -0
- package/src/dateLookup/dateHeader/DateHeader.js +12 -9
- package/src/inputs/SelectInput.css +1 -1
- package/src/inputs/SelectInput.less +0 -4
- package/src/inputs/SelectInput.tsx +2 -15
- package/src/inputs/_BottomSheet.tsx +18 -20
- package/src/inputs/_Popover.tsx +1 -3
- package/src/main.css +1 -1
package/build/index.js
CHANGED
|
@@ -3460,12 +3460,16 @@ const DateHeader = ({
|
|
|
3460
3460
|
size: exports.Size.MEDIUM
|
|
3461
3461
|
})
|
|
3462
3462
|
})
|
|
3463
|
-
}), label && /*#__PURE__*/jsxRuntime.jsx(
|
|
3464
|
-
type:
|
|
3465
|
-
className:
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3463
|
+
}), label && /*#__PURE__*/jsxRuntime.jsx(Title, {
|
|
3464
|
+
type: exports.Typography.TITLE_BODY,
|
|
3465
|
+
className: "tw-date-lookup-header-current-container",
|
|
3466
|
+
children: /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
3467
|
+
type: "button",
|
|
3468
|
+
className: `tw-date-lookup-header-current ${buttonClasses}`,
|
|
3469
|
+
"aria-label": intl.formatMessage(messages$5.goTo20YearView),
|
|
3470
|
+
onClick: onLabelClick,
|
|
3471
|
+
children: label
|
|
3472
|
+
})
|
|
3469
3473
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3470
3474
|
className: "pull-right-single-direction",
|
|
3471
3475
|
children: /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
@@ -6409,9 +6413,7 @@ function BottomSheet({
|
|
|
6409
6413
|
}
|
|
6410
6414
|
}
|
|
6411
6415
|
});
|
|
6412
|
-
const dismiss = react.useDismiss(context
|
|
6413
|
-
outsidePressEvent: 'mousedown'
|
|
6414
|
-
});
|
|
6416
|
+
const dismiss = react.useDismiss(context);
|
|
6415
6417
|
const role = react.useRole(context);
|
|
6416
6418
|
const {
|
|
6417
6419
|
getReferenceProps,
|
|
@@ -6445,20 +6447,20 @@ function BottomSheet({
|
|
|
6445
6447
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
6446
6448
|
className: "np-bottom-sheet-v2-backdrop"
|
|
6447
6449
|
})
|
|
6448
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6450
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
6451
|
+
className: "np-bottom-sheet-v2",
|
|
6452
|
+
children: /*#__PURE__*/jsxRuntime.jsx(react$1.Transition.Child, {
|
|
6453
|
+
className: "np-bottom-sheet-v2-content",
|
|
6454
|
+
enter: "np-bottom-sheet-v2-content--enter",
|
|
6455
|
+
enterFrom: "np-bottom-sheet-v2-content--enter-from",
|
|
6456
|
+
leave: "np-bottom-sheet-v2-content--leave",
|
|
6457
|
+
leaveTo: "np-bottom-sheet-v2-content--leave-to",
|
|
6458
|
+
children: /*#__PURE__*/jsxRuntime.jsx(FocusBoundary, {
|
|
6459
|
+
children: /*#__PURE__*/jsxRuntime.jsx(react.FloatingFocusManager, {
|
|
6460
|
+
context: context,
|
|
6461
|
+
initialFocus: initialFocusRef,
|
|
6462
|
+
guards: false,
|
|
6463
|
+
modal: false,
|
|
6462
6464
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
6463
6465
|
// Force inner state invalidation on open
|
|
6464
6466
|
ref: refs.setFloating,
|
|
@@ -6556,9 +6558,7 @@ function Popover({
|
|
|
6556
6558
|
}
|
|
6557
6559
|
}
|
|
6558
6560
|
});
|
|
6559
|
-
const dismiss = react.useDismiss(context
|
|
6560
|
-
outsidePressEvent: 'mousedown'
|
|
6561
|
-
});
|
|
6561
|
+
const dismiss = react.useDismiss(context);
|
|
6562
6562
|
const role = react.useRole(context);
|
|
6563
6563
|
const {
|
|
6564
6564
|
getReferenceProps,
|
|
@@ -6620,7 +6620,7 @@ function Popover({
|
|
|
6620
6620
|
}
|
|
6621
6621
|
|
|
6622
6622
|
function searchableString(value) {
|
|
6623
|
-
return value.trim().replace(/\s+/gu, ' ').toLowerCase();
|
|
6623
|
+
return value.trim().replace(/\s+/gu, ' ').normalize('NFKC').toLowerCase();
|
|
6624
6624
|
}
|
|
6625
6625
|
function inferSearchableStrings(value) {
|
|
6626
6626
|
if (typeof value === 'string') {
|
|
@@ -7005,11 +7005,6 @@ function SelectInputOption({
|
|
|
7005
7005
|
disabled,
|
|
7006
7006
|
children
|
|
7007
7007
|
}) {
|
|
7008
|
-
const parentHasValue = React.useContext(SelectInputHasValueContext);
|
|
7009
|
-
// Avoid flash during exit transition
|
|
7010
|
-
const {
|
|
7011
|
-
current: cachedParentHasValue
|
|
7012
|
-
} = React.useRef(parentHasValue);
|
|
7013
7008
|
return /*#__PURE__*/jsxRuntime.jsx(react$1.Listbox.Option, {
|
|
7014
7009
|
as: "div",
|
|
7015
7010
|
value: value,
|
|
@@ -7025,10 +7020,10 @@ function SelectInputOption({
|
|
|
7025
7020
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7026
7021
|
className: "np-select-input-option",
|
|
7027
7022
|
children: children
|
|
7028
|
-
}),
|
|
7023
|
+
}), selected && /*#__PURE__*/jsxRuntime.jsx(icons.Check, {
|
|
7029
7024
|
size: 24,
|
|
7030
|
-
className: classNames__default.default('np-select-input-option-check'
|
|
7031
|
-
})
|
|
7025
|
+
className: classNames__default.default('np-select-input-option-check')
|
|
7026
|
+
})]
|
|
7032
7027
|
})
|
|
7033
7028
|
});
|
|
7034
7029
|
}
|