@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.
- package/build/index.esm.js +14 -15
- package/build/index.esm.js.map +1 -1
- package/build/index.js +14 -15
- 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/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/main.css +1 -1
package/build/index.esm.js
CHANGED
|
@@ -3426,12 +3426,16 @@ const DateHeader = ({
|
|
|
3426
3426
|
size: Size.MEDIUM
|
|
3427
3427
|
})
|
|
3428
3428
|
})
|
|
3429
|
-
}), label && /*#__PURE__*/jsx(
|
|
3430
|
-
type:
|
|
3431
|
-
className:
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
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
|
-
}),
|
|
6993
|
+
}), selected && /*#__PURE__*/jsx(Check, {
|
|
6995
6994
|
size: 24,
|
|
6996
|
-
className: classNames('np-select-input-option-check'
|
|
6997
|
-
})
|
|
6995
|
+
className: classNames('np-select-input-option-check')
|
|
6996
|
+
})]
|
|
6998
6997
|
})
|
|
6999
6998
|
});
|
|
7000
6999
|
}
|