@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.
@@ -5575,19 +5575,16 @@ const Logo = ({
5575
5575
  inverse,
5576
5576
  type
5577
5577
  }) => {
5578
- const [clientWidth] = useClientWidth({
5579
- ref: isServerSide() ? undefined : window
5580
- });
5581
- const isSmall = clientWidth < Breakpoint.SMALL;
5582
- const LogoSvg = isSmall ? svgPaths[`WISE_FLAG${inverse ? '_INVERSE' : ''}`] : svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];
5583
-
5584
- // If clientWidth is not defined, don't render anything
5585
- if (clientWidth === null) {
5586
- return null;
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
  });