@transferwise/components 0.0.0-experimental-8bbf3ee → 0.0.0-experimental-639ea61

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.
@@ -45,6 +45,7 @@
45
45
  "neptune.Upload.csFailureText": "La carga del archivo ha fallado. Por favor, inténtalo de nuevo",
46
46
  "neptune.Upload.csSuccessText": "¡Se ha subido el archivo!",
47
47
  "neptune.Upload.csTooLargeMessage": "Proporciona un archivo menor de {maxSize} MB",
48
+ "neptune.Upload.csTooLargeNoLimitMessage": "Proporciona un archivo más pequeño",
48
49
  "neptune.Upload.csWrongTypeMessage": "Tipo de archivo no aceptado. Por favor, inténtalo de nuevo con un archivo diferente",
49
50
  "neptune.Upload.psButtonText": "Cancela",
50
51
  "neptune.Upload.psProcessingText": "Subiendo...",
@@ -52,6 +53,7 @@
52
53
  "neptune.Upload.usButtonText": "O selecciona un archivo",
53
54
  "neptune.Upload.usDropMessage": "Arrastra un archivo para subirlo",
54
55
  "neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo de menos de {maxSize} MB",
56
+ "neptune.Upload.usPlaceholderNoLimit": "Arrastra y suelta un archivo",
55
57
  "neptune.UploadButton.allFileTypes": "Todos los tipos de archivos",
56
58
  "neptune.UploadButton.dropFiles": "Arrastra un archivo para subirlo",
57
59
  "neptune.UploadButton.instructions": "{fileTypes}, menor que {size}MB",
