@transferwise/components 0.0.0-experimental-3b1799b → 0.0.0-experimental-c6db9e8

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.js CHANGED
@@ -10613,7 +10613,6 @@ var messages$2 = reactIntl.defineMessages({
10613
10613
  }
10614
10614
  });
10615
10615
 
10616
- // Option.tsx NEW
10617
10616
  function Option$1({
10618
10617
  label,
10619
10618
  currency = '',
@@ -10626,13 +10625,12 @@ function Option$1({
10626
10625
  const {
10627
10626
  isModern
10628
10627
  } = componentsTheming.useTheme();
10629
- const style = classes => classes.map(className => classNames[className] || className).join(' ');
10630
- const currencyClassNames = currency ? style(['currency-flag', `currency-flag-${currency.toLowerCase()}`]) : undefined;
10631
10628
  const iconElement = icon ? /*#__PURE__*/React.cloneElement(icon, {
10632
10629
  size: 24,
10633
10630
  className: 'tw-icon'
10634
- }) : currency && /*#__PURE__*/jsxRuntime.jsx("i", {
10635
- className: currencyClassNames
10631
+ }) : currency && /*#__PURE__*/jsxRuntime.jsx(art.Flag, {
10632
+ code: currency.toLowerCase(),
10633
+ intrinsicSize: 24
10636
10634
  });
10637
10635
  const titleAndNoteElement = /*#__PURE__*/jsxRuntime.jsxs(Body, {
10638
10636
  as: "span",