@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.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", {
|
|
@@ -6620,7 +6624,7 @@ function Popover({
|
|
|
6620
6624
|
}
|
|
6621
6625
|
|
|
6622
6626
|
function searchableString(value) {
|
|
6623
|
-
return value.trim().replace(/\s+/gu, ' ').toLowerCase();
|
|
6627
|
+
return value.trim().replace(/\s+/gu, ' ').normalize('NFKC').toLowerCase();
|
|
6624
6628
|
}
|
|
6625
6629
|
function inferSearchableStrings(value) {
|
|
6626
6630
|
if (typeof value === 'string') {
|
|
@@ -7005,11 +7009,6 @@ function SelectInputOption({
|
|
|
7005
7009
|
disabled,
|
|
7006
7010
|
children
|
|
7007
7011
|
}) {
|
|
7008
|
-
const parentHasValue = React.useContext(SelectInputHasValueContext);
|
|
7009
|
-
// Avoid flash during exit transition
|
|
7010
|
-
const {
|
|
7011
|
-
current: cachedParentHasValue
|
|
7012
|
-
} = React.useRef(parentHasValue);
|
|
7013
7012
|
return /*#__PURE__*/jsxRuntime.jsx(react$1.Listbox.Option, {
|
|
7014
7013
|
as: "div",
|
|
7015
7014
|
value: value,
|
|
@@ -7025,10 +7024,10 @@ function SelectInputOption({
|
|
|
7025
7024
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7026
7025
|
className: "np-select-input-option",
|
|
7027
7026
|
children: children
|
|
7028
|
-
}),
|
|
7027
|
+
}), selected && /*#__PURE__*/jsxRuntime.jsx(icons.Check, {
|
|
7029
7028
|
size: 24,
|
|
7030
|
-
className: classNames__default.default('np-select-input-option-check'
|
|
7031
|
-
})
|
|
7029
|
+
className: classNames__default.default('np-select-input-option-check')
|
|
7030
|
+
})]
|
|
7032
7031
|
})
|
|
7033
7032
|
});
|
|
7034
7033
|
}
|