@transferwise/components 0.0.0-experimental-8f549fe → 0.0.0-experimental-6aefd21

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.
@@ -29,13 +29,13 @@
29
29
  "neptune.Upload.csButtonText": "Másik fájl feltöltése?",
30
30
  "neptune.Upload.csFailureText": "Feltöltés sikertelen. Kérünk, próbáld újra",
31
31
  "neptune.Upload.csSuccessText": "Feltöltés sikeres",
32
- "neptune.Upload.csTooLargeMessage": "Kérünk, olyan fájlt küldj el, amely kisebb mint {maxSize}MB",
32
+ "neptune.Upload.csTooLargeMessage": "Kérünk, {maxSize} MB-nál kisebb fájlt tölts fel",
33
33
  "neptune.Upload.csWrongTypeMessage": "Nem támogatott fájltípus. Kérünk, próbáld újra másik fájllal",
34
34
  "neptune.Upload.psButtonText": "Mégsem",
35
35
  "neptune.Upload.psProcessingText": "Feltöltés...",
36
36
  "neptune.Upload.usButtonText": "Vagy válaszd ki a fájlt",
37
37
  "neptune.Upload.usDropMessage": "Húzd ide a fájlokat a feltöltéshez",
38
- "neptune.Upload.usPlaceholder": "Húzz ide egy legfeljebb {maxSize} MB méretű fájlt",
38
+ "neptune.Upload.usPlaceholder": "Húzz ide egy {maxSize} MB-nál kisebb fájlt",
39
39
  "neptune.UploadButton.allFileTypes": "Összes fájltípus",
40
40
  "neptune.UploadButton.dropFiles": "Húzd a fájlokat ide a feltöltéshez",
41
41
  "neptune.UploadButton.instructions": "{fileTypes}, legfeljebb {size}MB",
@@ -1,7 +1,7 @@
1
1
  import classNames from 'classnames';
2
2
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import * as React from 'react';
4
- import React__default, { forwardRef, cloneElement, useState, useRef, useMemo, useEffect, useCallback, useLayoutEffect, createContext, useContext, createElement, Component, PureComponent, createRef, isValidElement, Children, Fragment as Fragment$1 } from 'react';
4
+ import React__default, { forwardRef, cloneElement, useState, useRef, useMemo, useEffect, useCallback, useLayoutEffect, createContext, useContext, useImperativeHandle, createElement, Component, PureComponent, createRef, isValidElement, Children, Fragment as Fragment$1 } from 'react';
5
5
  import { useId } from '@radix-ui/react-id';
6
6
  import { ChevronUp, CrossCircleFill, Cross, NavigateAway, Check, Info as Info$1, Alert as Alert$2, ClockBorderless, CheckCircle, InfoCircle, Warning, CrossCircle, Clock, Briefcase, Person, ArrowLeft, QuestionMarkCircle, AlertCircle, Search, ChevronDown, CheckCircleFill, ArrowRight, Download, ClockFill, Upload as Upload$2, Document, Plus, PlusCircle, AlertCircleFill } from '@transferwise/icons';
7
7
  import { defineMessages, useIntl, injectIntl, IntlProvider } from 'react-intl';
@@ -10,7 +10,6 @@ import { useTheme, ThemeProvider } from '@wise/components-theming';
10
10
  import { formatDate, formatNumber, formatMoney, formatAmount } from '@transferwise/formatting';
11
11
  import { Transition, Listbox } from '@headlessui/react';
12
12
  import mergeProps from 'merge-props';
13
- import mergeRefs from 'react-merge-refs';
14
13
  import { useSyncExternalStore } from 'use-sync-external-store/shim';
15
14
  import { useFloating, useDismiss, useRole, useInteractions, FloatingPortal, FloatingFocusManager, offset, flip, shift, size, autoUpdate } from '@floating-ui/react';
16
15
  import { FocusScope } from '@react-aria/focus';
@@ -1762,6 +1761,9 @@ const SlidingPanel = /*#__PURE__*/forwardRef(({
1762
1761
  ...rest
1763
1762
  }, reference) => {
1764
1763
  const localReference = useRef(null);
1764
+ useImperativeHandle(reference, () =>
1765
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1766
+ localReference.current, []);
1765
1767
  return /*#__PURE__*/createElement(CSSTransition, {
1766
1768
  ...rest,
1767
1769
  key: `sliding-panel--open-${position}`,
@@ -1777,7 +1779,7 @@ const SlidingPanel = /*#__PURE__*/forwardRef(({
1777
1779
  appear: true,
1778
1780
  unmountOnExit: true
1779
1781
  }, /*#__PURE__*/jsx("div", {
1780
- ref: mergeRefs([reference, localReference]),
1782
+ ref: localReference,
1781
1783
  className: classNames('sliding-panel', `sliding-panel--open-${position}`, showSlidingPanelBorder && `sliding-panel--border-${position}`, slidingPanelPositionFixed && 'sliding-panel--fixed', className),
1782
1784
  children: children
1783
1785
  }));
@@ -6569,7 +6571,10 @@ function SelectInput({
6569
6571
  }) => /*#__PURE__*/jsx(SelectInputTriggerButtonPropsContext.Provider, {
6570
6572
  // eslint-disable-next-line react/jsx-no-constructed-context-values
6571
6573
  value: {
6572
- ref: mergeRefs([ref, triggerRef]),
6574
+ ref: node => {
6575
+ ref(node);
6576
+ triggerRef.current = node;
6577
+ },
6573
6578
  id,
6574
6579
  ...mergeProps({
6575
6580
  onClick: () => {
@@ -14345,13 +14350,13 @@ var hu = {
14345
14350
  "neptune.Upload.csButtonText": "Másik fájl feltöltése?",
14346
14351
  "neptune.Upload.csFailureText": "Feltöltés sikertelen. Kérünk, próbáld újra",
14347
14352
  "neptune.Upload.csSuccessText": "Feltöltés sikeres",
14348
- "neptune.Upload.csTooLargeMessage": "Kérünk, olyan fájlt küldj el, amely kisebb mint {maxSize}MB",
14353
+ "neptune.Upload.csTooLargeMessage": "Kérünk, {maxSize} MB-nál kisebb fájlt tölts fel",
14349
14354
  "neptune.Upload.csWrongTypeMessage": "Nem támogatott fájltípus. Kérünk, próbáld újra másik fájllal",
14350
14355
  "neptune.Upload.psButtonText": "Mégsem",
14351
14356
  "neptune.Upload.psProcessingText": "Feltöltés...",
14352
14357
  "neptune.Upload.usButtonText": "Vagy válaszd ki a fájlt",
14353
14358
  "neptune.Upload.usDropMessage": "Húzd ide a fájlokat a feltöltéshez",
14354
- "neptune.Upload.usPlaceholder": "Húzz ide egy legfeljebb {maxSize} MB méretű fájlt",
14359
+ "neptune.Upload.usPlaceholder": "Húzz ide egy {maxSize} MB-nál kisebb fájlt",
14355
14360
  "neptune.UploadButton.allFileTypes": "Összes fájltípus",
14356
14361
  "neptune.UploadButton.dropFiles": "Húzd a fájlokat ide a feltöltéshez",
14357
14362
  "neptune.UploadButton.instructions": "{fileTypes}, legfeljebb {size}MB",