@transferwise/components 0.0.0-experimental-ea45212 → 0.0.0-experimental-b069e0c
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 +2 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/main.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/styles/moneyInput/MoneyInput.css +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/main.css +1 -1
- package/src/moneyInput/MoneyInput.css +1 -1
- package/src/moneyInput/MoneyInput.js +10 -8
- package/src/moneyInput/MoneyInput.less +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.tw-money-input{display:flex}.tw-money-input .tw-money-input__fixed-currency{padding-left:0!important}[dir=rtl] .tw-money-input .tw-money-input__fixed-currency{padding-left:0!important;padding-right:0!important}.tw-money-input .tw-money-input__fixed-currency .np-text-title-subsection{color:#768e9c;color:var(--color-content-tertiary);font-weight:600;font-weight:var(--font-weight-semi-bold)}.tw-money-input.input-group-sm .form-control{min-height:34px}.tw-money-input.input-group-sm .np-text-title-subsection{font-size:.875rem;font-size:var(--font-size-14)}.tw-money-input.input-group-md .form-control{min-height:53px}.tw-money-input.input-group-md .np-text-title-subsection{font-size:1rem;font-size:var(--font-size-16)}.tw-money-input .input-group-addon{flex-shrink:0}.tw-money-input .input-group-addon:not(.amount-currency-select-btn){align-items:center;display:flex;flex-shrink:0;width:auto}.tw-money-input .amount-currency-select-btn{flex-shrink:0;width:auto}.tw-money-input .amount-currency-select-btn .np-button-input{border-bottom-right-radius:10px!important;border-bottom-right-radius:var(--radius-small)!important;border-top-right-radius:10px!important;border-top-right-radius:var(--radius-small)!important}.tw-money-input .amount-currency-select-btn .np-button-input,.tw-money-input .amount-currency-select-btn .np-button-input:active,.tw-money-input .amount-currency-select-btn .np-button-input:hover:not(:focus){box-shadow:none}
|
|
1
|
+
.tw-money-input{display:flex}.tw-money-input .tw-money-input__fixed-currency{padding-left:0!important}[dir=rtl] .tw-money-input .tw-money-input__fixed-currency{padding-left:0!important;padding-right:0!important}.tw-money-input .tw-money-input__fixed-currency .np-text-title-subsection{color:#768e9c;color:var(--color-content-tertiary);font-weight:600;font-weight:var(--font-weight-semi-bold)}.tw-money-input.input-group-sm .form-control{min-height:34px}.tw-money-input.input-group-sm .np-text-title-subsection{font-size:.875rem;font-size:var(--font-size-14)}.tw-money-input.input-group-md .form-control{min-height:53px}.tw-money-input.input-group-md .np-text-title-subsection{font-size:1rem;font-size:var(--font-size-16)}.tw-money-input .input-group-addon{flex-shrink:0}.tw-money-input .input-group-addon:not(.amount-currency-select-btn){align-items:center;display:flex;flex-shrink:0;width:auto}.tw-money-input .amount-currency-select-btn{flex-shrink:0;line-height:normal;width:auto}.tw-money-input .amount-currency-select-btn .np-button-input{border-bottom-right-radius:10px!important;border-bottom-right-radius:var(--radius-small)!important;border-top-right-radius:10px!important;border-top-right-radius:var(--radius-small)!important}.tw-money-input .amount-currency-select-btn .np-button-input,.tw-money-input .amount-currency-select-btn .np-button-input:active,.tw-money-input .amount-currency-select-btn .np-button-input:hover:not(:focus){box-shadow:none}
|
|
@@ -351,17 +351,19 @@ class MoneyInput extends Component {
|
|
|
351
351
|
<SelectInputOptionContent
|
|
352
352
|
title={currency.label}
|
|
353
353
|
note={withinTrigger ? undefined : currency.note}
|
|
354
|
-
icon={<Flag code={currency.
|
|
354
|
+
icon={<Flag code={currency.currency} intrinsicSize={24} />}
|
|
355
355
|
/>
|
|
356
356
|
);
|
|
357
357
|
}}
|
|
358
|
-
renderFooter={
|
|
359
|
-
this.props.onCustomAction
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
358
|
+
renderFooter={
|
|
359
|
+
this.props.onCustomAction
|
|
360
|
+
? () => (
|
|
361
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
362
|
+
<div role="button" tabIndex="0" onClick={this.handleCustomAction}>
|
|
363
|
+
{this.props.customActionLabel}
|
|
364
|
+
</div>
|
|
365
|
+
)
|
|
366
|
+
: null
|
|
365
367
|
}
|
|
366
368
|
placeholder={this.formatMessage(messages.selectPlaceholder)}
|
|
367
369
|
filterable
|