@@ -49,6 +49,7 @@ var es = {
49
49
  "neptune.Upload.csFailureText": "La carga del archivo ha fallado. Por favor, inténtalo de nuevo",
50
50
  "neptune.Upload.csSuccessText": "¡Se ha subido el archivo!",
51
51
  "neptune.Upload.csTooLargeMessage": "Proporciona un archivo menor de {maxSize} MB",
52
+ "neptune.Upload.csTooLargeNoLimitMessage": "Proporciona un archivo más pequeño",
52
53
  "neptune.Upload.csWrongTypeMessage": "Tipo de archivo no aceptado. Por favor, inténtalo de nuevo con un archivo diferente",
53
54
  "neptune.Upload.psButtonText": "Cancela",
54
55
  "neptune.Upload.psProcessingText": "Subiendo...",
@@ -56,6 +57,7 @@ var es = {
56
57
  "neptune.Upload.usButtonText": "O selecciona un archivo",
57
58
  "neptune.Upload.usDropMessage": "Arrastra un archivo para subirlo",
58
59
  "neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo de menos de {maxSize} MB",
60
+ "neptune.Upload.usPlaceholderNoLimit": "Arrastra y suelta un archivo",
59
61
  "neptune.UploadButton.allFileTypes": "Todos los tipos de archivos",
60
62
  "neptune.UploadButton.dropFiles": "Arrastra un archivo para subirlo",
61
63
  "neptune.UploadButton.instructions": "{fileTypes}, menor que {size}MB",
@@ -1 +1 @@
1
- {"version":3,"file":"es.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"es.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -45,6 +45,7 @@ var es = {
45
45
  "neptune.Upload.csFailureText": "La carga del archivo ha fallado. Por favor, inténtalo de nuevo",
46
46
  "neptune.Upload.csSuccessText": "¡Se ha subido el archivo!",
47
47
  "neptune.Upload.csTooLargeMessage": "Proporciona un archivo menor de {maxSize} MB",
48
+ "neptune.Upload.csTooLargeNoLimitMessage": "Proporciona un archivo más pequeño",
48
49
  "neptune.Upload.csWrongTypeMessage": "Tipo de archivo no aceptado. Por favor, inténtalo de nuevo con un archivo diferente",
49
50
  "neptune.Upload.psButtonText": "Cancela",
50
51
  "neptune.Upload.psProcessingText": "Subiendo...",
@@ -52,6 +53,7 @@ var es = {
52
53
  "neptune.Upload.usButtonText": "O selecciona un archivo",
53
54
  "neptune.Upload.usDropMessage": "Arrastra un archivo para subirlo",
54
55
  "neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo de menos de {maxSize} MB",
56
+ "neptune.Upload.usPlaceholderNoLimit": "Arrastra y suelta un archivo",
55
57
  "neptune.UploadButton.allFileTypes": "Todos los tipos de archivos",
56
58
  "neptune.UploadButton.dropFiles": "Arrastra un archivo para subirlo",
57
59
  "neptune.UploadButton.instructions": "{fileTypes}, menor que {size}MB",
@@ -1 +1 @@
1
- {"version":3,"file":"es.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"es.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-8bbf3ee",
3
+ "version": "0.0.0-experimental-639ea61",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -4,7 +4,7 @@ import { Freeze, ArrowRight, ChevronRight } from '@transferwise/icons';
4
4
  import { Flag } from '@wise/art';
5
5
  import Button from './Button.resolver';
6
6
  import type { ButtonProps, ButtonPriority } from './Button.types';
7
- import { lorem10, storyConfig } from '../test-utils';
7
+ import { lorem10, lorem20, storyConfig } from '../test-utils';
8
8
 
9
9
  const withContainer = (Story: any) => (
10
10
  <div style={{ display: 'flex', justifyContent: 'center' }}>
@@ -814,13 +814,61 @@ export const DealingWithLongText: StoryObj<PreviewStoryArgs> = {
814
814
  const [props, previewProps] = getPropsForPreview(args);
815
815
 
816
816
  return (
817
- <div className="d-flex flex-column" style={{ width: 260, gap: '2rem' }}>
818
- <Button {...props} {...previewProps}>
819
- {lorem10}
820
- </Button>
821
- <Button {...props} {...previewProps}>
822
- Forderungsabtretungsvereinbarung
823
- </Button>
817
+ <div>
818
+ <div>
819
+ <div>
820
+ <Button {...props} {...previewProps}>
821
+ {lorem10}
822
+ </Button>
823
+ </div>
824
+ <div className="m-y-2">
825
+ <Button {...props} {...previewProps}>
826
+ Forderungsabtretungsvereinbarung
827
+ </Button>
828
+ </div>
829
+ <div
830
+ className="d-flex"
831
+ style={{
832
+ width: '100%',
833
+ justifyContent: 'space-between',
834
+ alignItems: 'center',
835
+ }}
836
+ >
837
+ <span>{lorem20}</span>
838
+ <div>
839
+ <Button {...props} {...previewProps}>
840
+ Register interest
841
+ </Button>
842
+ </div>
843
+ </div>
844
+ </div>
845
+ <div style={{ width: 260 }} className="m-t-2">
846
+ <div>
847
+ <Button {...props} {...previewProps}>
848
+ {lorem10}
849
+ </Button>
850
+ </div>
851
+ <div className="m-y-2">
852
+ <Button {...props} {...previewProps}>
853
+ Forderungsabtretungsvereinbarung
854
+ </Button>
855
+ </div>
856
+ <div
857
+ className="d-flex"
858
+ style={{
859
+ width: '100%',
860
+ justifyContent: 'space-between',
861
+ alignItems: 'center',
862
+ }}
863
+ >
864
+ <span>{lorem20}</span>
865
+ <div>
866
+ <Button {...props} {...previewProps}>
867
+ Register interest
868
+ </Button>
869
+ </div>
870
+ </div>
871
+ </div>
824
872
  </div>
825
873
  );
826
874
  },
package/src/i18n/es.json CHANGED
@@ -45,6 +45,7 @@
45
45
  "neptune.Upload.csFailureText": "La carga del archivo ha fallado. Por favor, inténtalo de nuevo",
46
46
  "neptune.Upload.csSuccessText": "¡Se ha subido el archivo!",
47
47
  "neptune.Upload.csTooLargeMessage": "Proporciona un archivo menor de {maxSize} MB",
48
+ "neptune.Upload.csTooLargeNoLimitMessage": "Proporciona un archivo más pequeño",
48
49
  "neptune.Upload.csWrongTypeMessage": "Tipo de archivo no aceptado. Por favor, inténtalo de nuevo con un archivo diferente",
49
50
  "neptune.Upload.psButtonText": "Cancela",
50
51
  "neptune.Upload.psProcessingText": "Subiendo...",
@@ -52,6 +53,7 @@
52
53
  "neptune.Upload.usButtonText": "O selecciona un archivo",
53
54
  "neptune.Upload.usDropMessage": "Arrastra un archivo para subirlo",
54
55
  "neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo de menos de {maxSize} MB",
56
+ "neptune.Upload.usPlaceholderNoLimit": "Arrastra y suelta un archivo",
55
57
  "neptune.UploadButton.allFileTypes": "Todos los tipos de archivos",
56
58
  "neptune.UploadButton.dropFiles": "Arrastra un archivo para subirlo",
57
59
  "neptune.UploadButton.instructions": "{fileTypes}, menor que {size}MB",