@transferwise/components 0.0.0-experimental-79c0fba → 0.0.0-experimental-75135c1

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 (73) 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/hu.json +2 -2
  6. package/build/i18n/id.json +2 -2
  7. package/build/i18n/it.json +2 -2
  8. package/build/i18n/ja.json +2 -2
  9. package/build/i18n/pl.json +2 -2
  10. package/build/i18n/pt.json +2 -2
  11. package/build/i18n/ro.json +2 -2
  12. package/build/i18n/ru.json +2 -2
  13. package/build/i18n/th.json +2 -2
  14. package/build/i18n/tr.json +2 -2
  15. package/build/i18n/zh-CN.json +2 -2
  16. package/build/i18n/zh-HK.json +2 -2
  17. package/build/index.esm.js +130 -111
  18. package/build/index.esm.js.map +1 -1
  19. package/build/index.js +131 -112
  20. package/build/index.js.map +1 -1
  21. package/build/types/circularButton/CircularButton.d.ts +2 -2
  22. package/build/types/circularButton/CircularButton.d.ts.map +1 -1
  23. package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -1
  24. package/build/types/index.d.ts +0 -2
  25. package/build/types/index.d.ts.map +1 -1
  26. package/build/types/slidingPanel/SlidingPanel.d.ts +17 -12
  27. package/build/types/slidingPanel/SlidingPanel.d.ts.map +1 -1
  28. package/build/types/slidingPanel/index.d.ts +1 -2
  29. package/build/types/slidingPanel/index.d.ts.map +1 -1
  30. package/build/types/sticky/Sticky.d.ts +14 -9
  31. package/build/types/sticky/Sticky.d.ts.map +1 -1
  32. package/build/types/sticky/index.d.ts +1 -2
  33. package/build/types/sticky/index.d.ts.map +1 -1
  34. package/build/types/upload/Upload.d.ts.map +1 -1
  35. package/build/types/upload/steps/processingStep/processingStep.d.ts.map +1 -1
  36. package/package.json +1 -1
  37. package/src/circularButton/CircularButton.tsx +2 -2
  38. package/src/common/bottomSheet/BottomSheet.tsx +41 -47
  39. package/src/common/bottomSheet/__snapshots__/BottomSheet.spec.tsx.snap +33 -37
  40. package/src/i18n/cs.json +2 -2
  41. package/src/i18n/de.json +2 -2
  42. package/src/i18n/en.json +2 -2
  43. package/src/i18n/es.json +2 -2
  44. package/src/i18n/hu.json +2 -2
  45. package/src/i18n/id.json +2 -2
  46. package/src/i18n/it.json +2 -2
  47. package/src/i18n/ja.json +2 -2
  48. package/src/i18n/pl.json +2 -2
  49. package/src/i18n/pt.json +2 -2
  50. package/src/i18n/ro.json +2 -2
  51. package/src/i18n/ru.json +2 -2
  52. package/src/i18n/th.json +2 -2
  53. package/src/i18n/tr.json +2 -2
  54. package/src/i18n/zh-CN.json +2 -2
  55. package/src/i18n/zh-HK.json +2 -2
  56. package/src/index.ts +0 -2
  57. package/src/select/Select.spec.js +1 -1
  58. package/src/slidingPanel/SlidingPanel.js +73 -0
  59. package/src/slidingPanel/SlidingPanel.spec.js +19 -9
  60. package/src/slidingPanel/index.js +1 -0
  61. package/src/sticky/Sticky.js +23 -0
  62. package/src/sticky/Sticky.spec.js +1 -0
  63. package/src/sticky/{Sticky.story.tsx → Sticky.story.js} +3 -2
  64. package/src/sticky/index.js +1 -0
  65. package/src/upload/Upload.js +23 -22
  66. package/src/upload/Upload.messages.js +2 -2
  67. package/src/upload/Upload.story.js +1 -1
  68. package/src/upload/steps/processingStep/processingStep.js +9 -19
  69. package/src/slidingPanel/SlidingPanel.tsx +0 -62
  70. package/src/slidingPanel/index.ts +0 -2
  71. package/src/sticky/Sticky.tsx +0 -16
  72. package/src/sticky/index.ts +0 -2
  73. /package/src/slidingPanel/{SlidingPanel.story.tsx → SlidingPanel.story.js} +0 -0
