@transferwise/components 46.26.0 → 46.26.2
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/ja.json +13 -13
- package/build/index.js +13 -13
- package/build/index.js.map +1 -1
- package/build/index.mjs +13 -13
- package/build/index.mjs.map +1 -1
- package/build/types/provider/Provider.d.ts +1 -1
- package/build/types/provider/Provider.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/i18n/ja.json +13 -13
- package/src/inputs/SelectInput.story.tsx +27 -6
- package/src/provider/Provider.tsx +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ResolvedIntlConfig } from 'react-intl';
|
|
3
3
|
export interface ProviderProps {
|
|
4
|
-
i18n: Pick<ResolvedIntlConfig, 'locale' | 'messages'
|
|
4
|
+
i18n: Pick<ResolvedIntlConfig, 'locale' | 'messages'> & Partial<Pick<ResolvedIntlConfig, 'defaultRichTextElements'>>;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}
|
|
7
7
|
export default function Provider({ i18n, children }: ProviderProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/provider/Provider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgB,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAQ9D,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,IAAI,CAAC,kBAAkB,EAAE,QAAQ,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/provider/Provider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgB,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAQ9D,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,IAAI,CAAC,kBAAkB,EAAE,QAAQ,GAAG,UAAU,CAAC,GACnD,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,yBAAyB,CAAC,CAAC,CAAC;IAC/D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,aAAa,+BA8BjE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "46.26.
|
|
3
|
+
"version": "46.26.2",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"require": "./build/mocks.js"
|
|
25
25
|
},
|
|
26
26
|
"./build/*": "./build/*.js",
|
|
27
|
+
"./build/main.css": "./build/main.css",
|
|
27
28
|
"./build/*.css": "./build/*.css",
|
|
28
29
|
"./build/*.json": "./build/*.json",
|
|
29
30
|
"./build/i18n": "./build/i18n"
|
package/src/i18n/ja.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"neptune.Button.loadingAriaLabel": "読み込み中…",
|
|
3
|
-
"neptune.Chips.ariaLabel": "{choice}
|
|
4
|
-
"neptune.ClearButton.ariaLabel": "
|
|
3
|
+
"neptune.Chips.ariaLabel": "{choice}を消去する",
|
|
4
|
+
"neptune.ClearButton.ariaLabel": "消去する",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "閉じる",
|
|
6
6
|
"neptune.DateInput.day.label": "日",
|
|
7
7
|
"neptune.DateInput.day.placeholder": "日",
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"neptune.Link.opensInNewTab": "(新しいタブで開きます)",
|
|
22
22
|
"neptune.MoneyInput.Select.placeholder": "選択してください...",
|
|
23
23
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "選択してください…",
|
|
24
|
-
"neptune.Select.searchPlaceholder": "
|
|
24
|
+
"neptune.Select.searchPlaceholder": "検索する... ",
|
|
25
25
|
"neptune.SelectInput.noResultsFound": "結果が見つかりませんでした",
|
|
26
26
|
"neptune.Summary.statusDone": "完了",
|
|
27
|
-
"neptune.Summary.statusNotDone": "
|
|
27
|
+
"neptune.Summary.statusNotDone": "未完了",
|
|
28
28
|
"neptune.Summary.statusPending": "保留中",
|
|
29
29
|
"neptune.Upload.csButtonText": "別のファイルをアップロードしますか?",
|
|
30
30
|
"neptune.Upload.csFailureText": "アップロードに失敗しました。もう一度やり直してください。",
|
|
31
31
|
"neptune.Upload.csSuccessText": "アップロードが完了しました。",
|
|
32
32
|
"neptune.Upload.csTooLargeMessage": "{maxSize}MB以下のファイルをアップロードしてください",
|
|
33
33
|
"neptune.Upload.csWrongTypeMessage": "ファイルの種類はサポートされていません。別のファイルで再度お試しください",
|
|
34
|
-
"neptune.Upload.psButtonText": "
|
|
35
|
-
"neptune.Upload.psProcessingText": "
|
|
36
|
-
"neptune.Upload.usButtonText": "
|
|
34
|
+
"neptune.Upload.psButtonText": "キャンセルする",
|
|
35
|
+
"neptune.Upload.psProcessingText": "アップロードしています…",
|
|
36
|
+
"neptune.Upload.usButtonText": "またはファイルを選択する",
|
|
37
37
|
"neptune.Upload.usDropMessage": "ファイルをドロップしてアップロードする",
|
|
38
38
|
"neptune.Upload.usPlaceholder": "{maxSize}MB以下のファイルをドラッグ&ドロップしてください",
|
|
39
39
|
"neptune.UploadButton.allFileTypes": "すべてのファイル種類",
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"neptune.UploadButton.uploadFile": "ファイルをアップロードする",
|
|
43
43
|
"neptune.UploadButton.uploadFiles": "ファイルをアップロードする",
|
|
44
44
|
"neptune.UploadInput.deleteModalBody": "このファイルを削除すると、当社のシステムからも削除されます。",
|
|
45
|
-
"neptune.UploadInput.deleteModalCancelButtonText": "
|
|
46
|
-
"neptune.UploadInput.deleteModalConfirmButtonText": "
|
|
45
|
+
"neptune.UploadInput.deleteModalCancelButtonText": "キャンセルする",
|
|
46
|
+
"neptune.UploadInput.deleteModalConfirmButtonText": "削除する",
|
|
47
47
|
"neptune.UploadInput.deleteModalTitle": "このファイルを削除しますか?",
|
|
48
48
|
"neptune.UploadInput.fileIsTooLarge": "ファイルが大きすぎます。",
|
|
49
49
|
"neptune.UploadInput.fileTypeNotSupported": "このファイルの種類はサポートされていません",
|
|
50
50
|
"neptune.UploadInput.maximumFilesAlreadyUploaded": "申し訳ございませんが、このアップロードに失敗しました。一度に{maxFilesAllowed}個のファイルのみ受付可能です。",
|
|
51
|
-
"neptune.UploadItem.deleting": "
|
|
52
|
-
"neptune.UploadItem.removeFile": "{filename}
|
|
51
|
+
"neptune.UploadItem.deleting": "削除しています...",
|
|
52
|
+
"neptune.UploadItem.removeFile": "{filename}のファイルを削除する",
|
|
53
53
|
"neptune.UploadItem.uploaded": "アップロード済み",
|
|
54
54
|
"neptune.UploadItem.uploadedFile": "アップロード済みのファイル",
|
|
55
|
-
"neptune.UploadItem.uploading": "
|
|
56
|
-
"neptune.UploadItem.uploadingFailed": "
|
|
55
|
+
"neptune.UploadItem.uploading": "アップロードしています…",
|
|
56
|
+
"neptune.UploadItem.uploadingFailed": "アップロードに失敗しました"
|
|
57
57
|
}
|
|
@@ -5,6 +5,7 @@ import { Flag } from '@wise/art';
|
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { useState } from 'react';
|
|
7
7
|
|
|
8
|
+
import Button from '../button/Button';
|
|
8
9
|
import { getMonthNames } from '../common/dateUtils';
|
|
9
10
|
import Drawer from '../drawer';
|
|
10
11
|
import Modal from '../modal';
|
|
@@ -321,15 +322,35 @@ export const Advanced: Story<Month> = {
|
|
|
321
322
|
export const WithinDrawer: Story<Currency> = {
|
|
322
323
|
args: CurrenciesArgs,
|
|
323
324
|
decorators: [
|
|
324
|
-
(Story) =>
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
325
|
+
(Story, context) => {
|
|
326
|
+
const [open, setOpen] = useState(context.viewMode === 'story');
|
|
327
|
+
return (
|
|
328
|
+
<>
|
|
329
|
+
<Button onClick={() => setOpen(true)}>Open drawer</Button>
|
|
330
|
+
<Drawer
|
|
331
|
+
open={open}
|
|
332
|
+
headerTitle="This is the title of the drawer"
|
|
333
|
+
onClose={() => setOpen(false)}
|
|
334
|
+
>
|
|
335
|
+
<Story />
|
|
336
|
+
</Drawer>
|
|
337
|
+
</>
|
|
338
|
+
);
|
|
339
|
+
},
|
|
329
340
|
],
|
|
330
341
|
};
|
|
331
342
|
|
|
332
343
|
export const WithinModal: Story<Currency> = {
|
|
333
344
|
args: CurrenciesArgs,
|
|
334
|
-
decorators: [
|
|
345
|
+
decorators: [
|
|
346
|
+
(Story, context) => {
|
|
347
|
+
const [open, setOpen] = useState(context.viewMode === 'story');
|
|
348
|
+
return (
|
|
349
|
+
<>
|
|
350
|
+
<Button onClick={() => setOpen(true)}>Open modal</Button>
|
|
351
|
+
<Modal open={open} body={<Story />} onClose={() => setOpen(false)} />
|
|
352
|
+
</>
|
|
353
|
+
);
|
|
354
|
+
},
|
|
355
|
+
],
|
|
335
356
|
};
|
|
@@ -7,7 +7,8 @@ import { DirectionProvider } from './direction';
|
|
|
7
7
|
import { LanguageProvider } from './language';
|
|
8
8
|
|
|
9
9
|
export interface ProviderProps {
|
|
10
|
-
i18n: Pick<ResolvedIntlConfig, 'locale' | 'messages'
|
|
10
|
+
i18n: Pick<ResolvedIntlConfig, 'locale' | 'messages'> &
|
|
11
|
+
Partial<Pick<ResolvedIntlConfig, 'defaultRichTextElements'>>;
|
|
11
12
|
children?: React.ReactNode;
|
|
12
13
|
}
|
|
13
14
|
|