@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.js CHANGED
@@ -3460,12 +3460,16 @@ const DateHeader = ({
3460
3460
  size: exports.Size.MEDIUM
3461
3461
  })
3462
3462
  })
3463
- }), label && /*#__PURE__*/jsxRuntime.jsx("button", {
3464
- type: "button",
3465
- className: `tw-date-lookup-header-current ${buttonClasses}`,
3466
- "aria-label": intl.formatMessage(messages$5.goTo20YearView),
3467
- onClick: onLabelClick,
3468
- children: label
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(FocusBoundary, {
6449
- children: /*#__PURE__*/jsxRuntime.jsx(react.FloatingFocusManager, {
6450
- context: context,
6451
- initialFocus: initialFocusRef,
6452
- guards: false,
6453
- modal: false,
6454
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
6455
- className: "np-bottom-sheet-v2",
6456
- children: /*#__PURE__*/jsxRuntime.jsx(react$1.Transition.Child, {
6457
- className: "np-bottom-sheet-v2-content",
6458
- enter: "np-bottom-sheet-v2-content--enter",
6459
- enterFrom: "np-bottom-sheet-v2-content--enter-from",
6460
- leave: "np-bottom-sheet-v2-content--leave",
6461
- leaveTo: "np-bottom-sheet-v2-content--leave-to",
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
- }), cachedParentHasValue ? /*#__PURE__*/jsxRuntime.jsx(icons.Check, {
7023
+ }), selected && /*#__PURE__*/jsxRuntime.jsx(icons.Check, {
7029
7024
  size: 24,
7030
- className: classNames__default.default('np-select-input-option-check', !selected && 'np-select-input-option-check--not-selected')
7031
- }) : null]
7025
+ className: classNames__default.default('np-select-input-option-check')
7026
+ })]
7032
7027
  })
7033
7028
  });
7034
7029
  }