@@ -1753,14 +1753,15 @@ const useLayout = () => {
1753
1753
 
1754
1754
  const EXIT_ANIMATION = 350;
1755
1755
  const SlidingPanel = /*#__PURE__*/forwardRef(({
1756
- position = 'left',
1756
+ children,
1757
+ className,
1757
1758
  open,
1759
+ position,
1758
1760
  showSlidingPanelBorder,
1759
1761
  slidingPanelPositionFixed,
1760
- className,
1761
- children,
1762
1762
  ...rest
1763
1763
  }, reference) => {
1764
+ /** @type {RefObject<HTMLDivElement>} */
1764
1765
  const localReference = useRef(null);
1765
1766
  return /*#__PURE__*/createElement(CSSTransition, {
1766
1767
  ...rest,
@@ -1773,15 +1774,34 @@ const SlidingPanel = /*#__PURE__*/forwardRef(({
1773
1774
  enter: 0,
1774
1775
  exit: EXIT_ANIMATION
1775
1776
  },
1776
- classNames: "sliding-panel",
1777
+ classNames: classNames(`sliding-panel--open-${position}`, showSlidingPanelBorder && `sliding-panel--border-${position}`, {
1778
+ 'sliding-panel--fixed': slidingPanelPositionFixed
1779
+ }, 'sliding-panel'),
1777
1780
  appear: true,
1778
1781
  unmountOnExit: true
1779
1782
  }, /*#__PURE__*/jsx("div", {
1780
1783
  ref: mergeRefs([reference, localReference]),
1781
- className: classNames('sliding-panel', `sliding-panel--open-${position}`, showSlidingPanelBorder && `sliding-panel--border-${position}`, slidingPanelPositionFixed && 'sliding-panel--fixed', className),
1784
+ className: classNames('sliding-panel', `sliding-panel--open-${position}`, className),
1782
1785
  children: children
1783
1786
  }));
1784
1787
  });
1788
+ SlidingPanel.propTypes = {
1789
+ children: PropTypes.node,
1790
+ className: PropTypes.string,
1791
+ open: PropTypes.bool,
1792
+ position: PropTypes.oneOf(['top', 'bottom', 'left', 'right']),
1793
+ showSlidingPanelBorder: PropTypes.bool,
1794
+ slidingPanelPositionFixed: PropTypes.bool
1795
+ };
1796
+ SlidingPanel.defaultProps = {
1797
+ children: null,
1798
+ className: undefined,
1799
+ open: false,
1800
+ position: 'left',
1801
+ showSlidingPanelBorder: false,
1802
+ slidingPanelPositionFixed: false
1803
+ };
1804
+ var SlidingPanel$1 = SlidingPanel;
1785
1805
 
1786
1806
  const Drawer = ({
1787
1807
  children,
@@ -1800,7 +1820,7 @@ const Drawer = ({
1800
1820
  return /*#__PURE__*/jsx(Dimmer$1, {
1801
1821
  open: open,
1802
1822
  onClose: onClose,
1803
- children: /*#__PURE__*/jsx(SlidingPanel, {
1823
+ children: /*#__PURE__*/jsx(SlidingPanel$1, {
1804
1824
  open: open,
1805
1825
  position: isMobile ? Position.BOTTOM : position,
1806
1826
  children: /*#__PURE__*/jsxs("div", {
@@ -1917,15 +1937,15 @@ const BottomSheet$1 = props => {
1917
1937
  props.onClose(event);
1918
1938
  }
1919
1939
  }
1920
- const onSwipeStart = event => {
1921
- initialYCoordinate.current = ('touches' in event ? event.touches[0] : event).clientY;
1940
+ const onSwipeStart = isMobile => event => {
1941
+ initialYCoordinate.current = (isMobile ? event.touches[0] : event).clientY;
1922
1942
  setPressed(true);
1923
1943
  };
1924
- const onSwipeMove = event => {
1944
+ const onSwipeMove = isMobile => event => {
1925
1945
  if (pressed) {
1926
1946
  const {
1927
1947
  clientY
1928
- } = 'touches' in event ? event.touches[0] : event;
1948
+ } = isMobile ? event.touches[0] : event;
1929
1949
  const offset = calculateOffsetAfterMove(clientY);
1930
1950
  // check whether move is to the bottom only and content scroll position is at the top
1931
1951
  if (offset > INITIAL_Y_POSITION && isContentScrollPositionAtTop()) {
@@ -1994,37 +2014,34 @@ const BottomSheet$1 = props => {
1994
2014
  fadeContentOnEnter: true,
1995
2015
  fadeContentOnExit: true,
1996
2016
  onClose: close,
1997
- children: /*#__PURE__*/jsx(SlidingPanel, {
2017
+ children: /*#__PURE__*/jsxs(SlidingPanel$1, {
1998
2018
  ref: bottomSheetReference,
1999
2019
  open: props.open,
2000
2020
  position: Position.BOTTOM,
2001
2021
  className: classNames('np-bottom-sheet', props.className),
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
2022
+ role: "dialog",
2023
+ onTouchStart: onSwipeStart(true),
2024
+ onTouchMove: onSwipeMove(true),
2025
+ onTouchEnd: onSwipeEnd,
2026
+ onMouseDown: onSwipeStart(false),
2027
+ onMouseMove: onSwipeMove(false),
2028
+ onMouseUp: onSwipeEnd,
2029
+ children: [/*#__PURE__*/jsxs("div", {
2030
+ ref: topBarReference,
2031
+ className: "np-bottom-sheet--top-bar",
2032
+ children: [/*#__PURE__*/jsx("div", {
2033
+ className: "np-bottom-sheet--handler"
2034
+ }), /*#__PURE__*/jsx(CloseButton, {
2035
+ size: "sm",
2036
+ className: "sr-only np-bottom-sheet--close-btn",
2037
+ onClick: close
2026
2038
  })]
2027
- })
2039
+ }), /*#__PURE__*/jsx("div", {
2040
+ ref: contentReference,
2041
+ style: setContentMaxHeight(),
2042
+ className: "np-bottom-sheet--content",
2043
+ children: props.children
2044
+ })]
2028
2045
  })
2029
2046
  });
2030
2047
  };
@@ -9763,13 +9780,13 @@ var en = {
9763
9780
  "neptune.Upload.csButtonText": "Upload another file?",
9764
9781
  "neptune.Upload.csFailureText": "Upload failed. Please, try again",
9765
9782
  "neptune.Upload.csSuccessText": "Upload complete!",
9766
- "neptune.Upload.csTooLargeMessage": "Please provide a file smaller than 5MB",
9783
+ "neptune.Upload.csTooLargeMessage": "Please provide a file smaller than {maxSize}MB",
9767
9784
  "neptune.Upload.csWrongTypeMessage": "File type not supported. Please try again with a different file",
9768
9785
  "neptune.Upload.psButtonText": "Cancel",
9769
9786
  "neptune.Upload.psProcessingText": "Uploading...",
9770
9787
  "neptune.Upload.usButtonText": "Or select a file",
9771
9788
  "neptune.Upload.usDropMessage": "Drop file to start upload",
9772
- "neptune.Upload.usPlaceholder": "Drag and drop a file less than 5MB",
9789
+ "neptune.Upload.usPlaceholder": "Drag and drop a file less than {maxSize}MB",
9773
9790
  "neptune.UploadButton.allFileTypes": "All file types",
9774
9791
  "neptune.UploadButton.dropFiles": "Drop file to start upload",
9775
9792
  "neptune.UploadButton.instructions": "{fileTypes}, less than {size}MB",
@@ -10925,19 +10942,28 @@ function SnackbarProvider({
10925
10942
  });
10926
10943
  }
10927
10944
 
10928
- function Sticky({
10929
- open = true,
10930
- position = 'bottom',
10945
+ const Sticky = ({
10946
+ open,
10947
+ position,
10931
10948
  children
10932
- }) {
10933
- return /*#__PURE__*/jsx(SlidingPanel, {
10934
- open: open,
10935
- position: position,
10936
- slidingPanelPositionFixed: true,
10937
- showSlidingPanelBorder: true,
10938
- children: children
10939
- });
10940
- }
10949
+ }) => /*#__PURE__*/jsx(SlidingPanel$1, {
10950
+ open: open,
10951
+ position: position,
10952
+ slidingPanelPositionFixed: true,
10953
+ showSlidingPanelBorder: true,
10954
+ children: children
10955
+ });
10956
+ Sticky.propTypes = {
10957
+ open: PropTypes.bool,
10958
+ position: PropTypes.oneOf(['top', 'bottom']),
10959
+ children: PropTypes.node
10960
+ };
10961
+ Sticky.defaultProps = {
10962
+ open: true,
10963
+ position: 'bottom',
10964
+ children: null
10965
+ };
10966
+ var Sticky$1 = Sticky;
10941
10967
 
10942
10968
  var messages$1 = defineMessages({
10943
10969
  statusNotDone: {
@@ -12760,9 +12786,6 @@ const ProcessingStep = props => {
12760
12786
  psProcessingText,
12761
12787
  psButtonDisabled
12762
12788
  } = props;
12763
- const {
12764
- isModern
12765
- } = useTheme();
12766
12789
  let processStatus = Status.PROCESSING;
12767
12790
  if (isError) {
12768
12791
  processStatus = Status.FAILED;
@@ -12770,22 +12793,21 @@ const ProcessingStep = props => {
12770
12793
  if (isSuccess) {
12771
12794
  processStatus = Status.SUCCEEDED;
12772
12795
  }
12796
+ useEffect(() => {
12797
+ if (processStatus !== Status.PROCESSING) {
12798
+ onAnimationCompleted(processStatus);
12799
+ }
12800
+ }, [processStatus, onAnimationCompleted]);
12773
12801
  return /*#__PURE__*/jsx("div", {
12774
12802
  className: "droppable-processing-card droppable-card",
12775
12803
  "aria-hidden": isComplete,
12776
12804
  children: /*#__PURE__*/jsxs("div", {
12777
12805
  className: "droppable-card-content",
12778
12806
  children: [/*#__PURE__*/jsx(ProcessIndicator$1, {
12779
- size: Size.Small,
12780
- status: processStatus,
12781
- onAnimationCompleted: status => onAnimationCompleted(status)
12807
+ size: Size.SMALL,
12808
+ status: processStatus
12782
12809
  }), /*#__PURE__*/jsx(Title, {
12783
- className: classNames({
12784
- 'm-t-3': !isModern,
12785
- 'm-b-3': !isModern,
12786
- 'm-t-2': isModern,
12787
- 'm-b-2': isModern
12788
- }),
12810
+ className: "m-t-2 m-b-2",
12789
12811
  type: Typography.TITLE_BODY,
12790
12812
  "aria-live": "polite",
12791
12813
  children: psProcessingText
@@ -12920,7 +12942,9 @@ class Upload extends Component {
12920
12942
  getErrorMessage(status) {
12921
12943
  switch (status) {
12922
12944
  case 413:
12923
- return this.props.csTooLargeMessage || this.props.intl.formatMessage(messages.csTooLargeMessage);
12945
+ return this.props.csTooLargeMessage || this.props.intl.formatMessage(messages.csTooLargeMessage, {
12946
+ maxSize: this.props.maxSize / 1000000
12947
+ });
12924
12948
  case 415:
12925
12949
  return this.props.csWrongTypeMessage || this.props.intl.formatMessage(messages.csWrongTypeMessage);
12926
12950
  default:
@@ -12970,31 +12994,24 @@ class Upload extends Component {
12970
12994
  fileName
12971
12995
  } = this.state;
12972
12996
  // Success.
12973
- const {
12974
- animationDelay
12975
- } = this.props;
12976
12997
  if (isProcessing && status === Status.SUCCEEDED) {
12977
12998
  const {
12978
12999
  onSuccess
12979
13000
  } = this.props;
12980
- this.timeouts = setTimeout(() => {
12981
- this.setState({
12982
- isProcessing: false,
12983
- isComplete: true
12984
- }, () => onSuccess ? onSuccess(response, fileName) : {});
12985
- }, animationDelay);
13001
+ this.setState({
13002
+ isProcessing: false,
13003
+ isComplete: true
13004
+ }, () => onSuccess ? onSuccess(response, fileName) : {});
12986
13005
  }
12987
13006
  // Failure.
12988
13007
  if (isProcessing && status === Status.FAILED) {
12989
13008
  const {
12990
13009
  onFailure
12991
13010
  } = this.props;
12992
- this.timeouts = setTimeout(() => {
12993
- this.setState({
12994
- isProcessing: false,
12995
- isComplete: true
12996
- }, () => onFailure ? onFailure(response) : {});
12997
- }, animationDelay);
13011
+ this.setState({
13012
+ isProcessing: false,
13013
+ isComplete: true
13014
+ }, () => onFailure ? onFailure(response) : {});
12998
13015
  }
12999
13016
  };
13000
13017
  asyncPost = file => {
@@ -13178,7 +13195,9 @@ class Upload extends Component {
13178
13195
  usDisabled: usDisabled,
13179
13196
  usHelpImage: usHelpImage,
13180
13197
  usLabel: usLabel,
13181
- usPlaceholder: usPlaceholder || intl.formatMessage(messages.usPlaceholder)
13198
+ usPlaceholder: usPlaceholder || intl.formatMessage(messages.usPlaceholder, {
13199
+ maxSize: this.props.maxSize / 1000000
13200
+ })
13182
13201
  }), isProcessing && /*#__PURE__*/jsx(ProcessingStep$1, {
13183
13202
  isComplete: isComplete,
13184
13203
  isError: isError,
@@ -13260,7 +13279,7 @@ Upload.propTypes = {
13260
13279
  uploadStep: PropTypes.oneOf(['uploadImageStep', 'mediaUploadStep'])
13261
13280
  };
13262
13281
  Upload.defaultProps = {
13263
- animationDelay: 700,
13282
+ animationDelay: 0,
13264
13283
  csButtonText: undefined,
13265
13284
  csFailureText: undefined,
13266
13285
  csSuccessText: undefined,
@@ -14077,13 +14096,13 @@ var cs = {
14077
14096
  "neptune.Upload.csButtonText": "Nahrát další soubor?",
14078
14097
  "neptune.Upload.csFailureText": "Nahrání se nezdařilo. Zkuste to prosím později",
14079
14098
  "neptune.Upload.csSuccessText": "Úspěšně nahráno!",
14080
- "neptune.Upload.csTooLargeMessage": "Soubor musí být menší než 5MB",
14099
+ "neptune.Upload.csTooLargeMessage": "Soubor musí být menší než {maxSize}MB",
14081
14100
  "neptune.Upload.csWrongTypeMessage": "Tento formát souboru není podporován. Zkuste to znovu s jiným souborem",
14082
14101
  "neptune.Upload.psButtonText": "Zrušit",
14083
14102
  "neptune.Upload.psProcessingText": "Načítání...",
14084
14103
  "neptune.Upload.usButtonText": "Nebo vyberte soubor",
14085
14104
  "neptune.Upload.usDropMessage": "Pusťte sem soubor pro jeho nahrání",
14086
- "neptune.Upload.usPlaceholder": "Přetáhněte a pusťte sem soubor menší než 5MB",
14105
+ "neptune.Upload.usPlaceholder": "Přetáhněte a pusťte sem soubor menší než {maxSize}MB",
14087
14106
  "neptune.UploadButton.allFileTypes": "Všechny typy souborů",
14088
14107
  "neptune.UploadButton.dropFiles": "Pusťte sem soubor pro jeho nahrání",
14089
14108
  "neptune.UploadButton.instructions": "{fileTypes}, menší než {size}MB",
@@ -14135,13 +14154,13 @@ var de = {
14135
14154
  "neptune.Upload.csButtonText": "Eine andere Datei hochladen?",
14136
14155
  "neptune.Upload.csFailureText": "Hochladen fehlgeschlagen. Bitte versuche es erneut",
14137
14156
  "neptune.Upload.csSuccessText": "Fertig hochgeladen!",
14138
- "neptune.Upload.csTooLargeMessage": "Bitte wähle eine Datei aus, die kleiner als 5 MB ist",
14157
+ "neptune.Upload.csTooLargeMessage": "Bitte wähle eine Datei aus, die kleiner als {maxSize} MB ist",
14139
14158
  "neptune.Upload.csWrongTypeMessage": "Dateityp wird nicht unterstützt. Bitte versuche es erneut mit einer anderen Datei",
14140
14159
  "neptune.Upload.psButtonText": "Abbrechen",
14141
14160
  "neptune.Upload.psProcessingText": "Wird hochgeladen...",
14142
14161
  "neptune.Upload.usButtonText": "Oder wähle eine Datei aus",
14143
14162
  "neptune.Upload.usDropMessage": "Datei zum Hochladen in dieses Feld ziehen",
14144
- "neptune.Upload.usPlaceholder": "Ziehe eine Datei in dieses Feld, die kleiner als 5 MB ist",
14163
+ "neptune.Upload.usPlaceholder": "Ziehe eine Datei in dieses Feld, die kleiner als {maxSize} MB ist",
14145
14164
  "neptune.UploadButton.allFileTypes": "Alle Dateiformate",
14146
14165
  "neptune.UploadButton.dropFiles": "Datei zum Hochladen in dieses Feld ziehen",
14147
14166
  "neptune.UploadButton.instructions": "{fileTypes}, kleiner als {size} MB",
@@ -14193,13 +14212,13 @@ var es = {
14193
14212
  "neptune.Upload.csButtonText": "¿Quieres subir otro archivo?",
14194
14213
  "neptune.Upload.csFailureText": "La carga del archivo ha fallado. Por favor, inténtalo de nuevo",
14195
14214
  "neptune.Upload.csSuccessText": "¡Se ha subido el archivo!",
14196
- "neptune.Upload.csTooLargeMessage": "Por favor, sube un archivo de menos de 5 MB",
14215
+ "neptune.Upload.csTooLargeMessage": "Por favor, sube un archivo de menos de {maxSize}MB",
14197
14216
  "neptune.Upload.csWrongTypeMessage": "Tipo de archivo no aceptado. Por favor, inténtalo de nuevo con un archivo diferente",
14198
14217
  "neptune.Upload.psButtonText": "Cancela",
14199
14218
  "neptune.Upload.psProcessingText": "Subiendo...",
14200
14219
  "neptune.Upload.usButtonText": "O selecciona un archivo",
14201
14220
  "neptune.Upload.usDropMessage": "Arrastra un archivo para subirlo",
14202
- "neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo menor de 5MB",
14221
+ "neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo menor de {maxSize}MB",
14203
14222
  "neptune.UploadButton.allFileTypes": "Todos los tipos de archivos",
14204
14223
  "neptune.UploadButton.dropFiles": "Arrastra un archivo para subirlo",
14205
14224
  "neptune.UploadButton.instructions": "{fileTypes}, menor que {size}MB",
@@ -14309,13 +14328,13 @@ var hu = {
14309
14328
  "neptune.Upload.csButtonText": "Másik fájl feltöltése?",
14310
14329
  "neptune.Upload.csFailureText": "Feltöltés sikertelen. Kérünk, próbáld újra",
14311
14330
  "neptune.Upload.csSuccessText": "Feltöltés sikeres",
14312
- "neptune.Upload.csTooLargeMessage": "Kérünk, 5 MB-nál kisebb fájlt tölts fel",
14331
+ "neptune.Upload.csTooLargeMessage": "Kérünk, {maxSize} MB-nál kisebb fájlt tölts fel",
14313
14332
  "neptune.Upload.csWrongTypeMessage": "Nem támogatott fájltípus. Kérünk, próbáld újra másik fájllal",
14314
14333
  "neptune.Upload.psButtonText": "Mégsem",
14315
14334
  "neptune.Upload.psProcessingText": "Feltöltés...",
14316
14335
  "neptune.Upload.usButtonText": "Vagy válaszd ki a fájlt",
14317
14336
  "neptune.Upload.usDropMessage": "Húzd ide a fájlokat a feltöltéshez",
14318
- "neptune.Upload.usPlaceholder": "Húzz ide egy 5MB-nál kisebb fájlt",
14337
+ "neptune.Upload.usPlaceholder": "Húzz ide egy {maxSize} MB-nál kisebb fájlt",
14319
14338
  "neptune.UploadButton.allFileTypes": "Összes fájltípus",
14320
14339
  "neptune.UploadButton.dropFiles": "Húzd a fájlokat ide a feltöltéshez",
14321
14340
  "neptune.UploadButton.instructions": "{fileTypes}, legfeljebb {size}MB",
@@ -14367,13 +14386,13 @@ var id = {
14367
14386
  "neptune.Upload.csButtonText": "Unggah file lainnya?",
14368
14387
  "neptune.Upload.csFailureText": "Unggahan gagal. Silakan coba lagi",
14369
14388
  "neptune.Upload.csSuccessText": "Pengunggahan selesai!",
14370
- "neptune.Upload.csTooLargeMessage": "Harap berikan file kurang dari 5MB",
14389
+ "neptune.Upload.csTooLargeMessage": "Harap berikan file kurang dari {maxSize}MB",
14371
14390
  "neptune.Upload.csWrongTypeMessage": "Tipe file ini tidak didukung. Mohon coba lagi dengan file yang berbeda",
14372
14391
  "neptune.Upload.psButtonText": "Batalkan",
14373
14392
  "neptune.Upload.psProcessingText": "Mengunggah...",
14374
14393
  "neptune.Upload.usButtonText": "Atau pilih file",
14375
14394
  "neptune.Upload.usDropMessage": "Letakkan file untuk mulai mengunggah",
14376
- "neptune.Upload.usPlaceholder": "Geser dan letakkan file berukuran kurang dari 5MB",
14395
+ "neptune.Upload.usPlaceholder": "Geser dan letakkan file berukuran kurang dari {maxSize}MB",
14377
14396
  "neptune.UploadButton.allFileTypes": "Semua jenis file",
14378
14397
  "neptune.UploadButton.dropFiles": "Lepaskan file untuk mulai mengunggah",
14379
14398
  "neptune.UploadButton.instructions": "{fileTypes}, kurang dari {size}MB",
@@ -14425,13 +14444,13 @@ var it = {
14425
14444
  "neptune.Upload.csButtonText": "Carica un altro documento?",
14426
14445
  "neptune.Upload.csFailureText": "Caricamento fallito. Per favore riprova",
14427
14446
  "neptune.Upload.csSuccessText": "Caricamento completato!",
14428
- "neptune.Upload.csTooLargeMessage": "Carica un file più piccolo di 5MB",
14447
+ "neptune.Upload.csTooLargeMessage": "Carica un file più piccolo di {maxSize}MB",
14429
14448
  "neptune.Upload.csWrongTypeMessage": "Formato del documento non supportato. Riprova con un formato diverso",
14430
14449
  "neptune.Upload.psButtonText": "Annulla",
14431
14450
  "neptune.Upload.psProcessingText": "Caricamento...",
14432
14451
  "neptune.Upload.usButtonText": "O seleziona un documento",
14433
14452
  "neptune.Upload.usDropMessage": "Rilascia il documento per iniziare il caricamento",
14434
- "neptune.Upload.usPlaceholder": "Trascina e rilascia un file inferiore a 5MB",
14453
+ "neptune.Upload.usPlaceholder": "Trascina e rilascia un file inferiore a {maxSize}MB",
14435
14454
  "neptune.UploadButton.allFileTypes": "Tutti i tipi di file",
14436
14455
  "neptune.UploadButton.dropFiles": "Rilascia file per iniziare a caricare",
14437
14456
  "neptune.UploadButton.instructions": "{fileTypes}, minore di {size}MB",
@@ -14483,13 +14502,13 @@ var ja = {
14483
14502
  "neptune.Upload.csButtonText": "別のファイルをアップロードしますか?",
14484
14503
  "neptune.Upload.csFailureText": "アップロードに失敗しました。もう一度やり直してください。",
14485
14504
  "neptune.Upload.csSuccessText": "アップロードが完了しました。",
14486
- "neptune.Upload.csTooLargeMessage": "5MBよりも小さいファイルをアップロードください",
14505
+ "neptune.Upload.csTooLargeMessage": "{maxSize}MBよりも小さいファイルをアップロードください",
14487
14506
  "neptune.Upload.csWrongTypeMessage": "ファイルの種類はサポートされていません。別のファイルで再度お試しください",
14488
14507
  "neptune.Upload.psButtonText": "キャンセル",
14489
14508
  "neptune.Upload.psProcessingText": "アップロード中…",
14490
14509
  "neptune.Upload.usButtonText": "または、ファイルを選択する",
14491
14510
  "neptune.Upload.usDropMessage": "ファイルをドロップしてアップロードする",
14492
- "neptune.Upload.usPlaceholder": "5MB以下のファイルのみドラッグ&ドロップが可能です",
14511
+ "neptune.Upload.usPlaceholder": "{maxSize}MB以下のファイルのみドラッグ&ドロップが可能です",
14493
14512
  "neptune.UploadButton.allFileTypes": "すべてのファイル種類",
14494
14513
  "neptune.UploadButton.dropFiles": "ファイルをドロップしてアップロードする",
14495
14514
  "neptune.UploadButton.instructions": "{fileTypes}、{size}MB以下",
@@ -14541,13 +14560,13 @@ var pl = {
14541
14560
  "neptune.Upload.csButtonText": "Prześlij kolejny plik?",
14542
14561
  "neptune.Upload.csFailureText": "Przesyłanie nie powiodło się. Proszę spróbować ponownie",
14543
14562
  "neptune.Upload.csSuccessText": "Przesyłanie zakończone!",
14544
- "neptune.Upload.csTooLargeMessage": "Proszę przesłać plik mniejszy niż 5MB",
14563
+ "neptune.Upload.csTooLargeMessage": "Proszę przesłać plik mniejszy niż {maxSize}MB",
14545
14564
  "neptune.Upload.csWrongTypeMessage": "Nieobsługiwany typ pliku. Spróbuj ponownie z innym plikiem",
14546
14565
  "neptune.Upload.psButtonText": "Anuluj",
14547
14566
  "neptune.Upload.psProcessingText": "Przesyłanie...",
14548
14567
  "neptune.Upload.usButtonText": "Lub wybierz plik",
14549
14568
  "neptune.Upload.usDropMessage": "Upuść plik, aby rozpocząć przesyłanie",
14550
- "neptune.Upload.usPlaceholder": "Przeciągnij i upuść plik mniejszy niż 5MB",
14569
+ "neptune.Upload.usPlaceholder": "Przeciągnij i upuść plik mniejszy niż {maxSize}MB",
14551
14570
  "neptune.UploadButton.allFileTypes": "Wszystkie typy plików",
14552
14571
  "neptune.UploadButton.dropFiles": "Upuść plik, żeby rozpocząć przesyłanie",
14553
14572
  "neptune.UploadButton.instructions": "{fileTypes}, mniejsze niż {size}MB",
@@ -14599,13 +14618,13 @@ var pt = {
14599
14618
  "neptune.Upload.csButtonText": "Enviar outro documento?",
14600
14619
  "neptune.Upload.csFailureText": "Falha no envio. Por favor, tente novamente",
14601
14620
  "neptune.Upload.csSuccessText": "Envio concluído!",
14602
- "neptune.Upload.csTooLargeMessage": "Por favor, envie um arquivo com menos de 5MB",
14621
+ "neptune.Upload.csTooLargeMessage": "Por favor, envie um arquivo com menos de {maxSize}MB",
14603
14622
  "neptune.Upload.csWrongTypeMessage": "Não trabalhamos com este tipo de arquivo. Por favor, tente novamente com um arquivo diferente",
14604
14623
  "neptune.Upload.psButtonText": "Cancelar",
14605
14624
  "neptune.Upload.psProcessingText": "Enviando...",
14606
14625
  "neptune.Upload.usButtonText": "Ou escolha um arquivo",
14607
14626
  "neptune.Upload.usDropMessage": "Arraste o arquivo para iniciar o envio",
14608
- "neptune.Upload.usPlaceholder": "Arraste e envie um arquivo menor que 5MB",
14627
+ "neptune.Upload.usPlaceholder": "Arraste e envie um arquivo menor que {maxSize}MB",
14609
14628
  "neptune.UploadButton.allFileTypes": "Todos os tipos de arquivos",
14610
14629
  "neptune.UploadButton.dropFiles": "Arraste o arquivo para iniciar o envio",
14611
14630
  "neptune.UploadButton.instructions": "{fileTypes}, com menos de {size}MB",
@@ -14657,13 +14676,13 @@ var ro = {
14657
14676
  "neptune.Upload.csButtonText": "Încarci un alt fișier?",
14658
14677
  "neptune.Upload.csFailureText": "Încărcare eșuată. Te rugăm să încerci din nou",
14659
14678
  "neptune.Upload.csSuccessText": "Încărcare completă!",
14660
- "neptune.Upload.csTooLargeMessage": "Te rugăm să furnizezi un fișier mai mic de 5MB",
14679
+ "neptune.Upload.csTooLargeMessage": "Te rugăm să furnizezi un fișier mai mic de {maxSize}MB",
14661
14680
  "neptune.Upload.csWrongTypeMessage": "Tipul de fișier nu a fost acceptat. Te rugăm să încerci din nou cu un alt fișier",
14662
14681
  "neptune.Upload.psButtonText": "Anulează",
14663
14682
  "neptune.Upload.psProcessingText": "Se încarcă...",
14664
14683
  "neptune.Upload.usButtonText": "Sau selectează un fișier",
14665
14684
  "neptune.Upload.usDropMessage": "Atașează fișierul pentru a începe încărcarea",
14666
- "neptune.Upload.usPlaceholder": "Glisează și atașează un fișier de până în 5MB",
14685
+ "neptune.Upload.usPlaceholder": "Glisează și atașează un fișier de până în {maxSize}MB",
14667
14686
  "neptune.UploadButton.allFileTypes": "Toate tipurile de fișiere",
14668
14687
  "neptune.UploadButton.dropFiles": "Trage fișierul pentru a începe încărcarea",
14669
14688
  "neptune.UploadButton.instructions": "{fileTypes}, de maximum {size}MB",
@@ -14715,13 +14734,13 @@ var ru = {
14715
14734
  "neptune.Upload.csButtonText": "Загрузить другой файл?",
14716
14735
  "neptune.Upload.csFailureText": "Загрузка не удалась. Пожалуйста, попробуйте снова",
14717
14736
  "neptune.Upload.csSuccessText": "Загрузка завершена!",
14718
- "neptune.Upload.csTooLargeMessage": "Пожалуйста, загрузите файл размером менее 5MB",
14737
+ "neptune.Upload.csTooLargeMessage": "Пожалуйста, загрузите файл размером менее {maxSize}MB",
14719
14738
  "neptune.Upload.csWrongTypeMessage": "Тип файла не поддерживается. Пожалуйста, попробуйте еще раз с другим файлом",
14720
14739
  "neptune.Upload.psButtonText": "Отменить",
14721
14740
  "neptune.Upload.psProcessingText": "Загружаем...",
14722
14741
  "neptune.Upload.usButtonText": "Или выберите файл",
14723
14742
  "neptune.Upload.usDropMessage": "Перетащите файл, чтобы начать загрузку",
14724
- "neptune.Upload.usPlaceholder": "Перетащите файл не больше 5MB",
14743
+ "neptune.Upload.usPlaceholder": "Перетащите файл не больше {maxSize}MB",
14725
14744
  "neptune.UploadButton.allFileTypes": "Все типы файлов",
14726
14745
  "neptune.UploadButton.dropFiles": "Перетащите файл, чтобы начать загрузку",
14727
14746
  "neptune.UploadButton.instructions": "{fileTypes}, не превышающий {size} MB",
@@ -14773,13 +14792,13 @@ var th = {
14773
14792
  "neptune.Upload.csButtonText": "อัพโหลดไฟล์อื่นหรือไม่",
14774
14793
  "neptune.Upload.csFailureText": "การอัปโหลดล้มเหลว กรุณาลองอีกครั้ง",
14775
14794
  "neptune.Upload.csSuccessText": "อัปโหลดเสร็จสมบูรณ์!",
14776
- "neptune.Upload.csTooLargeMessage": "กรุณาใช้ไฟล์ที่มีขนาดเล็กกว่า 5MB",
14795
+ "neptune.Upload.csTooLargeMessage": "กรุณาใช้ไฟล์ที่มีขนาดเล็กกว่า {maxSize}MB",
14777
14796
  "neptune.Upload.csWrongTypeMessage": "ไม่รองรับประเภทไฟล์ โปรดลองอีกครั้งโดยใช้ไฟล์อื่น",
14778
14797
  "neptune.Upload.psButtonText": "ยกเลิก",
14779
14798
  "neptune.Upload.psProcessingText": "กำลังอัปโหลด...",
14780
14799
  "neptune.Upload.usButtonText": "หรือเลือกไฟล์",
14781
14800
  "neptune.Upload.usDropMessage": "วางไฟล์เพื่อเริ่มการอัปโหลด",
14782
- "neptune.Upload.usPlaceholder": "ลากและวางไฟล์ที่มีขนาดไม่เกิน 5MB",
14801
+ "neptune.Upload.usPlaceholder": "ลากและวางไฟล์ที่มีขนาดไม่เกิน {maxSize}MB",
14783
14802
  "neptune.UploadButton.allFileTypes": "ไฟล์ทุกประเภท",
14784
14803
  "neptune.UploadButton.dropFiles": "วางไฟล์เพื่อเริ่มการอัปโหลด",
14785
14804
  "neptune.UploadButton.instructions": "{fileTypes} น้อยกว่า {size}MB",
@@ -14831,13 +14850,13 @@ var tr = {
14831
14850
  "neptune.Upload.csButtonText": "Başka bir dosya yükleyin?",
14832
14851
  "neptune.Upload.csFailureText": "Yükleme başarısız. Lütfen yine deneyin",
14833
14852
  "neptune.Upload.csSuccessText": "Yükleme tamamlandı!",
14834
- "neptune.Upload.csTooLargeMessage": "Lütfen 5 MB'den hüçük bir dosya sağlayın",
14853
+ "neptune.Upload.csTooLargeMessage": "Lütfen {maxSize} MB'den hüçük bir dosya sağlayın",
14835
14854
  "neptune.Upload.csWrongTypeMessage": "Desteklenmeyen dosya biçimi. Lütfen başka bir dosyayla tekrar deneyin",
14836
14855
  "neptune.Upload.psButtonText": "İptal edin",
14837
14856
  "neptune.Upload.psProcessingText": "Yükleniyor...",
14838
14857
  "neptune.Upload.usButtonText": "Veya bir dosya seçin",
14839
14858
  "neptune.Upload.usDropMessage": "Yüklemeyi başlatmak için dosyayı bırakın",
14840
- "neptune.Upload.usPlaceholder": "5 MB'den küçük bir dosya sürükleyin ve bırakın",
14859
+ "neptune.Upload.usPlaceholder": "{maxSize} MB'den küçük bir dosya sürükleyin ve bırakın",
14841
14860
  "neptune.UploadButton.allFileTypes": "Tüm belge tipleri",
14842
14861
  "neptune.UploadButton.dropFiles": "Yüklemeyi başlatmak için dosyayı bırakın",
14843
14862
  "neptune.UploadButton.instructions": "{fileTypes}, en fazla {size}MB",
@@ -14946,13 +14965,13 @@ var zhCN = {
14946
14965
  "neptune.Upload.csButtonText": "上传另一个文件?",
14947
14966
  "neptune.Upload.csFailureText": "上传失败。请重试",
14948
14967
  "neptune.Upload.csSuccessText": "上传完毕!",
14949
- "neptune.Upload.csTooLargeMessage": "请提供小于 5MB 的文件",
14968
+ "neptune.Upload.csTooLargeMessage": "请提供小于 {maxSize}MB 的文件",
14950
14969
  "neptune.Upload.csWrongTypeMessage": "不支持该文件类型,请试试其他文件",
14951
14970
  "neptune.Upload.psButtonText": "取消",
14952
14971
  "neptune.Upload.psProcessingText": "正在上传…",
14953
14972
  "neptune.Upload.usButtonText": "或选择文件",
14954
14973
  "neptune.Upload.usDropMessage": "拖放文件开始上传",
14955
- "neptune.Upload.usPlaceholder": "拖放小于 5MB 的文件",
14974
+ "neptune.Upload.usPlaceholder": "拖放小于 {maxSize}MB 的文件",
14956
14975
  "neptune.UploadButton.allFileTypes": "所有文件类型",
14957
14976
  "neptune.UploadButton.dropFiles": "拖放文件开始上传",
14958
14977
  "neptune.UploadButton.instructions": "{fileTypes},小于 {size} MB",
@@ -15004,13 +15023,13 @@ var zhHK = {
15004
15023
  "neptune.Upload.csButtonText": "上載另一個檔案?",
15005
15024
  "neptune.Upload.csFailureText": "上載失敗,請重試。",
15006
15025
  "neptune.Upload.csSuccessText": "上載完成!",
15007
- "neptune.Upload.csTooLargeMessage": "請提供小於5MB的檔案",
15026
+ "neptune.Upload.csTooLargeMessage": "請提供小於{maxSize}MB的檔案",
15008
15027
  "neptune.Upload.csWrongTypeMessage": "不支持檔案類型,請使用其他檔案重試",
15009
15028
  "neptune.Upload.psButtonText": "取消",
15010
15029
  "neptune.Upload.psProcessingText": "上載中...",
15011
15030
  "neptune.Upload.usButtonText": "或者選擇一個檔案",
15012
15031
  "neptune.Upload.usDropMessage": "拖放檔案以開始上載",
15013
- "neptune.Upload.usPlaceholder": "拖放不超過5MB的檔案",
15032
+ "neptune.Upload.usPlaceholder": "拖放不超過{maxSize}MB的檔案",
15014
15033
  "neptune.UploadButton.allFileTypes": "所有檔案類型",
15015
15034
  "neptune.UploadButton.dropFiles": "拖放檔案以開始上載",
15016
15035
  "neptune.UploadButton.instructions": "{fileTypes},小於{size}MB",
@@ -15052,5 +15071,5 @@ const translations = {
15052
15071
  'zh-HK': zhHK
15053
15072
  };
15054
15073
 
15055
- 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 };
15074
+ 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 };
15056
15075
  //# sourceMappingURL=index.esm.js.map