@transferwise/components 46.20.0 → 46.21.0

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.
Files changed (80) hide show
  1. package/build/i18n/cs.json +2 -2
  2. package/build/i18n/de.json +2 -2
  3. package/build/i18n/en.json +2 -2
  4. package/build/i18n/es.json +2 -2
  5. package/build/i18n/fr.json +2 -2
  6. package/build/i18n/hu.json +2 -2
  7. package/build/i18n/id.json +2 -2
  8. package/build/i18n/it.json +2 -2
  9. package/build/i18n/ja.json +2 -2
  10. package/build/i18n/pl.json +2 -2
  11. package/build/i18n/pt.json +2 -2
  12. package/build/i18n/ro.json +2 -2
  13. package/build/i18n/ru.json +2 -2
  14. package/build/i18n/th.json +2 -2
  15. package/build/i18n/tr.json +2 -2
  16. package/build/i18n/zh-CN.json +2 -2
  17. package/build/i18n/zh-HK.json +2 -2
  18. package/build/index.esm.js +91 -127
  19. package/build/index.esm.js.map +1 -1
  20. package/build/index.js +92 -128
  21. package/build/index.js.map +1 -1
  22. package/build/types/circularButton/CircularButton.d.ts +2 -2
  23. package/build/types/circularButton/CircularButton.d.ts.map +1 -1
  24. package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -1
  25. package/build/types/common/index.d.ts +0 -1
  26. package/build/types/index.d.ts +2 -0
  27. package/build/types/index.d.ts.map +1 -1
  28. package/build/types/promoCard/PromoCard.d.ts.map +1 -1
  29. package/build/types/slidingPanel/SlidingPanel.d.ts +12 -17
  30. package/build/types/slidingPanel/SlidingPanel.d.ts.map +1 -1
  31. package/build/types/slidingPanel/index.d.ts +2 -1
  32. package/build/types/slidingPanel/index.d.ts.map +1 -1
  33. package/build/types/sticky/Sticky.d.ts +9 -14
  34. package/build/types/sticky/Sticky.d.ts.map +1 -1
  35. package/build/types/sticky/index.d.ts +2 -1
  36. package/build/types/sticky/index.d.ts.map +1 -1
  37. package/build/types/upload/Upload.d.ts.map +1 -1
  38. package/package.json +3 -3
  39. package/src/circularButton/CircularButton.tsx +2 -2
  40. package/src/common/bottomSheet/BottomSheet.tsx +47 -41
  41. package/src/common/bottomSheet/__snapshots__/BottomSheet.spec.tsx.snap +37 -33
  42. package/src/common/index.js +0 -1
  43. package/src/i18n/cs.json +2 -2
  44. package/src/i18n/de.json +2 -2
  45. package/src/i18n/en.json +2 -2
  46. package/src/i18n/es.json +2 -2
  47. package/src/i18n/fr.json +2 -2
  48. package/src/i18n/hu.json +2 -2
  49. package/src/i18n/id.json +2 -2
  50. package/src/i18n/it.json +2 -2
  51. package/src/i18n/ja.json +2 -2
  52. package/src/i18n/pl.json +2 -2
  53. package/src/i18n/pt.json +2 -2
  54. package/src/i18n/ro.json +2 -2
  55. package/src/i18n/ru.json +2 -2
  56. package/src/i18n/th.json +2 -2
  57. package/src/i18n/tr.json +2 -2
  58. package/src/i18n/zh-CN.json +2 -2
  59. package/src/i18n/zh-HK.json +2 -2
  60. package/src/index.ts +2 -0
  61. package/src/promoCard/PromoCard.tsx +5 -3
  62. package/src/select/Select.spec.js +1 -1
  63. package/src/slidingPanel/SlidingPanel.spec.js +9 -19
  64. package/src/slidingPanel/SlidingPanel.tsx +62 -0
  65. package/src/slidingPanel/index.ts +2 -0
  66. package/src/sticky/Sticky.spec.js +0 -1
  67. package/src/sticky/{Sticky.story.js → Sticky.story.tsx} +2 -3
  68. package/src/sticky/Sticky.tsx +16 -0
  69. package/src/sticky/index.ts +2 -0
  70. package/src/upload/Upload.js +8 -2
  71. package/src/upload/Upload.messages.js +2 -2
  72. package/src/upload/Upload.story.js +1 -1
  73. package/build/types/common/randomId.d.ts +0 -13
  74. package/build/types/common/randomId.d.ts.map +0 -1
  75. package/src/common/randomId.ts +0 -14
  76. package/src/slidingPanel/SlidingPanel.js +0 -73
  77. package/src/slidingPanel/index.js +0 -1
  78. package/src/sticky/Sticky.js +0 -23
  79. package/src/sticky/index.js +0 -1
  80. /package/src/slidingPanel/{SlidingPanel.story.js → SlidingPanel.story.tsx} +0 -0
@@ -404,21 +404,6 @@ function getDirectionFromLocale(locale) {
404
404
  return adjustedLocale != null && RTL_LANGUAGES.includes(new Intl.Locale(adjustedLocale).language) ? Direction.RTL : Direction.LTR;
405
405
  }
406
406
 
407
- /**
408
- * generateRandomId() function
409
- *
410
- * This function generates a random string of characters that can be used as
411
- * an ID.
412
- *
413
- * @returns {string} A random string of characters.
414
- * @example
415
- * const id = generateRandomId();
416
- * // id will be a random string of characters, such as "id-4711".
417
- */
418
- const generateRandomId = () => {
419
- return `id-${Math.random().toString(36).slice(7)}`;
420
- };
421
-
422
407
  const DEFAULT_TYPE$1 = Typography.TITLE_GROUP;
