@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.esm.js
CHANGED
|
@@ -5575,19 +5575,16 @@ const Logo = ({
|
|
|
5575
5575
|
inverse,
|
|
5576
5576
|
type
|
|
5577
5577
|
}) => {
|
|
5578
|
-
const
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
return /*#__PURE__*/jsx(LogoSvg, {
|
|
5589
|
-
className: classNames('np-logo-svg', className),
|
|
5590
|
-
alt: type === LogoType.WISE ? 'Wise' : 'Wise business'
|
|
5578
|
+
const LogoSm = svgPaths[`WISE_FLAG${inverse ? '_INVERSE' : ''}`];
|
|
5579
|
+
const LogoMd = svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];
|
|
5580
|
+
return /*#__PURE__*/jsxs("span", {
|
|
5581
|
+
"aria-label": type === LogoType.WISE ? 'Wise' : 'Wise business',
|
|
5582
|
+
className: classNames(className, 'np-logo'),
|
|
5583
|
+
children: [/*#__PURE__*/jsx(LogoSm, {
|
|
5584
|
+
className: "np-logo-svg np-logo-svg--size-sm"
|
|
5585
|
+
}), /*#__PURE__*/jsx(LogoMd, {
|
|
5586
|
+
className: "np-logo-svg np-logo-svg--size-md"
|
|
5587
|
+
})]
|
|
5591
5588
|
});
|
|
5592
5589
|
};
|
|
5593
5590
|
Logo.propTypes = {
|
|
@@ -5873,14 +5870,17 @@ const FlowNavigation = ({
|
|
|
5873
5870
|
children: [isSmall && displayGoBack ? /*#__PURE__*/jsx(BackButton$1, {
|
|
5874
5871
|
"aria-label": intl.formatMessage(messages$6.back),
|
|
5875
5872
|
onClick: onGoBack
|
|
5876
|
-
}) :
|
|
5873
|
+
}) : /*#__PURE__*/jsx("div", {
|
|
5874
|
+
className: "np-flow-header__left",
|
|
5875
|
+
children: logo
|
|
5876
|
+
}), isSmall && /*#__PURE__*/jsx(AnimatedLabel, {
|
|
5877
5877
|
className: "m-x-1",
|
|
5878
5878
|
labels: steps.map(step => step.label),
|
|
5879
5879
|
activeLabel: activeStep
|
|
5880
5880
|
})]
|
|
5881
5881
|
}),
|
|
5882
5882
|
rightContent: /*#__PURE__*/jsxs("div", {
|
|
5883
|
-
className: classNames('d-flex', 'align-items-center', {
|
|
5883
|
+
className: classNames('np-flow-header__right', 'd-flex', 'align-items-center', 'justify-content-end', {
|
|
5884
5884
|
'order-2': isLarge
|
|
5885
5885
|
}),
|
|
5886
5886
|
children: [newAvatar, newAvatar && closeButton && /*#__PURE__*/jsx("span", {
|
|
@@ -6442,6 +6442,7 @@ const Input = /*#__PURE__*/forwardRef(function Input({
|
|
|
6442
6442
|
|
|
6443
6443
|
const SearchInput = /*#__PURE__*/forwardRef(function SearchInput({
|
|
6444
6444
|
shape = 'pill',
|
|
6445
|
+
size = Size.MEDIUM,
|
|
6445
6446
|
disabled,
|
|
6446
6447
|
className,
|
|
6447
6448
|
...restProps
|
|
@@ -6449,9 +6450,9 @@ const SearchInput = /*#__PURE__*/forwardRef(function SearchInput({
|
|
|
6449
6450
|
return /*#__PURE__*/jsx(InputGroup, {
|
|
6450
6451
|
addonStart: {
|
|
6451
6452
|
content: /*#__PURE__*/jsx(Search, {
|
|
6452
|
-
size: 24
|
|
6453
|
+
size: size === Size.SMALL ? 16 : 24
|
|
6453
6454
|
}),
|
|
6454
|
-
initialContentWidth: 24
|
|
6455
|
+
initialContentWidth: size === Size.SMALL ? 16 : 24
|
|
6455
6456
|
},
|
|
6456
6457
|
disabled: disabled,
|
|
6457
6458
|
className: className,
|
|
@@ -6460,6 +6461,7 @@ const SearchInput = /*#__PURE__*/forwardRef(function SearchInput({
|
|
|
6460
6461
|
role: "searchbox",
|
|
6461
6462
|
inputMode: "search",
|
|
6462
6463
|
shape: shape,
|
|
6464
|
+
size: size,
|
|
6463
6465
|
...restProps
|
|
6464
6466
|
})
|
|
6465
6467
|
});
|