@transferwise/components 45.26.2 → 45.27.0
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 +19 -17
- package/build/index.esm.js.map +1 -1
- package/build/index.js +19 -17
- package/build/index.js.map +1 -1
- package/build/main.css +1 -1
- package/build/styles/logo/Logo.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -1
- package/build/types/inputs/SearchInput.d.ts +2 -1
- package/build/types/inputs/SearchInput.d.ts.map +1 -1
- package/build/types/logo/Logo.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/flowNavigation/FlowNavigation.tsx +12 -2
- package/src/flowNavigation/__snapshots__/FlowNavigation.spec.js.snap +12 -8
- package/src/inputs/SearchInput.story.tsx +3 -1
- package/src/inputs/SearchInput.tsx +13 -5
- package/src/logo/Logo.css +1 -1
- package/src/logo/Logo.js +9 -18
- package/src/logo/Logo.less +21 -2
- package/src/logo/__snapshots__/Logo.spec.js.snap +168 -72
- package/src/main.css +1 -1
package/build/index.js
CHANGED
|
@@ -5609,19 +5609,16 @@ const Logo = ({
|
|
|
5609
5609
|
inverse,
|
|
5610
5610
|
type
|
|
5611
5611
|
}) => {
|
|
5612
|
-
const
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
return /*#__PURE__*/jsxRuntime.jsx(LogoSvg, {
|
|
5623
|
-
className: classNames__default.default('np-logo-svg', className),
|
|
5624
|
-
alt: type === exports.LogoType.WISE ? 'Wise' : 'Wise business'
|
|
5612
|
+
const LogoSm = svgPaths[`WISE_FLAG${inverse ? '_INVERSE' : ''}`];
|
|
5613
|
+
const LogoMd = svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];
|
|
5614
|
+
return /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
5615
|
+
"aria-label": type === exports.LogoType.WISE ? 'Wise' : 'Wise business',
|
|
5616
|
+
className: classNames__default.default(className, 'np-logo'),
|
|
5617
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(LogoSm, {
|
|
5618
|
+
className: "np-logo-svg np-logo-svg--size-sm"
|
|
5619
|
+
}), /*#__PURE__*/jsxRuntime.jsx(LogoMd, {
|
|
5620
|
+
className: "np-logo-svg np-logo-svg--size-md"
|
|
5621
|
+
})]
|
|
5625
5622
|
});
|
|
5626
5623
|
};
|
|
5627
5624
|
Logo.propTypes = {
|
|
@@ -5907,14 +5904,17 @@ const FlowNavigation = ({
|
|
|
5907
5904
|
children: [isSmall && displayGoBack ? /*#__PURE__*/jsxRuntime.jsx(BackButton$1, {
|
|
5908
5905
|
"aria-label": intl.formatMessage(messages$6.back),
|
|
5909
5906
|
onClick: onGoBack
|
|
5910
|
-
}) :
|
|
5907
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
5908
|
+
className: "np-flow-header__left",
|
|
5909
|
+
children: logo
|
|
5910
|
+
}), isSmall && /*#__PURE__*/jsxRuntime.jsx(AnimatedLabel, {
|
|
5911
5911
|
className: "m-x-1",
|
|
5912
5912
|
labels: steps.map(step => step.label),
|
|
5913
5913
|
activeLabel: activeStep
|
|
5914
5914
|
})]
|
|
5915
5915
|
}),
|
|
5916
5916
|
rightContent: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
5917
|
-
className: classNames__default.default('d-flex', 'align-items-center', {
|
|
5917
|
+
className: classNames__default.default('np-flow-header__right', 'd-flex', 'align-items-center', 'justify-content-end', {
|
|
5918
5918
|
'order-2': isLarge
|
|
5919
5919
|
}),
|
|
5920
5920
|
children: [newAvatar, newAvatar && closeButton && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
@@ -6476,6 +6476,7 @@ const Input = /*#__PURE__*/React.forwardRef(function Input({
|
|
|
6476
6476
|
|
|
6477
6477
|
const SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput({
|
|
6478
6478
|
shape = 'pill',
|
|
6479
|
+
size = exports.Size.MEDIUM,
|
|
6479
6480
|
disabled,
|
|
6480
6481
|
className,
|
|
6481
6482
|
...restProps
|
|
@@ -6483,9 +6484,9 @@ const SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput({
|
|
|
6483
6484
|
return /*#__PURE__*/jsxRuntime.jsx(InputGroup, {
|
|
6484
6485
|
addonStart: {
|
|
6485
6486
|
content: /*#__PURE__*/jsxRuntime.jsx(icons.Search, {
|
|
6486
|
-
size: 24
|
|
6487
|
+
size: size === exports.Size.SMALL ? 16 : 24
|
|
6487
6488
|
}),
|
|
6488
|
-
initialContentWidth: 24
|
|
6489
|
+
initialContentWidth: size === exports.Size.SMALL ? 16 : 24
|
|
6489
6490
|
},
|
|
6490
6491
|
disabled: disabled,
|
|
6491
6492
|
className: className,
|
|
@@ -6494,6 +6495,7 @@ const SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput({
|
|
|
6494
6495
|
role: "searchbox",
|
|
6495
6496
|
inputMode: "search",
|
|
6496
6497
|
shape: shape,
|
|
6498
|
+
size: size,
|
|
6497
6499
|
...restProps
|
|
6498
6500
|
})
|
|
6499
6501
|
});
|