@transferwise/components 0.0.0-experimental-bab2370 → 0.0.0-experimental-9cfa4db

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": "Unggahan gagal. Silakan coba lagi",
46
46
  "neptune.Upload.csSuccessText": "Pengunggahan selesai!",
47
47
  "neptune.Upload.csTooLargeMessage": "Harap berikan file yang lebih kecil dari {maxSize} MB",
48
+ "neptune.Upload.csTooLargeNoLimitMessage": "Harap berikan file yang lebih kecil",
48
49
  "neptune.Upload.csWrongTypeMessage": "Tipe file ini tidak didukung. Mohon coba lagi dengan file yang berbeda",
49
50
  "neptune.Upload.psButtonText": "Batalkan",
50
51
  "neptune.Upload.psProcessingText": "Mengunggah...",
@@ -52,6 +53,7 @@
52
53
  "neptune.Upload.usButtonText": "Atau pilih file",
53
54
  "neptune.Upload.usDropMessage": "Letakkan file untuk mulai mengunggah",
54
55
  "neptune.Upload.usPlaceholder": "Seret dan lepas file yang kurang dari {maxSize} MB",
56
+ "neptune.Upload.usPlaceholderNoLimit": "Seret dan lepaskan file",
55
57
  "neptune.UploadButton.allFileTypes": "Semua jenis file",
56
58
  "neptune.UploadButton.dropFiles": "Lepaskan file untuk mulai mengunggah",
57
59
  "neptune.UploadButton.instructions": "{fileTypes}, kurang dari {size}MB",
