@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.
@@ -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.value} intrinsicSize={24} />}
354
+ icon={<Flag code={currency.currency} intrinsicSize={24} />}
355
355
  />
356
356
  );
357
357
  }}
358
- renderFooter={() =>
359
- this.props.onCustomAction ? (
360
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events
361
- <div role="button" tabIndex="0" onClick={this.handleCustomAction}>
362
- {this.props.customActionLabel}
363
- </div>
364
- ) : null
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
@@ -46,6 +46,8 @@
46
46
  .amount-currency-select-btn {
47
47
  flex-shrink: 0;
48
48
  width: auto;
49
+ line-height: normal;
50
+
49
51
  .np-button-input {
50
52
  border-top-right-radius: var(--radius-small) !important;
51
53
  border-bottom-right-radius: var(--radius-small) !important;