@transferwise/components 45.19.4 → 45.19.5

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.
@@ -3426,12 +3426,16 @@ const DateHeader = ({
3426
3426
  size: Size.MEDIUM
3427
3427
  })
3428
3428
  })
3429
- }), label && /*#__PURE__*/jsx("button", {
3430
- type: "button",
3431
- className: `tw-date-lookup-header-current ${buttonClasses}`,
3432
- "aria-label": intl.formatMessage(messages$5.goTo20YearView),
3433
- onClick: onLabelClick,
3434
- children: label
3429
+ }), label && /*#__PURE__*/jsx(Title, {
3430
+ type: Typography.TITLE_BODY,
3431
+ className: "tw-date-lookup-header-current-container",
3432
+ children: /*#__PURE__*/jsx("button", {
3433
+ type: "button",
3434
+ className: `tw-date-lookup-header-current ${buttonClasses}`,
3435
+ "aria-label": intl.formatMessage(messages$5.goTo20YearView),
3436
+ onClick: onLabelClick,
3437
+ children: label
3438
+ })
3435
3439
  }), /*#__PURE__*/jsx("div", {
3436
3440
  className: "pull-right-single-direction",
3437
3441
  children: /*#__PURE__*/jsx("button", {
@@ -6586,7 +6590,7 @@ function Popover({
6586
6590
  }
6587
6591
 
6588
6592
  function searchableString(value) {
6589
- return value.trim().replace(/\s+/gu, ' ').toLowerCase();
6593
+ return value.trim().replace(/\s+/gu, ' ').normalize('NFKC').toLowerCase();
6590
6594
  }
6591
6595
  function inferSearchableStrings(value) {
6592
6596
  if (typeof value === 'string') {
@@ -6971,11 +6975,6 @@ function SelectInputOption({
6971
6975
  disabled,
6972
6976
  children
6973
6977
  }) {
6974
- const parentHasValue = useContext(SelectInputHasValueContext);
6975
- // Avoid flash during exit transition
6976
- const {
6977
- current: cachedParentHasValue
6978
- } = useRef(parentHasValue);
6979
6978
  return /*#__PURE__*/jsx(Listbox.Option, {
6980
6979
  as: "div",
6981
6980
  value: value,
@@ -6991,10 +6990,10 @@ function SelectInputOption({
6991
6990
  children: [/*#__PURE__*/jsx("div", {
6992
6991
  className: "np-select-input-option",
6993
6992
  children: children
6994
- }), cachedParentHasValue ? /*#__PURE__*/jsx(Check, {
6993
+ }), selected && /*#__PURE__*/jsx(Check, {
6995
6994
  size: 24,
6996
- className: classNames('np-select-input-option-check', !selected && 'np-select-input-option-check--not-selected')
6997
- }) : null]
6995
+ className: classNames('np-select-input-option-check')
6996
+ })]
6998
6997
  })
6999
6998
  });
7000
6999
  }