@transferwise/components 46.0.6 → 46.0.8

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.
@@ -4,10 +4,10 @@
4
4
  "neptune.ClearButton.ariaLabel": "Zurücksetzen",
5
5
  "neptune.CloseButton.ariaLabel": "Schließen",
6
6
  "neptune.DateInput.day.label": "Tag",
7
- "neptune.DateInput.day.placeholder": "DD",
7
+ "neptune.DateInput.day.placeholder": "TT",
8
8
  "neptune.DateInput.month.label": "Monat",
9
9
  "neptune.DateInput.year.label": "Jahr",
10
- "neptune.DateInput.year.placeholder": "YYYY",
10
+ "neptune.DateInput.year.placeholder": "JJJJ",
11
11
  "neptune.DateLookup.day": "Tag",
12
12
  "neptune.DateLookup.goTo20YearView": "Zur 20-Jahres-Ansicht",
13
13
  "neptune.DateLookup.month": "Monat",
@@ -4,10 +4,10 @@
4
4
  "neptune.ClearButton.ariaLabel": "Törlés",
5
5
  "neptune.CloseButton.ariaLabel": "Bezárás",
6
6
  "neptune.DateInput.day.label": "Nap",
7
- "neptune.DateInput.day.placeholder": "Nap",
7
+ "neptune.DateInput.day.placeholder": "NN",
8
8
  "neptune.DateInput.month.label": "Hónap",
9
9
  "neptune.DateInput.year.label": "Év",
10
- "neptune.DateInput.year.placeholder": "Év",
10
+ "neptune.DateInput.year.placeholder": "ÉÉÉÉ",
11
11
  "neptune.DateLookup.day": "nap",
12
12
  "neptune.DateLookup.goTo20YearView": "Ugrás a 20 éves nézetre",
13
13
  "neptune.DateLookup.month": "hónap",
@@ -6602,6 +6602,7 @@ function Popover({
6602
6602
  open,
6603
6603
  renderTrigger,
6604
6604
  title,
6605
+ size: size$1 = 'md',
6605
6606
  padding = 'md',
6606
6607
  children,
6607
6608
  onClose
@@ -6669,7 +6670,10 @@ function Popover({
6669
6670
  children: /*#__PURE__*/jsx("div", {
6670
6671
  // Force inner state invalidation on open
6671
6672
  ref: refs.setFloating,
6672
- className: "np-popover-v2-container"
6673
+ className: classNames('np-popover-v2-container', {
6674
+ 'np-popover-v2-container--size-md': size$1 === 'md',
6675
+ 'np-popover-v2-container--size-lg': size$1 === 'lg'
6676
+ })
6673
6677
  // eslint-disable-next-line react/forbid-dom-props
6674
6678
  ,
6675
6679
  style: floatingStyles,
@@ -6892,6 +6896,7 @@ function SelectInput({
6892
6896
  })
6893
6897
  }),
6894
6898
  initialFocusRef: controllerRef,
6899
+ size: filterable ? 'lg' : 'md',
6895
6900
  padding: "none",
6896
6901
  onClose: () => {
6897
6902
  setOpen(false);
@@ -7999,26 +8004,23 @@ class MoneyInput extends Component {
7999
8004
  maxLengthOverride
8000
8005
  } = this.props;
8001
8006
  const selectOptions = this.getSelectOptions();
8002
- const getFirstSelectItem = () => {
8007
+ const hasSingleCurrency = () => {
8003
8008
  if (selectOptions.length !== 0) {
8004
8009
  const firstItem = selectOptions[0];
8005
- if (firstItem.type === 'option') {
8006
- return {
8007
- hasOneCurrency: selectOptions.length === 1,
8008
- currency: firstItem.value.currency
8009
- };
8010
- }
8011
- if (firstItem.type === 'group') {
8012
- return {
8013
- hasOneCurrency: firstItem.options.length === 1,
8014
- currency: firstItem.options[0].value.currency
8015
- };
8010
+ if (selectOptions.length === 1) {
8011
+ if (firstItem.type === 'option') {
8012
+ return firstItem.value.currency === selectedCurrency.currency;
8013
+ }
8014
+ if (firstItem.type === 'group') {
8015
+ return firstItem.options.length === 1 && !(this.props.onCustomAction && this.props.customActionLabel);
8016
+ }
8016
8017
  }
8018
+ } else if (selectedCurrency?.currency) {
8019
+ return true;
8017
8020
  }
8018
- return null;
8021
+ return false;
8019
8022
  };
8020
- const firstSelectItem = getFirstSelectItem();
8021
- const isFixedCurrency = !this.state.searchQuery && (firstSelectItem?.hasOneCurrency && firstSelectItem?.currency === selectedCurrency.currency || !onCurrencyChange);
8023
+ const isFixedCurrency = !this.state.searchQuery && hasSingleCurrency() || !onCurrencyChange;
8022
8024
  const disabled = !this.props.onAmountChange;
8023
8025
  return /*#__PURE__*/jsxs("div", {
8024
8026
  className: classNames(this.style('tw-money-input'), this.style('input-group'), this.style(`input-group-${size}`)),
@@ -14703,10 +14705,10 @@ var de = {
14703
14705
  "neptune.ClearButton.ariaLabel": "Zurücksetzen",
14704
14706
  "neptune.CloseButton.ariaLabel": "Schließen",
14705
14707
  "neptune.DateInput.day.label": "Tag",
14706
- "neptune.DateInput.day.placeholder": "DD",
14708
+ "neptune.DateInput.day.placeholder": "TT",
14707
14709
  "neptune.DateInput.month.label": "Monat",
14708
14710
  "neptune.DateInput.year.label": "Jahr",
14709
- "neptune.DateInput.year.placeholder": "YYYY",
14711
+ "neptune.DateInput.year.placeholder": "JJJJ",
14710
14712
  "neptune.DateLookup.day": "Tag",
14711
14713
  "neptune.DateLookup.goTo20YearView": "Zur 20-Jahres-Ansicht",
14712
14714
  "neptune.DateLookup.month": "Monat",
@@ -14874,10 +14876,10 @@ var hu = {
14874
14876
  "neptune.ClearButton.ariaLabel": "Törlés",
14875
14877
  "neptune.CloseButton.ariaLabel": "Bezárás",
14876
14878
  "neptune.DateInput.day.label": "Nap",
14877
- "neptune.DateInput.day.placeholder": "Nap",
14879
+ "neptune.DateInput.day.placeholder": "NN",
14878
14880
  "neptune.DateInput.month.label": "Hónap",
14879
14881
  "neptune.DateInput.year.label": "Év",
14880
- "neptune.DateInput.year.placeholder": "Év",
14882
+ "neptune.DateInput.year.placeholder": "ÉÉÉÉ",
14881
14883
  "neptune.DateLookup.day": "nap",
14882
14884
  "neptune.DateLookup.goTo20YearView": "Ugrás a 20 éves nézetre",
14883
14885
  "neptune.DateLookup.month": "hónap",