423
408
  const titleTypeMapping = {
424
409
  [Typography.TITLE_SCREEN]: 'h1',
@@ -1768,15 +1753,14 @@ const useLayout = () => {
1768
1753
 
1769
1754
  const EXIT_ANIMATION = 350;
1770
1755
  const SlidingPanel = /*#__PURE__*/forwardRef(({
1771
- children,
1772
- className,
1756
+ position = 'left',
1773
1757
  open,
1774
- position,
1775
1758
  showSlidingPanelBorder,
1776
1759
  slidingPanelPositionFixed,
1760
+ className,
1761
+ children,
1777
1762
  ...rest
1778
1763
  }, reference) => {
1779
- /** @type {RefObject<HTMLDivElement>} */
1780
1764
  const localReference = useRef(null);
1781
1765
  return /*#__PURE__*/createElement(CSSTransition, {
1782
1766
  ...rest,
@@ -1789,34 +1773,15 @@ const SlidingPanel = /*#__PURE__*/forwardRef(({
1789
1773
  enter: 0,
1790
1774
  exit: EXIT_ANIMATION
1791
1775
  },
1792
- classNames: classNames(`sliding-panel--open-${position}`, showSlidingPanelBorder && `sliding-panel--border-${position}`, {
1793
- 'sliding-panel--fixed': slidingPanelPositionFixed
1794
- }, 'sliding-panel'),
1776
+ classNames: "sliding-panel",
1795
1777
  appear: true,
1796
1778
  unmountOnExit: true
1797
1779
  }, /*#__PURE__*/jsx("div", {
1798
1780
  ref: mergeRefs([reference, localReference]),
1799
- className: classNames('sliding-panel', `sliding-panel--open-${position}`, className),
1781
+ className: classNames('sliding-panel', `sliding-panel--open-${position}`, showSlidingPanelBorder && `sliding-panel--border-${position}`, slidingPanelPositionFixed && 'sliding-panel--fixed', className),
1800
1782
  children: children
1801
1783
  }));
1802
1784
  });
1803
- SlidingPanel.propTypes = {
1804
- children: PropTypes.node,
1805
- className: PropTypes.string,
1806
- open: PropTypes.bool,
1807
- position: PropTypes.oneOf(['top', 'bottom', 'left', 'right']),
1808
- showSlidingPanelBorder: PropTypes.bool,
1809
- slidingPanelPositionFixed: PropTypes.bool
1810
- };
1811
- SlidingPanel.defaultProps = {
1812
- children: null,
1813
- className: undefined,
1814
- open: false,
1815
- position: 'left',
1816
- showSlidingPanelBorder: false,
1817
- slidingPanelPositionFixed: false
1818
- };
1819
- var SlidingPanel$1 = SlidingPanel;
1820
1785
 
1821
1786
  const Drawer = ({
1822
1787
  children,
@@ -1835,7 +1800,7 @@ const Drawer = ({
1835
1800
  return /*#__PURE__*/jsx(Dimmer$1, {
1836
1801
  open: open,
1837
1802
  onClose: onClose,
1838
- children: /*#__PURE__*/jsx(SlidingPanel$1, {
1803
+ children: /*#__PURE__*/jsx(SlidingPanel, {
1839
1804
  open: open,
1840
1805
  position: isMobile ? Position.BOTTOM : position,
1841
1806
  children: /*#__PURE__*/jsxs("div", {
@@ -1952,15 +1917,15 @@ const BottomSheet$1 = props => {
1952
1917
  props.onClose(event);
1953
1918
  }
1954
1919
  }
1955
- const onSwipeStart = isMobile => event => {
1956
- initialYCoordinate.current = (isMobile ? event.touches[0] : event).clientY;
1920
+ const onSwipeStart = event => {
1921
+ initialYCoordinate.current = ('touches' in event ? event.touches[0] : event).clientY;
1957
1922
  setPressed(true);
1958
1923
  };
1959
- const onSwipeMove = isMobile => event => {
1924
+ const onSwipeMove = event => {
1960
1925
  if (pressed) {
1961
1926
  const {
1962
1927
  clientY
1963
- } = isMobile ? event.touches[0] : event;
1928
+ } = 'touches' in event ? event.touches[0] : event;
1964
1929
  const offset = calculateOffsetAfterMove(clientY);
1965
1930
  // check whether move is to the bottom only and content scroll position is at the top
1966
1931
  if (offset > INITIAL_Y_POSITION && isContentScrollPositionAtTop()) {
@@ -2029,34 +1994,37 @@ const BottomSheet$1 = props => {
2029
1994
  fadeContentOnEnter: true,
2030
1995
  fadeContentOnExit: true,
2031
1996
  onClose: close,
2032
- children: /*#__PURE__*/jsxs(SlidingPanel$1, {
1997
+ children: /*#__PURE__*/jsx(SlidingPanel, {
2033
1998
  ref: bottomSheetReference,
2034
1999
  open: props.open,
2035
2000
  position: Position.BOTTOM,
2036
2001
  className: classNames('np-bottom-sheet', props.className),
2037
- role: "dialog",
2038
- onTouchStart: onSwipeStart(true),
2039
- onTouchMove: onSwipeMove(true),
2040
- onTouchEnd: onSwipeEnd,
2041
- onMouseDown: onSwipeStart(false),
2042
- onMouseMove: onSwipeMove(false),
2043
- onMouseUp: onSwipeEnd,
2044
- children: [/*#__PURE__*/jsxs("div", {
2045
- ref: topBarReference,
2046
- className: "np-bottom-sheet--top-bar",
2047
- children: [/*#__PURE__*/jsx("div", {
2048
- className: "np-bottom-sheet--handler"
2049
- }), /*#__PURE__*/jsx(CloseButton, {
2050
- size: "sm",
2051
- className: "sr-only np-bottom-sheet--close-btn",
2052
- onClick: close
2002
+ children: /*#__PURE__*/jsxs("div", {
2003
+ role: "dialog",
2004
+ "aria-modal": true,
2005
+ onTouchStart: onSwipeStart,
2006
+ onTouchMove: onSwipeMove,
2007
+ onTouchEnd: onSwipeEnd,
2008
+ onMouseDown: onSwipeStart,
2009
+ onMouseMove: onSwipeMove,
2010
+ onMouseUp: onSwipeEnd,
2011
+ children: [/*#__PURE__*/jsxs("div", {
2012
+ ref: topBarReference,
2013
+ className: "np-bottom-sheet--top-bar",
2014
+ children: [/*#__PURE__*/jsx("div", {
2015
+ className: "np-bottom-sheet--handler"
2016
+ }), /*#__PURE__*/jsx(CloseButton, {
2017
+ size: "sm",
2018
+ className: "sr-only np-bottom-sheet--close-btn",
2019
+ onClick: close
2020
+ })]
2021
+ }), /*#__PURE__*/jsx("div", {
2022
+ ref: contentReference,
2023
+ style: setContentMaxHeight(),
2024
+ className: "np-bottom-sheet--content",
2025
+ children: props.children
2053
2026
  })]
2054
- }), /*#__PURE__*/jsx("div", {
2055
- ref: contentReference,
2056
- style: setContentMaxHeight(),
2057
- className: "np-bottom-sheet--content",
2058
- children: props.children
2059
- })]
2027
+ })
2060
2028
  })
2061
2029
  });
2062
2030
  };
@@ -9635,7 +9603,8 @@ const PromoCard = /*#__PURE__*/forwardRef(({
9635
9603
  setChecked(!checked); // Update local state for checkbox
9636
9604
  }
9637
9605
  };
9638
- const componentId = `${id || generateRandomId()}`;
9606
+ const fallbackId = useId();
9607
+ const componentId = id || fallbackId;
9639
9608
  // Set the icon to `'arrow'` if `href` is truthy and `type` is falsy, or
9640
9609
  // `'download'` if `download` is truthy. If neither condition is true, set
9641
9610
  // `icon` to `undefined`.
@@ -9794,13 +9763,13 @@ var en = {
9794
9763
  "neptune.Upload.csButtonText": "Upload another file?",
9795
9764
  "neptune.Upload.csFailureText": "Upload failed. Please, try again",
9796
9765
  "neptune.Upload.csSuccessText": "Upload complete!",
9797
- "neptune.Upload.csTooLargeMessage": "Please provide a file smaller than 5MB",
9766
+ "neptune.Upload.csTooLargeMessage": "Please provide a file smaller than {maxSize}MB",
9798
9767
  "neptune.Upload.csWrongTypeMessage": "File type not supported. Please try again with a different file",
9799
9768
  "neptune.Upload.psButtonText": "Cancel",
9800
9769
  "neptune.Upload.psProcessingText": "Uploading...",
9801
9770
  "neptune.Upload.usButtonText": "Or select a file",
9802
9771
  "neptune.Upload.usDropMessage": "Drop file to start upload",
9803
- "neptune.Upload.usPlaceholder": "Drag and drop a file less than 5MB",
9772
+ "neptune.Upload.usPlaceholder": "Drag and drop a file less than {maxSize}MB",
9804
9773
  "neptune.UploadButton.allFileTypes": "All file types",
9805
9774
  "neptune.UploadButton.dropFiles": "Drop file to start upload",
9806
9775
  "neptune.UploadButton.instructions": "{fileTypes}, less than {size}MB",
@@ -10956,28 +10925,19 @@ function SnackbarProvider({
10956
10925
  });
10957
10926
  }
10958
10927
 
10959
- const Sticky = ({
10960
- open,
10961
- position,
10928
+ function Sticky({
10929
+ open = true,
10930
+ position = 'bottom',
10962
10931
  children
10963
- }) => /*#__PURE__*/jsx(SlidingPanel$1, {
10964
- open: open,
10965
- position: position,
10966
- slidingPanelPositionFixed: true,
10967
- showSlidingPanelBorder: true,
10968
- children: children
10969
- });
10970
- Sticky.propTypes = {
10971
- open: PropTypes.bool,
10972
- position: PropTypes.oneOf(['top', 'bottom']),
10973
- children: PropTypes.node
10974
- };
10975
- Sticky.defaultProps = {
10976
- open: true,
10977
- position: 'bottom',
10978
- children: null
10979
- };
10980
- var Sticky$1 = Sticky;
10932
+ }) {
10933
+ return /*#__PURE__*/jsx(SlidingPanel, {
10934
+ open: open,
10935
+ position: position,
10936
+ slidingPanelPositionFixed: true,
10937
+ showSlidingPanelBorder: true,
10938
+ children: children
10939
+ });
10940
+ }
10981
10941
 
10982
10942
  var messages$1 = defineMessages({
10983
10943
  statusNotDone: {
@@ -12960,7 +12920,9 @@ class Upload extends Component {
12960
12920
  getErrorMessage(status) {
12961
12921
  switch (status) {
12962
12922
  case 413:
12963
- return this.props.csTooLargeMessage || this.props.intl.formatMessage(messages.csTooLargeMessage);
12923
+ return this.props.csTooLargeMessage || this.props.intl.formatMessage(messages.csTooLargeMessage, {
12924
+ maxSize: this.props.maxSize / 1000000
12925
+ });
12964
12926
  case 415:
12965
12927
  return this.props.csWrongTypeMessage || this.props.intl.formatMessage(messages.csWrongTypeMessage);
12966
12928
  default:
@@ -13218,7 +13180,9 @@ class Upload extends Component {
13218
13180
  usDisabled: usDisabled,
13219
13181
  usHelpImage: usHelpImage,
13220
13182
  usLabel: usLabel,
13221
- usPlaceholder: usPlaceholder || intl.formatMessage(messages.usPlaceholder)
13183
+ usPlaceholder: usPlaceholder || intl.formatMessage(messages.usPlaceholder, {
13184
+ maxSize: this.props.maxSize / 1000000
13185
+ })
13222
13186
  }), isProcessing && /*#__PURE__*/jsx(ProcessingStep$1, {
13223
13187
  isComplete: isComplete,
13224
13188
  isError: isError,
@@ -14117,13 +14081,13 @@ var cs = {
14117
14081
  "neptune.Upload.csButtonText": "Nahrát další soubor?",
14118
14082
  "neptune.Upload.csFailureText": "Nahrání se nezdařilo. Zkuste to prosím později",
14119
14083
  "neptune.Upload.csSuccessText": "Úspěšně nahráno!",
14120
- "neptune.Upload.csTooLargeMessage": "Soubor musí být menší než 5MB",
14084
+ "neptune.Upload.csTooLargeMessage": "Soubor musí být menší než {maxSize}MB",
14121
14085
  "neptune.Upload.csWrongTypeMessage": "Tento formát souboru není podporován. Zkuste to znovu s jiným souborem",
14122
14086
  "neptune.Upload.psButtonText": "Zrušit",
14123
14087
  "neptune.Upload.psProcessingText": "Načítání...",
14124
14088
  "neptune.Upload.usButtonText": "Nebo vyberte soubor",
14125
14089
  "neptune.Upload.usDropMessage": "Pusťte sem soubor pro jeho nahrání",
14126
- "neptune.Upload.usPlaceholder": "Přetáhněte a pusťte sem soubor menší než 5MB",
14090
+ "neptune.Upload.usPlaceholder": "Přetáhněte a pusťte sem soubor menší než {maxSize}MB",
14127
14091
  "neptune.UploadButton.allFileTypes": "Všechny typy souborů",
14128
14092
  "neptune.UploadButton.dropFiles": "Pusťte sem soubor pro jeho nahrání",
14129
14093
  "neptune.UploadButton.instructions": "{fileTypes}, menší než {size}MB",
@@ -14175,13 +14139,13 @@ var de = {
14175
14139
  "neptune.Upload.csButtonText": "Eine andere Datei hochladen?",
14176
14140
  "neptune.Upload.csFailureText": "Hochladen fehlgeschlagen. Bitte versuche es erneut",
14177
14141
  "neptune.Upload.csSuccessText": "Fertig hochgeladen!",
14178
- "neptune.Upload.csTooLargeMessage": "Bitte wähle eine Datei aus, die kleiner als 5 MB ist",
14142
+ "neptune.Upload.csTooLargeMessage": "Bitte wähle eine Datei aus, die kleiner als {maxSize} MB ist",
14179
14143
  "neptune.Upload.csWrongTypeMessage": "Dateityp wird nicht unterstützt. Bitte versuche es erneut mit einer anderen Datei",
14180
14144
  "neptune.Upload.psButtonText": "Abbrechen",
14181
14145
  "neptune.Upload.psProcessingText": "Wird hochgeladen...",
14182
14146
  "neptune.Upload.usButtonText": "Oder wähle eine Datei aus",
14183
14147
  "neptune.Upload.usDropMessage": "Datei zum Hochladen in dieses Feld ziehen",
14184
- "neptune.Upload.usPlaceholder": "Ziehe eine Datei in dieses Feld, die kleiner als 5 MB ist",
14148
+ "neptune.Upload.usPlaceholder": "Ziehe eine Datei in dieses Feld, die kleiner als {maxSize} MB ist",
14185
14149
  "neptune.UploadButton.allFileTypes": "Alle Dateiformate",
14186
14150
  "neptune.UploadButton.dropFiles": "Datei zum Hochladen in dieses Feld ziehen",
14187
14151
  "neptune.UploadButton.instructions": "{fileTypes}, kleiner als {size} MB",
@@ -14233,13 +14197,13 @@ var es = {
14233
14197
  "neptune.Upload.csButtonText": "¿Quieres subir otro archivo?",
14234
14198
  "neptune.Upload.csFailureText": "La carga del archivo ha fallado. Por favor, inténtalo de nuevo",
14235
14199
  "neptune.Upload.csSuccessText": "¡Se ha subido el archivo!",
14236
- "neptune.Upload.csTooLargeMessage": "Por favor, sube un archivo de menos de 5 MB",
14200
+ "neptune.Upload.csTooLargeMessage": "Por favor, sube un archivo de menos de {maxSize}MB",
14237
14201
  "neptune.Upload.csWrongTypeMessage": "Tipo de archivo no aceptado. Por favor, inténtalo de nuevo con un archivo diferente",
14238
14202
  "neptune.Upload.psButtonText": "Cancela",
14239
14203
  "neptune.Upload.psProcessingText": "Subiendo...",
14240
14204
  "neptune.Upload.usButtonText": "O selecciona un archivo",
14241
14205
  "neptune.Upload.usDropMessage": "Arrastra un archivo para subirlo",
14242
- "neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo menor de 5MB",
14206
+ "neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo menor de {maxSize}MB",
14243
14207
  "neptune.UploadButton.allFileTypes": "Todos los tipos de archivos",
14244
14208
  "neptune.UploadButton.dropFiles": "Arrastra un archivo para subirlo",
14245
14209
  "neptune.UploadButton.instructions": "{fileTypes}, menor que {size}MB",
@@ -14291,13 +14255,13 @@ var fr = {
14291
14255
  "neptune.Upload.csButtonText": "Envoyer un autre fichier ?",
14292
14256
  "neptune.Upload.csFailureText": "Échec du téléchargement. Veuillez réessayer",
14293
14257
  "neptune.Upload.csSuccessText": "Téléchargement terminé !",
14294
- "neptune.Upload.csTooLargeMessage": "Veuillez fournir un fichier inférieur à 5 Mo",
14258
+ "neptune.Upload.csTooLargeMessage": "Veuillez fournir un fichier de moins de {maxSize} Mo",
14295
14259
  "neptune.Upload.csWrongTypeMessage": "Format non pris en charge. Veuillez réessayer avec un fichier différent",
14296
14260
  "neptune.Upload.psButtonText": "Annuler",
14297
14261
  "neptune.Upload.psProcessingText": "Téléchargement...",
14298
14262
  "neptune.Upload.usButtonText": "Ou sélectionnez un fichier",
14299
14263
  "neptune.Upload.usDropMessage": "Déposer un fichier pour démarrer le téléchargement",
14300
- "neptune.Upload.usPlaceholder": "Glissez et déposez un fichier inférieur à 5 Mo",
14264
+ "neptune.Upload.usPlaceholder": "Glissez-déposez un fichier de moins de {maxSize} Mo",
14301
14265
  "neptune.UploadButton.allFileTypes": "Tous types de fichiers",
14302
14266
  "neptune.UploadButton.dropFiles": "Déposer un fichier pour démarrer le téléchargement",
14303
14267
  "neptune.UploadButton.instructions": "{fileTypes}, inférieur à {size} Mo",
@@ -14349,13 +14313,13 @@ var hu = {
14349
14313
  "neptune.Upload.csButtonText": "Másik fájl feltöltése?",
14350
14314
  "neptune.Upload.csFailureText": "Feltöltés sikertelen. Kérünk, próbáld újra",
14351
14315
  "neptune.Upload.csSuccessText": "Feltöltés sikeres",
14352
- "neptune.Upload.csTooLargeMessage": "Kérünk, 5 MB-nál kisebb fájlt tölts fel",
14316
+ "neptune.Upload.csTooLargeMessage": "Kérünk, {maxSize} MB-nál kisebb fájlt tölts fel",
14353
14317
  "neptune.Upload.csWrongTypeMessage": "Nem támogatott fájltípus. Kérünk, próbáld újra másik fájllal",
14354
14318
  "neptune.Upload.psButtonText": "Mégsem",
14355
14319
  "neptune.Upload.psProcessingText": "Feltöltés...",
14356
14320
  "neptune.Upload.usButtonText": "Vagy válaszd ki a fájlt",
14357
14321
  "neptune.Upload.usDropMessage": "Húzd ide a fájlokat a feltöltéshez",
14358
- "neptune.Upload.usPlaceholder": "Húzz ide egy 5MB-nál kisebb fájlt",
14322
+ "neptune.Upload.usPlaceholder": "Húzz ide egy {maxSize} MB-nál kisebb fájlt",
14359
14323
  "neptune.UploadButton.allFileTypes": "Összes fájltípus",
14360
14324
  "neptune.UploadButton.dropFiles": "Húzd a fájlokat ide a feltöltéshez",
14361
14325
  "neptune.UploadButton.instructions": "{fileTypes}, legfeljebb {size}MB",
@@ -14407,13 +14371,13 @@ var id = {
14407
14371
  "neptune.Upload.csButtonText": "Unggah file lainnya?",
14408
14372
  "neptune.Upload.csFailureText": "Unggahan gagal. Silakan coba lagi",
14409
14373
  "neptune.Upload.csSuccessText": "Pengunggahan selesai!",
14410
- "neptune.Upload.csTooLargeMessage": "Harap berikan file kurang dari 5MB",
14374
+ "neptune.Upload.csTooLargeMessage": "Harap berikan file yang lebih kecil dari {maxSize} MB",
14411
14375
  "neptune.Upload.csWrongTypeMessage": "Tipe file ini tidak didukung. Mohon coba lagi dengan file yang berbeda",
14412
14376
  "neptune.Upload.psButtonText": "Batalkan",
14413
14377
  "neptune.Upload.psProcessingText": "Mengunggah...",
14414
14378
  "neptune.Upload.usButtonText": "Atau pilih file",
14415
14379
  "neptune.Upload.usDropMessage": "Letakkan file untuk mulai mengunggah",
14416
- "neptune.Upload.usPlaceholder": "Geser dan letakkan file berukuran kurang dari 5MB",
14380
+ "neptune.Upload.usPlaceholder": "Seret dan lepas file yang kurang dari {maxSize} MB",
14417
14381
  "neptune.UploadButton.allFileTypes": "Semua jenis file",
14418
14382
  "neptune.UploadButton.dropFiles": "Lepaskan file untuk mulai mengunggah",
14419
14383
  "neptune.UploadButton.instructions": "{fileTypes}, kurang dari {size}MB",
@@ -14465,13 +14429,13 @@ var it = {
14465
14429
  "neptune.Upload.csButtonText": "Carica un altro documento?",
14466
14430
  "neptune.Upload.csFailureText": "Caricamento fallito. Per favore riprova",
14467
14431
  "neptune.Upload.csSuccessText": "Caricamento completato!",
14468
- "neptune.Upload.csTooLargeMessage": "Carica un file più piccolo di 5MB",
14432
+ "neptune.Upload.csTooLargeMessage": "Carica un file più piccolo di {maxSize}MB",
14469
14433
  "neptune.Upload.csWrongTypeMessage": "Formato del documento non supportato. Riprova con un formato diverso",
14470
14434
  "neptune.Upload.psButtonText": "Annulla",
14471
14435
  "neptune.Upload.psProcessingText": "Caricamento...",
14472
14436
  "neptune.Upload.usButtonText": "O seleziona un documento",
14473
14437
  "neptune.Upload.usDropMessage": "Rilascia il documento per iniziare il caricamento",
14474
- "neptune.Upload.usPlaceholder": "Trascina e rilascia un file inferiore a 5MB",
14438
+ "neptune.Upload.usPlaceholder": "Trascina e rilascia un file inferiore a {maxSize}MB",
14475
14439
  "neptune.UploadButton.allFileTypes": "Tutti i tipi di file",
14476
14440
  "neptune.UploadButton.dropFiles": "Rilascia file per iniziare a caricare",
14477
14441
  "neptune.UploadButton.instructions": "{fileTypes}, minore di {size}MB",
@@ -14523,13 +14487,13 @@ var ja = {
14523
14487
  "neptune.Upload.csButtonText": "別のファイルをアップロードしますか?",
14524
14488
  "neptune.Upload.csFailureText": "アップロードに失敗しました。もう一度やり直してください。",
14525
14489
  "neptune.Upload.csSuccessText": "アップロードが完了しました。",
14526
- "neptune.Upload.csTooLargeMessage": "5MBよりも小さいファイルをアップロードください",
14490
+ "neptune.Upload.csTooLargeMessage": "{maxSize}MB以下のファイルをアップロードしてください",
14527
14491
  "neptune.Upload.csWrongTypeMessage": "ファイルの種類はサポートされていません。別のファイルで再度お試しください",
14528
14492
  "neptune.Upload.psButtonText": "キャンセル",
14529
14493
  "neptune.Upload.psProcessingText": "アップロード中…",
14530
14494
  "neptune.Upload.usButtonText": "または、ファイルを選択する",
14531
14495
  "neptune.Upload.usDropMessage": "ファイルをドロップしてアップロードする",
14532
- "neptune.Upload.usPlaceholder": "5MB以下のファイルのみドラッグ&ドロップが可能です",
14496
+ "neptune.Upload.usPlaceholder": "{maxSize}MB以下のファイルをドラッグ&ドロップしてください",
14533
14497
  "neptune.UploadButton.allFileTypes": "すべてのファイル種類",
14534
14498
  "neptune.UploadButton.dropFiles": "ファイルをドロップしてアップロードする",
14535
14499
  "neptune.UploadButton.instructions": "{fileTypes}、{size}MB以下",
@@ -14581,13 +14545,13 @@ var pl = {
14581
14545
  "neptune.Upload.csButtonText": "Prześlij kolejny plik?",
14582
14546
  "neptune.Upload.csFailureText": "Przesyłanie nie powiodło się. Proszę spróbować ponownie",
14583
14547
  "neptune.Upload.csSuccessText": "Przesyłanie zakończone!",
14584
- "neptune.Upload.csTooLargeMessage": "Proszę przesłać plik mniejszy niż 5MB",
14548
+ "neptune.Upload.csTooLargeMessage": "Proszę przesłać plik mniejszy niż {maxSize}MB",
14585
14549
  "neptune.Upload.csWrongTypeMessage": "Nieobsługiwany typ pliku. Spróbuj ponownie z innym plikiem",
14586
14550
  "neptune.Upload.psButtonText": "Anuluj",
14587
14551
  "neptune.Upload.psProcessingText": "Przesyłanie...",
14588
14552
  "neptune.Upload.usButtonText": "Lub wybierz plik",
14589
14553
  "neptune.Upload.usDropMessage": "Upuść plik, aby rozpocząć przesyłanie",
14590
- "neptune.Upload.usPlaceholder": "Przeciągnij i upuść plik mniejszy niż 5MB",
14554
+ "neptune.Upload.usPlaceholder": "Przeciągnij i upuść plik mniejszy niż {maxSize}MB",
14591
14555
  "neptune.UploadButton.allFileTypes": "Wszystkie typy plików",
14592
14556
  "neptune.UploadButton.dropFiles": "Upuść plik, żeby rozpocząć przesyłanie",
14593
14557
  "neptune.UploadButton.instructions": "{fileTypes}, mniejsze niż {size}MB",
@@ -14639,13 +14603,13 @@ var pt = {
14639
14603
  "neptune.Upload.csButtonText": "Enviar outro documento?",
14640
14604
  "neptune.Upload.csFailureText": "Falha no envio. Por favor, tente novamente",
14641
14605
  "neptune.Upload.csSuccessText": "Envio concluído!",
14642
- "neptune.Upload.csTooLargeMessage": "Por favor, envie um arquivo com menos de 5MB",
14606
+ "neptune.Upload.csTooLargeMessage": "Por favor, envie um arquivo com menos de {maxSize}MB",
14643
14607
  "neptune.Upload.csWrongTypeMessage": "Não trabalhamos com este tipo de arquivo. Por favor, tente novamente com um arquivo diferente",
14644
14608
  "neptune.Upload.psButtonText": "Cancelar",
14645
14609
  "neptune.Upload.psProcessingText": "Enviando...",
14646
14610
  "neptune.Upload.usButtonText": "Ou escolha um arquivo",
14647
14611
  "neptune.Upload.usDropMessage": "Arraste o arquivo para iniciar o envio",
14648
- "neptune.Upload.usPlaceholder": "Arraste e envie um arquivo menor que 5MB",
14612
+ "neptune.Upload.usPlaceholder": "Arraste e envie um arquivo menor que {maxSize}MB",
14649
14613
  "neptune.UploadButton.allFileTypes": "Todos os tipos de arquivos",
14650
14614
  "neptune.UploadButton.dropFiles": "Arraste o arquivo para iniciar o envio",
14651
14615
  "neptune.UploadButton.instructions": "{fileTypes}, com menos de {size}MB",
@@ -14697,13 +14661,13 @@ var ro = {
14697
14661
  "neptune.Upload.csButtonText": "Încarci un alt fișier?",
14698
14662
  "neptune.Upload.csFailureText": "Încărcare eșuată. Te rugăm să încerci din nou",
14699
14663
  "neptune.Upload.csSuccessText": "Încărcare completă!",
14700
- "neptune.Upload.csTooLargeMessage": "Te rugăm să furnizezi un fișier mai mic de 5MB",
14664
+ "neptune.Upload.csTooLargeMessage": "Te rugăm să furnizezi un fișier mai mic de {maxSize} MB",
14701
14665
  "neptune.Upload.csWrongTypeMessage": "Tipul de fișier nu a fost acceptat. Te rugăm să încerci din nou cu un alt fișier",
14702
14666
  "neptune.Upload.psButtonText": "Anulează",
14703
14667
  "neptune.Upload.psProcessingText": "Se încarcă...",
14704
14668
  "neptune.Upload.usButtonText": "Sau selectează un fișier",
14705
14669
  "neptune.Upload.usDropMessage": "Atașează fișierul pentru a începe încărcarea",
14706
- "neptune.Upload.usPlaceholder": "Glisează și atașează un fișier de până în 5MB",
14670
+ "neptune.Upload.usPlaceholder": "Glisează și atașează un fișier mai mic de {maxSize} MB",
14707
14671
  "neptune.UploadButton.allFileTypes": "Toate tipurile de fișiere",
14708
14672
  "neptune.UploadButton.dropFiles": "Trage fișierul pentru a începe încărcarea",
14709
14673
  "neptune.UploadButton.instructions": "{fileTypes}, de maximum {size}MB",
@@ -14755,13 +14719,13 @@ var ru = {
14755
14719
  "neptune.Upload.csButtonText": "Загрузить другой файл?",
14756
14720
  "neptune.Upload.csFailureText": "Загрузка не удалась. Пожалуйста, попробуйте снова",
14757
14721
  "neptune.Upload.csSuccessText": "Загрузка завершена!",
14758
- "neptune.Upload.csTooLargeMessage": "Пожалуйста, загрузите файл размером менее 5MB",
14722
+ "neptune.Upload.csTooLargeMessage": "Пожалуйста, загрузите файл размером менее {maxSize} Мб",
14759
14723
  "neptune.Upload.csWrongTypeMessage": "Тип файла не поддерживается. Пожалуйста, попробуйте еще раз с другим файлом",
14760
14724
  "neptune.Upload.psButtonText": "Отменить",
14761
14725
  "neptune.Upload.psProcessingText": "Загружаем...",
14762
14726
  "neptune.Upload.usButtonText": "Или выберите файл",
14763
14727
  "neptune.Upload.usDropMessage": "Перетащите файл, чтобы начать загрузку",
14764
- "neptune.Upload.usPlaceholder": "Перетащите файл не больше 5MB",
14728
+ "neptune.Upload.usPlaceholder": "Перетащите файл размером не более {maxSize} Mб",
14765
14729
  "neptune.UploadButton.allFileTypes": "Все типы файлов",
14766
14730
  "neptune.UploadButton.dropFiles": "Перетащите файл, чтобы начать загрузку",
14767
14731
  "neptune.UploadButton.instructions": "{fileTypes}, не превышающий {size} MB",
@@ -14813,13 +14777,13 @@ var th = {
14813
14777
  "neptune.Upload.csButtonText": "อัพโหลดไฟล์อื่นหรือไม่",
14814
14778
  "neptune.Upload.csFailureText": "การอัปโหลดล้มเหลว กรุณาลองอีกครั้ง",
14815
14779
  "neptune.Upload.csSuccessText": "อัปโหลดเสร็จสมบูรณ์!",
14816
- "neptune.Upload.csTooLargeMessage": "กรุณาใช้ไฟล์ที่มีขนาดเล็กกว่า 5MB",
14780
+ "neptune.Upload.csTooLargeMessage": "กรุณาใช้ไฟล์ที่มีขนาดเล็กกว่า {maxSize}MB",
14817
14781
  "neptune.Upload.csWrongTypeMessage": "ไม่รองรับประเภทไฟล์ โปรดลองอีกครั้งโดยใช้ไฟล์อื่น",
14818
14782
  "neptune.Upload.psButtonText": "ยกเลิก",
14819
14783
  "neptune.Upload.psProcessingText": "กำลังอัปโหลด...",
14820
14784
  "neptune.Upload.usButtonText": "หรือเลือกไฟล์",
14821
14785
  "neptune.Upload.usDropMessage": "วางไฟล์เพื่อเริ่มการอัปโหลด",
14822
- "neptune.Upload.usPlaceholder": "ลากและวางไฟล์ที่มีขนาดไม่เกิน 5MB",
14786
+ "neptune.Upload.usPlaceholder": "ลากและวางไฟล์ที่มีขนาดไม่เกิน {maxSize}MB",
14823
14787
  "neptune.UploadButton.allFileTypes": "ไฟล์ทุกประเภท",
14824
14788
  "neptune.UploadButton.dropFiles": "วางไฟล์เพื่อเริ่มการอัปโหลด",
14825
14789
  "neptune.UploadButton.instructions": "{fileTypes} น้อยกว่า {size}MB",
@@ -14871,13 +14835,13 @@ var tr = {
14871
14835
  "neptune.Upload.csButtonText": "Başka bir dosya yükleyin?",
14872
14836
  "neptune.Upload.csFailureText": "Yükleme başarısız. Lütfen yine deneyin",
14873
14837
  "neptune.Upload.csSuccessText": "Yükleme tamamlandı!",
14874
- "neptune.Upload.csTooLargeMessage": "Lütfen 5 MB'den hüçük bir dosya sağlayın",
14838
+ "neptune.Upload.csTooLargeMessage": "Lütfen {maxSize} MB'den küçük bir dosya sağlayın",
14875
14839
  "neptune.Upload.csWrongTypeMessage": "Desteklenmeyen dosya biçimi. Lütfen başka bir dosyayla tekrar deneyin",
14876
14840
  "neptune.Upload.psButtonText": "İptal edin",
14877
14841
  "neptune.Upload.psProcessingText": "Yükleniyor...",
14878
14842
  "neptune.Upload.usButtonText": "Veya bir dosya seçin",
14879
14843
  "neptune.Upload.usDropMessage": "Yüklemeyi başlatmak için dosyayı bırakın",
14880
- "neptune.Upload.usPlaceholder": "5 MB'den küçük bir dosya sürükleyin ve bırakın",
14844
+ "neptune.Upload.usPlaceholder": "{maxSize} MB'den küçük bir dosya sürükleyin ve bırakın",
14881
14845
  "neptune.UploadButton.allFileTypes": "Tüm belge tipleri",
14882
14846
  "neptune.UploadButton.dropFiles": "Yüklemeyi başlatmak için dosyayı bırakın",
14883
14847
  "neptune.UploadButton.instructions": "{fileTypes}, en fazla {size}MB",
@@ -14986,13 +14950,13 @@ var zhCN = {
14986
14950
  "neptune.Upload.csButtonText": "上传另一个文件?",
14987
14951
  "neptune.Upload.csFailureText": "上传失败。请重试",
14988
14952
  "neptune.Upload.csSuccessText": "上传完毕!",
14989
- "neptune.Upload.csTooLargeMessage": "请提供小于 5MB 的文件",
14953
+ "neptune.Upload.csTooLargeMessage": "请提供小于 {maxSize}MB 的文件",
14990
14954
  "neptune.Upload.csWrongTypeMessage": "不支持该文件类型,请试试其他文件",
14991
14955
  "neptune.Upload.psButtonText": "取消",
14992
14956
  "neptune.Upload.psProcessingText": "正在上传…",
14993
14957
  "neptune.Upload.usButtonText": "或选择文件",
14994
14958
  "neptune.Upload.usDropMessage": "拖放文件开始上传",
14995
- "neptune.Upload.usPlaceholder": "拖放小于 5MB 的文件",
14959
+ "neptune.Upload.usPlaceholder": "拖放小于 {maxSize}MB 的文件",
14996
14960
  "neptune.UploadButton.allFileTypes": "所有文件类型",
14997
14961
  "neptune.UploadButton.dropFiles": "拖放文件开始上传",
14998
14962
  "neptune.UploadButton.instructions": "{fileTypes},小于 {size} MB",
@@ -15044,13 +15008,13 @@ var zhHK = {
15044
15008
  "neptune.Upload.csButtonText": "上載另一個檔案?",
15045
15009
  "neptune.Upload.csFailureText": "上載失敗,請重試。",
15046
15010
  "neptune.Upload.csSuccessText": "上載完成!",
15047
- "neptune.Upload.csTooLargeMessage": "請提供小於5MB的檔案",
15011
+ "neptune.Upload.csTooLargeMessage": "請提供小於{maxSize}MB的檔案",
15048
15012
  "neptune.Upload.csWrongTypeMessage": "不支持檔案類型,請使用其他檔案重試",
15049
15013
  "neptune.Upload.psButtonText": "取消",
15050
15014
  "neptune.Upload.psProcessingText": "上載中...",
15051
15015
  "neptune.Upload.usButtonText": "或者選擇一個檔案",
15052
15016
  "neptune.Upload.usDropMessage": "拖放檔案以開始上載",
15053
- "neptune.Upload.usPlaceholder": "拖放不超過5MB的檔案",
15017
+ "neptune.Upload.usPlaceholder": "拖放不超過{maxSize}MB的檔案",
15054
15018
  "neptune.UploadButton.allFileTypes": "所有檔案類型",
15055
15019
  "neptune.UploadButton.dropFiles": "拖放檔案以開始上載",
15056
15020
  "neptune.UploadButton.instructions": "{fileTypes},小於{size}MB",
@@ -15092,5 +15056,5 @@ const translations = {
15092
15056
  'zh-HK': zhHK
15093
15057
  };
15094
15058
 
15095
- export { Accordion, ActionButton, ActionOption, Alert$1 as Alert, ArrowPosition as AlertArrowPosition, Avatar, AvatarType, AvatarWrapper, Badge, Card as BaseCard, Body, BottomSheet$2 as BottomSheet, Breakpoint, Button, Card$2 as Card, Checkbox$1 as Checkbox, CheckboxButton$1 as CheckboxButton, CheckboxOption, Chevron, Chip, Chips, CircularButton, ControlType, CriticalCommsBanner, DEFAULT_LANG, DEFAULT_LOCALE, DateInput, DateLookup$1 as DateLookup, DateMode, Decision, DecisionPresentation, DecisionType, DefinitionList$1 as DefinitionList, Dimmer$1 as Dimmer, Direction, DirectionProvider, Display, Drawer$1 as Drawer, DropFade, DynamicFieldDefinitionList$1 as DynamicFieldDefinitionList, Emphasis, FileType, FlowNavigation, Header, Image, Info, InfoPresentation, InlineAlert, Input, InputGroup, InputWithDisplayFormat, InstructionsList, LanguageProvider, Layout, Link, ListItem$1 as ListItem, Loader$1 as Loader, Logo$1 as Logo, LogoType, Markdown, MarkdownNodeType, Modal, Money$1 as Money, MoneyInput$1 as MoneyInput, MonthFormat, NavigationOption, NavigationOptionList$1 as NavigationOptionsList, Nudge, Option$2 as Option, OverlayHeader$1 as OverlayHeader, PhoneNumberInput, Popover$1 as Popover, Position, Priority, ProcessIndicator$1 as ProcessIndicator, ProfileType, Progress, ProgressBar, PromoCard$1 as PromoCard, PromoCard$1 as PromoCardGroup, Provider$1 as Provider, RTL_LANGUAGES, Radio, RadioGroup, RadioOption, SUPPORTED_LANGUAGES, Scroll, SearchInput, Section, SegmentedControl, Select, SelectInput, SelectInputOptionContent, SelectInputTriggerButton, Sentiment, Size, SlidingPanel$1 as SlidingPanel, SnackbarConsumer, SnackbarContext, SnackbarPortal, SnackbarProvider, Status, StatusIcon, Stepper, Sticky$1 as Sticky, Summary, Switch, SwitchOption, Tabs$1 as Tabs, TextArea, TextareaWithDisplayFormat, Theme, Title, Tooltip$1 as Tooltip, Type, Typeahead, Typography, Upload$1 as Upload, UploadInput, UploadStep, Variant, Width, adjustLocale, getCountryFromLocale, getDirectionFromLocale, getLangFromLocale, isBrowser, isServerSide, translations, useDirection, useLayout, useScreenSize, useSnackbar };
15059
+ export { Accordion, ActionButton, ActionOption, Alert$1 as Alert, ArrowPosition as AlertArrowPosition, Avatar, AvatarType, AvatarWrapper, Badge, Card as BaseCard, Body, BottomSheet$2 as BottomSheet, Breakpoint, Button, Card$2 as Card, Checkbox$1 as Checkbox, CheckboxButton$1 as CheckboxButton, CheckboxOption, Chevron, Chip, Chips, CircularButton, ControlType, CriticalCommsBanner, DEFAULT_LANG, DEFAULT_LOCALE, DateInput, DateLookup$1 as DateLookup, DateMode, Decision, DecisionPresentation, DecisionType, DefinitionList$1 as DefinitionList, Dimmer$1 as Dimmer, Direction, DirectionProvider, Display, Drawer$1 as Drawer, DropFade, DynamicFieldDefinitionList$1 as DynamicFieldDefinitionList, Emphasis, FileType, FlowNavigation, Header, Image, Info, InfoPresentation, InlineAlert, Input, InputGroup, InputWithDisplayFormat, InstructionsList, LanguageProvider, Layout, Link, ListItem$1 as ListItem, Loader$1 as Loader, Logo$1 as Logo, LogoType, Markdown, MarkdownNodeType, Modal, Money$1 as Money, MoneyInput$1 as MoneyInput, MonthFormat, NavigationOption, NavigationOptionList$1 as NavigationOptionsList, Nudge, Option$2 as Option, OverlayHeader$1 as OverlayHeader, PhoneNumberInput, Popover$1 as Popover, Position, Priority, ProcessIndicator$1 as ProcessIndicator, ProfileType, Progress, ProgressBar, PromoCard$1 as PromoCard, PromoCard$1 as PromoCardGroup, Provider$1 as Provider, RTL_LANGUAGES, Radio, RadioGroup, RadioOption, SUPPORTED_LANGUAGES, Scroll, SearchInput, Section, SegmentedControl, Select, SelectInput, SelectInputOptionContent, SelectInputTriggerButton, Sentiment, Size, SlidingPanel, SnackbarConsumer, SnackbarContext, SnackbarPortal, SnackbarProvider, Status, StatusIcon, Stepper, Sticky, Summary, Switch, SwitchOption, Tabs$1 as Tabs, TextArea, TextareaWithDisplayFormat, Theme, Title, Tooltip$1 as Tooltip, Type, Typeahead, Typography, Upload$1 as Upload, UploadInput, UploadStep, Variant, Width, adjustLocale, getCountryFromLocale, getDirectionFromLocale, getLangFromLocale, isBrowser, isServerSide, translations, useDirection, useLayout, useScreenSize, useSnackbar };
15096
15060
  //# sourceMappingURL=index.esm.js.map