@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/README.md +3 -5
- package/build/index.esm.js +3 -5
- package/build/index.esm.js.map +1 -1
- package/build/index.js +3 -5
- package/build/index.js.map +1 -1
- package/build/main.css +4 -11
- package/build/styles/main.css +4 -11
- package/build/styles/select/Select.css +4 -9
- package/build/types/select/option/Option.d.ts.map +1 -1
- package/package.json +5 -11
- package/src/main.css +4 -11
- package/src/select/Select.css +4 -9
- package/src/select/Select.less +1 -8
- package/src/select/option/Option.spec.js +3 -21
- package/src/select/option/Option.tsx +2 -7
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(
|
|
10635
|
-
|
|
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",
|