@transferwise/components 46.53.0 → 46.54.1
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.
- package/build/i18n/de.json +2 -0
- package/build/i18n/de.json.js +2 -0
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/de.json.mjs +2 -0
- package/build/i18n/de.json.mjs.map +1 -1
- package/build/i18n/en.json +1 -0
- package/build/i18n/en.json.js +1 -0
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +1 -0
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/i18n/es.json +2 -0
- package/build/i18n/es.json.js +2 -0
- package/build/i18n/es.json.js.map +1 -1
- package/build/i18n/es.json.mjs +2 -0
- package/build/i18n/es.json.mjs.map +1 -1
- package/build/i18n/fr.json +2 -0
- package/build/i18n/fr.json.js +2 -0
- package/build/i18n/fr.json.js.map +1 -1
- package/build/i18n/fr.json.mjs +2 -0
- package/build/i18n/fr.json.mjs.map +1 -1
- package/build/i18n/hu.json +2 -0
- package/build/i18n/hu.json.js +2 -0
- package/build/i18n/hu.json.js.map +1 -1
- package/build/i18n/hu.json.mjs +2 -0
- package/build/i18n/hu.json.mjs.map +1 -1
- package/build/i18n/id.json +2 -0
- package/build/i18n/id.json.js +2 -0
- package/build/i18n/id.json.js.map +1 -1
- package/build/i18n/id.json.mjs +2 -0
- package/build/i18n/id.json.mjs.map +1 -1
- package/build/i18n/it.json +2 -0
- package/build/i18n/it.json.js +2 -0
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/it.json.mjs +2 -0
- package/build/i18n/it.json.mjs.map +1 -1
- package/build/i18n/ja.json +2 -0
- package/build/i18n/ja.json.js +2 -0
- package/build/i18n/ja.json.js.map +1 -1
- package/build/i18n/ja.json.mjs +2 -0
- package/build/i18n/ja.json.mjs.map +1 -1
- package/build/i18n/pl.json +2 -0
- package/build/i18n/pl.json.js +2 -0
- package/build/i18n/pl.json.js.map +1 -1
- package/build/i18n/pl.json.mjs +2 -0
- package/build/i18n/pl.json.mjs.map +1 -1
- package/build/i18n/pt.json +2 -0
- package/build/i18n/pt.json.js +2 -0
- package/build/i18n/pt.json.js.map +1 -1
- package/build/i18n/pt.json.mjs +2 -0
- package/build/i18n/pt.json.mjs.map +1 -1
- package/build/i18n/ro.json +2 -0
- package/build/i18n/ro.json.js +2 -0
- package/build/i18n/ro.json.js.map +1 -1
- package/build/i18n/ro.json.mjs +2 -0
- package/build/i18n/ro.json.mjs.map +1 -1
- package/build/i18n/ru.json +2 -0
- package/build/i18n/ru.json.js +2 -0
- package/build/i18n/ru.json.js.map +1 -1
- package/build/i18n/ru.json.mjs +2 -0
- package/build/i18n/ru.json.mjs.map +1 -1
- package/build/i18n/th.json +2 -0
- package/build/i18n/th.json.js +2 -0
- package/build/i18n/th.json.js.map +1 -1
- package/build/i18n/th.json.mjs +2 -0
- package/build/i18n/th.json.mjs.map +1 -1
- package/build/i18n/tr.json +2 -0
- package/build/i18n/tr.json.js +2 -0
- package/build/i18n/tr.json.js.map +1 -1
- package/build/i18n/tr.json.mjs +2 -0
- package/build/i18n/tr.json.mjs.map +1 -1
- package/build/i18n/zh-CN.json +2 -0
- package/build/i18n/zh-CN.json.js +2 -0
- package/build/i18n/zh-CN.json.js.map +1 -1
- package/build/i18n/zh-CN.json.mjs +2 -0
- package/build/i18n/zh-CN.json.mjs.map +1 -1
- package/build/i18n/zh-HK.json +2 -0
- package/build/i18n/zh-HK.json.js +2 -0
- package/build/i18n/zh-HK.json.js.map +1 -1
- package/build/i18n/zh-HK.json.mjs +2 -0
- package/build/i18n/zh-HK.json.mjs.map +1 -1
- package/build/main.css +11 -1
- package/build/styles/main.css +11 -1
- package/build/styles/nudge/Nudge.css +1 -1
- package/build/styles/upload/Upload.css +10 -0
- package/build/types/upload/Upload.d.ts +1 -0
- package/build/types/upload/Upload.d.ts.map +1 -1
- package/build/types/upload/Upload.messages.d.ts +4 -0
- package/build/types/upload/Upload.messages.d.ts.map +1 -1
- package/build/types/upload/steps/completeStep/completeStep.d.ts +1 -3
- package/build/types/upload/steps/completeStep/completeStep.d.ts.map +1 -1
- package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +1 -0
- package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts.map +1 -1
- package/build/upload/Upload.js +26 -12
- package/build/upload/Upload.js.map +1 -1
- package/build/upload/Upload.messages.js +3 -0
- package/build/upload/Upload.messages.js.map +1 -1
- package/build/upload/Upload.messages.mjs +3 -0
- package/build/upload/Upload.messages.mjs.map +1 -1
- package/build/upload/Upload.mjs +26 -12
- package/build/upload/Upload.mjs.map +1 -1
- package/build/upload/steps/completeStep/completeStep.js +15 -30
- package/build/upload/steps/completeStep/completeStep.js.map +1 -1
- package/build/upload/steps/completeStep/completeStep.mjs +16 -31
- package/build/upload/steps/completeStep/completeStep.mjs.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.js +56 -32
- package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +56 -32
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs.map +1 -1
- package/package.json +2 -2
- package/src/i18n/de.json +2 -0
- package/src/i18n/en.json +1 -0
- package/src/i18n/es.json +2 -0
- package/src/i18n/fr.json +2 -0
- package/src/i18n/hu.json +2 -0
- package/src/i18n/id.json +2 -0
- package/src/i18n/it.json +2 -0
- package/src/i18n/ja.json +2 -0
- package/src/i18n/pl.json +2 -0
- package/src/i18n/pt.json +2 -0
- package/src/i18n/ro.json +2 -0
- package/src/i18n/ru.json +2 -0
- package/src/i18n/th.json +2 -0
- package/src/i18n/tr.json +2 -0
- package/src/i18n/zh-CN.json +2 -0
- package/src/i18n/zh-HK.json +2 -0
- package/src/main.css +11 -1
- package/src/nudge/Nudge.css +1 -1
- package/src/nudge/Nudge.less +1 -1
- package/src/upload/Upload.css +10 -0
- package/src/upload/Upload.less +9 -0
- package/src/upload/Upload.messages.ts +4 -0
- package/src/upload/Upload.spec.js +8 -7
- package/src/upload/Upload.story.tsx +1 -0
- package/src/upload/Upload.tsx +39 -20
- package/src/upload/steps/completeStep/completeStep.spec.js +0 -9
- package/src/upload/steps/completeStep/completeStep.tsx +14 -29
- package/src/upload/steps/uploadImageStep/uploadImageStep.spec.js +12 -0
- package/src/upload/steps/uploadImageStep/uploadImageStep.tsx +43 -24
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var icons = require('@transferwise/icons');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var StatusIcon = require('../../../statusIcon/StatusIcon.js');
|
|
6
|
+
var InlineAlert = require('../../../inlineAlert/InlineAlert.js');
|
|
5
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
var sentiment = require('../../../common/propsValues/sentiment.js');
|
|
9
|
+
var size = require('../../../common/propsValues/size.js');
|
|
6
10
|
|
|
7
11
|
class UploadImageStep extends React.PureComponent {
|
|
8
12
|
uploadInputRef = /*#__PURE__*/React.createRef();
|
|
@@ -20,6 +24,18 @@ class UploadImageStep extends React.PureComponent {
|
|
|
20
24
|
usHelpImage,
|
|
21
25
|
usLabel
|
|
22
26
|
} = this.props;
|
|
27
|
+
const {
|
|
28
|
+
errorMessage
|
|
29
|
+
} = this.props;
|
|
30
|
+
if (errorMessage) {
|
|
31
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
32
|
+
className: "d-flex flex-column align-items-center",
|
|
33
|
+
children: /*#__PURE__*/jsxRuntime.jsx(StatusIcon, {
|
|
34
|
+
size: size.Size.LARGE,
|
|
35
|
+
sentiment: sentiment.Sentiment.NEGATIVE
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
}
|
|
23
39
|
if (!usHelpImage) {
|
|
24
40
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
25
41
|
className: "circle circle-sm circle-inverse p-t-1",
|
|
@@ -44,41 +60,49 @@ class UploadImageStep extends React.PureComponent {
|
|
|
44
60
|
usButtonText,
|
|
45
61
|
usDisabled,
|
|
46
62
|
usLabel,
|
|
47
|
-
usPlaceholder
|
|
63
|
+
usPlaceholder,
|
|
64
|
+
errorMessage
|
|
48
65
|
} = this.props;
|
|
49
66
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
children:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
onChange: () => this.onManualUpload()
|
|
79
|
-
})]
|
|
67
|
+
className: "droppable-default-card",
|
|
68
|
+
"aria-hidden": isComplete,
|
|
69
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
70
|
+
className: "droppable-card-content",
|
|
71
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
72
|
+
className: "m-b-3",
|
|
73
|
+
children: this.getImage()
|
|
74
|
+
}), usLabel && /*#__PURE__*/jsxRuntime.jsx("h4", {
|
|
75
|
+
className: "np-text-title-body m-b-1",
|
|
76
|
+
children: usLabel
|
|
77
|
+
}), usPlaceholder && /*#__PURE__*/jsxRuntime.jsx("p", {
|
|
78
|
+
className: "np-text-body-large m-b-3",
|
|
79
|
+
children: String(usPlaceholder)
|
|
80
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
81
|
+
className: `btn btn-primary btn-md ${usDisabled ? 'disabled' : ''}`,
|
|
82
|
+
children: [usButtonText ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
83
|
+
children: usButtonText
|
|
84
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(icons.Upload, {
|
|
85
|
+
size: 24,
|
|
86
|
+
className: "m-r-0"
|
|
87
|
+
}), /*#__PURE__*/jsxRuntime.jsx("input", {
|
|
88
|
+
ref: this.uploadInputRef,
|
|
89
|
+
type: "file",
|
|
90
|
+
accept: usAccept === '*' ? undefined : usAccept,
|
|
91
|
+
className: "tw-droppable-input hidden",
|
|
92
|
+
disabled: usDisabled,
|
|
93
|
+
name: "file-upload",
|
|
94
|
+
onChange: () => this.onManualUpload()
|
|
80
95
|
})]
|
|
81
|
-
})
|
|
96
|
+
}), errorMessage && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
97
|
+
className: "upload-error-message",
|
|
98
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
99
|
+
className: "m-t-3 has-error",
|
|
100
|
+
children: /*#__PURE__*/jsxRuntime.jsx(InlineAlert, {
|
|
101
|
+
type: sentiment.Sentiment.NEGATIVE,
|
|
102
|
+
children: errorMessage
|
|
103
|
+
})
|
|
104
|
+
})
|
|
105
|
+
})]
|
|
82
106
|
})
|
|
83
107
|
});
|
|
84
108
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploadImageStep.js","sources":["../../../../src/upload/steps/uploadImageStep/uploadImageStep.tsx"],"sourcesContent":["import { Upload as UploadIcon } from '@transferwise/icons';\nimport { createRef, PureComponent } from 'react';\n\nexport interface UploadImageStepProps {\n fileDropped: (file: File) => void;\n isComplete: boolean;\n usAccept: string;\n usButtonText: string;\n usDisabled: boolean;\n usHelpImage: React.ReactNode;\n usLabel: string;\n usPlaceholder: string;\n}\n\nexport default class UploadImageStep extends PureComponent<UploadImageStepProps> {\n uploadInputRef = createRef<HTMLInputElement>();\n\n onManualUpload = () => {\n const { fileDropped } = this.props;\n const file = this.uploadInputRef.current?.files?.[0];\n if (file != null) {\n fileDropped(file);\n }\n };\n\n getImage = () => {\n const { usHelpImage, usLabel } = this.props;\n\n if (!usHelpImage) {\n return (\n <div className=\"circle circle-sm circle-inverse p-t-1\">\n <UploadIcon size={24} />\n </div>\n );\n }\n\n if (typeof usHelpImage === 'string') {\n return <img src={usHelpImage} alt={usLabel} className=\"thumbnail text-xs-center\" />;\n }\n\n return usHelpImage;\n };\n\n render() {\n const { isComplete, usAccept, usButtonText, usDisabled, usLabel, usPlaceholder }
|
|
1
|
+
{"version":3,"file":"uploadImageStep.js","sources":["../../../../src/upload/steps/uploadImageStep/uploadImageStep.tsx"],"sourcesContent":["import { Upload as UploadIcon } from '@transferwise/icons';\nimport { createRef, PureComponent } from 'react';\nimport StatusIcon from '../../../statusIcon';\nimport { Sentiment, Size } from '../../../common';\nimport InlineAlert from '../../../inlineAlert';\n\nexport interface UploadImageStepProps {\n fileDropped: (file: File) => void;\n isComplete: boolean;\n usAccept: string;\n usButtonText: string;\n usDisabled: boolean;\n usHelpImage: React.ReactNode;\n usLabel: string;\n usPlaceholder: string;\n errorMessage?: string | string[];\n}\n\nexport default class UploadImageStep extends PureComponent<UploadImageStepProps> {\n uploadInputRef = createRef<HTMLInputElement>();\n\n onManualUpload = () => {\n const { fileDropped } = this.props;\n const file = this.uploadInputRef.current?.files?.[0];\n if (file != null) {\n fileDropped(file);\n }\n };\n\n getImage = () => {\n const { usHelpImage, usLabel } = this.props;\n const { errorMessage } = this.props;\n\n if (errorMessage) {\n return (\n <div className=\"d-flex flex-column align-items-center\">\n <StatusIcon size={Size.LARGE} sentiment={Sentiment.NEGATIVE} />\n </div>\n );\n }\n\n if (!usHelpImage) {\n return (\n <div className=\"circle circle-sm circle-inverse p-t-1\">\n <UploadIcon size={24} />\n </div>\n );\n }\n\n if (typeof usHelpImage === 'string') {\n return <img src={usHelpImage} alt={usLabel} className=\"thumbnail text-xs-center\" />;\n }\n\n return usHelpImage;\n };\n\n render() {\n const { isComplete, usAccept, usButtonText, usDisabled, usLabel, usPlaceholder, errorMessage } =\n this.props;\n\n return (\n <div className=\"droppable-default-card\" aria-hidden={isComplete}>\n <div className=\"droppable-card-content\">\n <div className=\"m-b-3\">{this.getImage()}</div>\n {usLabel && <h4 className=\"np-text-title-body m-b-1\">{usLabel}</h4>}\n {usPlaceholder && <p className=\"np-text-body-large m-b-3\">{String(usPlaceholder)}</p>}\n <label className={`btn btn-primary btn-md ${usDisabled ? 'disabled' : ''}`}>\n {usButtonText ? (\n <span>{usButtonText}</span>\n ) : (\n <UploadIcon size={24} className=\"m-r-0\" />\n )}\n <input\n ref={this.uploadInputRef}\n type=\"file\"\n accept={usAccept === '*' ? undefined : usAccept}\n className=\"tw-droppable-input hidden\"\n disabled={usDisabled}\n name=\"file-upload\"\n onChange={() => this.onManualUpload()}\n />\n </label>\n {errorMessage && (\n <div className=\"upload-error-message\">\n <div className=\"m-t-3 has-error\">\n <InlineAlert type={Sentiment.NEGATIVE}>{errorMessage}</InlineAlert>\n </div>\n </div>\n )}\n </div>\n </div>\n );\n }\n}\n"],"names":["UploadImageStep","PureComponent","uploadInputRef","createRef","onManualUpload","fileDropped","props","file","current","files","getImage","usHelpImage","usLabel","errorMessage","_jsx","className","children","StatusIcon","size","Size","LARGE","sentiment","Sentiment","NEGATIVE","UploadIcon","src","alt","render","isComplete","usAccept","usButtonText","usDisabled","usPlaceholder","_jsxs","String","ref","type","accept","undefined","disabled","name","onChange","InlineAlert"],"mappings":";;;;;;;;;;AAkBqB,MAAAA,eAAgB,SAAQC,mBAAmC,CAAA;EAC9EC,cAAc,gBAAGC,eAAS,EAAoB,CAAA;EAE9CC,cAAc,GAAGA,MAAK;IACpB,MAAM;AAAEC,MAAAA,WAAAA;KAAa,GAAG,IAAI,CAACC,KAAK,CAAA;IAClC,MAAMC,IAAI,GAAG,IAAI,CAACL,cAAc,CAACM,OAAO,EAAEC,KAAK,GAAG,CAAC,CAAC,CAAA;IACpD,IAAIF,IAAI,IAAI,IAAI,EAAE;MAChBF,WAAW,CAACE,IAAI,CAAC,CAAA;AACnB,KAAA;GACD,CAAA;EAEDG,QAAQ,GAAGA,MAAK;IACd,MAAM;MAAEC,WAAW;A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ACS,YAAY,iBACXC,cAAA,CAAA,KAAA,EAAA;AAAKC,UAAAA,SAAS,EAAC,sBAAsB;AAAAC,UAAAA,QAAA,eACnCF,cAAA,CAAA,KAAA,EAAA;AAAKC,YAAAA,SAAS,EAAC,iBAAiB;YAAAC,QAAA,eAC9BF,cAAA,CAAC4B,WAAW,EAAA;cAACN,IAAI,EAAEd,mBAAS,CAACC,QAAS;AAAAP,cAAAA,QAAA,EAAEH,YAAAA;aAA0B,CAAA;WAC/D,CAAA;AACP,SAAK,CACN,CAAA;OACE,CAAA;AACP,KAAK,CAAC,CAAA;AAEV,GAAA;AACD;;;;"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Upload } from '@transferwise/icons';
|
|
2
2
|
import { PureComponent, createRef } from 'react';
|
|
3
|
+
import StatusIcon from '../../../statusIcon/StatusIcon.mjs';
|
|
4
|
+
import InlineAlert from '../../../inlineAlert/InlineAlert.mjs';
|
|
3
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
+
import { Sentiment } from '../../../common/propsValues/sentiment.mjs';
|
|
7
|
+
import { Size } from '../../../common/propsValues/size.mjs';
|
|
4
8
|
|
|
5
9
|
class UploadImageStep extends PureComponent {
|
|
6
10
|
uploadInputRef = /*#__PURE__*/createRef();
|
|
@@ -18,6 +22,18 @@ class UploadImageStep extends PureComponent {
|
|
|
18
22
|
usHelpImage,
|
|
19
23
|
usLabel
|
|
20
24
|
} = this.props;
|
|
25
|
+
const {
|
|
26
|
+
errorMessage
|
|
27
|
+
} = this.props;
|
|
28
|
+
if (errorMessage) {
|
|
29
|
+
return /*#__PURE__*/jsx("div", {
|
|
30
|
+
className: "d-flex flex-column align-items-center",
|
|
31
|
+
children: /*#__PURE__*/jsx(StatusIcon, {
|
|
32
|
+
size: Size.LARGE,
|
|
33
|
+
sentiment: Sentiment.NEGATIVE
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
}
|
|
21
37
|
if (!usHelpImage) {
|
|
22
38
|
return /*#__PURE__*/jsx("div", {
|
|
23
39
|
className: "circle circle-sm circle-inverse p-t-1",
|
|
@@ -42,41 +58,49 @@ class UploadImageStep extends PureComponent {
|
|
|
42
58
|
usButtonText,
|
|
43
59
|
usDisabled,
|
|
44
60
|
usLabel,
|
|
45
|
-
usPlaceholder
|
|
61
|
+
usPlaceholder,
|
|
62
|
+
errorMessage
|
|
46
63
|
} = this.props;
|
|
47
64
|
return /*#__PURE__*/jsx("div", {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
children:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
onChange: () => this.onManualUpload()
|
|
77
|
-
})]
|
|
65
|
+
className: "droppable-default-card",
|
|
66
|
+
"aria-hidden": isComplete,
|
|
67
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
68
|
+
className: "droppable-card-content",
|
|
69
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
70
|
+
className: "m-b-3",
|
|
71
|
+
children: this.getImage()
|
|
72
|
+
}), usLabel && /*#__PURE__*/jsx("h4", {
|
|
73
|
+
className: "np-text-title-body m-b-1",
|
|
74
|
+
children: usLabel
|
|
75
|
+
}), usPlaceholder && /*#__PURE__*/jsx("p", {
|
|
76
|
+
className: "np-text-body-large m-b-3",
|
|
77
|
+
children: String(usPlaceholder)
|
|
78
|
+
}), /*#__PURE__*/jsxs("label", {
|
|
79
|
+
className: `btn btn-primary btn-md ${usDisabled ? 'disabled' : ''}`,
|
|
80
|
+
children: [usButtonText ? /*#__PURE__*/jsx("span", {
|
|
81
|
+
children: usButtonText
|
|
82
|
+
}) : /*#__PURE__*/jsx(Upload, {
|
|
83
|
+
size: 24,
|
|
84
|
+
className: "m-r-0"
|
|
85
|
+
}), /*#__PURE__*/jsx("input", {
|
|
86
|
+
ref: this.uploadInputRef,
|
|
87
|
+
type: "file",
|
|
88
|
+
accept: usAccept === '*' ? undefined : usAccept,
|
|
89
|
+
className: "tw-droppable-input hidden",
|
|
90
|
+
disabled: usDisabled,
|
|
91
|
+
name: "file-upload",
|
|
92
|
+
onChange: () => this.onManualUpload()
|
|
78
93
|
})]
|
|
79
|
-
})
|
|
94
|
+
}), errorMessage && /*#__PURE__*/jsx("div", {
|
|
95
|
+
className: "upload-error-message",
|
|
96
|
+
children: /*#__PURE__*/jsx("div", {
|
|
97
|
+
className: "m-t-3 has-error",
|
|
98
|
+
children: /*#__PURE__*/jsx(InlineAlert, {
|
|
99
|
+
type: Sentiment.NEGATIVE,
|
|
100
|
+
children: errorMessage
|
|
101
|
+
})
|
|
102
|
+
})
|
|
103
|
+
})]
|
|
80
104
|
})
|
|
81
105
|
});
|
|
82
106
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploadImageStep.mjs","sources":["../../../../src/upload/steps/uploadImageStep/uploadImageStep.tsx"],"sourcesContent":["import { Upload as UploadIcon } from '@transferwise/icons';\nimport { createRef, PureComponent } from 'react';\n\nexport interface UploadImageStepProps {\n fileDropped: (file: File) => void;\n isComplete: boolean;\n usAccept: string;\n usButtonText: string;\n usDisabled: boolean;\n usHelpImage: React.ReactNode;\n usLabel: string;\n usPlaceholder: string;\n}\n\nexport default class UploadImageStep extends PureComponent<UploadImageStepProps> {\n uploadInputRef = createRef<HTMLInputElement>();\n\n onManualUpload = () => {\n const { fileDropped } = this.props;\n const file = this.uploadInputRef.current?.files?.[0];\n if (file != null) {\n fileDropped(file);\n }\n };\n\n getImage = () => {\n const { usHelpImage, usLabel } = this.props;\n\n if (!usHelpImage) {\n return (\n <div className=\"circle circle-sm circle-inverse p-t-1\">\n <UploadIcon size={24} />\n </div>\n );\n }\n\n if (typeof usHelpImage === 'string') {\n return <img src={usHelpImage} alt={usLabel} className=\"thumbnail text-xs-center\" />;\n }\n\n return usHelpImage;\n };\n\n render() {\n const { isComplete, usAccept, usButtonText, usDisabled, usLabel, usPlaceholder }
|
|
1
|
+
{"version":3,"file":"uploadImageStep.mjs","sources":["../../../../src/upload/steps/uploadImageStep/uploadImageStep.tsx"],"sourcesContent":["import { Upload as UploadIcon } from '@transferwise/icons';\nimport { createRef, PureComponent } from 'react';\nimport StatusIcon from '../../../statusIcon';\nimport { Sentiment, Size } from '../../../common';\nimport InlineAlert from '../../../inlineAlert';\n\nexport interface UploadImageStepProps {\n fileDropped: (file: File) => void;\n isComplete: boolean;\n usAccept: string;\n usButtonText: string;\n usDisabled: boolean;\n usHelpImage: React.ReactNode;\n usLabel: string;\n usPlaceholder: string;\n errorMessage?: string | string[];\n}\n\nexport default class UploadImageStep extends PureComponent<UploadImageStepProps> {\n uploadInputRef = createRef<HTMLInputElement>();\n\n onManualUpload = () => {\n const { fileDropped } = this.props;\n const file = this.uploadInputRef.current?.files?.[0];\n if (file != null) {\n fileDropped(file);\n }\n };\n\n getImage = () => {\n const { usHelpImage, usLabel } = this.props;\n const { errorMessage } = this.props;\n\n if (errorMessage) {\n return (\n <div className=\"d-flex flex-column align-items-center\">\n <StatusIcon size={Size.LARGE} sentiment={Sentiment.NEGATIVE} />\n </div>\n );\n }\n\n if (!usHelpImage) {\n return (\n <div className=\"circle circle-sm circle-inverse p-t-1\">\n <UploadIcon size={24} />\n </div>\n );\n }\n\n if (typeof usHelpImage === 'string') {\n return <img src={usHelpImage} alt={usLabel} className=\"thumbnail text-xs-center\" />;\n }\n\n return usHelpImage;\n };\n\n render() {\n const { isComplete, usAccept, usButtonText, usDisabled, usLabel, usPlaceholder, errorMessage } =\n this.props;\n\n return (\n <div className=\"droppable-default-card\" aria-hidden={isComplete}>\n <div className=\"droppable-card-content\">\n <div className=\"m-b-3\">{this.getImage()}</div>\n {usLabel && <h4 className=\"np-text-title-body m-b-1\">{usLabel}</h4>}\n {usPlaceholder && <p className=\"np-text-body-large m-b-3\">{String(usPlaceholder)}</p>}\n <label className={`btn btn-primary btn-md ${usDisabled ? 'disabled' : ''}`}>\n {usButtonText ? (\n <span>{usButtonText}</span>\n ) : (\n <UploadIcon size={24} className=\"m-r-0\" />\n )}\n <input\n ref={this.uploadInputRef}\n type=\"file\"\n accept={usAccept === '*' ? undefined : usAccept}\n className=\"tw-droppable-input hidden\"\n disabled={usDisabled}\n name=\"file-upload\"\n onChange={() => this.onManualUpload()}\n />\n </label>\n {errorMessage && (\n <div className=\"upload-error-message\">\n <div className=\"m-t-3 has-error\">\n <InlineAlert type={Sentiment.NEGATIVE}>{errorMessage}</InlineAlert>\n </div>\n </div>\n )}\n </div>\n </div>\n );\n }\n}\n"],"names":["UploadImageStep","PureComponent","uploadInputRef","createRef","onManualUpload","fileDropped","props","file","current","files","getImage","usHelpImage","usLabel","errorMessage","_jsx","className","children","StatusIcon","size","Size","LARGE","sentiment","Sentiment","NEGATIVE","UploadIcon","src","alt","render","isComplete","usAccept","usButtonText","usDisabled","usPlaceholder","_jsxs","String","ref","type","accept","undefined","disabled","name","onChange","InlineAlert"],"mappings":";;;;;;;;AAkBqB,MAAAA,eAAgB,SAAQC,aAAmC,CAAA;EAC9EC,cAAc,gBAAGC,SAAS,EAAoB,CAAA;EAE9CC,cAAc,GAAGA,MAAK;IACpB,MAAM;AAAEC,MAAAA,WAAAA;KAAa,GAAG,IAAI,CAACC,KAAK,CAAA;IAClC,MAAMC,IAAI,GAAG,IAAI,CAACL,cAAc,CAACM,OAAO,EAAEC,KAAK,GAAG,CAAC,CAAC,CAAA;IACpD,IAAIF,IAAI,IAAI,IAAI,EAAE;MAChBF,WAAW,CAACE,IAAI,CAAC,CAAA;AACnB,KAAA;GACD,CAAA;EAEDG,QAAQ,GAAGA,MAAK;IACd,MAAM;MAAEC,WAAW;AAAEC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AY,iBACXC,GAAA,CAAA,KAAA,EAAA;AAAKC,UAAAA,SAAS,EAAC,sBAAsB;AAAAC,UAAAA,QAAA,eACnCF,GAAA,CAAA,KAAA,EAAA;AAAKC,YAAAA,SAAS,EAAC,iBAAiB;YAAAC,QAAA,eAC9BF,GAAA,CAAC4B,WAAW,EAAA;cAACN,IAAI,EAAEd,SAAS,CAACC,QAAS;AAAAP,cAAAA,QAAA,EAAEH,YAAAA;aAA0B,CAAA;WAC/D,CAAA;AACP,SAAK,CACN,CAAA;OACE,CAAA;AACP,KAAK,CAAC,CAAA;AAEV,GAAA;AACD;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "46.
|
|
3
|
+
"version": "46.54.1",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"rollup-preserve-directives": "^1.1.1",
|
|
94
94
|
"storybook": "^8.2.2",
|
|
95
95
|
"@transferwise/less-config": "3.1.0",
|
|
96
|
-
"@transferwise/neptune-css": "14.13.
|
|
96
|
+
"@transferwise/neptune-css": "14.13.2",
|
|
97
97
|
"@wise/components-theming": "1.5.0"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
package/src/i18n/de.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "Jahr",
|
|
19
19
|
"neptune.FlowNavigation.back": "zurück zum vorherigen Schritt",
|
|
20
20
|
"neptune.Info.ariaLabel": "Weitere Informationen",
|
|
21
|
+
"neptune.Label.optional": "(Optional)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(wird in einem neuen Tab geöffnet)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "Wähle eine der Möglichkeiten aus...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Wähle eine Option...",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "Dateityp wird nicht unterstützt. Bitte versuche es erneut mit einer anderen Datei",
|
|
36
37
|
"neptune.Upload.psButtonText": "Abbrechen",
|
|
37
38
|
"neptune.Upload.psProcessingText": "Wird hochgeladen...",
|
|
39
|
+
"neptune.Upload.retry": "Erneut versuchen",
|
|
38
40
|
"neptune.Upload.usButtonText": "Oder wähle eine Datei aus",
|
|
39
41
|
"neptune.Upload.usDropMessage": "Datei zum Hochladen in dieses Feld ziehen",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "Zieh eine Datei in dieses Feld, die kleiner als {maxSize} MB ist",
|
package/src/i18n/en.json
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"neptune.Upload.csWrongTypeMessage": "File type not supported. Please try again with a different file",
|
|
37
37
|
"neptune.Upload.psButtonText": "Cancel",
|
|
38
38
|
"neptune.Upload.psProcessingText": "Uploading...",
|
|
39
|
+
"neptune.Upload.retry": "Retry",
|
|
39
40
|
"neptune.Upload.usButtonText": "Or select a file",
|
|
40
41
|
"neptune.Upload.usDropMessage": "Drop file to start upload",
|
|
41
42
|
"neptune.Upload.usPlaceholder": "Drag and drop a file less than {maxSize}MB",
|
package/src/i18n/es.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "año",
|
|
19
19
|
"neptune.FlowNavigation.back": "volver al paso anterior",
|
|
20
20
|
"neptune.Info.ariaLabel": "Más información",
|
|
21
|
+
"neptune.Label.optional": "(Opcional)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(se abre en una pestaña nueva)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "Selecciona una opción...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Selecciona una opción...",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "Tipo de archivo no aceptado. Por favor, inténtalo de nuevo con un archivo diferente",
|
|
36
37
|
"neptune.Upload.psButtonText": "Cancela",
|
|
37
38
|
"neptune.Upload.psProcessingText": "Subiendo...",
|
|
39
|
+
"neptune.Upload.retry": "Reintentar",
|
|
38
40
|
"neptune.Upload.usButtonText": "O selecciona un archivo",
|
|
39
41
|
"neptune.Upload.usDropMessage": "Arrastra un archivo para subirlo",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo de menos de {maxSize} MB",
|
package/src/i18n/fr.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "année",
|
|
19
19
|
"neptune.FlowNavigation.back": "revenir à l'étape précédente",
|
|
20
20
|
"neptune.Info.ariaLabel": "Plus d'informations",
|
|
21
|
+
"neptune.Label.optional": "(Facultatif)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(ouvre dans un nouvel onglet)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "Sélectionner une option...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Sélectionnez une option…",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "Format non pris en charge. Veuillez réessayer avec un fichier différent",
|
|
36
37
|
"neptune.Upload.psButtonText": "Annuler",
|
|
37
38
|
"neptune.Upload.psProcessingText": "Téléchargement...",
|
|
39
|
+
"neptune.Upload.retry": "Réessayez",
|
|
38
40
|
"neptune.Upload.usButtonText": "Ou sélectionnez un fichier",
|
|
39
41
|
"neptune.Upload.usDropMessage": "Déposer un fichier pour démarrer le téléchargement",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "Glissez-déposez un fichier de moins de {maxSize} Mo",
|
package/src/i18n/hu.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "év",
|
|
19
19
|
"neptune.FlowNavigation.back": "vissza az előző lépéshez",
|
|
20
20
|
"neptune.Info.ariaLabel": "További információ",
|
|
21
|
+
"neptune.Label.optional": "(Válaszható)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(új lapon nyílik meg)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "Válassz ki egy lehetőséget...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Válassz ki egy lehetőséget...",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "Nem támogatott fájltípus. Kérünk, próbáld újra másik fájllal",
|
|
36
37
|
"neptune.Upload.psButtonText": "Mégsem",
|
|
37
38
|
"neptune.Upload.psProcessingText": "Feltöltés...",
|
|
39
|
+
"neptune.Upload.retry": "Újra",
|
|
38
40
|
"neptune.Upload.usButtonText": "Vagy válaszd ki a fájlt",
|
|
39
41
|
"neptune.Upload.usDropMessage": "Húzd ide a fájlokat a feltöltéshez",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "Húzz ide egy legfeljebb {maxSize}MB méretű fájlt",
|
package/src/i18n/id.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "tahun",
|
|
19
19
|
"neptune.FlowNavigation.back": "kembali ke langkah sebelumnya",
|
|
20
20
|
"neptune.Info.ariaLabel": "Informasi lebih lanjut",
|
|
21
|
+
"neptune.Label.optional": "(Opsional)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(terbuka di tab baru)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "Pilih opsi...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Pilih opsi...",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "Tipe file ini tidak didukung. Mohon coba lagi dengan file yang berbeda",
|
|
36
37
|
"neptune.Upload.psButtonText": "Batalkan",
|
|
37
38
|
"neptune.Upload.psProcessingText": "Mengunggah...",
|
|
39
|
+
"neptune.Upload.retry": "Coba lagi",
|
|
38
40
|
"neptune.Upload.usButtonText": "Atau pilih file",
|
|
39
41
|
"neptune.Upload.usDropMessage": "Letakkan file untuk mulai mengunggah",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "Seret dan lepas file yang kurang dari {maxSize} MB",
|
package/src/i18n/it.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "anno",
|
|
19
19
|
"neptune.FlowNavigation.back": "torna al passaggio precedente",
|
|
20
20
|
"neptune.Info.ariaLabel": "Maggiori informazioni",
|
|
21
|
+
"neptune.Label.optional": "(Facoltativo)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(si apre in una nuova scheda)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "Seleziona un'opzione...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Seleziona un'opzione...",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "Formato del documento non supportato. Riprova con un formato diverso",
|
|
36
37
|
"neptune.Upload.psButtonText": "Annulla",
|
|
37
38
|
"neptune.Upload.psProcessingText": "Caricamento...",
|
|
39
|
+
"neptune.Upload.retry": "Riprova",
|
|
38
40
|
"neptune.Upload.usButtonText": "O seleziona un documento",
|
|
39
41
|
"neptune.Upload.usDropMessage": "Rilascia il documento per iniziare il caricamento",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "Trascina e rilascia un file inferiore a {maxSize}MB",
|
package/src/i18n/ja.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "年",
|
|
19
19
|
"neptune.FlowNavigation.back": "前のステップに戻る",
|
|
20
20
|
"neptune.Info.ariaLabel": "詳細",
|
|
21
|
+
"neptune.Label.optional": "(任意)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(新しいタブで開きます)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "選択してください...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "選択してください…",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "ファイルの種類はサポートされていません。別のファイルで再度お試しください",
|
|
36
37
|
"neptune.Upload.psButtonText": "キャンセルする",
|
|
37
38
|
"neptune.Upload.psProcessingText": "アップロードしています…",
|
|
39
|
+
"neptune.Upload.retry": "やり直す",
|
|
38
40
|
"neptune.Upload.usButtonText": "またはファイルを選択する",
|
|
39
41
|
"neptune.Upload.usDropMessage": "ファイルをドロップしてアップロードする",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "{maxSize}MB以下のファイルをドラッグ&ドロップしてください",
|
package/src/i18n/pl.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "rok",
|
|
19
19
|
"neptune.FlowNavigation.back": "wróć do poprzedniego kroku",
|
|
20
20
|
"neptune.Info.ariaLabel": "Więcej informacji",
|
|
21
|
+
"neptune.Label.optional": "(opcjonalne)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(otworzy się w nowej zakładce)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "Wybierz opcję...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Wybierz opcję...",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "Nieobsługiwany typ pliku. Spróbuj ponownie z innym plikiem",
|
|
36
37
|
"neptune.Upload.psButtonText": "Anuluj",
|
|
37
38
|
"neptune.Upload.psProcessingText": "Przesyłanie...",
|
|
39
|
+
"neptune.Upload.retry": "Spróbuj ponownie",
|
|
38
40
|
"neptune.Upload.usButtonText": "Lub wybierz plik",
|
|
39
41
|
"neptune.Upload.usDropMessage": "Upuść plik, aby rozpocząć przesyłanie",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "Przeciągnij i upuść plik nie większy niż {maxSize} MB",
|
package/src/i18n/pt.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "ano",
|
|
19
19
|
"neptune.FlowNavigation.back": "voltar à etapa anterior",
|
|
20
20
|
"neptune.Info.ariaLabel": "Mais informações",
|
|
21
|
+
"neptune.Label.optional": "(Opcional)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(abre em uma nova aba)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "Escolha uma opção...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Escolha uma opção...",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "Não trabalhamos com este tipo de arquivo. Por favor, tente novamente com um arquivo diferente",
|
|
36
37
|
"neptune.Upload.psButtonText": "Cancelar",
|
|
37
38
|
"neptune.Upload.psProcessingText": "Enviando...",
|
|
39
|
+
"neptune.Upload.retry": "Tente novamente",
|
|
38
40
|
"neptune.Upload.usButtonText": "Ou escolha um arquivo",
|
|
39
41
|
"neptune.Upload.usDropMessage": "Arraste o arquivo para iniciar o envio",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "Selecione e envie um arquivo com menos de {maxSize}MB",
|
package/src/i18n/ro.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "an",
|
|
19
19
|
"neptune.FlowNavigation.back": "înapoi la pasul anterior",
|
|
20
20
|
"neptune.Info.ariaLabel": "Mai multe informații",
|
|
21
|
+
"neptune.Label.optional": "(Opțional)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(se deschide într-o filă nouă)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "Selectează o opţiune...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Selectează o opțiune...",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "Tipul de fișier nu a fost acceptat. Te rugăm să încerci din nou cu un alt fișier",
|
|
36
37
|
"neptune.Upload.psButtonText": "Anulează",
|
|
37
38
|
"neptune.Upload.psProcessingText": "Se încarcă...",
|
|
39
|
+
"neptune.Upload.retry": "Încearcă din nou",
|
|
38
40
|
"neptune.Upload.usButtonText": "Sau selectează un fișier",
|
|
39
41
|
"neptune.Upload.usDropMessage": "Atașează fișierul pentru a începe încărcarea",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "Glisează și atașează un fișier mai mic de {maxSize} MB",
|
package/src/i18n/ru.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "год",
|
|
19
19
|
"neptune.FlowNavigation.back": "вернуться к предыдущему шагу",
|
|
20
20
|
"neptune.Info.ariaLabel": "Подробнее",
|
|
21
|
+
"neptune.Label.optional": "(необязательно)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(откроется в новой вкладке)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "Выберите вариант...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Выберите вариант...",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "Тип файла не поддерживается. Пожалуйста, попробуйте еще раз с другим файлом",
|
|
36
37
|
"neptune.Upload.psButtonText": "Отменить",
|
|
37
38
|
"neptune.Upload.psProcessingText": "Загружаем...",
|
|
39
|
+
"neptune.Upload.retry": "Повторить попытку",
|
|
38
40
|
"neptune.Upload.usButtonText": "Или выберите файл",
|
|
39
41
|
"neptune.Upload.usDropMessage": "Перетащите файл, чтобы начать загрузку",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "Перетащите файл размером не более {maxSize} Mб",
|
package/src/i18n/th.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "ปี",
|
|
19
19
|
"neptune.FlowNavigation.back": "กลับไปที่ขั้นก่อนหน้า",
|
|
20
20
|
"neptune.Info.ariaLabel": "ข้อมูลเพิ่มเติม",
|
|
21
|
+
"neptune.Label.optional": "(ไม่บังคับ)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(เปิดในแท็บใหม่)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "เลือกตัวเลือก...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "เลือกตัวเลือก...",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "ไม่รองรับประเภทไฟล์ โปรดลองอีกครั้งโดยใช้ไฟล์อื่น",
|
|
36
37
|
"neptune.Upload.psButtonText": "ยกเลิก",
|
|
37
38
|
"neptune.Upload.psProcessingText": "กำลังอัปโหลด...",
|
|
39
|
+
"neptune.Upload.retry": "ลองอีกครั้ง",
|
|
38
40
|
"neptune.Upload.usButtonText": "หรือเลือกไฟล์",
|
|
39
41
|
"neptune.Upload.usDropMessage": "วางไฟล์เพื่อเริ่มการอัปโหลด",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "ลากและวางไฟล์ที่น้อยกว่า {maxSize} MB",
|
package/src/i18n/tr.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "yıl",
|
|
19
19
|
"neptune.FlowNavigation.back": "önceki adıma dön",
|
|
20
20
|
"neptune.Info.ariaLabel": "Daha fazla bilgi",
|
|
21
|
+
"neptune.Label.optional": "(Isteğe bağlı)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(yeni sekmede açılır)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "Bir seçenek seçin...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Bir seçenek seçin...",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "Desteklenmeyen dosya biçimi. Lütfen başka bir dosyayla tekrar deneyin",
|
|
36
37
|
"neptune.Upload.psButtonText": "İptal edin",
|
|
37
38
|
"neptune.Upload.psProcessingText": "Yükleniyor...",
|
|
39
|
+
"neptune.Upload.retry": "Tekrar deneyin",
|
|
38
40
|
"neptune.Upload.usButtonText": "Veya bir dosya seçin",
|
|
39
41
|
"neptune.Upload.usDropMessage": "Yüklemeyi başlatmak için dosyayı bırakın",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "{maxSize} MB'den küçük bir dosya sürükleyin ve bırakın",
|
package/src/i18n/zh-CN.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "年",
|
|
19
19
|
"neptune.FlowNavigation.back": "返回上一步",
|
|
20
20
|
"neptune.Info.ariaLabel": "更多信息",
|
|
21
|
+
"neptune.Label.optional": "(可选)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(在新标签页中打开)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "请选择...",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "选择其中一项...",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "不支持该文件类型,请试试其他文件",
|
|
36
37
|
"neptune.Upload.psButtonText": "取消",
|
|
37
38
|
"neptune.Upload.psProcessingText": "正在上传…",
|
|
39
|
+
"neptune.Upload.retry": "重试",
|
|
38
40
|
"neptune.Upload.usButtonText": "或选择文件",
|
|
39
41
|
"neptune.Upload.usDropMessage": "拖放文件开始上传",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "拖放一个不超过 {maxSize} MB 的文件",
|
package/src/i18n/zh-HK.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "年",
|
|
19
19
|
"neptune.FlowNavigation.back": "返回上一個步驟",
|
|
20
20
|
"neptune.Info.ariaLabel": "更多資訊",
|
|
21
|
+
"neptune.Label.optional": "(可選)",
|
|
21
22
|
"neptune.Link.opensInNewTab": "(在新分頁中開啟)",
|
|
22
23
|
"neptune.MoneyInput.Select.placeholder": "選擇一個選項…",
|
|
23
24
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "選擇其中一項…",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"neptune.Upload.csWrongTypeMessage": "不支持檔案類型,請使用其他檔案重試",
|
|
36
37
|
"neptune.Upload.psButtonText": "取消",
|
|
37
38
|
"neptune.Upload.psProcessingText": "上載中...",
|
|
39
|
+
"neptune.Upload.retry": "重試",
|
|
38
40
|
"neptune.Upload.usButtonText": "或者選擇一個檔案",
|
|
39
41
|
"neptune.Upload.usDropMessage": "拖放檔案以開始上載",
|
|
40
42
|
"neptune.Upload.usPlaceholder": "拖放一個不超過{maxSize}MB的檔案",
|
package/src/main.css
CHANGED
|
@@ -3685,7 +3685,7 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
3685
3685
|
align-self: var(--nudge-content-flex-alignment);
|
|
3686
3686
|
display: flex;
|
|
3687
3687
|
flex-direction: column;
|
|
3688
|
-
align-items: start;
|
|
3688
|
+
align-items: flex-start;
|
|
3689
3689
|
}
|
|
3690
3690
|
.wds-nudge-container .wds-nudge-content .wds-nudge-title {
|
|
3691
3691
|
color: var(--nudge-title-color);
|
|
@@ -5440,6 +5440,16 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
5440
5440
|
.tw-droppable-sm {
|
|
5441
5441
|
min-height: 245px;
|
|
5442
5442
|
}
|
|
5443
|
+
.upload-error-message {
|
|
5444
|
+
margin-top: 24px;
|
|
5445
|
+
margin-top: var(--padding-medium);
|
|
5446
|
+
border-top: 1px solid rgba(0,0,0,0.10196);
|
|
5447
|
+
border-top: 1px solid var(--color-border-neutral);
|
|
5448
|
+
text-align: start;
|
|
5449
|
+
}
|
|
5450
|
+
.upload-error-message .alert {
|
|
5451
|
+
min-width: 100px;
|
|
5452
|
+
}
|
|
5443
5453
|
.np-upload-button-container {
|
|
5444
5454
|
border-style: solid;
|
|
5445
5455
|
}
|
package/src/nudge/Nudge.css
CHANGED
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
align-self: var(--nudge-content-flex-alignment);
|
|
156
156
|
display: flex;
|
|
157
157
|
flex-direction: column;
|
|
158
|
-
align-items: start;
|
|
158
|
+
align-items: flex-start;
|
|
159
159
|
}
|
|
160
160
|
.wds-nudge-container .wds-nudge-content .wds-nudge-title {
|
|
161
161
|
color: var(--nudge-title-color);
|