@transferwise/components 45.26.3 → 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 +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/logo/Logo.css +1 -1
- package/build/styles/main.css +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 +3 -3
- 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 = {
|
|
@@ -6445,6 +6442,7 @@ const Input = /*#__PURE__*/forwardRef(function Input({
|
|
|
6445
6442
|
|
|
6446
6443
|
const SearchInput = /*#__PURE__*/forwardRef(function SearchInput({
|
|
6447
6444
|
shape = 'pill',
|
|
6445
|
+
size = Size.MEDIUM,
|
|
6448
6446
|
disabled,
|
|
6449
6447
|
className,
|
|
6450
6448
|
...restProps
|
|
@@ -6452,9 +6450,9 @@ const SearchInput = /*#__PURE__*/forwardRef(function SearchInput({
|
|
|
6452
6450
|
return /*#__PURE__*/jsx(InputGroup, {
|
|
6453
6451
|
addonStart: {
|
|
6454
6452
|
content: /*#__PURE__*/jsx(Search, {
|
|
6455
|
-
size: 24
|
|
6453
|
+
size: size === Size.SMALL ? 16 : 24
|
|
6456
6454
|
}),
|
|
6457
|
-
initialContentWidth: 24
|
|
6455
|
+
initialContentWidth: size === Size.SMALL ? 16 : 24
|
|
6458
6456
|
},
|
|
6459
6457
|
disabled: disabled,
|
|
6460
6458
|
className: className,
|
|
@@ -6463,6 +6461,7 @@ const SearchInput = /*#__PURE__*/forwardRef(function SearchInput({
|
|
|
6463
6461
|
role: "searchbox",
|
|
6464
6462
|
inputMode: "search",
|
|
6465
6463
|
shape: shape,
|
|
6464
|
+
size: size,
|
|
6466
6465
|
...restProps
|
|
6467
6466
|
})
|
|
6468
6467
|
});
|