@@ -49,6 +49,7 @@ var id = {
49
49
  "neptune.Upload.csFailureText": "Unggahan gagal. Silakan coba lagi",
50
50
  "neptune.Upload.csSuccessText": "Pengunggahan selesai!",
51
51
  "neptune.Upload.csTooLargeMessage": "Harap berikan file yang lebih kecil dari {maxSize} MB",
52
+ "neptune.Upload.csTooLargeNoLimitMessage": "Harap berikan file yang lebih kecil",
52
53
  "neptune.Upload.csWrongTypeMessage": "Tipe file ini tidak didukung. Mohon coba lagi dengan file yang berbeda",
53
54
  "neptune.Upload.psButtonText": "Batalkan",
54
55
  "neptune.Upload.psProcessingText": "Mengunggah...",
@@ -56,6 +57,7 @@ var id = {
56
57
  "neptune.Upload.usButtonText": "Atau pilih file",
57
58
  "neptune.Upload.usDropMessage": "Letakkan file untuk mulai mengunggah",
58
59
  "neptune.Upload.usPlaceholder": "Seret dan lepas file yang kurang dari {maxSize} MB",
60
+ "neptune.Upload.usPlaceholderNoLimit": "Seret dan lepaskan file",
59
61
  "neptune.UploadButton.allFileTypes": "Semua jenis file",
60
62
  "neptune.UploadButton.dropFiles": "Lepaskan file untuk mulai mengunggah",
61
63
  "neptune.UploadButton.instructions": "{fileTypes}, kurang dari {size}MB",
@@ -1 +1 @@
1
- {"version":3,"file":"id.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"id.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -45,6 +45,7 @@ var id = {
45
45
  "neptune.Upload.csFailureText": "Unggahan gagal. Silakan coba lagi",
46
46
  "neptune.Upload.csSuccessText": "Pengunggahan selesai!",
47
47
  "neptune.Upload.csTooLargeMessage": "Harap berikan file yang lebih kecil dari {maxSize} MB",
48
+ "neptune.Upload.csTooLargeNoLimitMessage": "Harap berikan file yang lebih kecil",
48
49
  "neptune.Upload.csWrongTypeMessage": "Tipe file ini tidak didukung. Mohon coba lagi dengan file yang berbeda",
49
50
  "neptune.Upload.psButtonText": "Batalkan",
50
51
  "neptune.Upload.psProcessingText": "Mengunggah...",
@@ -52,6 +53,7 @@ var id = {
52
53
  "neptune.Upload.usButtonText": "Atau pilih file",
53
54
  "neptune.Upload.usDropMessage": "Letakkan file untuk mulai mengunggah",
54
55
  "neptune.Upload.usPlaceholder": "Seret dan lepas file yang kurang dari {maxSize} MB",
56
+ "neptune.Upload.usPlaceholderNoLimit": "Seret dan lepaskan file",
55
57
  "neptune.UploadButton.allFileTypes": "Semua jenis file",
56
58
  "neptune.UploadButton.dropFiles": "Lepaskan file untuk mulai mengunggah",
57
59
  "neptune.UploadButton.instructions": "{fileTypes}, kurang dari {size}MB",
@@ -1 +1 @@
1
- {"version":3,"file":"id.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"id.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -45,6 +45,7 @@
45
45
  "neptune.Upload.csFailureText": "Uploaden mislukt. Probeer het opnieuw",
46
46
  "neptune.Upload.csSuccessText": "Uploaden voltooid!",
47
47
  "neptune.Upload.csTooLargeMessage": "Upload een bestand kleiner dan {maxSize} MB",
48
+ "neptune.Upload.csTooLargeNoLimitMessage": "Verstrek een kleiner bestand",
48
49
  "neptune.Upload.csWrongTypeMessage": "Het bestandstype wordt niet ondersteund. Probeer het opnieuw met een ander bestand",
49
50
  "neptune.Upload.psButtonText": "Annuleren",
50
51
  "neptune.Upload.psProcessingText": "Uploaden...",
@@ -52,6 +53,7 @@
52
53
  "neptune.Upload.usButtonText": "Of selecteer een bestand",
53
54
  "neptune.Upload.usDropMessage": "Sleep het bestand hierheen om het te uploaden",
54
55
  "neptune.Upload.usPlaceholder": "Sleep een bestand van maximaal {maxSize} MB",
56
+ "neptune.Upload.usPlaceholderNoLimit": "Sleep een bestand hierheen",
55
57
  "neptune.UploadButton.allFileTypes": "Alle bestandstypen",
56
58
  "neptune.UploadButton.dropFiles": "Sleep het bestand hierheen om het te uploaden",
57
59
  "neptune.UploadButton.instructions": "{fileTypes}, kleiner dan {size} MB",
@@ -49,6 +49,7 @@ var nl = {
49
49
  "neptune.Upload.csFailureText": "Uploaden mislukt. Probeer het opnieuw",
50
50
  "neptune.Upload.csSuccessText": "Uploaden voltooid!",
51
51
  "neptune.Upload.csTooLargeMessage": "Upload een bestand kleiner dan {maxSize} MB",
52
+ "neptune.Upload.csTooLargeNoLimitMessage": "Verstrek een kleiner bestand",
52
53
  "neptune.Upload.csWrongTypeMessage": "Het bestandstype wordt niet ondersteund. Probeer het opnieuw met een ander bestand",
53
54
  "neptune.Upload.psButtonText": "Annuleren",
54
55
  "neptune.Upload.psProcessingText": "Uploaden...",
@@ -56,6 +57,7 @@ var nl = {
56
57
  "neptune.Upload.usButtonText": "Of selecteer een bestand",
57
58
  "neptune.Upload.usDropMessage": "Sleep het bestand hierheen om het te uploaden",
58
59
  "neptune.Upload.usPlaceholder": "Sleep een bestand van maximaal {maxSize} MB",
60
+ "neptune.Upload.usPlaceholderNoLimit": "Sleep een bestand hierheen",
59
61
  "neptune.UploadButton.allFileTypes": "Alle bestandstypen",
60
62
  "neptune.UploadButton.dropFiles": "Sleep het bestand hierheen om het te uploaden",
61
63
  "neptune.UploadButton.instructions": "{fileTypes}, kleiner dan {size} MB",
@@ -1 +1 @@
1
- {"version":3,"file":"nl.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"nl.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -45,6 +45,7 @@ var nl = {
45
45
  "neptune.Upload.csFailureText": "Uploaden mislukt. Probeer het opnieuw",
46
46
  "neptune.Upload.csSuccessText": "Uploaden voltooid!",
47
47
  "neptune.Upload.csTooLargeMessage": "Upload een bestand kleiner dan {maxSize} MB",
48
+ "neptune.Upload.csTooLargeNoLimitMessage": "Verstrek een kleiner bestand",
48
49
  "neptune.Upload.csWrongTypeMessage": "Het bestandstype wordt niet ondersteund. Probeer het opnieuw met een ander bestand",
49
50
  "neptune.Upload.psButtonText": "Annuleren",
50
51
  "neptune.Upload.psProcessingText": "Uploaden...",
@@ -52,6 +53,7 @@ var nl = {
52
53
  "neptune.Upload.usButtonText": "Of selecteer een bestand",
53
54
  "neptune.Upload.usDropMessage": "Sleep het bestand hierheen om het te uploaden",
54
55
  "neptune.Upload.usPlaceholder": "Sleep een bestand van maximaal {maxSize} MB",
56
+ "neptune.Upload.usPlaceholderNoLimit": "Sleep een bestand hierheen",
55
57
  "neptune.UploadButton.allFileTypes": "Alle bestandstypen",
56
58
  "neptune.UploadButton.dropFiles": "Sleep het bestand hierheen om het te uploaden",
57
59
  "neptune.UploadButton.instructions": "{fileTypes}, kleiner dan {size} MB",
@@ -1 +1 @@
1
- {"version":3,"file":"nl.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"nl.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/build/main.css CHANGED
@@ -3166,6 +3166,8 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3166
3166
  width: 100%;
3167
3167
  border-radius: 16px;
3168
3168
  border-radius: var(--radius-medium);
3169
+ background-color: #ffffff;
3170
+ background-color: var(--color-background-screen);
3169
3171
  position: relative;
3170
3172
  padding: 12px 0;
3171
3173
  padding: var(--size-12) 0;
@@ -522,6 +522,8 @@
522
522
  width: 100%;
523
523
  border-radius: 16px;
524
524
  border-radius: var(--radius-medium);
525
+ background-color: #ffffff;
526
+ background-color: var(--color-background-screen);
525
527
  position: relative;
526
528
  padding: 12px 0;
527
529
  padding: var(--size-12) 0;
@@ -3166,6 +3166,8 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3166
3166
  width: 100%;
3167
3167
  border-radius: 16px;
3168
3168
  border-radius: var(--radius-medium);
3169
+ background-color: #ffffff;
3170
+ background-color: var(--color-background-screen);
3169
3171
  position: relative;
3170
3172
  padding: 12px 0;
3171
3173
  padding: var(--size-12) 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-bab2370",
3
+ "version": "0.0.0-experimental-9cfa4db",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -83,9 +83,9 @@
83
83
  "storybook": "^9.0.18",
84
84
  "storybook-addon-tag-badges": "^2.0.1",
85
85
  "storybook-addon-test-codegen": "^2.0.1",
86
- "@transferwise/less-config": "3.1.2",
87
86
  "@transferwise/neptune-css": "14.24.5",
88
87
  "@wise/components-theming": "1.6.4",
88
+ "@transferwise/less-config": "3.1.2",
89
89
  "@wise/wds-configs": "0.0.0"
90
90
  },
91
91
  "peerDependencies": {
package/src/i18n/id.json CHANGED
@@ -45,6 +45,7 @@
45
45
  "neptune.Upload.csFailureText": "Unggahan gagal. Silakan coba lagi",
46
46
  "neptune.Upload.csSuccessText": "Pengunggahan selesai!",
47
47
  "neptune.Upload.csTooLargeMessage": "Harap berikan file yang lebih kecil dari {maxSize} MB",
48
+ "neptune.Upload.csTooLargeNoLimitMessage": "Harap berikan file yang lebih kecil",
48
49
  "neptune.Upload.csWrongTypeMessage": "Tipe file ini tidak didukung. Mohon coba lagi dengan file yang berbeda",
49
50
  "neptune.Upload.psButtonText": "Batalkan",
50
51
  "neptune.Upload.psProcessingText": "Mengunggah...",
@@ -52,6 +53,7 @@
52
53
  "neptune.Upload.usButtonText": "Atau pilih file",
53
54
  "neptune.Upload.usDropMessage": "Letakkan file untuk mulai mengunggah",
54
55
  "neptune.Upload.usPlaceholder": "Seret dan lepas file yang kurang dari {maxSize} MB",
56
+ "neptune.Upload.usPlaceholderNoLimit": "Seret dan lepaskan file",
55
57
  "neptune.UploadButton.allFileTypes": "Semua jenis file",
56
58
  "neptune.UploadButton.dropFiles": "Lepaskan file untuk mulai mengunggah",
57
59
  "neptune.UploadButton.instructions": "{fileTypes}, kurang dari {size}MB",
package/src/i18n/nl.json CHANGED
@@ -45,6 +45,7 @@
45
45
  "neptune.Upload.csFailureText": "Uploaden mislukt. Probeer het opnieuw",
46
46
  "neptune.Upload.csSuccessText": "Uploaden voltooid!",
47
47
  "neptune.Upload.csTooLargeMessage": "Upload een bestand kleiner dan {maxSize} MB",
48
+ "neptune.Upload.csTooLargeNoLimitMessage": "Verstrek een kleiner bestand",
48
49
  "neptune.Upload.csWrongTypeMessage": "Het bestandstype wordt niet ondersteund. Probeer het opnieuw met een ander bestand",
49
50
  "neptune.Upload.psButtonText": "Annuleren",
50
51
  "neptune.Upload.psProcessingText": "Uploaden...",
@@ -52,6 +53,7 @@
52
53
  "neptune.Upload.usButtonText": "Of selecteer een bestand",
53
54
  "neptune.Upload.usDropMessage": "Sleep het bestand hierheen om het te uploaden",
54
55
  "neptune.Upload.usPlaceholder": "Sleep een bestand van maximaal {maxSize} MB",
56
+ "neptune.Upload.usPlaceholderNoLimit": "Sleep een bestand hierheen",
55
57
  "neptune.UploadButton.allFileTypes": "Alle bestandstypen",
56
58
  "neptune.UploadButton.dropFiles": "Sleep het bestand hierheen om het te uploaden",
57
59
  "neptune.UploadButton.instructions": "{fileTypes}, kleiner dan {size} MB",
@@ -522,6 +522,8 @@
522
522
  width: 100%;
523
523
  border-radius: 16px;
524
524
  border-radius: var(--radius-medium);
525
+ background-color: #ffffff;
526
+ background-color: var(--color-background-screen);
525
527
  position: relative;
526
528
  padding: 12px 0;
527
529
  padding: var(--size-12) 0;
@@ -6,6 +6,7 @@
6
6
  list-style: none;
7
7
  width: 100%;
8
8
  border-radius: var(--radius-medium);
9
+ background-color: var(--color-background-screen);
9
10
  position: relative;
10
11
  padding: var(--size-12) 0;
11
12
  container-type: inline-size;
@@ -2,15 +2,7 @@ import { useState } from 'react';
2
2
  import { Title, Subtitle, Description, Stories } from '@storybook/addon-docs/blocks';
3
3
  import { Meta, StoryObj } from '@storybook/react-webpack5';
4
4
  import { action } from 'storybook/actions';
5
- import {
6
- InfoCircle,
7
- Documents,
8
- Warning,
9
- Home,
10
- Globe,
11
- People,
12
- Link as LinkIcon,
13
- } from '@transferwise/icons';
5
+ import { InfoCircle, Documents } from '@transferwise/icons';
14
6
  import { lorem10, lorem100, lorem20, lorem5 } from '../../test-utils';
15
7
  import Modal from '../../modal';
16
8
  import Link from '../../link';
@@ -31,7 +23,7 @@ import {
31
23
 
32
24
  export default {
33
25
  component: ListItem,
34
- title: 'Content/ListItem/Common Scenarios',
26
+ title: 'Content/ListItem/common scenarios',
35
27
  tags: ['autodocs'],
36
28
  args: {
37
29
  title: lorem5,
@@ -234,112 +226,3 @@ export const CopyAndPasteWithSnackbar: Story = storySourceWithoutNoise({
234
226
  );
235
227
  },
236
228
  });
237
-
238
- export const Summary: Story = {
239
- parameters: {
240
- docs: {
241
- canvas: {
242
- sourceState: 'shown',
243
- },
244
- },
245
- backgrounds: {
246
- default: 'light',
247
- values: [
248
- { name: 'light', value: '#f8f9fa' },
249
- { name: 'dark', value: '#343a40' },
250
- ],
251
- },
252
- },
253
- render: () => {
254
- const listItems = (
255
- <List>
256
- <ListItem
257
- title="System maintenance"
258
- subtitle="Scheduled downtime notification"
259
- media={
260
- <ListItem.AvatarView size={32} style={{ border: 'none' }}>
261
- <Warning />
262
- </ListItem.AvatarView>
263
- }
264
- control={
265
- <ListItem.IconButton partiallyInteractive>
266
- <InfoCircle />
267
- </ListItem.IconButton>
268
- }
269
- />
270
- <ListItem
271
- title="One link, one QR code, many uses"
272
- subtitle="Quick Pay is a unique link and QR code for your business to get paid online and in person."
273
- media={
274
- <ListItem.AvatarView size={32} style={{ border: 'none' }}>
275
- <LinkIcon />
276
- </ListItem.AvatarView>
277
- }
278
- />
279
- <ListItem
280
- title="Action required"
281
- subtitle="Update your payment address"
282
- media={
283
- <ListItem.AvatarView size={32} style={{ border: 'none' }}>
284
- <Home />
285
- </ListItem.AvatarView>
286
- }
287
- additionalInfo={
288
- <ListItem.AdditionalInfo
289
- action={{ label: 'Change Address', onClick: () => console.log('hello') }}
290
- />
291
- }
292
- />
293
- <ListItem
294
- title="Action required"
295
- subtitle="Update your payment address"
296
- media={
297
- <ListItem.AvatarView size={32} style={{ border: 'none' }}>
298
- <Home />
299
- </ListItem.AvatarView>
300
- }
301
- additionalInfo={
302
- <ListItem.AdditionalInfo
303
- action={{ label: 'Change Address', onClick: () => console.log('hello') }}
304
- />
305
- }
306
- control={
307
- <ListItem.IconButton partiallyInteractive>
308
- <InfoCircle />
309
- </ListItem.IconButton>
310
- }
311
- />
312
- <ListItem
313
- title="Receive money from around the world"
314
- media={
315
- <ListItem.AvatarView size={32} style={{ border: 'none' }}>
316
- <Globe />
317
- </ListItem.AvatarView>
318
- }
319
- />
320
- <ListItem
321
- title="Let customers pay in a currency they trust"
322
- media={
323
- <ListItem.AvatarView size={32} style={{ border: 'none' }}>
324
- <People />
325
- </ListItem.AvatarView>
326
- }
327
- />
328
- </List>
329
- );
330
- return (
331
- <>
332
- <div style={{ padding: '24px', width: '450px' }}>{listItems}</div>
333
- <div
334
- style={{
335
- padding: '24px',
336
- width: '450px',
337
- backgroundColor: 'var(--color-background-neutral)',
338
- }}
339
- >
340
- {listItems}
341
- </div>
342
- </>
343
- );
344
- },
345
- };
package/src/main.css CHANGED
@@ -3166,6 +3166,8 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3166
3166
  width: 100%;
3167
3167
  border-radius: 16px;
3168
3168
  border-radius: var(--radius-medium);
3169
+ background-color: #ffffff;
3170
+ background-color: var(--color-background-screen);
3169
3171
  position: relative;
3170
3172
  padding: 12px 0;
3171
3173
  padding: var(--size-12) 0;